diff --git a/eng/lintingconfigs/revapi/track2/revapi.json b/eng/lintingconfigs/revapi/track2/revapi.json index 1c5cff7826f0..1d5d5515b64f 100644 --- a/eng/lintingconfigs/revapi/track2/revapi.json +++ b/eng/lintingconfigs/revapi/track2/revapi.json @@ -1273,6 +1273,86 @@ }, "justification": "Header model setters removed in TypeSpec migration.", "code": "java.method.removed" + }, + { + "code": "java.method.visibilityReduced", + "old" : { + "matcher": "regex", + "match": "method void com\\.azure\\.resourcemanager\\.network\\.models\\..*\\:\\:\\\\(\\)" + }, + "justification": "Output-only immutable models' constructors are now private." + }, + { + "code": "java.method.visibilityReduced", + "old" : { + "matcher": "regex", + "match": "method .* com\\.azure\\.resourcemanager\\.network\\.models\\..*\\:\\:with.*\\(.*\\).*" + }, + "justification": "Output-only immutable models' setters are now package-private if it's being used by child class." + }, + { + "code": "java.method.removed", + "old" : { + "matcher": "regex", + "match": "method .* com\\.azure\\.resourcemanager\\.network\\.models\\..*\\:\\:with.*\\(.*\\).*" + }, + "justification": "Output-only immutable models' setters are removed if no explicit usage." + }, + { + "code": "java.class.removed", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\..*ListResult" + }, + "justification": "Pageable models moved to implementation package. Unlikely used by user." + }, + { + "code": "java.class.removed", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\.List(HubRouteTables|HubVirtualNetworkConnections|P2SVpnGateways|RouteMaps|RoutingIntent|VirtualHub(BgpConnection|IpConfiguration|RouteTableV2S|s)|VirtualNetworkGatewayNatRules|VirtualWans|VpnConnections|VpnGatewayNatRules|VpnGateways|VpnServerConfigurationPolicyGroups|VpnServerConfigurations|VpnSiteLinkConnections|VpnSiteLinks|VpnSites)Result(s)?" + }, + "justification": "Pageable models moved to implementation package. Unlikely used by user." + }, + { + "code": "java.class.removed", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\.(AutoApprovedPrivateLinkServicesResult|AvailableDelegationsResult|AvailablePrivateEndpointTypesResult|AvailableServiceAliasesResult|BastionSessionDeleteResult|GetServiceGatewayAddressLocationsResult|GetServiceGatewayServicesResult|VirtualNetworkDdosProtectionStatusResult|VirtualNetworkGatewayListConnectionsResult|VirtualNetworkListUsageResult|ApplicationGatewayAvailableSslPredefinedPolicies)" + }, + "justification": "Pageable models moved to implementation package. Unlikely used by user." + }, + { + "code": "java.class.removed", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\.(ApplicationGatewayWafDynamicManifestResultList|ConnectionSharedKeyResultList|ExpressRouteCrossConnectionPeeringList|IpamPoolList|NetworkVirtualApplianceConnectionList|PoolAssociationList|StaticCidrList)" + }, + "justification": "Pageable models moved to implementation package. Unlikely used by user." + }, + { + "code": "java.class.removed", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\.(CreatedByType|ErrorAdditionalInfo|ErrorDetail|TrackedResource|SecurityPerimeterProxyResource|SecurityPerimeterResource|SecurityPerimeterSystemData)" + }, + "justification": "Common types now sourced from azure-core or ARM common types." + }, + { + "code": "java.missing.oldSuperType", + "old" : { + "matcher": "regex", + "match": "class com\\.azure\\.resourcemanager\\.network\\.models\\.(AdminRule|ChildResource|CommonProxyResource|CommonResource|CommonTrackedResource|DefaultAdminRule|SecurityPerimeterProxyResource|SecurityPerimeterResource)" + }, + "justification": "Base class ProxyResource not in old API archive. Revapi analysis artifact." + }, + { + "code": "java.method.returnTypeChanged", + "old" : { + "matcher": "regex", + "match": "method .* com\\.azure\\.resourcemanager\\.network\\.models\\.EffectiveNetworkSecurityGroup\\:\\:tagMap\\(\\)" + }, + "justification": "TypeSpec defines tagMap as Record, changing return type from Map to Map>." } ] } diff --git a/sdk/network/azure-resourcemanager-network/README.md b/sdk/network/azure-resourcemanager-network/README.md index f1eec7951074..0da79e09788e 100644 --- a/sdk/network/azure-resourcemanager-network/README.md +++ b/sdk/network/azure-resourcemanager-network/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-network - 2.58.0 + 2.59.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRuleCollectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRuleCollectionsClient.java index debcc8959b26..4f781582c33f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRuleCollectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRuleCollectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,83 +22,10 @@ * An instance of this class provides access to all the operations defined in AdminRuleCollectionsClient. */ public interface AdminRuleCollectionsClient { - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken); - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context); - /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -115,7 +42,7 @@ Mono> getWithResponseAsync(String resourceGro /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -131,7 +58,7 @@ Mono getAsync(String resourceGroupName, String network /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -148,7 +75,7 @@ Response getWithResponse(String resourceGroupName, Str /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -164,7 +91,7 @@ AdminRuleCollectionInner get(String resourceGroupName, String networkManagerName /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -182,7 +109,7 @@ Mono> createOrUpdateWithResponseAsync(String /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -199,7 +126,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -217,7 +144,7 @@ Response createOrUpdateWithResponse(String resourceGro /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -234,7 +161,7 @@ AdminRuleCollectionInner createOrUpdate(String resourceGroupName, String network /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -252,7 +179,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -270,7 +197,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -286,7 +213,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -302,7 +229,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -321,7 +248,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -339,7 +266,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -355,7 +282,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -370,7 +297,7 @@ void delete(String resourceGroupName, String networkManagerName, String configur /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -384,4 +311,75 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, Boolean force, Context context); + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken); + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRulesClient.java index ca0a10c37800..e73c9a765d88 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AdminRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,85 +22,10 @@ * An instance of this class provides access to all the operations defined in AdminRulesClient. */ public interface AdminRulesClient { - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken); - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName); - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName); - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context); - /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -118,7 +43,7 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -135,7 +60,7 @@ Mono getAsync(String resourceGroupName, String networkManage /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -153,7 +78,7 @@ Response getWithResponse(String resourceGroupName, String ne /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -170,7 +95,7 @@ BaseAdminRuleInner get(String resourceGroupName, String networkManagerName, Stri /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -189,7 +114,7 @@ Mono> createOrUpdateWithResponseAsync(String resour /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -207,7 +132,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ne /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -227,7 +152,7 @@ Response createOrUpdateWithResponse(String resourceGroupName /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -245,7 +170,7 @@ BaseAdminRuleInner createOrUpdate(String resourceGroupName, String networkManage /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -264,7 +189,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -283,7 +208,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -300,7 +225,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -317,7 +242,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -337,7 +262,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -356,7 +281,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -373,7 +298,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -389,7 +314,7 @@ void delete(String resourceGroupName, String networkManagerName, String configur /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -404,4 +329,79 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, String ruleName, Boolean force, Context context); + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken); + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName); + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName); + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateEndpointConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateEndpointConnectionsClient.java index 91d64f12f8c2..01c63fd5e832 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateEndpointConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateEndpointConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,113 +24,74 @@ */ public interface ApplicationGatewayPrivateEndpointConnectionsClient { /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private endpoint connection on application gateway along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String applicationGatewayName, - String connectionName); - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, - String connectionName); - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - String connectionName); - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - String connectionName, Context context); + Mono> getWithResponseAsync(String resourceGroupName, + String applicationGatewayName, String connectionName); /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the specified private endpoint connection on application gateway on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName); + Mono getAsync(String resourceGroupName, + String applicationGatewayName, String connectionName); /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified private endpoint connection on application gateway along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationGatewayName, String connectionName); + Response getWithResponse(String resourceGroupName, + String applicationGatewayName, String connectionName, Context context); /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @param context The context to associate with this operation. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified private endpoint connection on application gateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationGatewayName, String connectionName, Context context); + ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroupName, String applicationGatewayName, + String connectionName); /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -145,9 +106,9 @@ Mono>> updateWithResponseAsync(String resourceGroupNam /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -162,9 +123,9 @@ Mono>> updateWithResponseAsync(String resourceGroupNam /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,9 +140,9 @@ Mono>> updateWithResponseAsync(String resourceGroupNam /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -197,9 +158,9 @@ Mono>> updateWithResponseAsync(String resourceGroupNam /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -214,9 +175,9 @@ Mono updateAsync(String resour /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -230,9 +191,9 @@ ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGroupName /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -245,77 +206,116 @@ ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGroupName String connectionName, ApplicationGatewayPrivateEndpointConnectionInner parameters, Context context); /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway along with {@link Response} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String applicationGatewayName, String connectionName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String applicationGatewayName, + String connectionName); /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, - String applicationGatewayName, String connectionName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, + String connectionName); /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + String connectionName); + + /** + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + String connectionName, Context context); + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String applicationGatewayName, String connectionName, Context context); + Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName); /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroupName, String applicationGatewayName, - String connectionName); + void delete(String resourceGroupName, String applicationGatewayName, String connectionName); + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String applicationGatewayName, String connectionName, Context context); /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -325,12 +325,12 @@ PagedFlux listAsync(String res /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -340,13 +340,13 @@ PagedIterable list(String reso /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateLinkResourcesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateLinkResourcesClient.java index f123c7310d0d..25cf6535e916 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateLinkResourcesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateLinkResourcesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,12 +19,12 @@ public interface ApplicationGatewayPrivateLinkResourcesClient { /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -34,12 +34,12 @@ PagedFlux listAsync(String resourceG /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -49,13 +49,13 @@ PagedIterable list(String resourceGr /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsClient.java index 2d071a180132..3fbb028486f9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,7 +19,7 @@ public interface ApplicationGatewayWafDynamicManifestsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -31,7 +31,7 @@ public interface ApplicationGatewayWafDynamicManifestsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -43,7 +43,7 @@ public interface ApplicationGatewayWafDynamicManifestsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsDefaultsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsDefaultsClient.java index ba813db276f9..9982a7fc2dc5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsDefaultsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsDefaultsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,7 +19,7 @@ public interface ApplicationGatewayWafDynamicManifestsDefaultsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -32,7 +32,7 @@ public interface ApplicationGatewayWafDynamicManifestsDefaultsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface ApplicationGatewayWafDynamicManifestsDefaultsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -57,7 +57,7 @@ public interface ApplicationGatewayWafDynamicManifestsDefaultsClient { /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewaysClient.java index c60f38a36720..67306edd4353 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -34,102 +34,10 @@ */ public interface ApplicationGatewaysClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String applicationGatewayName); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - Context context); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String applicationGatewayName); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationGatewayName); - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationGatewayName, Context context); - /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -143,7 +51,7 @@ Mono> getByResourceGroupWithResponseAsync(Stri /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -156,7 +64,7 @@ Mono> getByResourceGroupWithResponseAsync(Stri /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,7 +79,7 @@ Response getByResourceGroupWithResponse(String resource /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -184,7 +92,7 @@ Response getByResourceGroupWithResponse(String resource /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -199,7 +107,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,7 +122,7 @@ PollerFlux, ApplicationGatewayInner> beginCr /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,7 +137,7 @@ SyncPoller, ApplicationGatewayInner> beginCr /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -245,7 +153,7 @@ SyncPoller, ApplicationGatewayInner> beginCr /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,7 +168,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -275,7 +183,7 @@ ApplicationGatewayInner createOrUpdate(String resourceGroupName, String applicat /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -291,7 +199,7 @@ ApplicationGatewayInner createOrUpdate(String resourceGroupName, String applicat /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,7 +214,7 @@ Mono> updateTagsWithResponseAsync(String resou /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -321,7 +229,7 @@ Mono updateTagsAsync(String resourceGroupName, String a /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @param context The context to associate with this operation. @@ -337,7 +245,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,14 +256,106 @@ Response updateTagsWithResponse(String resourceGroupNam @ServiceMethod(returns = ReturnType.SINGLE) ApplicationGatewayInner updateTags(String resourceGroupName, String applicationGatewayName, TagsObject parameters); + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String applicationGatewayName); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + Context context); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String applicationGatewayName); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String applicationGatewayName); + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String applicationGatewayName, Context context); + /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedFlux}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -363,11 +363,11 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedIterable}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -375,12 +375,12 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedIterable}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -420,7 +420,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -433,7 +433,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -446,7 +446,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -459,7 +459,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -474,7 +474,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -487,7 +487,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -499,7 +499,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -512,7 +512,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -525,7 +525,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -538,7 +538,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -551,7 +551,7 @@ SyncPoller, Void> beginStart(String resourceGroupName, String a /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -566,7 +566,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ap /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -579,7 +579,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ap /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -591,7 +591,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ap /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -604,7 +604,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ap /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -620,7 +620,7 @@ Mono>> backendHealthWithResponseAsync(String resourceG /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -636,7 +636,7 @@ Mono>> backendHealthWithResponseAsync(String resourceG /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -651,7 +651,7 @@ Mono>> backendHealthWithResponseAsync(String resourceG /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -666,7 +666,7 @@ Mono>> backendHealthWithResponseAsync(String resourceG /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -683,7 +683,7 @@ Mono>> backendHealthWithResponseAsync(String resourceG /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -699,7 +699,7 @@ Mono backendHealthAsync(String resourceGro /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -714,7 +714,7 @@ Mono backendHealthAsync(String resourceGro /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -727,7 +727,7 @@ Mono backendHealthAsync(String resourceGro /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -744,7 +744,7 @@ ApplicationGatewayBackendHealthInner backendHealth(String resourceGroupName, Str * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -762,7 +762,7 @@ Mono>> backendHealthOnDemandWithResponseAsync(String r * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -781,7 +781,7 @@ Mono>> backendHealthOnDemandWithResponseAsync(String r * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -799,7 +799,7 @@ Mono>> backendHealthOnDemandWithResponseAsync(String r * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -817,7 +817,7 @@ Mono>> backendHealthOnDemandWithResponseAsync(String r * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -837,7 +837,7 @@ Mono>> backendHealthOnDemandWithResponseAsync(String r * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -855,7 +855,7 @@ Mono backendHealthOnDemandAsync(St * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -872,7 +872,7 @@ Mono backendHealthOnDemandAsync(St * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -889,7 +889,7 @@ ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String resour * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -905,309 +905,303 @@ ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String resour String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand, Context context); /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call along with {@link Response} on + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> listAvailableServerVariablesWithResponseAsync(); + Mono> listAvailableSslOptionsWithResponseAsync(); /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call on successful completion of + * @return response for ApplicationGatewayAvailableSslOptions API service call on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listAvailableServerVariablesAsync(); + Mono listAvailableSslOptionsAsync(); /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call along with {@link Response}. + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response> listAvailableServerVariablesWithResponse(Context context); + Response listAvailableSslOptionsWithResponse(Context context); /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call. + * @return response for ApplicationGatewayAvailableSslOptions API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) - List listAvailableServerVariables(); + ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions(); /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> listAvailableRequestHeadersWithResponseAsync(); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAvailableSslPredefinedPoliciesAsync(); /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call on successful completion of - * {@link Mono}. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listAvailableRequestHeadersAsync(); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listAvailableSslPredefinedPolicies(); /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response> listAvailableRequestHeadersWithResponse(Context context); - - /** - * Lists all available request headers. - * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - List listAvailableRequestHeaders(); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listAvailableSslPredefinedPolicies(Context context); /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> listAvailableResponseHeadersWithResponseAsync(); + Mono> + getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName); /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call on successful completion of - * {@link Mono}. + * @return ssl predefined policy with the specified policy name on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listAvailableResponseHeadersAsync(); + Mono getSslPredefinedPolicyAsync(String predefinedPolicyName); /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * + * @param predefinedPolicyName The name of the ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response}. + * @return ssl predefined policy with the specified policy name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response> listAvailableResponseHeadersWithResponse(Context context); + Response getSslPredefinedPolicyWithResponse(String predefinedPolicyName, + Context context); /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call. + * @return ssl predefined policy with the specified policy name. */ @ServiceMethod(returns = ReturnType.SINGLE) - List listAvailableResponseHeaders(); + ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String predefinedPolicyName); /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listAvailableWafRuleSetsWithResponseAsync(); + Mono>> listAvailableServerVariablesWithResponseAsync(); /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono listAvailableWafRuleSetsAsync(); + Mono> listAvailableServerVariablesAsync(); /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listAvailableWafRuleSetsWithResponse(Context context); + Response> listAvailableServerVariablesWithResponse(Context context); /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSets(); + List listAvailableServerVariables(); /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listAvailableSslOptionsWithResponseAsync(); + Mono>> listAvailableRequestHeadersWithResponseAsync(); /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono listAvailableSslOptionsAsync(); + Mono> listAvailableRequestHeadersAsync(); /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listAvailableSslOptionsWithResponse(Context context); + Response> listAvailableRequestHeadersWithResponse(Context context); /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions(); + List listAvailableRequestHeaders(); /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedFlux}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAvailableSslPredefinedPoliciesAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> listAvailableResponseHeadersWithResponseAsync(); /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedIterable}. + * @return the response body on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listAvailableSslPredefinedPolicies(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listAvailableResponseHeadersAsync(); /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedIterable}. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listAvailableSslPredefinedPolicies(Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response> listAvailableResponseHeadersWithResponse(Context context); /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available response headers. + * + * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + List listAvailableResponseHeaders(); + + /** + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion - * of {@link Mono}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> - getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName); + Mono> listAvailableWafRuleSetsWithResponseAsync(); /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name on successful completion of {@link Mono}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getSslPredefinedPolicyAsync(String predefinedPolicyName); + Mono listAvailableWafRuleSetsAsync(); /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name along with {@link Response}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getSslPredefinedPolicyWithResponse(String predefinedPolicyName, - Context context); + Response listAvailableWafRuleSetsWithResponse(Context context); /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String predefinedPolicyName); + ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSets(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationSecurityGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationSecurityGroupsClient.java index 1ca3ecf1dece..44bda5edbcc0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationSecurityGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ApplicationSecurityGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,103 +27,10 @@ */ public interface ApplicationSecurityGroupsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationSecurityGroupName); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationSecurityGroupName); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName, - Context context); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationSecurityGroupName); - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String applicationSecurityGroupName, Context context); - /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsyn /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -152,7 +59,7 @@ Mono getByResourceGroupAsync(String resourceGroup /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +74,7 @@ Response getByResourceGroupWithResponse(String re /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +87,7 @@ Response getByResourceGroupWithResponse(String re /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,7 +118,7 @@ PollerFlux, ApplicationSecurityGroupIn /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +133,7 @@ SyncPoller, ApplicationSecurityGroupIn /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -243,7 +150,7 @@ SyncPoller, ApplicationSecurityGroupIn /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,7 +165,7 @@ Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +180,7 @@ ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, String ap /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -289,7 +196,7 @@ ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, String ap /** * Updates an application security group's tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,7 +212,7 @@ Mono> updateTagsWithResponseAsync(String /** * Updates an application security group's tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -320,7 +227,7 @@ Mono updateTagsAsync(String resourceGroupName, St /** * Updates an application security group's tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. * @param context The context to associate with this operation. @@ -336,7 +243,7 @@ Response updateTagsWithResponse(String resourceGr /** * Updates an application security group's tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,41 +256,102 @@ ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applic TagsObject parameters); /** - * Gets all application security groups in a subscription. + * Deletes the specified application security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationSecurityGroupName); /** - * Gets all application security groups in a subscription. + * Deletes the specified application security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationSecurityGroupName); /** - * Gets all application security groups in a subscription. + * Deletes the specified application security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName); + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName, + Context context); + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName); + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String applicationSecurityGroupName); + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String applicationSecurityGroupName, Context context); /** * Gets all the application security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -395,7 +363,7 @@ ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applic /** * Gets all the application security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -407,7 +375,7 @@ ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applic /** * Gets all the application security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -416,4 +384,36 @@ ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applic */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all application security groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all application security groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all application security groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableDelegationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableDelegationsClient.java index b992743d02d5..ca3f4e4a4996 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableDelegationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableDelegationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface AvailableDelegationsClient { /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -31,7 +31,7 @@ public interface AvailableDelegationsClient { /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface AvailableDelegationsClient { /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableEndpointServicesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableEndpointServicesClient.java index f50276ec461f..7580d120122e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableEndpointServicesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableEndpointServicesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,12 +18,11 @@ public interface AvailableEndpointServicesClient { /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String location); @@ -31,12 +30,11 @@ public interface AvailableEndpointServicesClient { /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location); @@ -44,13 +42,12 @@ public interface AvailableEndpointServicesClient { /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailablePrivateEndpointTypesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailablePrivateEndpointTypesClient.java index e2af9dd82a0b..2ee409dde3fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailablePrivateEndpointTypesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailablePrivateEndpointTypesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,7 +30,7 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -42,7 +42,7 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -55,8 +55,8 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -68,8 +68,8 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -81,8 +81,8 @@ public interface AvailablePrivateEndpointTypesClient { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableResourceGroupDelegationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableResourceGroupDelegationsClient.java index 6e238c51c4ad..4968b43c114a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableResourceGroupDelegationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableResourceGroupDelegationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,8 +18,8 @@ public interface AvailableResourceGroupDelegationsClient { /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -32,8 +32,8 @@ public interface AvailableResourceGroupDelegationsClient { /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -46,8 +46,8 @@ public interface AvailableResourceGroupDelegationsClient { /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableServiceAliasesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableServiceAliasesClient.java index e559114cc4c0..0ff6a0a8c6aa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableServiceAliasesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AvailableServiceAliasesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -31,7 +31,7 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,8 +58,8 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -72,8 +72,8 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -86,8 +86,8 @@ public interface AvailableServiceAliasesClient { /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallFqdnTagsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallFqdnTagsClient.java index 179505fb89c6..a878762aaf40 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallFqdnTagsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallFqdnTagsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallsClient.java index 563b05f3afc7..b8806bae5e58 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,101 +30,10 @@ */ public interface AzureFirewallsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String azureFirewallName); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName, Context context); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String azureFirewallName); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String azureFirewallName); - - /** - * Deletes the specified Azure Firewall. - * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String azureFirewallName, Context context); - /** * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +47,7 @@ Mono> getByResourceGroupWithResponseAsync(String re /** * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +60,7 @@ Mono> getByResourceGroupWithResponseAsync(String re /** * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,7 +88,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +118,7 @@ PollerFlux, AzureFirewallInner> beginCreateOrUpda /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +133,7 @@ SyncPoller, AzureFirewallInner> beginCreateOrUpda /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @param context The context to associate with this operation. @@ -240,7 +149,7 @@ SyncPoller, AzureFirewallInner> beginCreateOrUpda /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String az /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,7 +179,7 @@ AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewall /** * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @param context The context to associate with this operation. @@ -286,7 +195,7 @@ AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewall /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +210,7 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -316,7 +225,7 @@ PollerFlux, AzureFirewallInner> beginUpdateTagsAs /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -331,7 +240,7 @@ SyncPoller, AzureFirewallInner> beginUpdateTags(S /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. @@ -347,7 +256,7 @@ SyncPoller, AzureFirewallInner> beginUpdateTags(S /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -361,7 +270,7 @@ SyncPoller, AzureFirewallInner> beginUpdateTags(S /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -375,7 +284,7 @@ SyncPoller, AzureFirewallInner> beginUpdateTags(S /** * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. @@ -388,14 +297,105 @@ SyncPoller, AzureFirewallInner> beginUpdateTags(S AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, TagsObject parameters, Context context); + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String azureFirewallName); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName, Context context); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String azureFirewallName); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String azureFirewallName); + + /** + * Deletes the specified Azure Firewall. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String azureFirewallName, Context context); + /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedFlux}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -403,11 +403,11 @@ AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedIterable}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -415,12 +415,12 @@ AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedIterable}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -460,13 +460,12 @@ AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> listLearnedPrefixesWithResponseAsync(String resourceGroupName, @@ -475,12 +474,12 @@ Mono>> listLearnedPrefixesWithResponseAsync(String res /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, IpPrefixesListInner> @@ -489,12 +488,12 @@ Mono>> listLearnedPrefixesWithResponseAsync(String res /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IpPrefixesListInner> beginListLearnedPrefixes(String resourceGroupName, @@ -503,13 +502,13 @@ SyncPoller, IpPrefixesListInner> beginListLearne /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IpPrefixesListInner> beginListLearnedPrefixes(String resourceGroupName, @@ -518,12 +517,12 @@ SyncPoller, IpPrefixesListInner> beginListLearne /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono listLearnedPrefixesAsync(String resourceGroupName, String azureFirewallName); @@ -531,12 +530,12 @@ SyncPoller, IpPrefixesListInner> beginListLearne /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String azureFirewallName); @@ -544,13 +543,13 @@ SyncPoller, IpPrefixesListInner> beginListLearne /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String azureFirewallName, Context context); @@ -558,7 +557,7 @@ SyncPoller, IpPrefixesListInner> beginListLearne /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -573,7 +572,7 @@ Mono>> packetCaptureWithResponseAsync(String resourceG /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -588,7 +587,7 @@ PollerFlux, Void> beginPacketCaptureAsync(String resourceGroupN /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -603,7 +602,7 @@ SyncPoller, Void> beginPacketCapture(String resourceGroupName, /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -619,7 +618,7 @@ SyncPoller, Void> beginPacketCapture(String resourceGroupName, /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,7 +633,7 @@ Mono packetCaptureAsync(String resourceGroupName, String azureFirewallName /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -647,7 +646,7 @@ Mono packetCaptureAsync(String resourceGroupName, String azureFirewallName /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -662,14 +661,13 @@ void packetCapture(String resourceGroupName, String azureFirewallName, FirewallP /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> packetCaptureOperationWithResponseAsync(String resourceGroupName, @@ -678,13 +676,13 @@ Mono>> packetCaptureOperationWithResponseAsync(String /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, AzureFirewallPacketCaptureResponseInner> @@ -694,13 +692,13 @@ Mono>> packetCaptureOperationWithResponseAsync(String /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureFirewallPacketCaptureResponseInner> @@ -710,14 +708,14 @@ Mono>> packetCaptureOperationWithResponseAsync(String /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureFirewallPacketCaptureResponseInner> @@ -727,13 +725,13 @@ Mono>> packetCaptureOperationWithResponseAsync(String /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono packetCaptureOperationAsync(String resourceGroupName, @@ -742,13 +740,13 @@ Mono packetCaptureOperationAsync(String /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String resourceGroupName, String azureFirewallName, @@ -757,14 +755,14 @@ AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String resourceGr /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String resourceGroupName, String azureFirewallName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BastionHostsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BastionHostsClient.java index 648990e93f9c..f00553b8fe02 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BastionHostsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BastionHostsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,11 @@ */ public interface BastionHostsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostname); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostname); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostname); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostname, Context context); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String bastionHostname); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String bastionHostname); - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String bastionHostname, Context context); - /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -130,26 +39,26 @@ public interface BastionHostsClient */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String bastionHostname); + String bastionHostName); /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Bastion Host on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String bastionHostname); + Mono getByResourceGroupAsync(String resourceGroupName, String bastionHostName); /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -157,27 +66,27 @@ Mono> getByResourceGroupWithResponseAsync(String reso * @return the specified Bastion Host along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String bastionHostname, + Response getByResourceGroupWithResponse(String resourceGroupName, String bastionHostName, Context context); /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Bastion Host. */ @ServiceMethod(returns = ReturnType.SINGLE) - BastionHostInner getByResourceGroup(String resourceGroupName, String bastionHostname); + BastionHostInner getByResourceGroup(String resourceGroupName, String bastionHostName); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -185,14 +94,14 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @return bastion Host resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String bastionHostname, + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String bastionHostName, BastionHostInner parameters); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -201,13 +110,13 @@ Mono>> createOrUpdateWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, BastionHostInner> beginCreateOrUpdateAsync(String resourceGroupName, - String bastionHostname, BastionHostInner parameters); + String bastionHostName, BastionHostInner parameters); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -216,13 +125,13 @@ PollerFlux, BastionHostInner> beginCreateOrUpdateAs */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, - String bastionHostname, BastionHostInner parameters); + String bastionHostName, BastionHostInner parameters); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -232,13 +141,13 @@ SyncPoller, BastionHostInner> beginCreateOrUpdate(S */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, - String bastionHostname, BastionHostInner parameters, Context context); + String bastionHostName, BastionHostInner parameters, Context context); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -246,14 +155,14 @@ SyncPoller, BastionHostInner> beginCreateOrUpdate(S * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String bastionHostname, + Mono createOrUpdateAsync(String resourceGroupName, String bastionHostName, BastionHostInner parameters); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -261,13 +170,13 @@ Mono createOrUpdateAsync(String resourceGroupName, String bast * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters); + BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostName, BastionHostInner parameters); /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,14 +185,14 @@ Mono createOrUpdateAsync(String resourceGroupName, String bast * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, BastionHostInner parameters, + BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostName, BastionHostInner parameters, Context context); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -291,14 +200,14 @@ BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname * @return bastion Host resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateTagsWithResponseAsync(String resourceGroupName, String bastionHostname, + Mono>> updateTagsWithResponseAsync(String resourceGroupName, String bastionHostName, TagsObject parameters); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -307,13 +216,13 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, BastionHostInner> beginUpdateTagsAsync(String resourceGroupName, - String bastionHostname, TagsObject parameters); + String bastionHostName, TagsObject parameters); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -322,13 +231,13 @@ PollerFlux, BastionHostInner> beginUpdateTagsAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BastionHostInner> beginUpdateTags(String resourceGroupName, - String bastionHostname, TagsObject parameters); + String bastionHostName, TagsObject parameters); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -338,13 +247,13 @@ SyncPoller, BastionHostInner> beginUpdateTags(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BastionHostInner> beginUpdateTags(String resourceGroupName, - String bastionHostname, TagsObject parameters, Context context); + String bastionHostName, TagsObject parameters, Context context); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -352,13 +261,13 @@ SyncPoller, BastionHostInner> beginUpdateTags(Strin * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String bastionHostname, TagsObject parameters); + Mono updateTagsAsync(String resourceGroupName, String bastionHostName, TagsObject parameters); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -366,13 +275,13 @@ SyncPoller, BastionHostInner> beginUpdateTags(Strin * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters); + BastionHostInner updateTags(String resourceGroupName, String bastionHostName, TagsObject parameters); /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -381,49 +290,108 @@ SyncPoller, BastionHostInner> beginUpdateTags(Strin * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, + BastionHostInner updateTags(String resourceGroupName, String bastionHostName, TagsObject parameters, Context context); /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostName); /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostName); /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostName); + + /** + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostName, Context context); + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String bastionHostName); + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String bastionHostName); + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String bastionHostName, Context context); /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -431,11 +399,11 @@ BastionHostInner updateTags(String resourceGroupName, String bastionHostname, Ta /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -443,13 +411,45 @@ BastionHostInner updateTags(String resourceGroupName, String bastionHostname, Ta /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Lists all Bastion Hosts in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Lists all Bastion Hosts in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Lists all Bastion Hosts in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BgpServiceCommunitiesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BgpServiceCommunitiesClient.java index c381a876daeb..30f20a387c35 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BgpServiceCommunitiesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/BgpServiceCommunitiesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConfigurationPolicyGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConfigurationPolicyGroupsClient.java index bea446631a44..a75a2de9ac77 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConfigurationPolicyGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConfigurationPolicyGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,12 +22,84 @@ * An instance of this class provides access to all the operations defined in ConfigurationPolicyGroupsClient. */ public interface ConfigurationPolicyGroupsClient { + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName); + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String vpnServerConfigurationName, + String configurationPolicyGroupName); + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName, Context context); + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, String vpnServerConfigurationName, + String configurationPolicyGroupName); + /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -44,9 +116,11 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,9 +137,11 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -82,9 +158,11 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -102,9 +180,11 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -120,9 +200,11 @@ Mono createOrUpdateAsync(String resource /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,9 +220,11 @@ VpnServerConfigurationPolicyGroupInner createOrUpdate(String resourceGroupName, /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -157,9 +241,11 @@ VpnServerConfigurationPolicyGroupInner createOrUpdate(String resourceGroupName, /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -172,9 +258,11 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -187,9 +275,11 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -202,9 +292,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -218,9 +310,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -233,9 +327,11 @@ Mono deleteAsync(String resourceGroupName, String vpnServerConfigurationNa /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -246,9 +342,11 @@ Mono deleteAsync(String resourceGroupName, String vpnServerConfigurationNa /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,73 +356,12 @@ Mono deleteAsync(String resourceGroupName, String vpnServerConfigurationNa void delete(String resourceGroupName, String vpnServerConfigurationName, String configurationPolicyGroupName, Context context); - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName); - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String vpnServerConfigurationName, - String configurationPolicyGroupName); - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName, Context context); - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, String vpnServerConfigurationName, - String configurationPolicyGroupName); - /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -338,8 +375,9 @@ PagedFlux listByVpnServerConfigurationAs /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -353,8 +391,9 @@ PagedIterable listByVpnServerConfigurati /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java index 25ab2224823a..f51e2bf3cd8e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,11 +24,71 @@ * An instance of this class provides access to all the operations defined in ConnectionMonitorsClient. */ public interface ConnectionMonitorsClient { + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName); + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkWatcherName, + String connectionMonitorName); + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, Context context); + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConnectionMonitorResultInner get(String resourceGroupName, String networkWatcherName, String connectionMonitorName); + /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -45,8 +105,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -63,8 +123,8 @@ PollerFlux, ConnectionMonitorResultInne /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,8 +140,8 @@ PollerFlux, ConnectionMonitorResultInne /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,8 +157,8 @@ SyncPoller, ConnectionMonitorResultInne /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -116,8 +176,8 @@ SyncPoller, ConnectionMonitorResultInne /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -133,8 +193,8 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,8 +209,8 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -165,8 +225,8 @@ ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, String net /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -181,70 +241,76 @@ ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, String net String connectionMonitorName, ConnectionMonitorInner parameters, String migrate, Context context); /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + * @return information about the connection monitor along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName); + Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName, TagsObject parameters); /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name on successful completion of {@link Mono}. + * @return information about the connection monitor on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkWatcherName, - String connectionMonitorName); + Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, TagsObject parameters); /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name along with {@link Response}. + * @return information about the connection monitor along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, Context context); + Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, TagsObject parameters, Context context); /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name. + * @return information about the connection monitor. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionMonitorResultInner get(String resourceGroupName, String networkWatcherName, String connectionMonitorName); + ConnectionMonitorResultInner updateTags(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, TagsObject parameters); /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,8 +324,8 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -273,8 +339,8 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -288,8 +354,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -304,8 +370,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -318,8 +384,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -331,8 +397,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,76 +409,51 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String networkWatcherName, String connectionMonitorName, Context context); /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor along with {@link Response} on successful completion of - * {@link Mono}. + * @return list of connection monitors as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName, TagsObject parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkWatcherName); /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor on successful completion of {@link Mono}. + * @return list of connection monitors as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, TagsObject parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkWatcherName); /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, TagsObject parameters, Context context); - - /** - * Update tags of the specified connection monitor. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor. + * @return list of connection monitors as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionMonitorResultInner updateTags(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, TagsObject parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkWatcherName, + Context context); /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -426,8 +467,8 @@ Mono>> stopWithResponseAsync(String resourceGroupName, /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -441,8 +482,8 @@ PollerFlux, Void> beginStopAsync(String resourceGroupName, Stri /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -456,8 +497,8 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -472,8 +513,8 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -486,8 +527,8 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -499,8 +540,8 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -509,45 +550,4 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne */ @ServiceMethod(returns = ReturnType.SINGLE) void stop(String resourceGroupName, String networkWatcherName, String connectionMonitorName, Context context); - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkWatcherName); - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkWatcherName); - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkWatcherName, - Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectivityConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectivityConfigurationsClient.java index 2d38669350aa..5fcf362e6368 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectivityConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectivityConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,7 +26,7 @@ public interface ConnectivityConfigurationsClient { * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +43,7 @@ Mono> getWithResponseAsync(String resou * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -60,7 +60,7 @@ Mono getAsync(String resourceGroupName, String n * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param context The context to associate with this operation. @@ -78,7 +78,7 @@ Response getWithResponse(String resourceGroupNam * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -93,7 +93,7 @@ Response getWithResponse(String resourceGroupNam /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -111,7 +111,7 @@ Mono> createOrUpdateWithResponseAsync(S /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -128,7 +128,7 @@ Mono createOrUpdateAsync(String resourceGroupNam /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -147,7 +147,7 @@ Response createOrUpdateWithResponse(String resou /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -165,7 +165,7 @@ ConnectivityConfigurationInner createOrUpdate(String resourceGroupName, String n * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -183,7 +183,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -201,7 +201,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -217,7 +217,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,7 +233,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -252,7 +252,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -270,7 +270,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -285,7 +285,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -299,7 +299,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -316,7 +316,7 @@ void delete(String resourceGroupName, String networkManagerName, String configur /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -326,8 +326,7 @@ void delete(String resourceGroupName, String networkManagerName, String configur * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with - * {@link PagedFlux}. + * @return the response of a ConnectivityConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -336,13 +335,12 @@ PagedFlux listAsync(String resourceGroupName, St /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with - * {@link PagedFlux}. + * @return the response of a ConnectivityConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName); @@ -350,12 +348,12 @@ PagedFlux listAsync(String resourceGroupName, St /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with + * @return the response of a ConnectivityConfiguration list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -364,7 +362,7 @@ PagedFlux listAsync(String resourceGroupName, St /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -375,7 +373,7 @@ PagedFlux listAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with + * @return the response of a ConnectivityConfiguration list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/CustomIpPrefixesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/CustomIpPrefixesClient.java index 7bad34d3f034..d14e1b99a6ca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/CustomIpPrefixesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/CustomIpPrefixesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface CustomIpPrefixesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String customIpPrefixName); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName, - Context context); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String customIpPrefixName); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customIpPrefixName); - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customIpPrefixName, Context context); - /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -167,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +88,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +118,7 @@ PollerFlux, CustomIpPrefixInner> beginCreateOrUp /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +133,7 @@ SyncPoller, CustomIpPrefixInner> beginCreateOrUp /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -241,7 +149,7 @@ SyncPoller, CustomIpPrefixInner> beginCreateOrUp /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String c /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -271,7 +179,7 @@ CustomIpPrefixInner createOrUpdate(String resourceGroupName, String customIpPref /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -287,7 +195,7 @@ CustomIpPrefixInner createOrUpdate(String resourceGroupName, String customIpPref /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,7 +210,7 @@ Mono> updateTagsWithResponseAsync(String resourceG /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,7 +225,7 @@ Mono updateTagsAsync(String resourceGroupName, String custo /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @param context The context to associate with this operation. @@ -333,7 +241,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,41 +253,101 @@ Response updateTagsWithResponse(String resourceGroupName, S CustomIpPrefixInner updateTags(String resourceGroupName, String customIpPrefixName, TagsObject parameters); /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String customIpPrefixName); /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName); /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName); + + /** + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName, + Context context); + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String customIpPrefixName); + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customIpPrefixName); + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customIpPrefixName, Context context); /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -391,7 +359,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -403,7 +371,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -412,4 +380,36 @@ Response updateTagsWithResponse(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosCustomPoliciesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosCustomPoliciesClient.java index fc7141a7d23e..636f8779ddd1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosCustomPoliciesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosCustomPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,102 +23,10 @@ * An instance of this class provides access to all the operations defined in DdosCustomPoliciesClient. */ public interface DdosCustomPoliciesClient extends InnerSupportsGet, InnerSupportsDelete { - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String ddosCustomPolicyName); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName, - Context context); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ddosCustomPolicyName); - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ddosCustomPolicyName, Context context); - /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -133,7 +41,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -146,7 +54,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -161,7 +69,7 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -174,7 +82,7 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,7 +98,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -205,7 +113,7 @@ PollerFlux, DdosCustomPolicyInner> beginCreate /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -220,7 +128,7 @@ SyncPoller, DdosCustomPolicyInner> beginCreate /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -236,7 +144,7 @@ SyncPoller, DdosCustomPolicyInner> beginCreate /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -251,7 +159,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,7 +174,7 @@ DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddosCustom /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -282,7 +190,7 @@ DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddosCustom /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,7 +206,7 @@ Mono> updateTagsWithResponseAsync(String resourc /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -313,7 +221,7 @@ Mono updateTagsAsync(String resourceGroupName, String ddo /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @param context The context to associate with this operation. @@ -329,7 +237,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -339,4 +247,96 @@ Response updateTagsWithResponse(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) DdosCustomPolicyInner updateTags(String resourceGroupName, String ddosCustomPolicyName, TagsObject parameters); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String ddosCustomPolicyName); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName, + Context context); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ddosCustomPolicyName); + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ddosCustomPolicyName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosProtectionPlansClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosProtectionPlansClient.java index 5e25518fd909..e3391995a401 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosProtectionPlansClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DdosProtectionPlansClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface DdosProtectionPlansClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String ddosProtectionPlanName); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosProtectionPlanName); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName, - Context context); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ddosProtectionPlanName); - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ddosProtectionPlanName, Context context); - /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -137,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync(Stri /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,7 +58,7 @@ Mono> getByResourceGroupWithResponseAsync(Stri /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -165,7 +73,7 @@ Response getByResourceGroupWithResponse(String resource /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -178,7 +86,7 @@ Response getByResourceGroupWithResponse(String resource /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +102,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +117,7 @@ PollerFlux, DdosProtectionPlanInner> beginCr /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +132,7 @@ SyncPoller, DdosProtectionPlanInner> beginCr /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -240,7 +148,7 @@ SyncPoller, DdosProtectionPlanInner> beginCr /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +163,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,7 +178,7 @@ DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String ddosProt /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -286,7 +194,7 @@ DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String ddosProt /** * Update a DDoS protection plan tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,7 +210,7 @@ Mono> updateTagsWithResponseAsync(String resou /** * Update a DDoS protection plan tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,7 +225,7 @@ Mono updateTagsAsync(String resourceGroupName, String d /** * Update a DDoS protection plan tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @param context The context to associate with this operation. @@ -333,7 +241,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Update a DDoS protection plan tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,41 +253,101 @@ Response updateTagsWithResponse(String resourceGroupNam DdosProtectionPlanInner updateTags(String resourceGroupName, String ddosProtectionPlanName, TagsObject parameters); /** - * Gets all DDoS protection plans in a subscription. + * Deletes the specified DDoS protection plan. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String ddosProtectionPlanName); /** - * Gets all DDoS protection plans in a subscription. + * Deletes the specified DDoS protection plan. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosProtectionPlanName); /** - * Gets all DDoS protection plans in a subscription. + * Deletes the specified DDoS protection plan. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName); + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName, + Context context); + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName); + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ddosProtectionPlanName); + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ddosProtectionPlanName, Context context); /** * Gets all the DDoS protection plans in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -391,7 +359,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Gets all the DDoS protection plans in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -403,7 +371,7 @@ Response updateTagsWithResponse(String resourceGroupNam /** * Gets all the DDoS protection plans in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -412,4 +380,36 @@ Response updateTagsWithResponse(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all DDoS protection plans in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all DDoS protection plans in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all DDoS protection plans in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DefaultSecurityRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DefaultSecurityRulesClient.java index 304873a96364..5ed278b4362a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DefaultSecurityRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DefaultSecurityRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,103 +18,103 @@ */ public interface DefaultSecurityRulesClient { /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. + * @return the specified default network security rule along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName); /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. + * @return the specified default network security rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkSecurityGroupName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName); /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. + * @return the specified default network security rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkSecurityGroupName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName, Context context); /** * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified default network security rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName); + SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName); /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule on successful completion of {@link Mono}. + * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName); /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule along with {@link Response}. + * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkSecurityGroupName); /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule. + * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkSecurityGroupName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DscpConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DscpConfigurationsClient.java index ae9bc32a80a5..066af3e9aaf8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DscpConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/DscpConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,12 +26,67 @@ */ public interface DscpConfigurationsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String dscpConfigurationName); + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String dscpConfigurationName); + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String dscpConfigurationName, Context context); + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DscpConfigurationInner getByResourceGroup(String resourceGroupName, String dscpConfigurationName); + /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -45,9 +100,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -61,9 +116,9 @@ PollerFlux, DscpConfigurationInner> beginCrea /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -77,9 +132,9 @@ SyncPoller, DscpConfigurationInner> beginCrea /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -94,9 +149,9 @@ SyncPoller, DscpConfigurationInner> beginCrea /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -110,9 +165,9 @@ Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -125,9 +180,9 @@ DscpConfigurationInner createOrUpdate(String resourceGroupName, String dscpConfi /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -141,7 +196,7 @@ DscpConfigurationInner createOrUpdate(String resourceGroupName, String dscpConfi /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -154,7 +209,7 @@ DscpConfigurationInner createOrUpdate(String resourceGroupName, String dscpConfi /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -167,7 +222,7 @@ DscpConfigurationInner createOrUpdate(String resourceGroupName, String dscpConfi /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +235,7 @@ DscpConfigurationInner createOrUpdate(String resourceGroupName, String dscpConfi /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +250,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -208,7 +263,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -220,7 +275,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,62 +288,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String dscpConfigurationName); - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String dscpConfigurationName); - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String dscpConfigurationName, Context context); - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DscpConfigurationInner getByResourceGroup(String resourceGroupName, String dscpConfigurationName); - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -300,7 +300,7 @@ Response getByResourceGroupWithResponse(String resourceG /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -312,7 +312,7 @@ Response getByResourceGroupWithResponse(String resourceG /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitAuthorizationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitAuthorizationsClient.java index c1242705a18f..eb4f506c988e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitAuthorizationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitAuthorizationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,113 +22,11 @@ * An instance of this class provides access to all the operations defined in ExpressRouteCircuitAuthorizationsClient. */ public interface ExpressRouteCircuitAuthorizationsClient { - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String authorizationName, Context context); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String authorizationName); - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String authorizationName, Context context); - /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -143,8 +41,8 @@ Mono> getWithResponseAsync(Strin /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -159,8 +57,8 @@ Mono getAsync(String resourceGroupName, S /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -175,8 +73,8 @@ Response getWithResponse(String resourceG /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -189,8 +87,8 @@ Response getWithResponse(String resourceG /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -207,8 +105,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -225,8 +123,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -243,8 +141,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -262,8 +160,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -279,8 +177,8 @@ Mono createOrUpdateAsync(String resourceG /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -296,8 +194,8 @@ ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, S /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -311,11 +209,113 @@ ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, S ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters, Context context); + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String authorizationName, Context context); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName, String authorizationName); + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName, String authorizationName, Context context); + /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -327,8 +327,8 @@ ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, S /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -340,8 +340,8 @@ ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, S /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitConnectionsClient.java index 72cc7014909a..c9875ad1938c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,121 +22,11 @@ * An instance of this class provides access to all the operations defined in ExpressRouteCircuitConnectionsClient. */ public interface ExpressRouteCircuitConnectionsClient { - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, - String connectionName); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, - String connectionName, Context context); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, String connectionName); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName); - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName, - Context context); - /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -152,8 +42,8 @@ Mono> getWithResponseAsync(String r /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -169,8 +59,8 @@ Mono getAsync(String resourceGroupName, Stri /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param context The context to associate with this operation. @@ -187,8 +77,8 @@ Response getWithResponse(String resourceGrou /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,8 +93,8 @@ ExpressRouteCircuitConnectionInner get(String resourceGroupName, String circuitN /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -223,8 +113,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -243,8 +133,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -263,8 +153,8 @@ SyncPoller, ExpressRouteCircuitCo /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -284,8 +174,8 @@ SyncPoller, ExpressRouteCircuitCo /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -304,8 +194,8 @@ Mono createOrUpdateAsync(String resourceGrou /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -322,8 +212,8 @@ ExpressRouteCircuitConnectionInner createOrUpdate(String resourceGroupName, Stri /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -339,11 +229,121 @@ ExpressRouteCircuitConnectionInner createOrUpdate(String resourceGroupName, Stri String connectionName, ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters, Context context); + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, + String connectionName); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, + String connectionName, Context context); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, String connectionName); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName); + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName, + Context context); + /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -358,8 +358,8 @@ PagedFlux listAsync(String resourceGroupName /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -374,8 +374,8 @@ PagedIterable list(String resourceGroupName, /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java index 78cd35c07940..2794482c90d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,289 +23,289 @@ */ public interface ExpressRouteCircuitPeeringsClient { /** - * Deletes the specified peering from the specified express route circuit. + * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified peering for the express route circuit along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + Mono> getWithResponseAsync(String resourceGroupName, String circuitName, String peeringName); /** - * Deletes the specified peering from the specified express route circuit. + * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified peering for the express route circuit on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String circuitName, String peeringName); /** - * Deletes the specified peering from the specified express route circuit. + * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified peering for the express route circuit along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String circuitName, + String peeringName, Context context); /** - * Deletes the specified peering from the specified express route circuit. + * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified peering for the express route circuit. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + ExpressRouteCircuitPeeringInner get(String resourceGroupName, String circuitName, String peeringName); /** - * Deletes the specified peering from the specified express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return peering in an ExpressRouteCircuit resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, ExpressRouteCircuitPeeringInner peeringParameters); /** - * Deletes the specified peering from the specified express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of peering in an ExpressRouteCircuit resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String peeringName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ExpressRouteCircuitPeeringInner> beginCreateOrUpdateAsync( + String resourceGroupName, String circuitName, String peeringName, + ExpressRouteCircuitPeeringInner peeringParameters); /** - * Deletes the specified peering from the specified express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of peering in an ExpressRouteCircuit resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, String peeringName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ExpressRouteCircuitPeeringInner> beginCreateOrUpdate( + String resourceGroupName, String circuitName, String peeringName, + ExpressRouteCircuitPeeringInner peeringParameters); /** - * Gets the specified peering for the express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified peering for the express route circuit along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of peering in an ExpressRouteCircuit resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ExpressRouteCircuitPeeringInner> beginCreateOrUpdate( + String resourceGroupName, String circuitName, String peeringName, + ExpressRouteCircuitPeeringInner peeringParameters, Context context); /** - * Gets the specified peering for the express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified peering for the express route circuit on successful completion of {@link Mono}. + * @return peering in an ExpressRouteCircuit resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String circuitName, String peeringName); + Mono createOrUpdateAsync(String resourceGroupName, String circuitName, + String peeringName, ExpressRouteCircuitPeeringInner peeringParameters); /** - * Gets the specified peering for the express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified peering for the express route circuit along with {@link Response}. + * @return peering in an ExpressRouteCircuit resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String circuitName, - String peeringName, Context context); + ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String circuitName, String peeringName, + ExpressRouteCircuitPeeringInner peeringParameters); /** - * Gets the specified peering for the express route circuit. + * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. + * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified peering for the express route circuit. + * @return peering in an ExpressRouteCircuit resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteCircuitPeeringInner get(String resourceGroupName, String circuitName, String peeringName); + ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String circuitName, String peeringName, + ExpressRouteCircuitPeeringInner peeringParameters, Context context); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return peering in an ExpressRouteCircuit resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, ExpressRouteCircuitPeeringInner peeringParameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of peering in an ExpressRouteCircuit resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, ExpressRouteCircuitPeeringInner> beginCreateOrUpdateAsync( - String resourceGroupName, String circuitName, String peeringName, - ExpressRouteCircuitPeeringInner peeringParameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of peering in an ExpressRouteCircuit resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ExpressRouteCircuitPeeringInner> beginCreateOrUpdate( - String resourceGroupName, String circuitName, String peeringName, - ExpressRouteCircuitPeeringInner peeringParameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of peering in an ExpressRouteCircuit resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ExpressRouteCircuitPeeringInner> beginCreateOrUpdate( - String resourceGroupName, String circuitName, String peeringName, - ExpressRouteCircuitPeeringInner peeringParameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, String peeringName, + Context context); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return peering in an ExpressRouteCircuit resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String circuitName, - String peeringName, ExpressRouteCircuitPeeringInner peeringParameters); + Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return peering in an ExpressRouteCircuit resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String circuitName, String peeringName, - ExpressRouteCircuitPeeringInner peeringParameters); + void delete(String resourceGroupName, String circuitName, String peeringName); /** - * Creates or updates a peering in the specified express route circuits. + * Deletes the specified peering from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return peering in an ExpressRouteCircuit resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String circuitName, String peeringName, - ExpressRouteCircuitPeeringInner peeringParameters, Context context); + void delete(String resourceGroupName, String circuitName, String peeringName, Context context); /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -317,8 +317,8 @@ ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -330,8 +330,8 @@ ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, String /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java index 923f6041f869..c4f04e489fd8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,101 +31,10 @@ */ public interface ExpressRouteCircuitsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, Context context); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String circuitName); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName); - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String circuitName, Context context); - /** * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -140,7 +49,7 @@ Mono> getByResourceGroupWithResponseAsync(Str /** * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -153,7 +62,7 @@ Mono> getByResourceGroupWithResponseAsync(Str /** * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,7 +77,7 @@ Response getByResourceGroupWithResponse(String resourc /** * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,8 +90,8 @@ Response getByResourceGroupWithResponse(String resourc /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -196,8 +105,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -211,8 +120,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -226,8 +135,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -242,8 +151,8 @@ SyncPoller, ExpressRouteCircuitInner> begin /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -257,8 +166,8 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -272,8 +181,8 @@ ExpressRouteCircuitInner createOrUpdate(String resourceGroupName, String circuit /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -288,8 +197,8 @@ ExpressRouteCircuitInner createOrUpdate(String resourceGroupName, String circuit /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -303,8 +212,8 @@ Mono> updateTagsWithResponseAsync(String reso /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,8 +226,8 @@ Mono> updateTagsWithResponseAsync(String reso /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -333,8 +242,8 @@ Response updateTagsWithResponse(String resourceGroupNa /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -344,13 +253,229 @@ Response updateTagsWithResponse(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) ExpressRouteCircuitInner updateTags(String resourceGroupName, String circuitName, TagsObject parameters); + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, Context context); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String circuitName); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName); + + /** + * Deletes the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String circuitName, Context context); + + /** + * Gets all the express route circuits in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Gets all the express route circuits in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Gets all the express route circuits in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the express route circuits in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the express route circuits in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the express route circuits in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getStatsWithResponseAsync(String resourceGroupName, + String circuitName); + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getStatsAsync(String resourceGroupName, String circuitName); + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getStatsWithResponse(String resourceGroupName, String circuitName, + Context context); + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ExpressRouteCircuitStatsInner getStats(String resourceGroupName, String circuitName); + /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -364,10 +489,10 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -381,10 +506,10 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -398,10 +523,10 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -417,10 +542,10 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -434,10 +559,10 @@ Mono listArpTableAsync(String resou /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -450,10 +575,10 @@ ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupNam /** * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -467,10 +592,10 @@ ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupNam /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -484,10 +609,10 @@ Mono>> listRoutesTableWithResponseAsync(String resourc /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -501,10 +626,10 @@ Mono>> listRoutesTableWithResponseAsync(String resourc /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -518,10 +643,10 @@ Mono>> listRoutesTableWithResponseAsync(String resourc /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -537,10 +662,10 @@ Mono>> listRoutesTableWithResponseAsync(String resourc /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -554,10 +679,10 @@ Mono listRoutesTableAsync(String /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -570,10 +695,10 @@ ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGr /** * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -587,10 +712,10 @@ ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGr /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -604,10 +729,10 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -622,10 +747,10 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -640,10 +765,10 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -659,10 +784,10 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -676,10 +801,10 @@ Mono listRoutesTableSumma /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -693,10 +818,10 @@ ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(Str /** * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the routeTablesSummary. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -708,67 +833,11 @@ ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(Str ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, String devicePath, Context context); - /** - * Gets all the stats from an express route circuit in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getStatsWithResponseAsync(String resourceGroupName, - String circuitName); - - /** - * Gets all the stats from an express route circuit in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getStatsAsync(String resourceGroupName, String circuitName); - - /** - * Gets all the stats from an express route circuit in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getStatsWithResponse(String resourceGroupName, String circuitName, - Context context); - - /** - * Gets all the stats from an express route circuit in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteCircuitStatsInner getStats(String resourceGroupName, String circuitName); - /** * Gets all stats from an express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -783,8 +852,8 @@ Mono> getPeeringStatsWithResponseAsync(S /** * Gets all stats from an express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -798,8 +867,8 @@ Mono getPeeringStatsAsync(String resourceGroupNam /** * Gets all stats from an express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -814,8 +883,8 @@ Response getPeeringStatsWithResponse(String resou /** * Gets all stats from an express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -824,73 +893,4 @@ Response getPeeringStatsWithResponse(String resou */ @ServiceMethod(returns = ReturnType.SINGLE) ExpressRouteCircuitStatsInner getPeeringStats(String resourceGroupName, String circuitName, String peeringName); - - /** - * Gets all the express route circuits in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Gets all the express route circuits in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Gets all the express route circuits in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Gets all the express route circuits in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Gets all the express route circuits in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Gets all the express route circuits in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java index 7c1a20cebc24..460f70a44bd5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,9 +24,9 @@ public interface ExpressRouteConnectionsClient { /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -41,9 +41,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,9 +58,9 @@ PollerFlux, ExpressRouteConnectionInner> /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -75,9 +75,9 @@ SyncPoller, ExpressRouteConnectionInner> /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -93,9 +93,9 @@ SyncPoller, ExpressRouteConnectionInner> /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -109,9 +109,9 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -125,9 +125,9 @@ ExpressRouteConnectionInner createOrUpdate(String resourceGroupName, String expr /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -142,9 +142,9 @@ ExpressRouteConnectionInner createOrUpdate(String resourceGroupName, String expr /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -158,9 +158,9 @@ Mono> getWithResponseAsync(String resource /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -173,9 +173,9 @@ Mono getAsync(String resourceGroupName, String expr /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -189,9 +189,9 @@ Response getWithResponse(String resourceGroupName, /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -203,9 +203,9 @@ Response getWithResponse(String resourceGroupName, /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -218,9 +218,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -233,9 +233,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -248,9 +248,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -264,9 +264,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -278,9 +278,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -291,9 +291,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -305,7 +305,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -319,7 +319,7 @@ Mono> listWithResponseAsync(String res /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -332,7 +332,7 @@ Mono> listWithResponseAsync(String res /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -347,7 +347,7 @@ Response listWithResponse(String resourceGroupN /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java index a34f9acd33e3..ee9a7e585944 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,8 +25,8 @@ public interface ExpressRouteCrossConnectionPeeringsClient { /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -38,8 +38,8 @@ public interface ExpressRouteCrossConnectionPeeringsClient { /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -51,8 +51,8 @@ public interface ExpressRouteCrossConnectionPeeringsClient { /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -66,8 +66,8 @@ PagedIterable list(String resourceGroup /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -81,8 +81,8 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -96,8 +96,8 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -111,8 +111,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,8 +127,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -141,8 +141,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -154,8 +154,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,8 +168,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -184,8 +184,8 @@ Mono> getWithResponseAsync(Str /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -199,8 +199,8 @@ Mono getAsync(String resourceGroupName, /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -215,8 +215,8 @@ Response getWithResponse(String resourc /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -230,8 +230,8 @@ ExpressRouteCrossConnectionPeeringInner get(String resourceGroupName, String cro /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -248,8 +248,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -266,8 +266,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -284,8 +284,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -303,8 +303,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -320,8 +320,8 @@ Mono createOrUpdateAsync(String resourc /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -337,8 +337,8 @@ ExpressRouteCrossConnectionPeeringInner createOrUpdate(String resourceGroupName, /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionsClient.java index 1fe1624ed1d9..64ada11661fe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -29,101 +29,10 @@ */ public interface ExpressRouteCrossConnectionsClient extends InnerSupportsGet, InnerSupportsListing { - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String filter); - - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String filter, Context context); - - /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * Gets details about the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +47,7 @@ Mono> getByResourceGroupWithResponseA /** * Gets details about the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -152,7 +61,7 @@ Mono getByResourceGroupAsync(String resourceGr /** * Gets details about the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +76,7 @@ Response getByResourceGroupWithResponse(String /** * Gets details about the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,8 +89,8 @@ Response getByResourceGroupWithResponse(String /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -196,8 +105,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -211,8 +120,8 @@ PollerFlux, ExpressRouteCrossConnec /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -226,8 +135,8 @@ SyncPoller, ExpressRouteCrossConnec /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -243,8 +152,8 @@ SyncPoller, ExpressRouteCrossConnec /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,8 +167,8 @@ Mono createOrUpdateAsync(String resourceGroupN /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -273,8 +182,8 @@ ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String /** * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -289,8 +198,8 @@ ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String /** * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -305,8 +214,8 @@ Mono> updateTagsWithResponseAsync(Str /** * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -320,8 +229,8 @@ Mono updateTagsAsync(String resourceGroupName, /** * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -336,8 +245,8 @@ Response updateTagsWithResponse(String resourc /** * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -348,11 +257,102 @@ Response updateTagsWithResponse(String resourc ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, String crossConnectionName, TagsObject crossConnectionParameters); + /** + * Retrieves all the ExpressRouteCrossConnections in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Retrieves all the ExpressRouteCrossConnections in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Retrieves all the ExpressRouteCrossConnections in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String filter); + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String filter, Context context); + /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,8 +368,8 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -386,8 +386,8 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -403,8 +403,8 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -422,8 +422,8 @@ Mono>> listArpTableWithResponseAsync(String resourceGr /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -439,8 +439,8 @@ Mono listArpTableAsync(String resou /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -456,8 +456,8 @@ ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupNam /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -474,8 +474,8 @@ ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupNam /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -491,8 +491,8 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -509,8 +509,8 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -527,8 +527,8 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -546,8 +546,8 @@ Mono>> listRoutesTableSummaryWithResponseAsync(String /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -563,8 +563,8 @@ Mono listRoutesTa /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -579,8 +579,8 @@ ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner listRoutesTableSum /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -597,8 +597,8 @@ ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner listRoutesTableSum * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -615,8 +615,8 @@ Mono>> listRoutesTableWithResponseAsync(String resourc * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,8 +634,8 @@ Mono>> listRoutesTableWithResponseAsync(String resourc * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -653,8 +653,8 @@ Mono>> listRoutesTableWithResponseAsync(String resourc * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -673,8 +673,8 @@ Mono>> listRoutesTableWithResponseAsync(String resourc * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -691,8 +691,8 @@ Mono listRoutesTableAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,8 +709,8 @@ ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGr * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteGatewaysClient.java index 3c6913d06379..a4c20d1c4dc4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,100 +26,64 @@ public interface ExpressRouteGatewaysClient extends InnerSupportsGet, InnerSupportsDelete { /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listBySubscriptionWithResponseAsync(); - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono listBySubscriptionAsync(); - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listBySubscriptionWithResponse(Context context); - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteGatewayListInner listBySubscription(); - - /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. + * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listByResourceGroupWithResponseAsync(String resourceGroupName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String expressRouteGatewayName); /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways on successful completion of {@link Mono}. + * @return expressRoute gateway resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono listByResourceGroupAsync(String resourceGroupName); + Mono getByResourceGroupAsync(String resourceGroupName, String expressRouteGatewayName); /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response}. + * @return expressRoute gateway resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByResourceGroupWithResponse(String resourceGroupName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, + String expressRouteGatewayName, Context context); /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways. + * @return expressRoute gateway resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteGatewayListInner listByResourceGroup(String resourceGroupName); + ExpressRouteGatewayInner getByResourceGroup(String resourceGroupName, String expressRouteGatewayName); /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,7 +98,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,7 +114,7 @@ PollerFlux, ExpressRouteGatewayInner> begin /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +130,7 @@ SyncPoller, ExpressRouteGatewayInner> begin /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -183,7 +147,7 @@ SyncPoller, ExpressRouteGatewayInner> begin /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +162,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +177,7 @@ ExpressRouteGatewayInner createOrUpdate(String resourceGroupName, String express /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -229,8 +193,8 @@ ExpressRouteGatewayInner createOrUpdate(String resourceGroupName, String express /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -244,8 +208,8 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -259,8 +223,8 @@ PollerFlux, ExpressRouteGatewayInner> begin /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -274,8 +238,8 @@ SyncPoller, ExpressRouteGatewayInner> begin /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -290,8 +254,8 @@ SyncPoller, ExpressRouteGatewayInner> begin /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -305,8 +269,8 @@ Mono updateTagsAsync(String resourceGroupName, String /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -320,8 +284,8 @@ ExpressRouteGatewayInner updateTags(String resourceGroupName, String expressRout /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,156 +298,192 @@ ExpressRouteGatewayInner updateTags(String resourceGroupName, String expressRout TagsObject expressRouteGatewayParameters, Context context); /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String expressRouteGatewayName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRouteGatewayName); /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String expressRouteGatewayName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRouteGatewayName); /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String expressRouteGatewayName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName); /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ExpressRouteGatewayInner getByResourceGroup(String resourceGroupName, String expressRouteGatewayName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName, + Context context); /** * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRouteGatewayName); + Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName); /** * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRouteGatewayName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRouteGatewayName); /** * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRouteGatewayName, Context context); /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listByResourceGroupWithResponseAsync(String resourceGroupName); /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of ExpressRoute gateways on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName); + Mono listByResourceGroupAsync(String resourceGroupName); /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRouteGatewayName); + Response listByResourceGroupWithResponse(String resourceGroupName, Context context); /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ExpressRouteGatewayListInner listByResourceGroup(String resourceGroupName); + + /** + * Lists ExpressRoute gateways under a given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listBySubscriptionWithResponseAsync(); + + /** + * Lists ExpressRoute gateways under a given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono listBySubscriptionAsync(); + + /** + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRouteGatewayName, Context context); + Response listBySubscriptionWithResponse(Context context); + + /** + * Lists ExpressRoute gateways under a given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ExpressRouteGatewayListInner listBySubscription(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteLinksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteLinksClient.java index caaf67ff78e6..cc285f696d49 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteLinksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,9 +20,9 @@ public interface ExpressRouteLinksClient { /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -35,9 +35,9 @@ Mono> getWithResponseAsync(String resourceGroupN /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -49,9 +49,9 @@ Mono> getWithResponseAsync(String resourceGroupN /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -65,9 +65,9 @@ Response getWithResponse(String resourceGroupName, String /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -79,8 +79,8 @@ Response getWithResponse(String resourceGroupName, String /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -92,8 +92,8 @@ Response getWithResponse(String resourceGroupName, String /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -105,8 +105,8 @@ Response getWithResponse(String resourceGroupName, String /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortAuthorizationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortAuthorizationsClient.java index 9ee7232a9619..a43eadd4a4a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortAuthorizationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortAuthorizationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,112 +22,10 @@ * An instance of this class provides access to all the operations defined in ExpressRoutePortAuthorizationsClient. */ public interface ExpressRoutePortAuthorizationsClient { - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRoutePortName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - String authorizationName); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - String authorizationName, Context context); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRoutePortName, String authorizationName); - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRoutePortName, String authorizationName, Context context); - /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -143,7 +41,7 @@ Mono> getWithResponseAsync(String r /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +57,7 @@ Mono getAsync(String resourceGroupName, Stri /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. @@ -175,7 +73,7 @@ Response getWithResponse(String resourceGrou /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,7 +88,7 @@ ExpressRoutePortAuthorizationInner get(String resourceGroupName, String expressR /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -208,7 +106,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -226,7 +124,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -244,7 +142,7 @@ SyncPoller, ExpressRoutePortAutho /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -263,7 +161,7 @@ SyncPoller, ExpressRoutePortAutho /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -280,7 +178,7 @@ Mono createOrUpdateAsync(String resourceGrou /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -297,7 +195,7 @@ ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupName, Stri /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -312,10 +210,112 @@ ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupName, Stri ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupName, String expressRoutePortName, String authorizationName, ExpressRoutePortAuthorizationInner authorizationParameters, Context context); + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRoutePortName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + String authorizationName); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + String authorizationName, Context context); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRoutePortName, String authorizationName); + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRoutePortName, String authorizationName, Context context); + /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -328,7 +328,7 @@ ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupName, Stri /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -341,7 +341,7 @@ ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupName, Stri /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsClient.java index 32afc3638fec..73dd7077f14e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -29,102 +29,10 @@ */ public interface ExpressRoutePortsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRoutePortName); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - Context context); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String expressRoutePortName); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRoutePortName); - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String expressRoutePortName, Context context); - /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +74,7 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,8 +87,8 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -194,8 +102,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -209,8 +117,8 @@ PollerFlux, ExpressRoutePortInner> beginCreate /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -224,8 +132,8 @@ SyncPoller, ExpressRoutePortInner> beginCreate /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -240,8 +148,8 @@ SyncPoller, ExpressRoutePortInner> beginCreate /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -255,8 +163,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -270,8 +178,8 @@ ExpressRoutePortInner createOrUpdate(String resourceGroupName, String expressRou /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,8 +194,8 @@ ExpressRoutePortInner createOrUpdate(String resourceGroupName, String expressRou /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -301,8 +209,8 @@ Mono> updateTagsWithResponseAsync(String resourc /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,8 +224,8 @@ Mono updateTagsAsync(String resourceGroupName, String exp /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,8 +240,8 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -343,10 +251,102 @@ Response updateTagsWithResponse(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) ExpressRoutePortInner updateTags(String resourceGroupName, String expressRoutePortName, TagsObject parameters); + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRoutePortName); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + Context context); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String expressRoutePortName); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRoutePortName); + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String expressRoutePortName, Context context); + /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -358,7 +358,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -370,7 +370,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -415,7 +415,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,7 +431,7 @@ Mono> generateLoaWithResponseA /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -446,7 +446,7 @@ Mono generateLoaAsync(String resourceGr /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @param context The context to associate with this operation. @@ -462,7 +462,7 @@ Response generateLoaWithResponse(String /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsLocationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsLocationsClient.java index 9922b4e889e7..91c1d9a4236d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsLocationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsLocationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -17,41 +17,6 @@ * An instance of this class provides access to all the operations defined in ExpressRoutePortsLocationsClient. */ public interface ExpressRoutePortsLocationsClient { - /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - /** * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at * said peering location. @@ -104,4 +69,39 @@ public interface ExpressRoutePortsLocationsClient { */ @ServiceMethod(returns = ReturnType.SINGLE) ExpressRoutePortsLocationInner get(String locationName); + + /** + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteProviderPortsLocationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteProviderPortsLocationsClient.java index d70d404fec0e..71211d3f2d20 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteProviderPortsLocationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteProviderPortsLocationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteServiceProvidersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteServiceProvidersClient.java index 8d84fd9a8ffa..83eb37e0f809 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteServiceProvidersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteServiceProvidersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPoliciesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPoliciesClient.java index 0e216dd861a1..84b58a8fb6da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPoliciesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface FirewallPoliciesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - Context context); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String firewallPolicyName); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName); - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName, Context context); - /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,7 +58,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -166,7 +74,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,7 +87,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +102,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +117,7 @@ PollerFlux, FirewallPolicyInner> beginCreateOrUp /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +132,7 @@ SyncPoller, FirewallPolicyInner> beginCreateOrUp /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -240,7 +148,7 @@ SyncPoller, FirewallPolicyInner> beginCreateOrUp /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +163,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String f /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,7 +178,7 @@ FirewallPolicyInner createOrUpdate(String resourceGroupName, String firewallPoli /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -286,7 +194,7 @@ FirewallPolicyInner createOrUpdate(String resourceGroupName, String firewallPoli /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +209,7 @@ Mono> updateTagsWithResponseAsync(String resourceG /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -316,7 +224,7 @@ Mono updateTagsAsync(String resourceGroupName, String firew /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @param context The context to associate with this operation. @@ -332,7 +240,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,14 +251,106 @@ Response updateTagsWithResponse(String resourceGroupName, S @ServiceMethod(returns = ReturnType.SINGLE) FirewallPolicyInner updateTags(String resourceGroupName, String firewallPolicyName, TagsObject parameters); + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + Context context); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String firewallPolicyName); + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String firewallPolicyName, Context context); + /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedFlux}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -358,11 +358,11 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedIterable}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -370,12 +370,12 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedIterable}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java index 73742f1196c6..4d27b3e11af5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,7 +22,7 @@ public interface FirewallPolicyDeploymentsClient { /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -35,7 +35,7 @@ public interface FirewallPolicyDeploymentsClient { /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,7 +48,7 @@ public interface FirewallPolicyDeploymentsClient { /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -61,7 +61,7 @@ public interface FirewallPolicyDeploymentsClient { /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,7 +76,7 @@ SyncPoller, Void> beginDeploy(String resourceGroupName, String /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -89,7 +89,7 @@ SyncPoller, Void> beginDeploy(String resourceGroupName, String /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -101,7 +101,7 @@ SyncPoller, Void> beginDeploy(String resourceGroupName, String /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java index f4070a7d6f82..a62c452cf2cd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -17,169 +17,169 @@ */ public interface FirewallPolicyDraftsClient extends InnerSupportsDelete { /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. + * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallPolicyName, FirewallPolicyDraftInner parameters); + Mono> getWithResponseAsync(String resourceGroupName, String firewallPolicyName); /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource on successful completion of {@link Mono}. + * @return a draft Firewall Policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, - FirewallPolicyDraftInner parameters); + Mono getAsync(String resourceGroupName, String firewallPolicyName); /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource along with {@link Response}. + * @return a draft Firewall Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String resourceGroupName, String firewallPolicyName, - FirewallPolicyDraftInner parameters, Context context); + Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context); /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource. + * @return a draft Firewall Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, - FirewallPolicyDraftInner parameters); + FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName); /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName); + Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters); /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return firewallPolicy Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String firewallPolicyName); + Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters); /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return firewallPolicy Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters, Context context); /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewallPolicy Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName); + FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters); /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String firewallPolicyName); + Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName); /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String firewallPolicyName); + Mono deleteAsync(String resourceGroupName, String firewallPolicyName); /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String firewallPolicyName, - Context context); + Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context); /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName); + void delete(String resourceGroupName, String firewallPolicyName); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesClient.java index 3e2e309f1792..6bef17e6090a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface FirewallPolicyIdpsSignaturesClient { * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -36,7 +36,7 @@ Mono> listWithResponseAsync(String resourceGroupName * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -51,7 +51,7 @@ Mono> listWithResponseAsync(String resourceGroupName * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -68,7 +68,7 @@ Response listWithResponse(String resourceGroupName, String fi * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesFilterValuesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesFilterValuesClient.java index 540b77c6b106..ac989ecf5f9d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesFilterValuesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesFilterValuesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface FirewallPolicyIdpsSignaturesFilterValuesClient { /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -36,7 +36,7 @@ Mono> listWithResponseAsyn /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -52,7 +52,7 @@ Mono listAsync(String resourceGroup /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -68,7 +68,7 @@ Response listWithResponse(String re /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesOverridesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesOverridesClient.java index 9b27a8241081..bea0de81ce95 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesOverridesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesOverridesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,11 +18,10 @@ */ public interface FirewallPolicyIdpsSignaturesOverridesClient { /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,30 +29,26 @@ public interface FirewallPolicyIdpsSignaturesOverridesClient { * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> patchWithResponseAsync(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters); + Mono> getWithResponseAsync(String resourceGroupName, String firewallPolicyName); /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono patchAsync(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters); + Mono getAsync(String resourceGroupName, String firewallPolicyName); /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -61,28 +56,26 @@ Mono patchAsync(String resourceGroupName, String firew * @return contains all specific policy signatures overrides for the IDPS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response patchWithResponse(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters, Context context); + Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context); /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS. */ @ServiceMethod(returns = ReturnType.SINGLE) - SignaturesOverridesInner patch(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters); + SignaturesOverridesInner get(String resourceGroupName, String firewallPolicyName); /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,7 +91,7 @@ Mono> putWithResponseAsync(String resourceGro /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -113,7 +106,7 @@ Mono putAsync(String resourceGroupName, String firewal /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. @@ -129,7 +122,7 @@ Response putWithResponse(String resourceGroupName, Str /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -142,10 +135,11 @@ SignaturesOverridesInner put(String resourceGroupName, String firewallPolicyName SignaturesOverridesInner parameters); /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -153,26 +147,30 @@ SignaturesOverridesInner put(String resourceGroupName, String firewallPolicyName * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String firewallPolicyName); + Mono> patchWithResponseAsync(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters); /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String firewallPolicyName); + Mono patchAsync(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters); /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,26 +178,28 @@ SignaturesOverridesInner put(String resourceGroupName, String firewallPolicyName * @return contains all specific policy signatures overrides for the IDPS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String firewallPolicyName, - Context context); + Response patchWithResponse(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters, Context context); /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS. */ @ServiceMethod(returns = ReturnType.SINGLE) - SignaturesOverridesInner get(String resourceGroupName, String firewallPolicyName); + SignaturesOverridesInner patch(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters); /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -214,7 +214,7 @@ Mono> listWithResponseAsync(String resour /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -227,7 +227,7 @@ Mono> listWithResponseAsync(String resour /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -242,7 +242,7 @@ Response listWithResponse(String resourceGroupName /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java index d8d7e30b2468..a28ff4fd0135 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -17,69 +17,77 @@ */ public interface FirewallPolicyRuleCollectionGroupDraftsClient { /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName); /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return rule Collection Group Draft on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); + Mono getAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return rule Collection Group Draft along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context); + Response getWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context); /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return rule Collection Group Draft. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); + FirewallPolicyRuleCollectionGroupDraftInner get(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -94,9 +102,10 @@ Mono> createOrUpdateWithRe /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -111,9 +120,10 @@ Mono createOrUpdateAsync(String res /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,9 +139,10 @@ Response createOrUpdateWithResponse /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -143,63 +154,64 @@ FirewallPolicyRuleCollectionGroupDraftInner createOrUpdate(String resourceGroupN String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraftInner parameters); /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName); + Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, Context context); + Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context); /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyRuleCollectionGroupDraftInner get(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupsClient.java index 0863e916a7f4..0a909ca19502 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,295 +23,313 @@ */ public interface FirewallPolicyRuleCollectionGroupsClient { /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified FirewallPolicyRuleCollectionGroup along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified FirewallPolicyRuleCollectionGroup on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified FirewallPolicyRuleCollectionGroup along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified FirewallPolicyRuleCollectionGroup. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + FirewallPolicyRuleCollectionGroupInner get(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return rule Collection Group resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of rule Collection Group resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, FirewallPolicyRuleCollectionGroupInner> + beginCreateOrUpdateAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupInner parameters); /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of rule Collection Group resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FirewallPolicyRuleCollectionGroupInner> + beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupInner parameters); /** - * Gets the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified FirewallPolicyRuleCollectionGroup along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of rule Collection Group resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FirewallPolicyRuleCollectionGroupInner> + beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupInner parameters, Context context); /** - * Gets the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified FirewallPolicyRuleCollectionGroup on successful completion of {@link Mono}. + * @return rule Collection Group resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + Mono createOrUpdateAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); /** - * Gets the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified FirewallPolicyRuleCollectionGroup along with {@link Response}. + * @return rule Collection Group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, Context context); + FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); /** - * Gets the specified FirewallPolicyRuleCollectionGroup. + * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified FirewallPolicyRuleCollectionGroup. + * @return rule Collection Group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyRuleCollectionGroupInner get(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName); + FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters, Context context); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of rule Collection Group resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, FirewallPolicyRuleCollectionGroupInner> - beginCreateOrUpdateAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, - FirewallPolicyRuleCollectionGroupInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of rule Collection Group resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FirewallPolicyRuleCollectionGroupInner> - beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, - FirewallPolicyRuleCollectionGroupInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of rule Collection Group resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, FirewallPolicyRuleCollectionGroupInner> - beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, - FirewallPolicyRuleCollectionGroupInner parameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); + Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters); + void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName); /** - * Creates or updates the specified FirewallPolicyRuleCollectionGroup. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters, Context context); + void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, Context context); /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -320,12 +338,12 @@ FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -334,13 +352,13 @@ FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGroupName, /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FlowLogsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FlowLogsClient.java index e6ec1661b06a..e2a5354d4d48 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FlowLogsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FlowLogsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,12 +23,71 @@ * An instance of this class provides access to all the operations defined in FlowLogsClient. */ public interface FlowLogsClient { + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, + String flowLogName); + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkWatcherName, String flowLogName); + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkWatcherName, String flowLogName, + Context context); + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FlowLogInner get(String resourceGroupName, String networkWatcherName, String flowLogName); + /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -42,9 +101,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,9 +117,9 @@ PollerFlux, FlowLogInner> beginCreateOrUpdateAsync(Stri /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -74,9 +133,9 @@ SyncPoller, FlowLogInner> beginCreateOrUpdate(String re /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -91,9 +150,9 @@ SyncPoller, FlowLogInner> beginCreateOrUpdate(String re /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -107,9 +166,9 @@ Mono createOrUpdateAsync(String resourceGroupName, String networkW /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -123,9 +182,9 @@ FlowLogInner createOrUpdate(String resourceGroupName, String networkWatcherName, /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,9 +199,9 @@ FlowLogInner createOrUpdate(String resourceGroupName, String networkWatcherName, /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -156,9 +215,9 @@ Mono> updateTagsWithResponseAsync(String resourceGroupNam /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -172,9 +231,9 @@ Mono updateTagsAsync(String resourceGroupName, String networkWatch /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -189,9 +248,9 @@ Response updateTagsWithResponse(String resourceGroupName, String n /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -202,69 +261,10 @@ Response updateTagsWithResponse(String resourceGroupName, String n FlowLogInner updateTags(String resourceGroupName, String networkWatcherName, String flowLogName, TagsObject parameters); - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, - String flowLogName); - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkWatcherName, String flowLogName); - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkWatcherName, String flowLogName, - Context context); - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - FlowLogInner get(String resourceGroupName, String networkWatcherName, String flowLogName); - /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -279,7 +279,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,7 +294,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -309,7 +309,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -325,7 +325,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -339,7 +339,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -352,7 +352,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -366,12 +366,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedFlux}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkWatcherName); @@ -379,12 +379,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedIterable}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkWatcherName); @@ -392,13 +392,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedIterable}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkWatcherName, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubRouteTablesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubRouteTablesClient.java index c1941d59e576..3727f608516f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubRouteTablesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubRouteTablesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,12 +23,12 @@ */ public interface HubRouteTablesClient { /** - * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + * Retrieves the details of a RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param routeTableParameters Parameters supplied to create or update RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -36,173 +36,185 @@ public interface HubRouteTablesClient { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualHubName, - String routeTableName, HubRouteTableInner routeTableParameters); + Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routeTableName); /** - * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + * Retrieves the details of a RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param routeTableParameters Parameters supplied to create or update RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of routeTable resource in a virtual hub. + * @return routeTable resource in a virtual hub on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HubRouteTableInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String virtualHubName, String routeTableName); /** - * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + * Retrieves the details of a RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param routeTableParameters Parameters supplied to create or update RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of routeTable resource in a virtual hub. + * @return routeTable resource in a virtual hub along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HubRouteTableInner> beginCreateOrUpdate(String resourceGroupName, - String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String virtualHubName, String routeTableName, + Context context); /** - * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + * Retrieves the details of a RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param routeTableParameters Parameters supplied to create or update RouteTable. - * @param context The context to associate with this operation. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of routeTable resource in a virtual hub. + * @return routeTable resource in a virtual hub. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HubRouteTableInner> beginCreateOrUpdate(String resourceGroupName, - String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + HubRouteTableInner get(String resourceGroupName, String virtualHubName, String routeTableName); /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub on successful completion of {@link Mono}. + * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, String routeTableName, - HubRouteTableInner routeTableParameters); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualHubName, + String routeTableName, HubRouteTableInner routeTableParameters); /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub. + * @return the {@link PollerFlux} for polling of routeTable resource in a virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - HubRouteTableInner createOrUpdate(String resourceGroupName, String virtualHubName, String routeTableName, - HubRouteTableInner routeTableParameters); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, HubRouteTableInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters); /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub. + * @return the {@link SyncPoller} for polling of routeTable resource in a virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - HubRouteTableInner createOrUpdate(String resourceGroupName, String virtualHubName, String routeTableName, - HubRouteTableInner routeTableParameters, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, HubRouteTableInner> beginCreateOrUpdate(String resourceGroupName, + String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters); /** - * Retrieves the details of a RouteTable. + * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param routeTableParameters Parameters supplied to create or update RouteTable. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of routeTable resource in a virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routeTableName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, HubRouteTableInner> beginCreateOrUpdate(String resourceGroupName, + String virtualHubName, String routeTableName, HubRouteTableInner routeTableParameters, Context context); /** - * Retrieves the details of a RouteTable. + * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return routeTable resource in a virtual hub on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String virtualHubName, String routeTableName); + Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, String routeTableName, + HubRouteTableInner routeTableParameters); /** - * Retrieves the details of a RouteTable. + * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param context The context to associate with this operation. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub along with {@link Response}. + * @return routeTable resource in a virtual hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String virtualHubName, String routeTableName, - Context context); + HubRouteTableInner createOrUpdate(String resourceGroupName, String virtualHubName, String routeTableName, + HubRouteTableInner routeTableParameters); /** - * Retrieves the details of a RouteTable. + * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param routeTableParameters Parameters supplied to create or update RouteTable. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return routeTable resource in a virtual hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - HubRouteTableInner get(String resourceGroupName, String virtualHubName, String routeTableName); + HubRouteTableInner createOrUpdate(String resourceGroupName, String virtualHubName, String routeTableName, + HubRouteTableInner routeTableParameters, Context context); /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -215,9 +227,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +243,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -245,9 +259,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -261,9 +276,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -275,9 +291,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -288,9 +305,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -302,7 +320,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,7 +334,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -330,7 +348,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java index da0d5f53ad0d..8e911005bf11 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,9 @@ public interface HubVirtualNetworkConnectionsClient { /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,9 +43,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -61,9 +61,9 @@ PollerFlux, HubVirtualNetworkConnec /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -79,9 +79,9 @@ SyncPoller, HubVirtualNetworkConnec /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -98,9 +98,9 @@ SyncPoller, HubVirtualNetworkConnec /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,9 +115,9 @@ Mono createOrUpdateAsync(String resourceGroupN /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,9 +132,9 @@ HubVirtualNetworkConnectionInner createOrUpdate(String resourceGroupName, String /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -150,9 +150,9 @@ HubVirtualNetworkConnectionInner createOrUpdate(String resourceGroupName, String /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -165,9 +165,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -180,9 +180,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -195,9 +195,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -211,9 +211,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -225,9 +225,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -238,9 +238,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -252,9 +252,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -268,9 +268,9 @@ Mono> getWithResponseAsync(String res /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -283,9 +283,9 @@ Mono getAsync(String resourceGroupName, String /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -299,9 +299,9 @@ Response getWithResponse(String resourceGroupN /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -313,7 +313,7 @@ Response getWithResponse(String resourceGroupN /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -327,7 +327,7 @@ Response getWithResponse(String resourceGroupN /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -341,7 +341,7 @@ Response getWithResponse(String resourceGroupN /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundNatRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundNatRulesClient.java index d6887d356882..9b1807dc438f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundNatRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundNatRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,322 +23,322 @@ */ public interface InboundNatRulesClient { /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, String expand); /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer inbound NAT rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer inbound NAT rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, String expand, Context context); /** - * Deletes the specified load balancer inbound NAT rule. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified load balancer inbound NAT rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName); + InboundNatRuleInner get(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName); + PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, + String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param context The context to associate with this operation. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, Context context); + SyncPoller, InboundNatRuleInner> beginCreateOrUpdate(String resourceGroupName, + String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, InboundNatRuleInner> beginCreateOrUpdate(String resourceGroupName, + String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, + Context context); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); + Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param context The context to associate with this operation. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, Context context); + InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters); /** - * Gets the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param expand Expands referenced resources. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, String expand); + InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters, Context context); /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName); /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, String expand, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName); /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - InboundNatRuleInner get(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName); /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, Context context); /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, - String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, InboundNatRuleInner> beginCreateOrUpdate(String resourceGroupName, - String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName); /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, InboundNatRuleInner> beginCreateOrUpdate(String resourceGroupName, - String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, Context context); /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundSecurityRuleOperationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundSecurityRuleOperationsClient.java index f512f568b112..03e23a150606 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundSecurityRuleOperationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/InboundSecurityRuleOperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,12 +20,78 @@ * An instance of this class provides access to all the operations defined in InboundSecurityRuleOperationsClient. */ public interface InboundSecurityRuleOperationsClient { + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String ruleCollectionName); + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkVirtualApplianceName, + String ruleCollectionName); + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkVirtualApplianceName, + String ruleCollectionName, Context context); + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InboundSecurityRuleInner get(String resourceGroupName, String networkVirtualApplianceName, + String ruleCollectionName); + /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,9 +106,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -58,9 +125,10 @@ PollerFlux, InboundSecurityRuleInner> begin /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,9 +144,10 @@ SyncPoller, InboundSecurityRuleInner> begin /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -95,9 +164,10 @@ SyncPoller, InboundSecurityRuleInner> begin /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -112,9 +182,10 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,9 +200,10 @@ InboundSecurityRuleInner createOrUpdate(String resourceGroupName, String network /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -143,65 +215,4 @@ InboundSecurityRuleInner createOrUpdate(String resourceGroupName, String network @ServiceMethod(returns = ReturnType.SINGLE) InboundSecurityRuleInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, String ruleCollectionName, InboundSecurityRuleInner parameters, Context context); - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String ruleCollectionName); - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkVirtualApplianceName, - String ruleCollectionName); - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkVirtualApplianceName, - String ruleCollectionName, Context context); - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - InboundSecurityRuleInner get(String resourceGroupName, String networkVirtualApplianceName, - String ruleCollectionName); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpAllocationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpAllocationsClient.java index b3f88183b62c..d091731aef78 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpAllocationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpAllocationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,101 +27,10 @@ */ public interface IpAllocationsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName, Context context); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String ipAllocationName); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ipAllocationName); - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String ipAllocationName, Context context); - /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String res /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String res /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -166,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,7 +88,7 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +118,7 @@ PollerFlux, IpAllocationInner> beginCreateOrUpdate /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +133,7 @@ SyncPoller, IpAllocationInner> beginCreateOrUpdate /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -240,7 +149,7 @@ SyncPoller, IpAllocationInner> beginCreateOrUpdate /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ipA /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -269,7 +178,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ipA /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -285,7 +194,7 @@ IpAllocationInner createOrUpdate(String resourceGroupName, String ipAllocationNa /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -300,7 +209,7 @@ Mono> updateTagsWithResponseAsync(String resourceGro /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +223,7 @@ Mono> updateTagsWithResponseAsync(String resourceGro /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @param context The context to associate with this operation. @@ -330,7 +239,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,41 +251,100 @@ Response updateTagsWithResponse(String resourceGroupName, Str IpAllocationInner updateTags(String resourceGroupName, String ipAllocationName, TagsObject parameters); /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName); /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName); /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName); + + /** + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName, Context context); + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String ipAllocationName); + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ipAllocationName); + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String ipAllocationName, Context context); /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -388,7 +356,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -400,7 +368,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -409,4 +377,36 @@ Response updateTagsWithResponse(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all IpAllocations in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all IpAllocations in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all IpAllocations in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpGroupsClient.java index 700cda82fed3..8addb531b725 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,7 +30,7 @@ public interface IpGroupsClient /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups * resource. @@ -46,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String resource /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -59,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String resource /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups * resource. @@ -76,7 +76,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -89,7 +89,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -104,7 +104,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +119,7 @@ PollerFlux, IpGroupInner> beginCreateOrUpdateAsync(Stri /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,7 +134,7 @@ SyncPoller, IpGroupInner> beginCreateOrUpdate(String re /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -150,7 +150,7 @@ SyncPoller, IpGroupInner> beginCreateOrUpdate(String re /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -164,7 +164,7 @@ SyncPoller, IpGroupInner> beginCreateOrUpdate(String re /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,7 +178,7 @@ SyncPoller, IpGroupInner> beginCreateOrUpdate(String re /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -194,7 +194,7 @@ IpGroupInner createOrUpdate(String resourceGroupName, String ipGroupsName, IpGro /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +209,7 @@ Mono> updateGroupsWithResponseAsync(String resourceGroupN /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -223,7 +223,7 @@ Mono> updateGroupsWithResponseAsync(String resourceGroupN /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @param context The context to associate with this operation. @@ -239,7 +239,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -253,7 +253,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -266,7 +266,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -279,7 +279,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -292,7 +292,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,7 +306,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -319,7 +319,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -331,7 +331,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -344,7 +344,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -356,7 +356,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -368,7 +368,7 @@ Response updateGroupsWithResponse(String resourceGroupName, String /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpamPoolsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpamPoolsClient.java index 7e1148d142b7..7a975cd9fd2b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpamPoolsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/IpamPoolsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,76 +26,70 @@ */ public interface IpamPoolsClient { /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName); /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Pool resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkManagerName, String poolName); /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Pool resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, + Context context); /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Pool resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + IpamPoolInner get(String resourceGroupName, String networkManagerName, String poolName); /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -111,9 +105,9 @@ Mono>> createWithResponseAsync(String resourceGroupNam /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -129,9 +123,9 @@ PollerFlux, IpamPoolInner> beginCreateAsync(String res /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -145,9 +139,9 @@ PollerFlux, IpamPoolInner> beginCreateAsync(String res /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -161,9 +155,9 @@ SyncPoller, IpamPoolInner> beginCreate(String resource /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -180,9 +174,9 @@ SyncPoller, IpamPoolInner> beginCreate(String resource /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -198,9 +192,9 @@ Mono createAsync(String resourceGroupName, String networkManagerN /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -214,9 +208,9 @@ Mono createAsync(String resourceGroupName, String networkManagerN /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -229,9 +223,9 @@ Mono createAsync(String resourceGroupName, String networkManagerN /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -248,9 +242,9 @@ IpamPoolInner create(String resourceGroupName, String networkManagerName, String /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Pool resource object to update partially. @@ -266,9 +260,9 @@ Mono> updateWithResponseAsync(String resourceGroupName, /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -280,9 +274,9 @@ Mono> updateWithResponseAsync(String resourceGroupName, /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Pool resource object to update partially. @@ -299,9 +293,9 @@ Response updateWithResponse(String resourceGroupName, String netw /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -310,69 +304,10 @@ Response updateWithResponse(String resourceGroupName, String netw @ServiceMethod(returns = ReturnType.SINGLE) IpamPoolInner update(String resourceGroupName, String networkManagerName, String poolName); - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName); - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkManagerName, String poolName); - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, - Context context); - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - IpamPoolInner get(String resourceGroupName, String networkManagerName, String poolName); - /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -389,7 +324,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -406,7 +341,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -421,7 +356,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -436,7 +371,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -454,7 +389,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -470,7 +405,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -484,7 +419,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -497,7 +432,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -510,10 +445,75 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String poolName, String ifMatch, Context context); + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue); + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName); + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName); + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue, Context context); + /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -528,7 +528,7 @@ Mono> getPoolUsageWithResponseAsync(String resourceGrou /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -542,7 +542,7 @@ Mono> getPoolUsageWithResponseAsync(String resourceGrou /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. @@ -558,7 +558,7 @@ Response getPoolUsageWithResponse(String resourceGroupName, Stri /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -572,7 +572,7 @@ Response getPoolUsageWithResponse(String resourceGroupName, Stri /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -587,7 +587,7 @@ PagedFlux listAssociatedResourcesAsync(String resourceGrou /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -602,7 +602,7 @@ PagedIterable listAssociatedResources(String resourceGroup /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerBackendAddressPoolsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerBackendAddressPoolsClient.java index 39e8fdd840da..1902d1d2a9b2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerBackendAddressPoolsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerBackendAddressPoolsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,50 +22,10 @@ * An instance of this class provides access to all the operations defined in LoadBalancerBackendAddressPoolsClient. */ public interface LoadBalancerBackendAddressPoolsClient { - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); - /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,7 +40,7 @@ Mono> getWithResponseAsync(String resourceGrou /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,7 +55,7 @@ Mono getAsync(String resourceGroupName, String loadBala /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -111,7 +71,7 @@ Response getWithResponse(String resourceGroupName, Stri /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -125,7 +85,7 @@ Response getWithResponse(String resourceGroupName, Stri /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -141,7 +101,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -158,7 +118,7 @@ PollerFlux, BackendAddressPoolInner> beginCr /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -175,7 +135,7 @@ SyncPoller, BackendAddressPoolInner> beginCr /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -193,7 +153,7 @@ SyncPoller, BackendAddressPoolInner> beginCr /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -209,7 +169,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -225,7 +185,7 @@ BackendAddressPoolInner createOrUpdate(String resourceGroupName, String loadBala /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -242,7 +202,7 @@ BackendAddressPoolInner createOrUpdate(String resourceGroupName, String loadBala /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +217,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +232,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -287,7 +247,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -303,7 +263,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,7 +277,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -330,7 +290,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -340,4 +300,44 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String loadBalancerName, String backendAddressPoolName, Context context); + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerFrontendIpConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerFrontendIpConfigurationsClient.java index 80f5d461af02..96eba75aa3d5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerFrontendIpConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerFrontendIpConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,105 +19,109 @@ */ public interface LoadBalancerFrontendIpConfigurationsClient { /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. + * @return load balancer frontend IP configuration along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName); /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. + * @return load balancer frontend IP configuration on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName); /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. + * @return load balancer frontend IP configuration along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName, Context context); /** * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration along with {@link Response} on successful completion of - * {@link Mono}. + * @return load balancer frontend IP configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName); + FrontendIpConfigurationInner get(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName); /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration on successful completion of {@link Mono}. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration along with {@link Response}. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - FrontendIpConfigurationInner get(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, + Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerLoadBalancingRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerLoadBalancingRulesClient.java index 88e0bbd7b9e5..adf46f60c6fc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerLoadBalancingRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerLoadBalancingRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,110 +24,110 @@ */ public interface LoadBalancerLoadBalancingRulesClient { /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String loadBalancingRuleName); /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer load balancing rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String loadBalancerName, + String loadBalancingRuleName); /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer load balancing rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String loadBalancerName, + String loadBalancingRuleName, Context context); /** * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified load balancer load balancing rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String loadBalancingRuleName); + LoadBalancingRuleInner get(String resourceGroupName, String loadBalancerName, String loadBalancingRuleName); /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule on successful completion of {@link Mono}. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String loadBalancerName, - String loadBalancingRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule along with {@link Response}. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String loadBalancerName, - String loadBalancingRuleName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - LoadBalancingRuleInner get(String resourceGroupName, String loadBalancerName, String loadBalancingRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -143,7 +143,7 @@ Mono>> healthWithResponseAsync(String groupName, Strin /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -158,7 +158,7 @@ Mono>> healthWithResponseAsync(String groupName, Strin /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,7 +173,7 @@ SyncPoller, LoadBalancerHealthPerRule /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. @@ -189,7 +189,7 @@ SyncPoller, LoadBalancerHealthPerRule /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +204,7 @@ Mono healthAsync(String groupName, String loadBa /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -218,7 +218,7 @@ Mono healthAsync(String groupName, String loadBa /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerNetworkInterfacesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerNetworkInterfacesClient.java index b8028c67823e..6c5aa69cadfb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerNetworkInterfacesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerNetworkInterfacesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface LoadBalancerNetworkInterfacesClient { /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -31,7 +31,7 @@ public interface LoadBalancerNetworkInterfacesClient { /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -44,7 +44,7 @@ public interface LoadBalancerNetworkInterfacesClient { /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerOutboundRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerOutboundRulesClient.java index 3a579ffb8da0..ec51d88d0efe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerOutboundRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerOutboundRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,102 +18,102 @@ */ public interface LoadBalancerOutboundRulesClient { /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer outbound rule along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String outboundRuleName); /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer outbound rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String loadBalancerName, String outboundRuleName); /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer outbound rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String loadBalancerName, + String outboundRuleName, Context context); /** * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified load balancer outbound rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String outboundRuleName); + OutboundRuleInner get(String resourceGroupName, String loadBalancerName, String outboundRuleName); /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule on successful completion of {@link Mono}. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String loadBalancerName, String outboundRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule along with {@link Response}. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String loadBalancerName, - String outboundRuleName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - OutboundRuleInner get(String resourceGroupName, String loadBalancerName, String outboundRuleName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerProbesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerProbesClient.java index b71f274dbf0b..9e43fa0628a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerProbesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerProbesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,101 +18,101 @@ */ public interface LoadBalancerProbesClient { /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedFlux}. + * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String probeName); /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedIterable}. + * @return load balancer probe on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String loadBalancerName, String probeName); /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedIterable}. + * @return load balancer probe along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String loadBalancerName, String probeName, + Context context); /** * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. + * @return load balancer probe. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String probeName); + ProbeInner get(String resourceGroupName, String loadBalancerName, String probeName); /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe on successful completion of {@link Mono}. + * @return all the load balancer probes as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String loadBalancerName, String probeName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String loadBalancerName); /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe along with {@link Response}. + * @return all the load balancer probes as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String loadBalancerName, String probeName, - Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName); /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe. + * @return all the load balancer probes as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ProbeInner get(String resourceGroupName, String loadBalancerName, String probeName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String loadBalancerName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java index 28ca61c8bbf3..84e6cfcad047 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -32,101 +32,10 @@ */ public interface LoadBalancersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, Context context); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String loadBalancerName); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String loadBalancerName); - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String loadBalancerName, Context context); - /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -141,7 +50,7 @@ Mono> getByResourceGroupWithResponseAsync(String res /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -154,7 +63,7 @@ Mono> getByResourceGroupWithResponseAsync(String res /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -170,7 +79,7 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,7 +92,7 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +107,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +122,7 @@ PollerFlux, LoadBalancerInner> beginCreateOrUpdate /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,7 +137,7 @@ SyncPoller, LoadBalancerInner> beginCreateOrUpdate /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -244,7 +153,7 @@ SyncPoller, LoadBalancerInner> beginCreateOrUpdate /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,7 +168,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String loa /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +182,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String loa /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -289,7 +198,7 @@ LoadBalancerInner createOrUpdate(String resourceGroupName, String loadBalancerNa /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -304,7 +213,7 @@ Mono> updateTagsWithResponseAsync(String resourceGro /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -318,7 +227,7 @@ Mono> updateTagsWithResponseAsync(String resourceGro /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @param context The context to associate with this operation. @@ -334,7 +243,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -346,41 +255,100 @@ Response updateTagsWithResponse(String resourceGroupName, Str LoadBalancerInner updateTags(String resourceGroupName, String loadBalancerName, TagsObject parameters); /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName); /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName); /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName); + + /** + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, Context context); + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String loadBalancerName); + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String loadBalancerName); + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String loadBalancerName, Context context); /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -392,7 +360,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -404,7 +372,7 @@ Response updateTagsWithResponse(String resourceGroupName, Str /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -415,106 +383,101 @@ Response updateTagsWithResponse(String resourceGroupName, Str PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> swapPublicIpAddressesWithResponseAsync(String location, - LoadBalancerVipSwapRequest parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, - LoadBalancerVipSwapRequest parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginSwapPublicIpAddresses(String location, - LoadBalancerVipSwapRequest parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @param context The context to associate with this operation. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the migrateToIpBased Api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginSwapPublicIpAddresses(String location, - LoadBalancerVipSwapRequest parameters, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> migrateToIpBasedWithResponseAsync(String groupName, String loadBalancerName, + MigrateLoadBalancerToIpBasedRequest parameters); /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response for a migrateToIpBased API on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters); + Mono migrateToIpBasedAsync(String groupName, String loadBalancerName); /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response for a migrateToIpBased API along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters); + Response migrateToIpBasedWithResponse(String groupName, String loadBalancerName, + MigrateLoadBalancerToIpBasedRequest parameters, Context context); /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @param context The context to associate with this operation. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response for a migrateToIpBased API. */ @ServiceMethod(returns = ReturnType.SINGLE) - void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters, Context context); + MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancerName); /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -529,9 +492,9 @@ Mono>> listInboundNatRulePortMappingsWithResponseAsync /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -546,9 +509,9 @@ Mono>> listInboundNatRulePortMappingsWithResponseAsync /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -563,9 +526,9 @@ Mono>> listInboundNatRulePortMappingsWithResponseAsync /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -581,9 +544,9 @@ Mono>> listInboundNatRulePortMappingsWithResponseAsync /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -597,9 +560,9 @@ Mono listInboundNatRulePortMappin /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -613,9 +576,9 @@ BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappings(Str /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,60 +592,97 @@ BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappings(Str Context context); /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> migrateToIpBasedWithResponseAsync(String groupName, String loadBalancerName, - MigrateLoadBalancerToIpBasedRequest parameters); + Mono>> swapPublicIpAddressesWithResponseAsync(String location, + LoadBalancerVipSwapRequest parameters); /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono migrateToIpBasedAsync(String groupName, String loadBalancerName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, + LoadBalancerVipSwapRequest parameters); /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginSwapPublicIpAddresses(String location, + LoadBalancerVipSwapRequest parameters); + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginSwapPublicIpAddresses(String location, + LoadBalancerVipSwapRequest parameters, Context context); + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response migrateToIpBasedWithResponse(String groupName, String loadBalancerName, - MigrateLoadBalancerToIpBasedRequest parameters, Context context); + Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters); /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API. */ @ServiceMethod(returns = ReturnType.SINGLE) - MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancerName); + void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters); + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java index 364ece1eda26..a3aa299c27ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,10 +26,66 @@ */ public interface LocalNetworkGatewaysClient extends InnerSupportsGet, InnerSupportsDelete { + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName); + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String localNetworkGatewayName); + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String localNetworkGatewayName, Context context); + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LocalNetworkGatewayInner getByResourceGroup(String resourceGroupName, String localNetworkGatewayName); + /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,7 +101,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -60,7 +116,7 @@ PollerFlux, LocalNetworkGatewayInner> begin /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -75,7 +131,7 @@ SyncPoller, LocalNetworkGatewayInner> begin /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -91,7 +147,7 @@ SyncPoller, LocalNetworkGatewayInner> begin /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -106,7 +162,7 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -121,7 +177,7 @@ LocalNetworkGatewayInner createOrUpdate(String resourceGroupName, String localNe /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -135,65 +191,71 @@ LocalNetworkGatewayInner createOrUpdate(String resourceGroupName, String localNe LocalNetworkGatewayInner parameters, Context context); /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName); + Mono> updateTagsWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName, TagsObject parameters); /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group on successful completion of {@link Mono}. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String localNetworkGatewayName); + Mono updateTagsAsync(String resourceGroupName, String localNetworkGatewayName, + TagsObject parameters); /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group along with {@link Response}. + * @return a common class for general resource information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String localNetworkGatewayName, Context context); + Response updateTagsWithResponse(String resourceGroupName, String localNetworkGatewayName, + TagsObject parameters, Context context); /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - LocalNetworkGatewayInner getByResourceGroup(String resourceGroupName, String localNetworkGatewayName); + LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetworkGatewayName, + TagsObject parameters); /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -206,7 +268,7 @@ Response getByResourceGroupWithResponse(String resourc /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -219,7 +281,7 @@ Response getByResourceGroupWithResponse(String resourc /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -232,7 +294,7 @@ Response getByResourceGroupWithResponse(String resourc /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -247,7 +309,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -260,7 +322,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -272,7 +334,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -282,72 +344,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String localNetworkGatewayName, Context context); - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateTagsWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName, TagsObject parameters); - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String localNetworkGatewayName, - TagsObject parameters); - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse(String resourceGroupName, String localNetworkGatewayName, - TagsObject parameters, Context context); - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetworkGatewayName, - TagsObject parameters); - /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -359,7 +359,7 @@ LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetwor /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -371,7 +371,7 @@ LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetwor /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ManagementGroupNetworkManagerConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ManagementGroupNetworkManagerConnectionsClient.java index d55cd4c1a3f7..97c78c53be32 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ManagementGroupNetworkManagerConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ManagementGroupNetworkManagerConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,127 +20,127 @@ */ public interface ManagementGroupNetworkManagerConnectionsClient extends InnerSupportsDelete { /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this management group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters); + Mono> getWithResponseAsync(String managementGroupId, + String networkManagerConnectionName); /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource on successful completion of {@link Mono}. + * @return a specified connection created by this management group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters); + Mono getAsync(String managementGroupId, String networkManagerConnectionName); /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response}. + * @return a specified connection created by this management group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context); + Response getWithResponse(String managementGroupId, + String networkManagerConnectionName, Context context); /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource. + * @return a specified connection created by this management group. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkManagerConnectionInner createOrUpdate(String managementGroupId, String networkManagerConnectionName, - NetworkManagerConnectionInner parameters); + NetworkManagerConnectionInner get(String managementGroupId, String networkManagerConnectionName); /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String managementGroupId, - String networkManagerConnectionName); + Mono> createOrUpdateWithResponseAsync(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters); /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group on successful completion of {@link Mono}. + * @return the Network Manager Connection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String managementGroupId, String networkManagerConnectionName); + Mono createOrUpdateAsync(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters); /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group along with {@link Response}. + * @return the Network Manager Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String managementGroupId, - String networkManagerConnectionName, Context context); + Response createOrUpdateWithResponse(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context); /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group. + * @return the Network Manager Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkManagerConnectionInner get(String managementGroupId, String networkManagerConnectionName); + NetworkManagerConnectionInner createOrUpdate(String managementGroupId, String networkManagerConnectionName, + NetworkManagerConnectionInner parameters); /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -153,7 +153,7 @@ Response getWithResponse(String managementGroupId /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -166,7 +166,7 @@ Response getWithResponse(String managementGroupId /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -180,7 +180,7 @@ Response getWithResponse(String managementGroupId /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -192,7 +192,7 @@ Response getWithResponse(String managementGroupId /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -201,7 +201,7 @@ Response getWithResponse(String managementGroupId * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String managementGroupId, Integer top, String skipToken); @@ -209,11 +209,11 @@ Response getWithResponse(String managementGroupId /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String managementGroupId); @@ -221,11 +221,12 @@ Response getWithResponse(String managementGroupId /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String managementGroupId); @@ -233,7 +234,7 @@ Response getWithResponse(String managementGroupId /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -243,7 +244,8 @@ Response getWithResponse(String managementGroupId * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String managementGroupId, Integer top, String skipToken, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatGatewaysClient.java index cbebdd219cbb..3b4bf36e0059 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,101 +27,10 @@ */ public interface NatGatewaysClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName, Context context); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String natGatewayName); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String natGatewayName); - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String natGatewayName, Context context); - /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -166,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -179,7 +88,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -209,7 +118,7 @@ PollerFlux, NatGatewayInner> beginCreateOrUpdateAsyn /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +133,7 @@ SyncPoller, NatGatewayInner> beginCreateOrUpdate(Str /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -240,7 +149,7 @@ SyncPoller, NatGatewayInner> beginCreateOrUpdate(Str /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String natGa /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -269,7 +178,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String natGa /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -285,7 +194,7 @@ NatGatewayInner createOrUpdate(String resourceGroupName, String natGatewayName, /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -300,7 +209,7 @@ Mono> updateTagsWithResponseAsync(String resourceGroup /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +223,7 @@ Mono> updateTagsWithResponseAsync(String resourceGroup /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @param context The context to associate with this operation. @@ -330,7 +239,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,41 +251,100 @@ Response updateTagsWithResponse(String resourceGroupName, Strin NatGatewayInner updateTags(String resourceGroupName, String natGatewayName, TagsObject parameters); /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName); /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName); /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName); + + /** + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName, Context context); + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String natGatewayName); + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String natGatewayName); + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String natGatewayName, Context context); /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -388,7 +356,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -400,7 +368,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -409,4 +377,36 @@ Response updateTagsWithResponse(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the Nat Gateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the Nat Gateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the Nat Gateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatRulesClient.java index 7bce74585ded..6307dfe00590 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NatRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,10 @@ public interface NatRulesClient { /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -40,9 +41,10 @@ Mono> getWithResponseAsync(String resourceGroup /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -54,9 +56,10 @@ Mono> getWithResponseAsync(String resourceGroup /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -70,9 +73,10 @@ Response getWithResponse(String resourceGroupName, Strin /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -84,9 +88,10 @@ Response getWithResponse(String resourceGroupName, Strin /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -100,9 +105,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -116,9 +122,10 @@ PollerFlux, VpnGatewayNatRuleInner> beginCrea /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -132,9 +139,10 @@ SyncPoller, VpnGatewayNatRuleInner> beginCrea /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,9 +157,10 @@ SyncPoller, VpnGatewayNatRuleInner> beginCrea /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -165,9 +174,10 @@ Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,9 +191,10 @@ VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String gatewayNa /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,9 +209,10 @@ VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String gatewayNa /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -213,9 +225,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -228,9 +241,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -242,9 +256,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,9 +273,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -272,9 +288,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -285,9 +302,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -299,7 +317,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -313,7 +331,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -327,7 +345,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkGroupsClient.java index dec611180f8b..c6051fcf439a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,7 +26,7 @@ public interface NetworkGroupsClient { /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,7 +41,7 @@ Mono> getWithResponseAsync(String resourceGroupName, /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,7 +55,7 @@ Mono> getWithResponseAsync(String resourceGroupName, /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param context The context to associate with this operation. @@ -71,7 +71,7 @@ Response getWithResponse(String resourceGroupName, String net /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -85,7 +85,7 @@ Response getWithResponse(String resourceGroupName, String net /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -103,7 +103,7 @@ Mono createOrUpdateWithResponseAsync(String /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -119,7 +119,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String net /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -138,7 +138,7 @@ NetworkGroupsCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGr /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -154,7 +154,7 @@ NetworkGroupInner createOrUpdate(String resourceGroupName, String networkManager /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -171,7 +171,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -188,7 +188,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,7 +203,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -218,7 +218,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -236,7 +236,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -252,7 +252,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,7 +266,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -279,7 +279,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -296,7 +296,7 @@ void delete(String resourceGroupName, String networkManagerName, String networkG /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -306,7 +306,7 @@ void delete(String resourceGroupName, String networkManagerName, String networkG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedFlux}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -315,12 +315,12 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedFlux}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName); @@ -328,12 +328,12 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedIterable}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName); @@ -341,7 +341,7 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -352,7 +352,7 @@ PagedFlux listAsync(String resourceGroupName, String networkM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedIterable}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceIpConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceIpConfigurationsClient.java index d37a2b37085a..62ffa05dfa27 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceIpConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceIpConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,105 +18,105 @@ */ public interface NetworkInterfaceIpConfigurationsClient { /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. + * @return the specified network interface ip configuration along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String networkInterfaceName, String ipConfigurationName); /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. + * @return the specified network interface ip configuration on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkInterfaceName, + String ipConfigurationName); /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. + * @return the specified network interface ip configuration along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkInterfaceName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, + String networkInterfaceName, String ipConfigurationName, Context context); /** * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified network interface ip configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, - String networkInterfaceName, String ipConfigurationName); + NetworkInterfaceIpConfigurationInner get(String resourceGroupName, String networkInterfaceName, + String ipConfigurationName); /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration on successful completion of {@link Mono}. + * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkInterfaceName, - String ipConfigurationName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkInterfaceName); /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration along with {@link Response}. + * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, - String networkInterfaceName, String ipConfigurationName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkInterfaceName); /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration. + * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetworkInterfaceIpConfigurationInner get(String resourceGroupName, String networkInterfaceName, - String ipConfigurationName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkInterfaceName, + Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceLoadBalancersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceLoadBalancersClient.java index b96e544ca110..5905aadd2d39 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceLoadBalancersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceLoadBalancersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,12 +18,12 @@ public interface NetworkInterfaceLoadBalancersClient { /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedFlux}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkInterfaceName); @@ -31,12 +31,12 @@ public interface NetworkInterfaceLoadBalancersClient { /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedIterable}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkInterfaceName); @@ -44,13 +44,13 @@ public interface NetworkInterfaceLoadBalancersClient { /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedIterable}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkInterfaceName, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceTapConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceTapConfigurationsClient.java index 22db539722a4..d54e5c67ea34 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceTapConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceTapConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,114 +22,13 @@ * An instance of this class provides access to all the operations defined in NetworkInterfaceTapConfigurationsClient. */ public interface NetworkInterfaceTapConfigurationsClient { - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName, Context context); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName); - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, Context context); - /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -143,9 +42,10 @@ Mono> getWithResponseAsync(Strin /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -158,9 +58,10 @@ Mono getAsync(String resourceGroupName, S /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -174,9 +75,10 @@ Response getWithResponse(String resourceG /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -189,9 +91,10 @@ NetworkInterfaceTapConfigurationInner get(String resourceGroupName, String netwo /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -207,9 +110,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -224,9 +128,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -241,9 +146,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,9 +165,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -276,9 +183,10 @@ Mono createOrUpdateAsync(String resourceG /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -292,9 +200,10 @@ NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroupName, S /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,10 +215,119 @@ NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroupName, S NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters, Context context); + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName, Context context); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName); + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, Context context); + /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -322,7 +340,7 @@ NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroupName, S /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -335,7 +353,7 @@ NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroupName, S /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java index 33584604eb02..a3ba0490a5d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,261 +31,245 @@ public interface NetworkInterfacesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedFlux}. + * @return the specified network interface in a cloud service along with {@link Response} on successful completion + * of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getCloudServiceNetworkInterfaceWithResponseAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand); /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedIterable}. + * @return the specified network interface in a cloud service on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, String roleInstanceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getCloudServiceNetworkInterfaceAsync(String resourceGroupName, String cloudServiceName, + String roleInstanceName, String networkInterfaceName); /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, String roleInstanceName, Context context); - - /** - * Gets all network interfaces in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, - String cloudServiceName); - - /** - * Gets all network interfaces in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, - String cloudServiceName); - - /** - * Gets all network interfaces in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. + * @return the specified network interface in a cloud service along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCloudServiceNetworkInterfaceWithResponse(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand, Context context); /** * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. * @param networkInterfaceName The name of the network interface. - * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service along with {@link Response} on successful completion - * of {@link Mono}. + * @return the specified network interface in a cloud service. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getCloudServiceNetworkInterfaceWithResponseAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand); + NetworkInterfaceInner getCloudServiceNetworkInterface(String resourceGroupName, String cloudServiceName, + String roleInstanceName, String networkInterfaceName); /** - * Get the specified network interface in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service on successful completion of {@link Mono}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getCloudServiceNetworkInterfaceAsync(String resourceGroupName, String cloudServiceName, - String roleInstanceName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName); /** - * Get the specified network interface in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service along with {@link Response}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getCloudServiceNetworkInterfaceWithResponse(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, String roleInstanceName); /** - * Get the specified network interface in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetworkInterfaceInner getCloudServiceNetworkInterface(String resourceGroupName, String cloudServiceName, - String roleInstanceName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, String roleInstanceName, Context context); /** - * Deletes the specified network interface. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkInterfaceName); + Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String expand); /** - * Deletes the specified network interface. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName); /** - * Deletes the specified network interface. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified network interface in a virtual machine scale set along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String expand, + Context context); /** - * Deletes the specified network interface. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified network interface in a virtual machine scale set. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName); /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex); /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkInterfaceName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex); /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkInterfaceName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, Context context); /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +285,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -314,7 +298,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -330,7 +314,7 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -343,7 +327,7 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -359,7 +343,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,7 +358,7 @@ PollerFlux, NetworkInterfaceInner> beginCreate /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -389,7 +373,7 @@ SyncPoller, NetworkInterfaceInner> beginCreate /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -405,7 +389,7 @@ SyncPoller, NetworkInterfaceInner> beginCreate /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -420,7 +404,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,7 +419,7 @@ NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInt /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -451,7 +435,7 @@ NetworkInterfaceInner createOrUpdate(String resourceGroupName, String networkInt /** * Updates a network interface tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to update network interface tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -467,7 +451,7 @@ Mono> updateTagsWithResponseAsync(String resourc /** * Updates a network interface tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to update network interface tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -482,7 +466,7 @@ Mono updateTagsAsync(String resourceGroupName, String net /** * Updates a network interface tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to update network interface tags. * @param context The context to associate with this operation. @@ -498,7 +482,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Updates a network interface tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to update network interface tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -510,41 +494,101 @@ Response updateTagsWithResponse(String resourceGroupName, NetworkInterfaceInner updateTags(String resourceGroupName, String networkInterfaceName, TagsObject parameters); /** - * Gets all network interfaces in a subscription. + * Deletes the specified network interface. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkInterfaceName); /** - * Gets all network interfaces in a subscription. + * Deletes the specified network interface. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName); /** - * Gets all network interfaces in a subscription. + * Deletes the specified network interface. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName); + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + Context context); + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String networkInterfaceName); + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkInterfaceName); + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkInterfaceName, Context context); /** * Gets all network interfaces in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -556,7 +600,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Gets all network interfaces in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -568,7 +612,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Gets all network interfaces in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -578,10 +622,42 @@ Response updateTagsWithResponse(String resourceGroupName, @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + /** + * Gets all network interfaces in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all network interfaces in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all network interfaces in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -596,7 +672,7 @@ Mono>> getEffectiveRouteTableWithResponseAsync(String /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -610,7 +686,7 @@ Mono>> getEffectiveRouteTableWithResponseAsync(String /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -624,7 +700,7 @@ Mono>> getEffectiveRouteTableWithResponseAsync(String /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -639,7 +715,7 @@ Mono>> getEffectiveRouteTableWithResponseAsync(String /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -653,7 +729,7 @@ Mono getEffectiveRouteTableAsync(String resourceG /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -666,7 +742,7 @@ Mono getEffectiveRouteTableAsync(String resourceG /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -681,7 +757,7 @@ EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroupName, S /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -696,7 +772,7 @@ Mono>> listEffectiveNetworkSecurityGroupsWithResponseA /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -710,7 +786,7 @@ Mono>> listEffectiveNetworkSecurityGroupsWithResponseA /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -724,7 +800,7 @@ Mono>> listEffectiveNetworkSecurityGroupsWithResponseA /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -739,7 +815,7 @@ Mono>> listEffectiveNetworkSecurityGroupsWithResponseA /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -753,7 +829,7 @@ Mono listEffectiveNetworkSecurityG /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -767,7 +843,7 @@ EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurityGroups( /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -780,58 +856,52 @@ EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurityGroups( String networkInterfaceName, Context context); /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedFlux}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex); + PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, + String cloudServiceName); /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedIterable}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex); + PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, + String cloudServiceName); /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedIterable}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, Context context); + PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, Context context); /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -845,7 +915,7 @@ PagedFlux listVirtualMachineScaleSetNetworkInterfacesAsyn /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -859,7 +929,7 @@ PagedIterable listVirtualMachineScaleSetNetworkInterfaces /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -872,82 +942,90 @@ PagedIterable listVirtualMachineScaleSetNetworkInterfaces String virtualMachineScaleSetName, Context context); /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful - * completion of {@link Mono}. + * @return the specified network interface ip configuration in a virtual machine scale set along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( + Mono> getVirtualMachineScaleSetIpConfigurationWithResponseAsync( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String expand); + String networkInterfaceName, String ipConfigurationName, String expand); /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}. + * @return the specified network interface ip configuration in a virtual machine scale set on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName); + Mono getVirtualMachineScaleSetIpConfigurationAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName); /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set along with {@link Response}. + * @return the specified network interface ip configuration in a virtual machine scale set along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getVirtualMachineScaleSetNetworkInterfaceWithResponse(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String expand, - Context context); + Response getVirtualMachineScaleSetIpConfigurationWithResponse( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String ipConfigurationName, String expand, Context context); /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set. + * @return the specified network interface ip configuration in a virtual machine scale set. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName); + NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfiguration(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName); /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -963,10 +1041,10 @@ PagedFlux listVirtualMachineScaleSetIpConf /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -981,10 +1059,10 @@ PagedFlux listVirtualMachineScaleSetIpConf /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -999,10 +1077,10 @@ PagedIterable listVirtualMachineScaleSetIp /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1015,82 +1093,4 @@ PagedIterable listVirtualMachineScaleSetIp PagedIterable listVirtualMachineScaleSetIpConfigurations( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String expand, Context context); - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @param expand Expands referenced resources. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getVirtualMachineScaleSetIpConfigurationWithResponseAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName, String expand); - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getVirtualMachineScaleSetIpConfigurationAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName); - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set along with - * {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getVirtualMachineScaleSetIpConfigurationWithResponse( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName, String expand, Context context); - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfiguration(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java index b946f0195878..608687804b6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -41,19 +41,18 @@ */ public interface NetworkManagementClient { /** - * Gets The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Gets Service host. * - * @return the subscriptionId value. + * @return the endpoint value. */ - String getSubscriptionId(); + String getEndpoint(); /** - * Gets server parameter. + * Gets The ID of the target subscription. The value must be an UUID. * - * @return the endpoint value. + * @return the subscriptionId value. */ - String getEndpoint(); + String getSubscriptionId(); /** * Gets The HTTP pipeline to send requests through. @@ -70,18 +69,18 @@ public interface NetworkManagementClient { Duration getDefaultPollInterval(); /** - * Gets the ApplicationGatewaysClient object to access its operations. + * Gets the OperationsClient object to access its operations. * - * @return the ApplicationGatewaysClient object. + * @return the OperationsClient object. */ - ApplicationGatewaysClient getApplicationGateways(); + OperationsClient getOperations(); /** - * Gets the ApplicationGatewayPrivateLinkResourcesClient object to access its operations. + * Gets the ApplicationGatewaysClient object to access its operations. * - * @return the ApplicationGatewayPrivateLinkResourcesClient object. + * @return the ApplicationGatewaysClient object. */ - ApplicationGatewayPrivateLinkResourcesClient getApplicationGatewayPrivateLinkResources(); + ApplicationGatewaysClient getApplicationGateways(); /** * Gets the ApplicationGatewayPrivateEndpointConnectionsClient object to access its operations. @@ -90,20 +89,6 @@ public interface NetworkManagementClient { */ ApplicationGatewayPrivateEndpointConnectionsClient getApplicationGatewayPrivateEndpointConnections(); - /** - * Gets the ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. - * - * @return the ApplicationGatewayWafDynamicManifestsDefaultsClient object. - */ - ApplicationGatewayWafDynamicManifestsDefaultsClient getApplicationGatewayWafDynamicManifestsDefaults(); - - /** - * Gets the ApplicationGatewayWafDynamicManifestsClient object to access its operations. - * - * @return the ApplicationGatewayWafDynamicManifestsClient object. - */ - ApplicationGatewayWafDynamicManifestsClient getApplicationGatewayWafDynamicManifests(); - /** * Gets the ApplicationSecurityGroupsClient object to access its operations. * @@ -111,27 +96,6 @@ public interface NetworkManagementClient { */ ApplicationSecurityGroupsClient getApplicationSecurityGroups(); - /** - * Gets the AvailableDelegationsClient object to access its operations. - * - * @return the AvailableDelegationsClient object. - */ - AvailableDelegationsClient getAvailableDelegations(); - - /** - * Gets the AvailableResourceGroupDelegationsClient object to access its operations. - * - * @return the AvailableResourceGroupDelegationsClient object. - */ - AvailableResourceGroupDelegationsClient getAvailableResourceGroupDelegations(); - - /** - * Gets the AvailableServiceAliasesClient object to access its operations. - * - * @return the AvailableServiceAliasesClient object. - */ - AvailableServiceAliasesClient getAvailableServiceAliases(); - /** * Gets the AzureFirewallsClient object to access its operations. * @@ -139,20 +103,6 @@ public interface NetworkManagementClient { */ AzureFirewallsClient getAzureFirewalls(); - /** - * Gets the AzureFirewallFqdnTagsClient object to access its operations. - * - * @return the AzureFirewallFqdnTagsClient object. - */ - AzureFirewallFqdnTagsClient getAzureFirewallFqdnTags(); - - /** - * Gets the WebCategoriesClient object to access its operations. - * - * @return the WebCategoriesClient object. - */ - WebCategoriesClient getWebCategories(); - /** * Gets the BastionHostsClient object to access its operations. * @@ -174,13 +124,6 @@ public interface NetworkManagementClient { */ PublicIpAddressesClient getPublicIpAddresses(); - /** - * Gets the VipSwapsClient object to access its operations. - * - * @return the VipSwapsClient object. - */ - VipSwapsClient getVipSwaps(); - /** * Gets the CustomIpPrefixesClient object to access its operations. * @@ -203,25 +146,18 @@ public interface NetworkManagementClient { DdosProtectionPlansClient getDdosProtectionPlans(); /** - * Gets the DscpConfigurationsClient object to access its operations. - * - * @return the DscpConfigurationsClient object. - */ - DscpConfigurationsClient getDscpConfigurations(); - - /** - * Gets the AvailableEndpointServicesClient object to access its operations. + * Gets the ExpressRouteCircuitAuthorizationsClient object to access its operations. * - * @return the AvailableEndpointServicesClient object. + * @return the ExpressRouteCircuitAuthorizationsClient object. */ - AvailableEndpointServicesClient getAvailableEndpointServices(); + ExpressRouteCircuitAuthorizationsClient getExpressRouteCircuitAuthorizations(); /** - * Gets the ExpressRouteCircuitAuthorizationsClient object to access its operations. + * Gets the ExpressRouteCircuitsClient object to access its operations. * - * @return the ExpressRouteCircuitAuthorizationsClient object. + * @return the ExpressRouteCircuitsClient object. */ - ExpressRouteCircuitAuthorizationsClient getExpressRouteCircuitAuthorizations(); + ExpressRouteCircuitsClient getExpressRouteCircuits(); /** * Gets the ExpressRouteCircuitPeeringsClient object to access its operations. @@ -244,20 +180,6 @@ public interface NetworkManagementClient { */ PeerExpressRouteCircuitConnectionsClient getPeerExpressRouteCircuitConnections(); - /** - * Gets the ExpressRouteCircuitsClient object to access its operations. - * - * @return the ExpressRouteCircuitsClient object. - */ - ExpressRouteCircuitsClient getExpressRouteCircuits(); - - /** - * Gets the ExpressRouteServiceProvidersClient object to access its operations. - * - * @return the ExpressRouteServiceProvidersClient object. - */ - ExpressRouteServiceProvidersClient getExpressRouteServiceProviders(); - /** * Gets the ExpressRouteCrossConnectionsClient object to access its operations. * @@ -265,13 +187,6 @@ public interface NetworkManagementClient { */ ExpressRouteCrossConnectionsClient getExpressRouteCrossConnections(); - /** - * Gets the ExpressRouteCrossConnectionPeeringsClient object to access its operations. - * - * @return the ExpressRouteCrossConnectionPeeringsClient object. - */ - ExpressRouteCrossConnectionPeeringsClient getExpressRouteCrossConnectionPeerings(); - /** * Gets the ExpressRoutePortsLocationsClient object to access its operations. * @@ -286,13 +201,6 @@ public interface NetworkManagementClient { */ ExpressRoutePortsClient getExpressRoutePorts(); - /** - * Gets the ExpressRouteLinksClient object to access its operations. - * - * @return the ExpressRouteLinksClient object. - */ - ExpressRouteLinksClient getExpressRouteLinks(); - /** * Gets the ExpressRoutePortAuthorizationsClient object to access its operations. * @@ -300,13 +208,6 @@ public interface NetworkManagementClient { */ ExpressRoutePortAuthorizationsClient getExpressRoutePortAuthorizations(); - /** - * Gets the ExpressRouteProviderPortsLocationsClient object to access its operations. - * - * @return the ExpressRouteProviderPortsLocationsClient object. - */ - ExpressRouteProviderPortsLocationsClient getExpressRouteProviderPortsLocations(); - /** * Gets the FirewallPoliciesClient object to access its operations. * @@ -321,13 +222,6 @@ public interface NetworkManagementClient { */ FirewallPolicyRuleCollectionGroupsClient getFirewallPolicyRuleCollectionGroups(); - /** - * Gets the FirewallPolicyIdpsSignaturesClient object to access its operations. - * - * @return the FirewallPolicyIdpsSignaturesClient object. - */ - FirewallPolicyIdpsSignaturesClient getFirewallPolicyIdpsSignatures(); - /** * Gets the FirewallPolicyIdpsSignaturesOverridesClient object to access its operations. * @@ -335,13 +229,6 @@ public interface NetworkManagementClient { */ FirewallPolicyIdpsSignaturesOverridesClient getFirewallPolicyIdpsSignaturesOverrides(); - /** - * Gets the FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. - * - * @return the FirewallPolicyIdpsSignaturesFilterValuesClient object. - */ - FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSignaturesFilterValues(); - /** * Gets the FirewallPolicyDraftsClient object to access its operations. * @@ -349,13 +236,6 @@ public interface NetworkManagementClient { */ FirewallPolicyDraftsClient getFirewallPolicyDrafts(); - /** - * Gets the FirewallPolicyDeploymentsClient object to access its operations. - * - * @return the FirewallPolicyDeploymentsClient object. - */ - FirewallPolicyDeploymentsClient getFirewallPolicyDeployments(); - /** * Gets the FirewallPolicyRuleCollectionGroupDraftsClient object to access its operations. * @@ -370,6 +250,13 @@ public interface NetworkManagementClient { */ IpamPoolsClient getIpamPools(); + /** + * Gets the NetworkManagersClient object to access its operations. + * + * @return the NetworkManagersClient object. + */ + NetworkManagersClient getNetworkManagers(); + /** * Gets the StaticCidrsClient object to access its operations. * @@ -398,20 +285,6 @@ public interface NetworkManagementClient { */ LoadBalancersClient getLoadBalancers(); - /** - * Gets the LoadBalancerBackendAddressPoolsClient object to access its operations. - * - * @return the LoadBalancerBackendAddressPoolsClient object. - */ - LoadBalancerBackendAddressPoolsClient getLoadBalancerBackendAddressPools(); - - /** - * Gets the LoadBalancerFrontendIpConfigurationsClient object to access its operations. - * - * @return the LoadBalancerFrontendIpConfigurationsClient object. - */ - LoadBalancerFrontendIpConfigurationsClient getLoadBalancerFrontendIpConfigurations(); - /** * Gets the InboundNatRulesClient object to access its operations. * @@ -419,34 +292,6 @@ public interface NetworkManagementClient { */ InboundNatRulesClient getInboundNatRules(); - /** - * Gets the LoadBalancerLoadBalancingRulesClient object to access its operations. - * - * @return the LoadBalancerLoadBalancingRulesClient object. - */ - LoadBalancerLoadBalancingRulesClient getLoadBalancerLoadBalancingRules(); - - /** - * Gets the LoadBalancerOutboundRulesClient object to access its operations. - * - * @return the LoadBalancerOutboundRulesClient object. - */ - LoadBalancerOutboundRulesClient getLoadBalancerOutboundRules(); - - /** - * Gets the LoadBalancerNetworkInterfacesClient object to access its operations. - * - * @return the LoadBalancerNetworkInterfacesClient object. - */ - LoadBalancerNetworkInterfacesClient getLoadBalancerNetworkInterfaces(); - - /** - * Gets the LoadBalancerProbesClient object to access its operations. - * - * @return the LoadBalancerProbesClient object. - */ - LoadBalancerProbesClient getLoadBalancerProbes(); - /** * Gets the NatGatewaysClient object to access its operations. * @@ -461,13 +306,6 @@ public interface NetworkManagementClient { */ NetworkInterfaceIpConfigurationsClient getNetworkInterfaceIpConfigurations(); - /** - * Gets the NetworkInterfaceLoadBalancersClient object to access its operations. - * - * @return the NetworkInterfaceLoadBalancersClient object. - */ - NetworkInterfaceLoadBalancersClient getNetworkInterfaceLoadBalancers(); - /** * Gets the NetworkInterfaceTapConfigurationsClient object to access its operations. * @@ -475,34 +313,6 @@ public interface NetworkManagementClient { */ NetworkInterfaceTapConfigurationsClient getNetworkInterfaceTapConfigurations(); - /** - * Gets the NetworkManagersClient object to access its operations. - * - * @return the NetworkManagersClient object. - */ - NetworkManagersClient getNetworkManagers(); - - /** - * Gets the NetworkManagerCommitsClient object to access its operations. - * - * @return the NetworkManagerCommitsClient object. - */ - NetworkManagerCommitsClient getNetworkManagerCommits(); - - /** - * Gets the NetworkManagerDeploymentStatusOperationsClient object to access its operations. - * - * @return the NetworkManagerDeploymentStatusOperationsClient object. - */ - NetworkManagerDeploymentStatusOperationsClient getNetworkManagerDeploymentStatusOperations(); - - /** - * Gets the SubscriptionNetworkManagerConnectionsClient object to access its operations. - * - * @return the SubscriptionNetworkManagerConnectionsClient object. - */ - SubscriptionNetworkManagerConnectionsClient getSubscriptionNetworkManagerConnections(); - /** * Gets the ManagementGroupNetworkManagerConnectionsClient object to access its operations. * @@ -573,13 +383,6 @@ public interface NetworkManagementClient { */ AdminRuleCollectionsClient getAdminRuleCollections(); - /** - * Gets the AdminRulesClient object to access its operations. - * - * @return the AdminRulesClient object. - */ - AdminRulesClient getAdminRules(); - /** * Gets the SecurityUserConfigurationsClient object to access its operations. * @@ -637,242 +440,284 @@ public interface NetworkManagementClient { NetworkSecurityPerimetersClient getNetworkSecurityPerimeters(); /** - * Gets the NetworkSecurityPerimeterProfilesClient object to access its operations. + * Gets the ReachabilityAnalysisIntentsClient object to access its operations. * - * @return the NetworkSecurityPerimeterProfilesClient object. + * @return the ReachabilityAnalysisIntentsClient object. */ - NetworkSecurityPerimeterProfilesClient getNetworkSecurityPerimeterProfiles(); + ReachabilityAnalysisIntentsClient getReachabilityAnalysisIntents(); /** - * Gets the NetworkSecurityPerimeterAccessRulesClient object to access its operations. + * Gets the VerifierWorkspacesClient object to access its operations. * - * @return the NetworkSecurityPerimeterAccessRulesClient object. + * @return the VerifierWorkspacesClient object. */ - NetworkSecurityPerimeterAccessRulesClient getNetworkSecurityPerimeterAccessRules(); + VerifierWorkspacesClient getVerifierWorkspaces(); /** - * Gets the NetworkSecurityPerimeterAssociationsClient object to access its operations. + * Gets the ReachabilityAnalysisRunsClient object to access its operations. * - * @return the NetworkSecurityPerimeterAssociationsClient object. + * @return the ReachabilityAnalysisRunsClient object. */ - NetworkSecurityPerimeterAssociationsClient getNetworkSecurityPerimeterAssociations(); + ReachabilityAnalysisRunsClient getReachabilityAnalysisRuns(); /** - * Gets the NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. + * Gets the NetworkVirtualApplianceConnectionsClient object to access its operations. * - * @return the NetworkSecurityPerimeterAssociableResourceTypesClient object. + * @return the NetworkVirtualApplianceConnectionsClient object. */ - NetworkSecurityPerimeterAssociableResourceTypesClient getNetworkSecurityPerimeterAssociableResourceTypes(); + NetworkVirtualApplianceConnectionsClient getNetworkVirtualApplianceConnections(); /** - * Gets the NetworkSecurityPerimeterLinksClient object to access its operations. + * Gets the NetworkVirtualAppliancesClient object to access its operations. * - * @return the NetworkSecurityPerimeterLinksClient object. + * @return the NetworkVirtualAppliancesClient object. */ - NetworkSecurityPerimeterLinksClient getNetworkSecurityPerimeterLinks(); + NetworkVirtualAppliancesClient getNetworkVirtualAppliances(); /** - * Gets the NetworkSecurityPerimeterLinkReferencesClient object to access its operations. + * Gets the VirtualApplianceSitesClient object to access its operations. * - * @return the NetworkSecurityPerimeterLinkReferencesClient object. + * @return the VirtualApplianceSitesClient object. */ - NetworkSecurityPerimeterLinkReferencesClient getNetworkSecurityPerimeterLinkReferences(); + VirtualApplianceSitesClient getVirtualApplianceSites(); /** - * Gets the NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. + * Gets the NetworkWatchersClient object to access its operations. * - * @return the NetworkSecurityPerimeterLoggingConfigurationsClient object. + * @return the NetworkWatchersClient object. */ - NetworkSecurityPerimeterLoggingConfigurationsClient getNetworkSecurityPerimeterLoggingConfigurations(); + NetworkWatchersClient getNetworkWatchers(); /** - * Gets the NetworkSecurityPerimeterOperationStatusesClient object to access its operations. + * Gets the FlowLogsClient object to access its operations. * - * @return the NetworkSecurityPerimeterOperationStatusesClient object. + * @return the FlowLogsClient object. */ - NetworkSecurityPerimeterOperationStatusesClient getNetworkSecurityPerimeterOperationStatuses(); + FlowLogsClient getFlowLogs(); /** - * Gets the NetworkSecurityPerimeterServiceTagsClient object to access its operations. + * Gets the PrivateEndpointsClient object to access its operations. * - * @return the NetworkSecurityPerimeterServiceTagsClient object. + * @return the PrivateEndpointsClient object. */ - NetworkSecurityPerimeterServiceTagsClient getNetworkSecurityPerimeterServiceTags(); + PrivateEndpointsClient getPrivateEndpoints(); /** - * Gets the ReachabilityAnalysisIntentsClient object to access its operations. + * Gets the PrivateLinkServicesClient object to access its operations. * - * @return the ReachabilityAnalysisIntentsClient object. + * @return the PrivateLinkServicesClient object. */ - ReachabilityAnalysisIntentsClient getReachabilityAnalysisIntents(); + PrivateLinkServicesClient getPrivateLinkServices(); /** - * Gets the ReachabilityAnalysisRunsClient object to access its operations. + * Gets the PublicIpPrefixesClient object to access its operations. * - * @return the ReachabilityAnalysisRunsClient object. + * @return the PublicIpPrefixesClient object. */ - ReachabilityAnalysisRunsClient getReachabilityAnalysisRuns(); + PublicIpPrefixesClient getPublicIpPrefixes(); /** - * Gets the VerifierWorkspacesClient object to access its operations. + * Gets the RouteFiltersClient object to access its operations. * - * @return the VerifierWorkspacesClient object. + * @return the RouteFiltersClient object. */ - VerifierWorkspacesClient getVerifierWorkspaces(); + RouteFiltersClient getRouteFilters(); /** - * Gets the NetworkVirtualAppliancesClient object to access its operations. + * Gets the RouteTablesClient object to access its operations. * - * @return the NetworkVirtualAppliancesClient object. + * @return the RouteTablesClient object. */ - NetworkVirtualAppliancesClient getNetworkVirtualAppliances(); + RouteTablesClient getRouteTables(); /** - * Gets the VirtualApplianceSitesClient object to access its operations. + * Gets the RoutesClient object to access its operations. * - * @return the VirtualApplianceSitesClient object. + * @return the RoutesClient object. */ - VirtualApplianceSitesClient getVirtualApplianceSites(); + RoutesClient getRoutes(); /** - * Gets the VirtualApplianceSkusClient object to access its operations. + * Gets the SecurityPartnerProvidersClient object to access its operations. * - * @return the VirtualApplianceSkusClient object. + * @return the SecurityPartnerProvidersClient object. */ - VirtualApplianceSkusClient getVirtualApplianceSkus(); + SecurityPartnerProvidersClient getSecurityPartnerProviders(); /** - * Gets the InboundSecurityRuleOperationsClient object to access its operations. + * Gets the ServiceEndpointPoliciesClient object to access its operations. * - * @return the InboundSecurityRuleOperationsClient object. + * @return the ServiceEndpointPoliciesClient object. */ - InboundSecurityRuleOperationsClient getInboundSecurityRuleOperations(); + ServiceEndpointPoliciesClient getServiceEndpointPolicies(); /** - * Gets the NetworkWatchersClient object to access its operations. + * Gets the ServiceEndpointPolicyDefinitionsClient object to access its operations. * - * @return the NetworkWatchersClient object. + * @return the ServiceEndpointPolicyDefinitionsClient object. */ - NetworkWatchersClient getNetworkWatchers(); + ServiceEndpointPolicyDefinitionsClient getServiceEndpointPolicyDefinitions(); /** - * Gets the PacketCapturesClient object to access its operations. + * Gets the VirtualNetworksClient object to access its operations. * - * @return the PacketCapturesClient object. + * @return the VirtualNetworksClient object. */ - PacketCapturesClient getPacketCaptures(); + VirtualNetworksClient getVirtualNetworks(); /** - * Gets the ConnectionMonitorsClient object to access its operations. + * Gets the SubnetsClient object to access its operations. * - * @return the ConnectionMonitorsClient object. + * @return the SubnetsClient object. */ - ConnectionMonitorsClient getConnectionMonitors(); + SubnetsClient getSubnets(); /** - * Gets the FlowLogsClient object to access its operations. + * Gets the VirtualNetworkPeeringsClient object to access its operations. * - * @return the FlowLogsClient object. + * @return the VirtualNetworkPeeringsClient object. */ - FlowLogsClient getFlowLogs(); + VirtualNetworkPeeringsClient getVirtualNetworkPeerings(); /** - * Gets the OperationsClient object to access its operations. + * Gets the VirtualNetworkGatewaysClient object to access its operations. * - * @return the OperationsClient object. + * @return the VirtualNetworkGatewaysClient object. */ - OperationsClient getOperations(); + VirtualNetworkGatewaysClient getVirtualNetworkGateways(); /** - * Gets the PrivateEndpointsClient object to access its operations. + * Gets the VirtualNetworkGatewayConnectionsClient object to access its operations. * - * @return the PrivateEndpointsClient object. + * @return the VirtualNetworkGatewayConnectionsClient object. */ - PrivateEndpointsClient getPrivateEndpoints(); + VirtualNetworkGatewayConnectionsClient getVirtualNetworkGatewayConnections(); /** - * Gets the AvailablePrivateEndpointTypesClient object to access its operations. + * Gets the LocalNetworkGatewaysClient object to access its operations. * - * @return the AvailablePrivateEndpointTypesClient object. + * @return the LocalNetworkGatewaysClient object. */ - AvailablePrivateEndpointTypesClient getAvailablePrivateEndpointTypes(); + LocalNetworkGatewaysClient getLocalNetworkGateways(); /** - * Gets the PrivateDnsZoneGroupsClient object to access its operations. + * Gets the VirtualNetworkGatewayNatRulesClient object to access its operations. * - * @return the PrivateDnsZoneGroupsClient object. + * @return the VirtualNetworkGatewayNatRulesClient object. */ - PrivateDnsZoneGroupsClient getPrivateDnsZoneGroups(); + VirtualNetworkGatewayNatRulesClient getVirtualNetworkGatewayNatRules(); /** - * Gets the PrivateLinkServicesClient object to access its operations. + * Gets the VirtualNetworkTapsClient object to access its operations. * - * @return the PrivateLinkServicesClient object. + * @return the VirtualNetworkTapsClient object. */ - PrivateLinkServicesClient getPrivateLinkServices(); + VirtualNetworkTapsClient getVirtualNetworkTaps(); /** - * Gets the PublicIpPrefixesClient object to access its operations. + * Gets the VirtualRoutersClient object to access its operations. * - * @return the PublicIpPrefixesClient object. + * @return the VirtualRoutersClient object. */ - PublicIpPrefixesClient getPublicIpPrefixes(); + VirtualRoutersClient getVirtualRouters(); /** - * Gets the RouteFiltersClient object to access its operations. + * Gets the VirtualRouterPeeringsClient object to access its operations. * - * @return the RouteFiltersClient object. + * @return the VirtualRouterPeeringsClient object. */ - RouteFiltersClient getRouteFilters(); + VirtualRouterPeeringsClient getVirtualRouterPeerings(); /** - * Gets the RouteFilterRulesClient object to access its operations. + * Gets the VirtualWansClient object to access its operations. * - * @return the RouteFilterRulesClient object. + * @return the VirtualWansClient object. */ - RouteFilterRulesClient getRouteFilterRules(); + VirtualWansClient getVirtualWans(); /** - * Gets the RouteTablesClient object to access its operations. + * Gets the VpnSitesClient object to access its operations. * - * @return the RouteTablesClient object. + * @return the VpnSitesClient object. */ - RouteTablesClient getRouteTables(); + VpnSitesClient getVpnSites(); /** - * Gets the RoutesClient object to access its operations. + * Gets the VpnSiteLinksClient object to access its operations. * - * @return the RoutesClient object. + * @return the VpnSiteLinksClient object. */ - RoutesClient getRoutes(); + VpnSiteLinksClient getVpnSiteLinks(); /** - * Gets the SecurityPartnerProvidersClient object to access its operations. + * Gets the VpnServerConfigurationsClient object to access its operations. * - * @return the SecurityPartnerProvidersClient object. + * @return the VpnServerConfigurationsClient object. */ - SecurityPartnerProvidersClient getSecurityPartnerProviders(); + VpnServerConfigurationsClient getVpnServerConfigurations(); /** - * Gets the BgpServiceCommunitiesClient object to access its operations. + * Gets the VirtualHubsClient object to access its operations. * - * @return the BgpServiceCommunitiesClient object. + * @return the VirtualHubsClient object. */ - BgpServiceCommunitiesClient getBgpServiceCommunities(); + VirtualHubsClient getVirtualHubs(); /** - * Gets the ServiceEndpointPoliciesClient object to access its operations. + * Gets the RouteMapsClient object to access its operations. * - * @return the ServiceEndpointPoliciesClient object. + * @return the RouteMapsClient object. */ - ServiceEndpointPoliciesClient getServiceEndpointPolicies(); + RouteMapsClient getRouteMaps(); /** - * Gets the ServiceEndpointPolicyDefinitionsClient object to access its operations. + * Gets the VpnGatewaysClient object to access its operations. * - * @return the ServiceEndpointPolicyDefinitionsClient object. + * @return the VpnGatewaysClient object. */ - ServiceEndpointPolicyDefinitionsClient getServiceEndpointPolicyDefinitions(); + VpnGatewaysClient getVpnGateways(); + + /** + * Gets the VpnSiteLinkConnectionsClient object to access its operations. + * + * @return the VpnSiteLinkConnectionsClient object. + */ + VpnSiteLinkConnectionsClient getVpnSiteLinkConnections(); + + /** + * Gets the P2SVpnGatewaysClient object to access its operations. + * + * @return the P2SVpnGatewaysClient object. + */ + P2SVpnGatewaysClient getP2SVpnGateways(); + + /** + * Gets the ExpressRouteGatewaysClient object to access its operations. + * + * @return the ExpressRouteGatewaysClient object. + */ + ExpressRouteGatewaysClient getExpressRouteGateways(); + + /** + * Gets the HubRouteTablesClient object to access its operations. + * + * @return the HubRouteTablesClient object. + */ + HubRouteTablesClient getHubRouteTables(); + + /** + * Gets the WebApplicationFirewallPoliciesClient object to access its operations. + * + * @return the WebApplicationFirewallPoliciesClient object. + */ + WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies(); + + /** + * Gets the VirtualNetworkAppliancesClient object to access its operations. + * + * @return the VirtualNetworkAppliancesClient object. + */ + VirtualNetworkAppliancesClient getVirtualNetworkAppliances(); /** * Gets the ServiceGatewaysClient object to access its operations. @@ -882,343 +727,497 @@ public interface NetworkManagementClient { ServiceGatewaysClient getServiceGateways(); /** - * Gets the ServiceTagsClient object to access its operations. + * Gets the ApplicationGatewayPrivateLinkResourcesClient object to access its operations. * - * @return the ServiceTagsClient object. + * @return the ApplicationGatewayPrivateLinkResourcesClient object. */ - ServiceTagsClient getServiceTags(); + ApplicationGatewayPrivateLinkResourcesClient getApplicationGatewayPrivateLinkResources(); /** - * Gets the ServiceTagInformationsClient object to access its operations. + * Gets the ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. * - * @return the ServiceTagInformationsClient object. + * @return the ApplicationGatewayWafDynamicManifestsDefaultsClient object. */ - ServiceTagInformationsClient getServiceTagInformations(); + ApplicationGatewayWafDynamicManifestsDefaultsClient getApplicationGatewayWafDynamicManifestsDefaults(); /** - * Gets the UsagesClient object to access its operations. + * Gets the ApplicationGatewayWafDynamicManifestsClient object to access its operations. * - * @return the UsagesClient object. + * @return the ApplicationGatewayWafDynamicManifestsClient object. */ - UsagesClient getUsages(); + ApplicationGatewayWafDynamicManifestsClient getApplicationGatewayWafDynamicManifests(); /** - * Gets the VirtualNetworksClient object to access its operations. + * Gets the WebCategoriesClient object to access its operations. * - * @return the VirtualNetworksClient object. + * @return the WebCategoriesClient object. */ - VirtualNetworksClient getVirtualNetworks(); + WebCategoriesClient getWebCategories(); /** - * Gets the SubnetsClient object to access its operations. + * Gets the ExpressRouteProviderPortsLocationsClient object to access its operations. * - * @return the SubnetsClient object. + * @return the ExpressRouteProviderPortsLocationsClient object. */ - SubnetsClient getSubnets(); + ExpressRouteProviderPortsLocationsClient getExpressRouteProviderPortsLocations(); /** - * Gets the ResourceNavigationLinksClient object to access its operations. + * Gets the NetworkInterfaceLoadBalancersClient object to access its operations. * - * @return the ResourceNavigationLinksClient object. + * @return the NetworkInterfaceLoadBalancersClient object. */ - ResourceNavigationLinksClient getResourceNavigationLinks(); + NetworkInterfaceLoadBalancersClient getNetworkInterfaceLoadBalancers(); /** - * Gets the ServiceAssociationLinksClient object to access its operations. + * Gets the VipSwapsClient object to access its operations. * - * @return the ServiceAssociationLinksClient object. + * @return the VipSwapsClient object. */ - ServiceAssociationLinksClient getServiceAssociationLinks(); + VipSwapsClient getVipSwaps(); /** - * Gets the VirtualNetworkPeeringsClient object to access its operations. + * Gets the DscpConfigurationsClient object to access its operations. * - * @return the VirtualNetworkPeeringsClient object. + * @return the DscpConfigurationsClient object. */ - VirtualNetworkPeeringsClient getVirtualNetworkPeerings(); + DscpConfigurationsClient getDscpConfigurations(); /** - * Gets the VirtualNetworkAppliancesClient object to access its operations. + * Gets the ExpressRouteCrossConnectionPeeringsClient object to access its operations. * - * @return the VirtualNetworkAppliancesClient object. + * @return the ExpressRouteCrossConnectionPeeringsClient object. */ - VirtualNetworkAppliancesClient getVirtualNetworkAppliances(); + ExpressRouteCrossConnectionPeeringsClient getExpressRouteCrossConnectionPeerings(); /** - * Gets the VirtualNetworkGatewaysClient object to access its operations. + * Gets the ExpressRouteLinksClient object to access its operations. * - * @return the VirtualNetworkGatewaysClient object. + * @return the ExpressRouteLinksClient object. */ - VirtualNetworkGatewaysClient getVirtualNetworkGateways(); + ExpressRouteLinksClient getExpressRouteLinks(); /** - * Gets the VirtualNetworkGatewayConnectionsClient object to access its operations. + * Gets the FirewallPolicyIdpsSignaturesClient object to access its operations. * - * @return the VirtualNetworkGatewayConnectionsClient object. + * @return the FirewallPolicyIdpsSignaturesClient object. */ - VirtualNetworkGatewayConnectionsClient getVirtualNetworkGatewayConnections(); + FirewallPolicyIdpsSignaturesClient getFirewallPolicyIdpsSignatures(); /** - * Gets the LocalNetworkGatewaysClient object to access its operations. + * Gets the FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. * - * @return the LocalNetworkGatewaysClient object. + * @return the FirewallPolicyIdpsSignaturesFilterValuesClient object. */ - LocalNetworkGatewaysClient getLocalNetworkGateways(); + FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSignaturesFilterValues(); /** - * Gets the VirtualNetworkGatewayNatRulesClient object to access its operations. + * Gets the FirewallPolicyDeploymentsClient object to access its operations. * - * @return the VirtualNetworkGatewayNatRulesClient object. + * @return the FirewallPolicyDeploymentsClient object. */ - VirtualNetworkGatewayNatRulesClient getVirtualNetworkGatewayNatRules(); + FirewallPolicyDeploymentsClient getFirewallPolicyDeployments(); /** - * Gets the VirtualNetworkTapsClient object to access its operations. + * Gets the NetworkManagerCommitsClient object to access its operations. * - * @return the VirtualNetworkTapsClient object. + * @return the NetworkManagerCommitsClient object. */ - VirtualNetworkTapsClient getVirtualNetworkTaps(); + NetworkManagerCommitsClient getNetworkManagerCommits(); /** - * Gets the VirtualRoutersClient object to access its operations. + * Gets the NetworkManagerDeploymentStatusOperationsClient object to access its operations. * - * @return the VirtualRoutersClient object. + * @return the NetworkManagerDeploymentStatusOperationsClient object. */ - VirtualRoutersClient getVirtualRouters(); + NetworkManagerDeploymentStatusOperationsClient getNetworkManagerDeploymentStatusOperations(); /** - * Gets the VirtualRouterPeeringsClient object to access its operations. + * Gets the LoadBalancerNetworkInterfacesClient object to access its operations. * - * @return the VirtualRouterPeeringsClient object. + * @return the LoadBalancerNetworkInterfacesClient object. */ - VirtualRouterPeeringsClient getVirtualRouterPeerings(); + LoadBalancerNetworkInterfacesClient getLoadBalancerNetworkInterfaces(); /** - * Gets the VirtualWansClient object to access its operations. + * Gets the LoadBalancerBackendAddressPoolsClient object to access its operations. * - * @return the VirtualWansClient object. + * @return the LoadBalancerBackendAddressPoolsClient object. */ - VirtualWansClient getVirtualWans(); + LoadBalancerBackendAddressPoolsClient getLoadBalancerBackendAddressPools(); /** - * Gets the VpnSitesClient object to access its operations. + * Gets the LoadBalancerFrontendIpConfigurationsClient object to access its operations. * - * @return the VpnSitesClient object. + * @return the LoadBalancerFrontendIpConfigurationsClient object. */ - VpnSitesClient getVpnSites(); + LoadBalancerFrontendIpConfigurationsClient getLoadBalancerFrontendIpConfigurations(); /** - * Gets the VpnSiteLinksClient object to access its operations. + * Gets the LoadBalancerLoadBalancingRulesClient object to access its operations. + * + * @return the LoadBalancerLoadBalancingRulesClient object. + */ + LoadBalancerLoadBalancingRulesClient getLoadBalancerLoadBalancingRules(); + + /** + * Gets the LoadBalancerOutboundRulesClient object to access its operations. + * + * @return the LoadBalancerOutboundRulesClient object. + */ + LoadBalancerOutboundRulesClient getLoadBalancerOutboundRules(); + + /** + * Gets the LoadBalancerProbesClient object to access its operations. + * + * @return the LoadBalancerProbesClient object. + */ + LoadBalancerProbesClient getLoadBalancerProbes(); + + /** + * Gets the SubscriptionNetworkManagerConnectionsClient object to access its operations. + * + * @return the SubscriptionNetworkManagerConnectionsClient object. + */ + SubscriptionNetworkManagerConnectionsClient getSubscriptionNetworkManagerConnections(); + + /** + * Gets the AdminRulesClient object to access its operations. + * + * @return the AdminRulesClient object. + */ + AdminRulesClient getAdminRules(); + + /** + * Gets the NetworkSecurityPerimeterProfilesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterProfilesClient object. + */ + NetworkSecurityPerimeterProfilesClient getNetworkSecurityPerimeterProfiles(); + + /** + * Gets the NetworkSecurityPerimeterAccessRulesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterAccessRulesClient object. + */ + NetworkSecurityPerimeterAccessRulesClient getNetworkSecurityPerimeterAccessRules(); + + /** + * Gets the NetworkSecurityPerimeterAssociationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterAssociationsClient object. + */ + NetworkSecurityPerimeterAssociationsClient getNetworkSecurityPerimeterAssociations(); + + /** + * Gets the NetworkSecurityPerimeterLinksClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLinksClient object. + */ + NetworkSecurityPerimeterLinksClient getNetworkSecurityPerimeterLinks(); + + /** + * Gets the NetworkSecurityPerimeterLinkReferencesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLinkReferencesClient object. + */ + NetworkSecurityPerimeterLinkReferencesClient getNetworkSecurityPerimeterLinkReferences(); + + /** + * Gets the NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLoggingConfigurationsClient object. + */ + NetworkSecurityPerimeterLoggingConfigurationsClient getNetworkSecurityPerimeterLoggingConfigurations(); + + /** + * Gets the VirtualApplianceSkusClient object to access its operations. + * + * @return the VirtualApplianceSkusClient object. + */ + VirtualApplianceSkusClient getVirtualApplianceSkus(); + + /** + * Gets the InboundSecurityRuleOperationsClient object to access its operations. + * + * @return the InboundSecurityRuleOperationsClient object. + */ + InboundSecurityRuleOperationsClient getInboundSecurityRuleOperations(); + + /** + * Gets the PacketCapturesClient object to access its operations. + * + * @return the PacketCapturesClient object. + */ + PacketCapturesClient getPacketCaptures(); + + /** + * Gets the ConnectionMonitorsClient object to access its operations. + * + * @return the ConnectionMonitorsClient object. + */ + ConnectionMonitorsClient getConnectionMonitors(); + + /** + * Gets the PrivateDnsZoneGroupsClient object to access its operations. + * + * @return the PrivateDnsZoneGroupsClient object. + */ + PrivateDnsZoneGroupsClient getPrivateDnsZoneGroups(); + + /** + * Gets the RouteFilterRulesClient object to access its operations. + * + * @return the RouteFilterRulesClient object. + */ + RouteFilterRulesClient getRouteFilterRules(); + + /** + * Gets the ResourceNavigationLinksClient object to access its operations. + * + * @return the ResourceNavigationLinksClient object. + */ + ResourceNavigationLinksClient getResourceNavigationLinks(); + + /** + * Gets the ServiceAssociationLinksClient object to access its operations. + * + * @return the ServiceAssociationLinksClient object. + */ + ServiceAssociationLinksClient getServiceAssociationLinks(); + + /** + * Gets the VpnSitesConfigurationsClient object to access its operations. + * + * @return the VpnSitesConfigurationsClient object. + */ + VpnSitesConfigurationsClient getVpnSitesConfigurations(); + + /** + * Gets the VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + * + * @return the VpnServerConfigurationsAssociatedWithVirtualWansClient object. + */ + VpnServerConfigurationsAssociatedWithVirtualWansClient getVpnServerConfigurationsAssociatedWithVirtualWans(); + + /** + * Gets the ConfigurationPolicyGroupsClient object to access its operations. + * + * @return the ConfigurationPolicyGroupsClient object. + */ + ConfigurationPolicyGroupsClient getConfigurationPolicyGroups(); + + /** + * Gets the HubVirtualNetworkConnectionsClient object to access its operations. * - * @return the VpnSiteLinksClient object. + * @return the HubVirtualNetworkConnectionsClient object. */ - VpnSiteLinksClient getVpnSiteLinks(); + HubVirtualNetworkConnectionsClient getHubVirtualNetworkConnections(); /** - * Gets the VpnSitesConfigurationsClient object to access its operations. + * Gets the VirtualHubRouteTableV2SClient object to access its operations. * - * @return the VpnSitesConfigurationsClient object. + * @return the VirtualHubRouteTableV2SClient object. */ - VpnSitesConfigurationsClient getVpnSitesConfigurations(); + VirtualHubRouteTableV2SClient getVirtualHubRouteTableV2S(); /** - * Gets the VpnServerConfigurationsClient object to access its operations. + * Gets the VpnConnectionsClient object to access its operations. * - * @return the VpnServerConfigurationsClient object. + * @return the VpnConnectionsClient object. */ - VpnServerConfigurationsClient getVpnServerConfigurations(); + VpnConnectionsClient getVpnConnections(); /** - * Gets the ConfigurationPolicyGroupsClient object to access its operations. + * Gets the VpnLinkConnectionsClient object to access its operations. * - * @return the ConfigurationPolicyGroupsClient object. + * @return the VpnLinkConnectionsClient object. */ - ConfigurationPolicyGroupsClient getConfigurationPolicyGroups(); + VpnLinkConnectionsClient getVpnLinkConnections(); /** - * Gets the VirtualHubsClient object to access its operations. + * Gets the NatRulesClient object to access its operations. * - * @return the VirtualHubsClient object. + * @return the NatRulesClient object. */ - VirtualHubsClient getVirtualHubs(); + NatRulesClient getNatRules(); /** - * Gets the RouteMapsClient object to access its operations. + * Gets the ExpressRouteConnectionsClient object to access its operations. * - * @return the RouteMapsClient object. + * @return the ExpressRouteConnectionsClient object. */ - RouteMapsClient getRouteMaps(); + ExpressRouteConnectionsClient getExpressRouteConnections(); /** - * Gets the HubVirtualNetworkConnectionsClient object to access its operations. + * Gets the VirtualHubBgpConnectionsClient object to access its operations. * - * @return the HubVirtualNetworkConnectionsClient object. + * @return the VirtualHubBgpConnectionsClient object. */ - HubVirtualNetworkConnectionsClient getHubVirtualNetworkConnections(); + VirtualHubBgpConnectionsClient getVirtualHubBgpConnections(); /** - * Gets the VpnGatewaysClient object to access its operations. + * Gets the VirtualHubIpConfigurationsClient object to access its operations. * - * @return the VpnGatewaysClient object. + * @return the VirtualHubIpConfigurationsClient object. */ - VpnGatewaysClient getVpnGateways(); + VirtualHubIpConfigurationsClient getVirtualHubIpConfigurations(); /** - * Gets the VpnLinkConnectionsClient object to access its operations. + * Gets the RoutingIntentsClient object to access its operations. * - * @return the VpnLinkConnectionsClient object. + * @return the RoutingIntentsClient object. */ - VpnLinkConnectionsClient getVpnLinkConnections(); + RoutingIntentsClient getRoutingIntents(); /** - * Gets the VpnConnectionsClient object to access its operations. + * Gets the AvailableDelegationsClient object to access its operations. * - * @return the VpnConnectionsClient object. + * @return the AvailableDelegationsClient object. */ - VpnConnectionsClient getVpnConnections(); + AvailableDelegationsClient getAvailableDelegations(); /** - * Gets the VpnSiteLinkConnectionsClient object to access its operations. + * Gets the AvailableResourceGroupDelegationsClient object to access its operations. * - * @return the VpnSiteLinkConnectionsClient object. + * @return the AvailableResourceGroupDelegationsClient object. */ - VpnSiteLinkConnectionsClient getVpnSiteLinkConnections(); + AvailableResourceGroupDelegationsClient getAvailableResourceGroupDelegations(); /** - * Gets the NatRulesClient object to access its operations. + * Gets the AvailableServiceAliasesClient object to access its operations. * - * @return the NatRulesClient object. + * @return the AvailableServiceAliasesClient object. */ - NatRulesClient getNatRules(); + AvailableServiceAliasesClient getAvailableServiceAliases(); /** - * Gets the P2SVpnGatewaysClient object to access its operations. + * Gets the AzureFirewallFqdnTagsClient object to access its operations. * - * @return the P2SVpnGatewaysClient object. + * @return the AzureFirewallFqdnTagsClient object. */ - P2SVpnGatewaysClient getP2SVpnGateways(); + AzureFirewallFqdnTagsClient getAzureFirewallFqdnTags(); /** - * Gets the VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + * Gets the AvailableEndpointServicesClient object to access its operations. * - * @return the VpnServerConfigurationsAssociatedWithVirtualWansClient object. + * @return the AvailableEndpointServicesClient object. */ - VpnServerConfigurationsAssociatedWithVirtualWansClient getVpnServerConfigurationsAssociatedWithVirtualWans(); + AvailableEndpointServicesClient getAvailableEndpointServices(); /** - * Gets the VirtualHubRouteTableV2SClient object to access its operations. + * Gets the ExpressRouteServiceProvidersClient object to access its operations. * - * @return the VirtualHubRouteTableV2SClient object. + * @return the ExpressRouteServiceProvidersClient object. */ - VirtualHubRouteTableV2SClient getVirtualHubRouteTableV2S(); + ExpressRouteServiceProvidersClient getExpressRouteServiceProviders(); /** - * Gets the ExpressRouteGatewaysClient object to access its operations. + * Gets the NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. * - * @return the ExpressRouteGatewaysClient object. + * @return the NetworkSecurityPerimeterAssociableResourceTypesClient object. */ - ExpressRouteGatewaysClient getExpressRouteGateways(); + NetworkSecurityPerimeterAssociableResourceTypesClient getNetworkSecurityPerimeterAssociableResourceTypes(); /** - * Gets the ExpressRouteConnectionsClient object to access its operations. + * Gets the NetworkSecurityPerimeterOperationStatusesClient object to access its operations. * - * @return the ExpressRouteConnectionsClient object. + * @return the NetworkSecurityPerimeterOperationStatusesClient object. */ - ExpressRouteConnectionsClient getExpressRouteConnections(); + NetworkSecurityPerimeterOperationStatusesClient getNetworkSecurityPerimeterOperationStatuses(); /** - * Gets the NetworkVirtualApplianceConnectionsClient object to access its operations. + * Gets the NetworkSecurityPerimeterServiceTagsClient object to access its operations. * - * @return the NetworkVirtualApplianceConnectionsClient object. + * @return the NetworkSecurityPerimeterServiceTagsClient object. */ - NetworkVirtualApplianceConnectionsClient getNetworkVirtualApplianceConnections(); + NetworkSecurityPerimeterServiceTagsClient getNetworkSecurityPerimeterServiceTags(); /** - * Gets the VirtualHubBgpConnectionsClient object to access its operations. + * Gets the AvailablePrivateEndpointTypesClient object to access its operations. * - * @return the VirtualHubBgpConnectionsClient object. + * @return the AvailablePrivateEndpointTypesClient object. */ - VirtualHubBgpConnectionsClient getVirtualHubBgpConnections(); + AvailablePrivateEndpointTypesClient getAvailablePrivateEndpointTypes(); /** - * Gets the VirtualHubIpConfigurationsClient object to access its operations. + * Gets the BgpServiceCommunitiesClient object to access its operations. * - * @return the VirtualHubIpConfigurationsClient object. + * @return the BgpServiceCommunitiesClient object. */ - VirtualHubIpConfigurationsClient getVirtualHubIpConfigurations(); + BgpServiceCommunitiesClient getBgpServiceCommunities(); /** - * Gets the HubRouteTablesClient object to access its operations. + * Gets the ServiceTagsClient object to access its operations. * - * @return the HubRouteTablesClient object. + * @return the ServiceTagsClient object. */ - HubRouteTablesClient getHubRouteTables(); + ServiceTagsClient getServiceTags(); /** - * Gets the RoutingIntentsClient object to access its operations. + * Gets the ServiceTagInformationsClient object to access its operations. * - * @return the RoutingIntentsClient object. + * @return the ServiceTagInformationsClient object. */ - RoutingIntentsClient getRoutingIntents(); + ServiceTagInformationsClient getServiceTagInformations(); /** - * Gets the WebApplicationFirewallPoliciesClient object to access its operations. + * Gets the UsagesClient object to access its operations. * - * @return the WebApplicationFirewallPoliciesClient object. + * @return the UsagesClient object. */ - WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies(); + UsagesClient getUsages(); /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux putBastionShareableLinkAsync(String resourceGroupName, String bastionHostname, + PagedFlux putBastionShareableLinkAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable putBastionShareableLink(String resourceGroupName, String bastionHostname, + PagedIterable putBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable putBastionShareableLink(String resourceGroupName, String bastionHostname, + PagedIterable putBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1227,13 +1226,13 @@ PagedIterable putBastionShareableLink(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteBastionShareableLinkWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest); + String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1242,13 +1241,13 @@ Mono>> deleteBastionShareableLinkWithResponseAsync(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDeleteBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest); + String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1256,14 +1255,14 @@ PollerFlux, Void> beginDeleteBastionShareableLinkAsync(String r * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, String bastionHostname, + SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1272,14 +1271,14 @@ SyncPoller, Void> beginDeleteBastionShareableLink(String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, String bastionHostname, + SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1287,28 +1286,28 @@ SyncPoller, Void> beginDeleteBastionShareableLink(String resour * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostname, + Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteBastionShareableLink(String resourceGroupName, String bastionHostname, + void deleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1316,14 +1315,14 @@ void deleteBastionShareableLink(String resourceGroupName, String bastionHostname * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteBastionShareableLink(String resourceGroupName, String bastionHostname, + void deleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1332,13 +1331,13 @@ void deleteBastionShareableLink(String resourceGroupName, String bastionHostname */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteBastionShareableLinkByTokenWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest); + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1347,13 +1346,13 @@ Mono>> deleteBastionShareableLinkByTokenWithResponseAs */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDeleteBastionShareableLinkByTokenAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest); + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1362,13 +1361,13 @@ PollerFlux, Void> beginDeleteBastionShareableLinkByTokenAsync(S */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest); + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1378,13 +1377,13 @@ SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest, Context context); + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1392,28 +1391,28 @@ SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostname, + Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostname, + void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest); /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1421,14 +1420,14 @@ void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionH * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostname, + void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context); /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1436,14 +1435,14 @@ void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionH * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux getBastionShareableLinkAsync(String resourceGroupName, String bastionHostname, + PagedFlux getBastionShareableLinkAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1451,14 +1450,14 @@ PagedFlux getBastionShareableLinkAsync(String resourc * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable getBastionShareableLink(String resourceGroupName, String bastionHostname, + PagedIterable getBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest); /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1467,55 +1466,55 @@ PagedIterable getBastionShareableLink(String resource * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable getBastionShareableLink(String resourceGroupName, String bastionHostname, + PagedIterable getBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux getActiveSessionsAsync(String resourceGroupName, String bastionHostname); + PagedFlux getActiveSessionsAsync(String resourceGroupName, String bastionHostName); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable getActiveSessions(String resourceGroupName, String bastionHostname); + PagedIterable getActiveSessions(String resourceGroupName, String bastionHostName); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable getActiveSessions(String resourceGroupName, String bastionHostname, + PagedIterable getActiveSessions(String resourceGroupName, String bastionHostName, Context context); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param sessionIds The list of sessionids to disconnect. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1523,14 +1522,14 @@ PagedIterable getActiveSessions(String resourceGroupN * @return response for DisconnectActiveSessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, String bastionHostname, + PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, String bastionHostName, SessionIds sessionIds); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param sessionIds The list of sessionids to disconnect. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1538,14 +1537,14 @@ PagedFlux disconnectActiveSessionsAsync(String resourc * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable disconnectActiveSessions(String resourceGroupName, String bastionHostname, + PagedIterable disconnectActiveSessions(String resourceGroupName, String bastionHostName, SessionIds sessionIds); /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param sessionIds The list of sessionids to disconnect. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1554,69 +1553,9 @@ PagedIterable disconnectActiveSessions(String resource * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable disconnectActiveSessions(String resourceGroupName, String bastionHostname, + PagedIterable disconnectActiveSessions(String resourceGroupName, String bastionHostName, SessionIds sessionIds, Context context); - /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> checkDnsNameAvailabilityWithResponseAsync(String location, - String domainNameLabel); - - /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono checkDnsNameAvailabilityAsync(String location, String domainNameLabel); - - /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkDnsNameAvailabilityWithResponse(String location, - String domainNameLabel, Context context); - - /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, String domainNameLabel); - /** * Retrieves detail of a provider port. * @@ -1669,7 +1608,7 @@ Response checkDnsNameAvailabilityWithResponse(St /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1688,7 +1627,7 @@ Response checkDnsNameAvailabilityWithResponse(St /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1704,7 +1643,7 @@ Mono listActiveConnectivityConf /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1723,7 +1662,7 @@ Response listActiveConnectivity /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1738,7 +1677,7 @@ ActiveConnectivityConfigurationsListResultInner listActiveConnectivityConfigurat /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1756,7 +1695,7 @@ Mono> listActiveSecurityAdminR /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1771,7 +1710,7 @@ Mono listActiveSecurityAdminRulesAsync( /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1789,7 +1728,7 @@ Response listActiveSecurityAdminRulesWi /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1804,7 +1743,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1823,7 +1762,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1840,7 +1779,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1860,7 +1799,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1876,7 +1815,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1895,7 +1834,7 @@ ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(String reso /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1911,7 +1850,7 @@ Mono listNetworkManage /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -1930,7 +1869,7 @@ Mono listNetworkManage /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1945,8 +1884,8 @@ NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManagerEffec /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1954,13 +1893,13 @@ NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManagerEffec */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> - supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWanName); + supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWANName); /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1968,13 +1907,13 @@ NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManagerEffec */ @ServiceMethod(returns = ReturnType.SINGLE) Mono supportedSecurityProvidersAsync(String resourceGroupName, - String virtualWanName); + String virtualWANName); /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1983,136 +1922,195 @@ Mono supportedSecurityProvidersAsync(String re */ @ServiceMethod(returns = ReturnType.SINGLE) Response supportedSecurityProvidersWithResponse(String resourceGroupName, - String virtualWanName, Context context); + String virtualWANName, Context context); /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of SecurityProviders. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualWanSecurityProvidersInner supportedSecurityProviders(String resourceGroupName, String virtualWanName); + VirtualWanSecurityProvidersInner supportedSecurityProviders(String resourceGroupName, String virtualWANName); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> generatevirtualwanvpnserverconfigurationvpnprofileWithResponseAsync( - String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams); + String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono generatevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, - String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams); + String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, - String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams); + String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams); /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, - String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams, Context context); + String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context); + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> checkDnsNameAvailabilityWithResponseAsync(String location, + String domainNameLabel); + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono checkDnsNameAvailabilityAsync(String location, String domainNameLabel); + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response checkDnsNameAvailabilityWithResponse(String location, + String domainNameLabel, Context context); + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, String domainNameLabel); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerCommitsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerCommitsClient.java index b57488878899..473b663348af 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerCommitsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerCommitsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,7 +23,7 @@ public interface NetworkManagerCommitsClient { /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ Mono>> postWithResponseAsync(String resourceGroupName, /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -53,7 +53,7 @@ Mono>> postWithResponseAsync(String resourceGroupName, /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -68,7 +68,7 @@ SyncPoller, NetworkManagerCommitInner> beg /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. @@ -84,7 +84,7 @@ SyncPoller, NetworkManagerCommitInner> beg /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +99,7 @@ Mono postAsync(String resourceGroupName, String netwo /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -114,7 +114,7 @@ NetworkManagerCommitInner post(String resourceGroupName, String networkManagerNa /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerDeploymentStatusOperationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerDeploymentStatusOperationsClient.java index b15045a469ea..5ae7cfc7962b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerDeploymentStatusOperationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerDeploymentStatusOperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface NetworkManagerDeploymentStatusOperationsClient { /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -38,7 +38,7 @@ Mono> listWithResponseAs /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -53,7 +53,7 @@ Mono listAsync(String resourceGro /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -71,7 +71,7 @@ Response listWithResponse(String /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerRoutingConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerRoutingConfigurationsClient.java index d8afda3a20de..d6c3e30c61fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerRoutingConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerRoutingConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,71 +22,6 @@ * An instance of this class provides access to all the operations defined in NetworkManagerRoutingConfigurationsClient. */ public interface NetworkManagerRoutingConfigurationsClient { - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken); - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context); - /** * Retrieves a network manager routing configuration. * @@ -358,4 +293,73 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, Boolean force, Context context); + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken); + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagersClient.java index 35c5200c932a..5a3318b30a81 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,7 +30,7 @@ public interface NetworkManagersClient extends InnerSupportsGet> getByResourceGroupWithResponseAsync(String r /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -57,7 +57,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -72,7 +72,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -85,7 +85,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -100,7 +100,7 @@ Mono> createOrUpdateWithResponseAsync(String resou /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,7 +115,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String n /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @param context The context to associate with this operation. @@ -131,7 +131,7 @@ Response createOrUpdateWithResponse(String resourceGroupNam /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -144,124 +144,126 @@ NetworkManagerInner createOrUpdate(String resourceGroupName, String networkManag NetworkManagerInner parameters); /** - * Deletes a network manager. + * Patch NetworkManager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been - * deployed, the service will do a cleanup deployment in the background, prior to the delete. + * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, - Boolean force); + Mono> patchWithResponseAsync(String resourceGroupName, String networkManagerName, + PatchObject parameters); /** - * Deletes a network manager. + * Patch NetworkManager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been - * deployed, the service will do a cleanup deployment in the background, prior to the delete. + * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the Managed Network resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, - Boolean force); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono patchAsync(String resourceGroupName, String networkManagerName, PatchObject parameters); /** - * Deletes a network manager. + * Patch NetworkManager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the Managed Network resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response patchWithResponse(String resourceGroupName, String networkManagerName, + PatchObject parameters, Context context); /** - * Deletes a network manager. + * Patch NetworkManager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the Managed Network resource. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkManagerInner patch(String resourceGroupName, String networkManagerName, PatchObject parameters); /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, Boolean force, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, + Boolean force); /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkManagerName, Boolean force); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, + Boolean force); /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName); /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkManagerName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName); /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -269,72 +271,71 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkManagerName, Boolean force, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, Boolean force, + Context context); /** - * Patch NetworkManager. + * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. + * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been + * deployed, the service will do a cleanup deployment in the background, prior to the delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> patchWithResponseAsync(String resourceGroupName, String networkManagerName, - PatchObject parameters); + Mono deleteAsync(String resourceGroupName, String networkManagerName, Boolean force); /** - * Patch NetworkManager. + * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono patchAsync(String resourceGroupName, String networkManagerName, PatchObject parameters); + Mono deleteAsync(String resourceGroupName, String networkManagerName); /** - * Patch NetworkManager. + * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response patchWithResponse(String resourceGroupName, String networkManagerName, - PatchObject parameters, Context context); + void delete(String resourceGroupName, String networkManagerName); /** - * Patch NetworkManager. + * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. + * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been + * deployed, the service will do a cleanup deployment in the background, prior to the delete. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkManagerInner patch(String resourceGroupName, String networkManagerName, PatchObject parameters); + void delete(String resourceGroupName, String networkManagerName, Boolean force, Context context); /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -343,34 +344,39 @@ Response patchWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(Integer top, String skipToken); + PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, String skipToken); /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -380,15 +386,15 @@ Response patchWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Integer top, String skipToken, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken, + Context context); /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -397,39 +403,34 @@ Response patchWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, String skipToken); + PagedFlux listAsync(Integer top, String skipToken); /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); + PagedFlux listAsync(); /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable list(); /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -439,9 +440,8 @@ Response patchWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken, - Context context); + PagedIterable list(Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkProfilesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkProfilesClient.java index 574765bb4d15..653361659d43 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkProfilesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkProfilesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface NetworkProfilesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkProfileName); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName, - Context context); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkProfileName); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkProfileName); - - /** - * Deletes the specified network profile. - * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkProfileName, Context context); - /** * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -167,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,8 +88,8 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -195,8 +103,8 @@ Mono> createOrUpdateWithResponseAsync(String resou /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -210,8 +118,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String n /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update network profile operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,8 +134,8 @@ Response createOrUpdateWithResponse(String resourceGroupNam /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -241,8 +149,8 @@ NetworkProfileInner createOrUpdate(String resourceGroupName, String networkProfi /** * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -256,8 +164,8 @@ Mono> updateTagsWithResponseAsync(String resourceG /** * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -271,8 +179,8 @@ Mono updateTagsAsync(String resourceGroupName, String netwo /** * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to update network profile tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -287,8 +195,8 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -299,41 +207,101 @@ Response updateTagsWithResponse(String resourceGroupName, S NetworkProfileInner updateTags(String resourceGroupName, String networkProfileName, TagsObject parameters); /** - * Gets all the network profiles in a subscription. + * Deletes the specified network profile. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkProfileName); /** - * Gets all the network profiles in a subscription. + * Deletes the specified network profile. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName); /** - * Gets all the network profiles in a subscription. + * Deletes the specified network profile. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName); + + /** + * Deletes the specified network profile. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName, + Context context); + + /** + * Deletes the specified network profile. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String networkProfileName); + + /** + * Deletes the specified network profile. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkProfileName); + + /** + * Deletes the specified network profile. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkProfileName, Context context); /** * Gets all network profiles in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -345,7 +313,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all network profiles in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -357,7 +325,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all network profiles in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -366,4 +334,36 @@ Response updateTagsWithResponse(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the network profiles in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the network profiles in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the network profiles in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityGroupsClient.java index 8f022bd9c405..545c3b20740e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface NetworkSecurityGroupsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - Context context); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityGroupName); - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityGroupName, Context context); - /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(St /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(St /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -167,7 +75,7 @@ Response getByResourceGroupWithResponse(String resour /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +88,7 @@ Response getByResourceGroupWithResponse(String resour /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +118,7 @@ PollerFlux, NetworkSecurityGroupInner> beg /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +133,7 @@ SyncPoller, NetworkSecurityGroupInner> beg /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -242,7 +150,7 @@ SyncPoller, NetworkSecurityGroupInner> beg /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +165,7 @@ Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +180,7 @@ NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String networ /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -288,7 +196,7 @@ NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String networ /** * Updates a network security group tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,7 +211,7 @@ Mono> updateTagsWithResponseAsync(String res /** * Updates a network security group tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -318,7 +226,7 @@ Mono updateTagsAsync(String resourceGroupName, String /** * Updates a network security group tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to update network security group tags. * @param context The context to associate with this operation. @@ -334,7 +242,7 @@ Response updateTagsWithResponse(String resourceGroupN /** * Updates a network security group tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -347,41 +255,101 @@ NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSec TagsObject parameters); /** - * Gets all network security groups in a subscription. + * Deletes the specified network security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName); /** - * Gets all network security groups in a subscription. + * Deletes the specified network security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName); /** - * Gets all network security groups in a subscription. + * Deletes the specified network security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName); + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + Context context); + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName); + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkSecurityGroupName); + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkSecurityGroupName, Context context); /** * Gets all network security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -393,7 +361,7 @@ NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSec /** * Gets all network security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -405,7 +373,7 @@ NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSec /** * Gets all network security groups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -414,4 +382,36 @@ NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSec */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all network security groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all network security groups in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all network security groups in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAccessRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAccessRulesClient.java index 7831fe0571a8..f227d4319803 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAccessRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAccessRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface NetworkSecurityPerimeterAccessRulesClient { /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -37,7 +37,7 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -53,7 +53,7 @@ Mono getAsync(String resourceGroupName, String networkSecuri /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -70,7 +70,7 @@ Response getWithResponse(String resourceGroupName, String ne /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -86,7 +86,7 @@ NspAccessRuleInner get(String resourceGroupName, String networkSecurityPerimeter /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -103,7 +103,7 @@ Mono> createOrUpdateWithResponseAsync(String resour /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -120,7 +120,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ne /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -139,7 +139,7 @@ Response createOrUpdateWithResponse(String resourceGroupName /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -156,7 +156,7 @@ NspAccessRuleInner createOrUpdate(String resourceGroupName, String networkSecuri /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -172,7 +172,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -188,7 +188,7 @@ Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeter /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -205,7 +205,7 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -220,7 +220,7 @@ void delete(String resourceGroupName, String networkSecurityPerimeterName, Strin /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -231,7 +231,7 @@ void delete(String resourceGroupName, String networkSecurityPerimeterName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedFlux}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -240,13 +240,13 @@ PagedFlux listAsync(String resourceGroupName, String network /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedFlux}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -255,13 +255,13 @@ PagedFlux listAsync(String resourceGroupName, String network /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedIterable}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -270,7 +270,7 @@ PagedIterable list(String resourceGroupName, String networkS /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -282,7 +282,7 @@ PagedIterable list(String resourceGroupName, String networkS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedIterable}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -291,7 +291,7 @@ PagedIterable list(String resourceGroupName, String networkS /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -299,7 +299,7 @@ PagedIterable list(String resourceGroupName, String networkS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> reconcileWithResponseAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -308,7 +308,7 @@ Mono> reconcileWithResponseAsync(String resourceGroupName, Stri /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -316,7 +316,7 @@ Mono> reconcileWithResponseAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return anything on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono reconcileAsync(String resourceGroupName, String networkSecurityPerimeterName, String profileName, @@ -325,7 +325,7 @@ Mono reconcileAsync(String resourceGroupName, String networkSecurityPeri /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -334,7 +334,7 @@ Mono reconcileAsync(String resourceGroupName, String networkSecurityPeri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response}. + * @return anything along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response reconcileWithResponse(String resourceGroupName, String networkSecurityPerimeterName, @@ -343,7 +343,7 @@ Response reconcileWithResponse(String resourceGroupName, String networkS /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -351,7 +351,7 @@ Response reconcileWithResponse(String resourceGroupName, String networkS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return anything. */ @ServiceMethod(returns = ReturnType.SINGLE) Object reconcile(String resourceGroupName, String networkSecurityPerimeterName, String profileName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociableResourceTypesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociableResourceTypesClient.java index 948fa2707436..e32c94d941c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociableResourceTypesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociableResourceTypesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface NetworkSecurityPerimeterAssociableResourceTypesClient { * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -33,7 +33,7 @@ public interface NetworkSecurityPerimeterAssociableResourceTypesClient { * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -46,7 +46,7 @@ public interface NetworkSecurityPerimeterAssociableResourceTypesClient { * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociationsClient.java index 71c9cb7cf86b..2358cc915161 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,7 +26,7 @@ public interface NetworkSecurityPerimeterAssociationsClient { /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ Mono> getWithResponseAsync(String resourceGroupNam /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -57,7 +57,7 @@ Mono getAsync(String resourceGroupName, String networkSecur /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -73,7 +73,7 @@ Response getWithResponse(String resourceGroupName, String n /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,7 +87,7 @@ Response getWithResponse(String resourceGroupName, String n /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -104,7 +104,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -120,7 +120,7 @@ PollerFlux, NspAssociationInner> beginCreateOrUp /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -136,7 +136,7 @@ SyncPoller, NspAssociationInner> beginCreateOrUp /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -153,7 +153,7 @@ SyncPoller, NspAssociationInner> beginCreateOrUp /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -169,7 +169,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String n /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -185,7 +185,7 @@ NspAssociationInner createOrUpdate(String resourceGroupName, String networkSecur /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -202,7 +202,7 @@ NspAssociationInner createOrUpdate(String resourceGroupName, String networkSecur /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -217,7 +217,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -232,7 +232,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -247,7 +247,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -263,7 +263,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -277,7 +277,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -290,7 +290,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -304,7 +304,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -314,7 +314,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedFlux}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -323,12 +323,12 @@ PagedFlux listAsync(String resourceGroupName, String networ /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedFlux}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName); @@ -336,12 +336,12 @@ PagedFlux listAsync(String resourceGroupName, String networ /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedIterable}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName); @@ -349,7 +349,7 @@ PagedFlux listAsync(String resourceGroupName, String networ /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -360,7 +360,7 @@ PagedFlux listAsync(String resourceGroupName, String networ * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedIterable}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -369,14 +369,14 @@ PagedIterable list(String resourceGroupName, String network /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> reconcileWithResponseAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -385,14 +385,14 @@ Mono> reconcileWithResponseAsync(String resourceGroupName, Stri /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return anything on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono reconcileAsync(String resourceGroupName, String networkSecurityPerimeterName, String associationName, @@ -401,7 +401,7 @@ Mono reconcileAsync(String resourceGroupName, String networkSecurityPeri /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. @@ -409,7 +409,7 @@ Mono reconcileAsync(String resourceGroupName, String networkSecurityPeri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response}. + * @return anything along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response reconcileWithResponse(String resourceGroupName, String networkSecurityPerimeterName, @@ -418,14 +418,14 @@ Response reconcileWithResponse(String resourceGroupName, String networkS /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return anything. */ @ServiceMethod(returns = ReturnType.SINGLE) Object reconcile(String resourceGroupName, String networkSecurityPerimeterName, String associationName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinkReferencesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinkReferencesClient.java index 8dedfa638ea9..9207d21945e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinkReferencesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinkReferencesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,7 +26,7 @@ public interface NetworkSecurityPerimeterLinkReferencesClient { /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ Mono> getWithResponseAsync(String resourceGroupN /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -57,7 +57,7 @@ Mono getAsync(String resourceGroupName, String networkSec /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -73,7 +73,7 @@ Response getWithResponse(String resourceGroupName, String /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,7 +87,7 @@ Response getWithResponse(String resourceGroupName, String /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +102,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,7 +117,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,7 +132,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -148,7 +148,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -162,7 +162,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -175,7 +175,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -190,7 +190,7 @@ void delete(String resourceGroupName, String networkSecurityPerimeterName, Strin /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -200,7 +200,7 @@ void delete(String resourceGroupName, String networkSecurityPerimeterName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -209,12 +209,12 @@ PagedFlux listAsync(String resourceGroupName, String netw /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName); @@ -222,13 +222,12 @@ PagedFlux listAsync(String resourceGroupName, String netw /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with - * {@link PagedIterable}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName); @@ -236,7 +235,7 @@ PagedFlux listAsync(String resourceGroupName, String netw /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -247,8 +246,7 @@ PagedFlux listAsync(String resourceGroupName, String netw * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with - * {@link PagedIterable}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinksClient.java index a6ed41541866..93fedda3de4a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,7 +25,7 @@ public interface NetworkSecurityPerimeterLinksClient { /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,7 +40,7 @@ Mono> getWithResponseAsync(String resourceGroupName, Stri /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,7 +54,7 @@ Mono> getWithResponseAsync(String resourceGroupName, Stri /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -70,7 +70,7 @@ Response getWithResponse(String resourceGroupName, String networkS /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,7 +84,7 @@ Response getWithResponse(String resourceGroupName, String networkS /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -101,7 +101,7 @@ Mono> createOrUpdateWithResponseAsync(String resourceGrou /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -117,7 +117,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String networkS /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -134,7 +134,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Stri /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -150,7 +150,7 @@ NspLinkInner createOrUpdate(String resourceGroupName, String networkSecurityPeri /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -165,7 +165,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -180,7 +180,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +195,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -211,7 +211,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +225,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -238,7 +238,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -252,7 +252,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -262,7 +262,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLink list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -271,12 +271,12 @@ PagedFlux listAsync(String resourceGroupName, String networkSecuri /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLink list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName); @@ -284,12 +284,12 @@ PagedFlux listAsync(String resourceGroupName, String networkSecuri /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedIterable}. + * @return the response of a NspLink list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName); @@ -297,7 +297,7 @@ PagedFlux listAsync(String resourceGroupName, String networkSecuri /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -308,7 +308,7 @@ PagedFlux listAsync(String resourceGroupName, String networkSecuri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedIterable}. + * @return the response of a NspLink list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, Integer top, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLoggingConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLoggingConfigurationsClient.java index d8f5e7687ddc..b70c720cca4f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLoggingConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLoggingConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -21,7 +21,7 @@ public interface NetworkSecurityPerimeterLoggingConfigurationsClient { /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -36,7 +36,7 @@ Mono> getWithResponseAsync(String resourc /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -51,7 +51,7 @@ Mono getAsync(String resourceGroupName, String net /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -67,7 +67,7 @@ Response getWithResponse(String resourceGroupName, /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -82,7 +82,7 @@ NspLoggingConfigurationInner get(String resourceGroupName, String networkSecurit /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -98,7 +98,7 @@ Mono> createOrUpdateWithResponseAsync(Str /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -114,7 +114,7 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -132,7 +132,7 @@ Response createOrUpdateWithResponse(String resourc /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -148,7 +148,7 @@ NspLoggingConfigurationInner createOrUpdate(String resourceGroupName, String net /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -163,7 +163,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,7 +178,7 @@ Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeter /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -194,7 +194,7 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -207,12 +207,12 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedFlux}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName); @@ -220,12 +220,13 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedIterable}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName); @@ -233,13 +234,14 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedIterable}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterOperationStatusesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterOperationStatusesClient.java index 6c87a1487c83..ea3cab0efb31 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterOperationStatusesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterOperationStatusesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,7 +19,7 @@ public interface NetworkSecurityPerimeterOperationStatusesClient { /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -33,7 +33,7 @@ public interface NetworkSecurityPerimeterOperationStatusesClient { /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -46,7 +46,7 @@ public interface NetworkSecurityPerimeterOperationStatusesClient { /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -60,7 +60,7 @@ public interface NetworkSecurityPerimeterOperationStatusesClient { /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterProfilesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterProfilesClient.java index e25aa4388b4b..ca88159fc510 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterProfilesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterProfilesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface NetworkSecurityPerimeterProfilesClient { /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -35,7 +35,7 @@ Mono> getWithResponseAsync(String resourceGroupName, S /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -49,7 +49,7 @@ Mono> getWithResponseAsync(String resourceGroupName, S /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -65,7 +65,7 @@ Response getWithResponse(String resourceGroupName, String netwo /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -79,7 +79,7 @@ Response getWithResponse(String resourceGroupName, String netwo /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -96,7 +96,7 @@ Mono> createOrUpdateWithResponseAsync(String resourceG /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -112,7 +112,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String netwo /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -129,7 +129,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, S /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -145,7 +145,7 @@ NspProfileInner createOrUpdate(String resourceGroupName, String networkSecurityP /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -160,7 +160,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -174,7 +174,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -190,7 +190,7 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,7 +203,7 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -213,7 +213,7 @@ Response deleteWithResponse(String resourceGroupName, String networkSecuri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedFlux}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -222,12 +222,12 @@ PagedFlux listAsync(String resourceGroupName, String networkSec /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedFlux}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName); @@ -235,12 +235,12 @@ PagedFlux listAsync(String resourceGroupName, String networkSec /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedIterable}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName); @@ -248,7 +248,7 @@ PagedFlux listAsync(String resourceGroupName, String networkSec /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -259,7 +259,7 @@ PagedFlux listAsync(String resourceGroupName, String networkSec * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedIterable}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, Integer top, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterServiceTagsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterServiceTagsClient.java index 4bcf0f1853ed..337673b2be88 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterServiceTagsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterServiceTagsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface NetworkSecurityPerimeterServiceTagsClient { /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,7 +30,7 @@ public interface NetworkSecurityPerimeterServiceTagsClient { /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -42,7 +42,7 @@ public interface NetworkSecurityPerimeterServiceTagsClient { /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimetersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimetersClient.java index ec22d5aa44ad..356f666bbbd2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimetersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimetersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,7 +30,7 @@ public interface NetworkSecurityPerimetersClient extends InnerSupportsGet> getByResourceGroupWithResponseAsyn /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -59,7 +59,7 @@ Mono getByResourceGroupAsync(String resourceGroup /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -74,7 +74,7 @@ Response getByResourceGroupWithResponse(String re /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -87,7 +87,7 @@ Response getByResourceGroupWithResponse(String re /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -103,7 +103,7 @@ Mono> createOrUpdateWithResponseAsync(St /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -118,7 +118,7 @@ Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @param context The context to associate with this operation. @@ -134,7 +134,7 @@ Response createOrUpdateWithResponse(String resour /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,195 +147,196 @@ NetworkSecurityPerimeterInner createOrUpdate(String resourceGroupName, String ne NetworkSecurityPerimeterInner parameters); /** - * Deletes a network security perimeter. + * Patch Tags for a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param forceDeletion Deletes the resource even if it contains any child associations. + * @param parameters Parameter supplied to the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the Network Security Perimeter resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkSecurityPerimeterName, Boolean forceDeletion); + Mono> patchWithResponseAsync(String resourceGroupName, + String networkSecurityPerimeterName, UpdateTagsRequest parameters); /** - * Deletes a network security perimeter. + * Patch Tags for a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param forceDeletion Deletes the resource even if it contains any child associations. + * @param parameters Parameter supplied to the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the Network Security Perimeter resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityPerimeterName, - Boolean forceDeletion); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono patchAsync(String resourceGroupName, String networkSecurityPerimeterName, + UpdateTagsRequest parameters); /** - * Deletes a network security perimeter. + * Patch Tags for a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the Network Security Perimeter resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityPerimeterName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response patchWithResponse(String resourceGroupName, + String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context); /** - * Deletes a network security perimeter. + * Patch Tags for a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the Network Security Perimeter resource. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityPerimeterName); + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecurityPerimeterName, + UpdateTagsRequest parameters); /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityPerimeterName, - Boolean forceDeletion, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkSecurityPerimeterName, Boolean forceDeletion); /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeterName, Boolean forceDeletion); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityPerimeterName, + Boolean forceDeletion); /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeterName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityPerimeterName); /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityPerimeterName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityPerimeterName); /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityPerimeterName, Boolean forceDeletion, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityPerimeterName, + Boolean forceDeletion, Context context); /** - * Patch Tags for a Network Security Perimeter. + * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. + * @param forceDeletion Deletes the resource even if it contains any child associations. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> patchWithResponseAsync(String resourceGroupName, - String networkSecurityPerimeterName, UpdateTagsRequest parameters); + Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeterName, Boolean forceDeletion); /** - * Patch Tags for a Network Security Perimeter. + * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono patchAsync(String resourceGroupName, String networkSecurityPerimeterName, - UpdateTagsRequest parameters); + Mono deleteAsync(String resourceGroupName, String networkSecurityPerimeterName); /** - * Patch Tags for a Network Security Perimeter. + * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response patchWithResponse(String resourceGroupName, - String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context); + void delete(String resourceGroupName, String networkSecurityPerimeterName); /** - * Patch Tags for a Network Security Perimeter. + * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. + * @param forceDeletion Deletes the resource even if it contains any child associations. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecurityPerimeterName, - UpdateTagsRequest parameters); + void delete(String resourceGroupName, String networkSecurityPerimeterName, Boolean forceDeletion, Context context); /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -344,34 +345,41 @@ NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(Integer top, String skipToken); + PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, + String skipToken); /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -381,15 +389,16 @@ NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Integer top, String skipToken, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Integer top, + String skipToken, Context context); /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -398,40 +407,35 @@ NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, - String skipToken); + PagedFlux listAsync(Integer top, String skipToken); /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); + PagedFlux listAsync(); /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable list(); /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -441,9 +445,9 @@ PagedFlux listByResourceGroupAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Integer top, - String skipToken, Context context); + PagedIterable list(Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualApplianceConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualApplianceConnectionsClient.java index 0e102e9019ec..9edc60833e93 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualApplianceConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualApplianceConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,9 @@ public interface NetworkVirtualApplianceConnectionsClient { /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -44,9 +44,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -62,9 +62,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,9 +80,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -99,9 +99,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,9 +117,9 @@ Mono createOrUpdateAsync(String resource /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,9 +134,9 @@ NetworkVirtualApplianceConnectionInner createOrUpdate(String resourceGroupName, /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -153,9 +153,9 @@ NetworkVirtualApplianceConnectionInner createOrUpdate(String resourceGroupName, /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -169,9 +169,9 @@ Mono> getWithResponseAsync(Stri /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -184,9 +184,9 @@ Mono getAsync(String resourceGroupName, /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -200,9 +200,9 @@ Response getWithResponse(String resource /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -215,9 +215,9 @@ NetworkVirtualApplianceConnectionInner get(String resourceGroupName, String netw /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +230,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -245,9 +245,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -260,9 +260,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -276,9 +276,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -290,9 +290,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -303,9 +303,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,8 +317,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -331,8 +331,8 @@ PagedFlux listAsync(String resourceGroup /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -345,8 +345,8 @@ PagedIterable list(String resourceGroupN /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java index ec1006716298..a9c5651161b4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,162 +31,177 @@ public interface NetworkVirtualAppliancesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String expand); /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified Network Virtual Appliance on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkVirtualApplianceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, + String networkVirtualApplianceName); /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Network Virtual Appliance along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String networkVirtualApplianceName, String expand, Context context); /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Network Virtual Appliance. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkVirtualApplianceInner getByResourceGroup(String resourceGroupName, String networkVirtualApplianceName); /** - * Deletes the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); /** - * Deletes the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkVirtualApplianceName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); /** - * Deletes the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkVirtualApplianceName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String expand); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, + Context context); /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance on successful completion of {@link Mono}. + * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, - String networkVirtualApplianceName); + Mono createOrUpdateAsync(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInner parameters); /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance along with {@link Response}. + * @return networkVirtualAppliance Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String networkVirtualApplianceName, String expand, Context context); + NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInner parameters); /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance. + * @return networkVirtualAppliance Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkVirtualApplianceInner getByResourceGroup(String resourceGroupName, String networkVirtualApplianceName); + NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInner parameters, Context context); /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -200,8 +215,8 @@ Mono> updateTagsWithResponseAsync(String /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -215,8 +230,8 @@ Mono updateTagsAsync(String resourceGroupName, Str /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,8 +246,8 @@ Response updateTagsWithResponse(String resourceGro /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -244,125 +259,180 @@ NetworkVirtualApplianceInner updateTags(String resourceGroupName, String network TagsObject parameters); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkVirtualApplianceName); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, + SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, Context context); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String networkVirtualApplianceName, - NetworkVirtualApplianceInner parameters); + Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, - NetworkVirtualApplianceInner parameters); + void delete(String resourceGroupName, String networkVirtualApplianceName); /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, - NetworkVirtualApplianceInner parameters, Context context); + void delete(String resourceGroupName, String networkVirtualApplianceName, Context context); + + /** + * Lists all Network Virtual Appliances in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists all Network Virtual Appliances in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists all Network Virtual Appliances in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all Network Virtual Appliances in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all Network Virtual Appliances in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all Network Virtual Appliances in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> restartWithResponseAsync(String resourceGroupName, @@ -371,15 +441,14 @@ Mono>> restartWithResponseAsync(String resourceGroupNa /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -389,13 +458,12 @@ Mono>> restartWithResponseAsync(String resourceGroupNa /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -404,13 +472,12 @@ Mono>> restartWithResponseAsync(String resourceGroupNa /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -419,7 +486,7 @@ Mono>> restartWithResponseAsync(String resourceGroupNa /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -427,8 +494,7 @@ Mono>> restartWithResponseAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -438,15 +504,14 @@ Mono>> restartWithResponseAsync(String resourceGroupNa /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono restartAsync(String resourceGroupName, @@ -455,13 +520,12 @@ Mono restartAsync(String resourceGroupN /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono restartAsync(String resourceGroupName, @@ -470,12 +534,12 @@ Mono restartAsync(String resourceGroupN /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName); @@ -483,7 +547,7 @@ Mono restartAsync(String resourceGroupN /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -491,7 +555,7 @@ Mono restartAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName, @@ -500,15 +564,14 @@ NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -517,15 +580,14 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -535,13 +597,12 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -550,13 +611,12 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -565,7 +625,7 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -573,8 +633,7 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -584,15 +643,14 @@ Mono>> reimageWithResponseAsync(String resourceGroupNa /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono reimageAsync(String resourceGroupName, @@ -601,13 +659,12 @@ Mono reimageAsync(String resourceGroupN /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono reimageAsync(String resourceGroupName, @@ -616,12 +673,12 @@ Mono reimageAsync(String resourceGroupN /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, String networkVirtualApplianceName); @@ -629,7 +686,7 @@ Mono reimageAsync(String resourceGroupN /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -637,7 +694,7 @@ Mono reimageAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, String networkVirtualApplianceName, @@ -646,7 +703,7 @@ NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, String /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -661,7 +718,7 @@ Mono>> getBootDiagnosticLogsWithResponseAsync(String r /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -677,7 +734,7 @@ Mono>> getBootDiagnosticLogsWithResponseAsync(String r /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -693,7 +750,7 @@ Mono>> getBootDiagnosticLogsWithResponseAsync(String r /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -710,7 +767,7 @@ Mono>> getBootDiagnosticLogsWithResponseAsync(String r /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -725,7 +782,7 @@ Mono getBootDiagnosticLogsAsync(String r /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -740,7 +797,7 @@ NetworkVirtualApplianceInstanceIdInner getBootDiagnosticLogs(String resourceGrou /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -752,75 +809,4 @@ NetworkVirtualApplianceInstanceIdInner getBootDiagnosticLogs(String resourceGrou @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceInstanceIdInner getBootDiagnosticLogs(String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceBootDiagnosticParameters request, Context context); - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkWatchersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkWatchersClient.java index 196d0fed4ba9..eaf25a121f3d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkWatchersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkWatchersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -48,10 +48,66 @@ */ public interface NetworkWatchersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkWatcherName); + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String networkWatcherName); + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String networkWatcherName, + Context context); + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkWatcherInner getByResourceGroup(String resourceGroupName, String networkWatcherName); + /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,7 +122,7 @@ Mono> createOrUpdateWithResponseAsync(String resou /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -81,7 +137,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String n /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @param context The context to associate with this operation. @@ -97,7 +153,7 @@ Response createOrUpdateWithResponse(String resourceGroupNam /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,65 +166,69 @@ NetworkWatcherInner createOrUpdate(String resourceGroupName, String networkWatch NetworkWatcherInner parameters); /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkWatcherName); + Mono> updateTagsWithResponseAsync(String resourceGroupName, String networkWatcherName, + TagsObject parameters); /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group on successful completion of {@link Mono}. + * @return network watcher in a resource group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String networkWatcherName); + Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, + TagsObject parameters); /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group along with {@link Response}. + * @return network watcher in a resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String networkWatcherName, - Context context); + Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, + TagsObject parameters, Context context); /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group. + * @return network watcher in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkWatcherInner getByResourceGroup(String resourceGroupName, String networkWatcherName); + NetworkWatcherInner updateTags(String resourceGroupName, String networkWatcherName, TagsObject parameters); /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,7 +241,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -194,7 +254,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -207,7 +267,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +282,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -235,7 +295,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -247,7 +307,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,70 +317,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkWatcherName, Context context); - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateTagsWithResponseAsync(String resourceGroupName, String networkWatcherName, - TagsObject parameters); - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, - TagsObject parameters); - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, - TagsObject parameters, Context context); - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - NetworkWatcherInner updateTags(String resourceGroupName, String networkWatcherName, TagsObject parameters); - /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -332,7 +332,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -344,7 +344,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -389,7 +389,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -405,7 +405,7 @@ Mono> getTopologyWithResponseAsync(String resourceGroupN /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -420,7 +420,7 @@ Mono getTopologyAsync(String resourceGroupName, String networkWat /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @param context The context to associate with this operation. @@ -436,7 +436,7 @@ Response getTopologyWithResponse(String resourceGroupName, String /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -450,7 +450,7 @@ Response getTopologyWithResponse(String resourceGroupName, String /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -466,7 +466,7 @@ Mono>> verifyIpFlowWithResponseAsync(String resourceGr /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -481,7 +481,7 @@ PollerFlux, VerificationIpFlowResultIn /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,7 +496,7 @@ PollerFlux, VerificationIpFlowResultIn /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -512,7 +512,7 @@ SyncPoller, VerificationIpFlowResultIn /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -527,7 +527,7 @@ Mono verifyIpFlowAsync(String resourceGroupName, /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -542,7 +542,7 @@ VerificationIpFlowResultInner verifyIpFlow(String resourceGroupName, String netw /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -558,7 +558,7 @@ VerificationIpFlowResultInner verifyIpFlow(String resourceGroupName, String netw /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -573,7 +573,7 @@ Mono>> getNextHopWithResponseAsync(String resourceGrou /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -588,7 +588,7 @@ PollerFlux, NextHopResultInner> beginGetNextHopAs /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -603,7 +603,7 @@ SyncPoller, NextHopResultInner> beginGetNextHop(S /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -619,7 +619,7 @@ SyncPoller, NextHopResultInner> beginGetNextHop(S /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,7 +634,7 @@ Mono getNextHopAsync(String resourceGroupName, String networ /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -648,7 +648,7 @@ Mono getNextHopAsync(String resourceGroupName, String networ /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -664,7 +664,7 @@ NextHopResultInner getNextHop(String resourceGroupName, String networkWatcherNam /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -680,7 +680,7 @@ Mono>> getVMSecurityRulesWithResponseAsync(String reso /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -696,7 +696,7 @@ PollerFlux, SecurityGroupViewResultInne /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -712,7 +712,7 @@ SyncPoller, SecurityGroupViewResultInne /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -729,7 +729,7 @@ SyncPoller, SecurityGroupViewResultInne /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -745,7 +745,7 @@ Mono getVMSecurityRulesAsync(String resourceGroupN /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -760,7 +760,7 @@ SecurityGroupViewResultInner getVMSecurityRules(String resourceGroupName, String /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -776,8 +776,8 @@ SecurityGroupViewResultInner getVMSecurityRules(String resourceGroupName, String /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -792,8 +792,8 @@ Mono>> getTroubleshootingWithResponseAsync(String reso /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -807,8 +807,8 @@ PollerFlux, TroubleshootingResultInner> b /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -822,8 +822,8 @@ SyncPoller, TroubleshootingResultInner> b /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -838,8 +838,8 @@ SyncPoller, TroubleshootingResultInner> b /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -853,8 +853,8 @@ Mono getTroubleshootingAsync(String resourceGroupNam /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -868,8 +868,8 @@ TroubleshootingResultInner getTroubleshooting(String resourceGroupName, String n /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -884,8 +884,8 @@ TroubleshootingResultInner getTroubleshooting(String resourceGroupName, String n /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -900,8 +900,8 @@ Mono>> getTroubleshootingResultWithResponseAsync(Strin /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -915,8 +915,8 @@ PollerFlux, TroubleshootingResultInner> b /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -930,8 +930,8 @@ SyncPoller, TroubleshootingResultInner> b /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -947,8 +947,8 @@ SyncPoller, TroubleshootingResultInner> b /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -963,8 +963,8 @@ Mono getTroubleshootingResultAsync(String resourceGr /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -978,8 +978,8 @@ TroubleshootingResultInner getTroubleshootingResult(String resourceGroupName, St /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -994,8 +994,8 @@ TroubleshootingResultInner getTroubleshootingResult(String resourceGroupName, St /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1010,8 +1010,8 @@ Mono>> setFlowLogConfigurationWithResponseAsync(String /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1026,8 +1026,8 @@ PollerFlux, FlowLogInformationInner> beginSe /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1042,8 +1042,8 @@ SyncPoller, FlowLogInformationInner> beginSe /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1059,8 +1059,8 @@ SyncPoller, FlowLogInformationInner> beginSe /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1075,8 +1075,8 @@ Mono setFlowLogConfigurationAsync(String resourceGroupN /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1090,8 +1090,8 @@ FlowLogInformationInner setFlowLogConfiguration(String resourceGroupName, String /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1106,8 +1106,8 @@ FlowLogInformationInner setFlowLogConfiguration(String resourceGroupName, String /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1122,8 +1122,8 @@ Mono>> getFlowLogStatusWithResponseAsync(String resour /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1138,8 +1138,8 @@ PollerFlux, FlowLogInformationInner> beginGe /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1154,8 +1154,8 @@ PollerFlux, FlowLogInformationInner> beginGe /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1171,8 +1171,8 @@ SyncPoller, FlowLogInformationInner> beginGe /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1187,8 +1187,8 @@ Mono getFlowLogStatusAsync(String resourceGroupName, St /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1202,8 +1202,8 @@ FlowLogInformationInner getFlowLogStatus(String resourceGroupName, String networ /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1219,8 +1219,8 @@ FlowLogInformationInner getFlowLogStatus(String resourceGroupName, String networ * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1236,8 +1236,8 @@ Mono>> checkConnectivityWithResponseAsync(String resou * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1252,8 +1252,8 @@ PollerFlux, ConnectivityInformationInne * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1268,8 +1268,8 @@ PollerFlux, ConnectivityInformationInne * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1285,8 +1285,8 @@ SyncPoller, ConnectivityInformationInne * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1301,8 +1301,8 @@ Mono checkConnectivityAsync(String resourceGroupNa * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1317,8 +1317,8 @@ ConnectivityInformationInner checkConnectivity(String resourceGroupName, String * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1334,8 +1334,8 @@ ConnectivityInformationInner checkConnectivity(String resourceGroupName, String * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1350,8 +1350,8 @@ Mono>> getAzureReachabilityReportWithResponseAsync(Str * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1367,8 +1367,8 @@ Mono>> getAzureReachabilityReportWithResponseAsync(Str * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1383,8 +1383,8 @@ SyncPoller, AzureReachabilityReportInne * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1401,8 +1401,8 @@ SyncPoller, AzureReachabilityReportInne * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1417,8 +1417,8 @@ Mono getAzureReachabilityReportAsync(String resour * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1433,8 +1433,8 @@ AzureReachabilityReportInner getAzureReachabilityReport(String resourceGroupName * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1450,8 +1450,8 @@ AzureReachabilityReportInner getAzureReachabilityReport(String resourceGroupName * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1467,8 +1467,8 @@ Mono>> listAvailableProvidersWithResponseAsync(String * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1483,8 +1483,8 @@ PollerFlux, AvailableProvidersListInner> * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1499,8 +1499,8 @@ SyncPoller, AvailableProvidersListInner> * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1517,8 +1517,8 @@ SyncPoller, AvailableProvidersListInner> * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1533,8 +1533,8 @@ Mono listAvailableProvidersAsync(String resourceGro * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1549,8 +1549,8 @@ AvailableProvidersListInner listAvailableProviders(String resourceGroupName, Str * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1568,7 +1568,7 @@ AvailableProvidersListInner listAvailableProviders(String resourceGroupName, Str * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1587,7 +1587,7 @@ Mono>> getNetworkConfigurationDiagnosticWithResponseAs * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1607,7 +1607,7 @@ Mono>> getNetworkConfigurationDiagnosticWithResponseAs * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1627,7 +1627,7 @@ Mono>> getNetworkConfigurationDiagnosticWithResponseAs * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -1648,7 +1648,7 @@ Mono>> getNetworkConfigurationDiagnosticWithResponseAs * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1667,7 +1667,7 @@ Mono getNetworkConfigurationDiagnos * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1685,7 +1685,7 @@ NetworkConfigurationDiagnosticResponseInner getNetworkConfigurationDiagnostic(St * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/OperationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/OperationsClient.java index a992c117dbe2..b79e05485abc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/OperationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/OperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface OperationsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedFlux}. + * @return paged collection of Operation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(); @@ -30,7 +30,7 @@ public interface OperationsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedIterable}. + * @return paged collection of Operation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -42,7 +42,7 @@ public interface OperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedIterable}. + * @return paged collection of Operation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/P2SVpnGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/P2SVpnGatewaysClient.java index 2a60779cacd2..5223838770bb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/P2SVpnGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/P2SVpnGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -35,7 +35,7 @@ public interface P2SVpnGatewaysClient /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,7 +49,7 @@ Mono> getByResourceGroupWithResponseAsync(String re /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,7 +62,7 @@ Mono> getByResourceGroupWithResponseAsync(String re /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +77,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -90,7 +90,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -105,7 +105,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -120,7 +120,7 @@ PollerFlux, P2SVpnGatewayInner> beginCreateOrUpda /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +135,7 @@ SyncPoller, P2SVpnGatewayInner> beginCreateOrUpda /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -151,7 +151,7 @@ SyncPoller, P2SVpnGatewayInner> beginCreateOrUpda /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +166,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String ga /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +181,7 @@ P2SVpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayName, /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -197,7 +197,7 @@ P2SVpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayName, /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -212,7 +212,7 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -227,7 +227,7 @@ PollerFlux, P2SVpnGatewayInner> beginUpdateTagsAs /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -242,7 +242,7 @@ SyncPoller, P2SVpnGatewayInner> beginUpdateTags(S /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -258,7 +258,7 @@ SyncPoller, P2SVpnGatewayInner> beginUpdateTags(S /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +273,7 @@ Mono updateTagsAsync(String resourceGroupName, String gatewa /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -287,7 +287,7 @@ Mono updateTagsAsync(String resourceGroupName, String gatewa /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -303,7 +303,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,7 +316,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -329,7 +329,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -342,7 +342,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -356,7 +356,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -369,7 +369,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -381,7 +381,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -394,7 +394,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -406,7 +406,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -418,7 +418,7 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -463,12 +463,12 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName); @@ -476,12 +476,12 @@ P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Tags /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of p2SVpnGateway Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, P2SVpnGatewayInner> beginResetAsync(String resourceGroupName, @@ -490,12 +490,12 @@ PollerFlux, P2SVpnGatewayInner> beginResetAsync(S /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of p2SVpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, P2SVpnGatewayInner> beginReset(String resourceGroupName, @@ -504,13 +504,13 @@ SyncPoller, P2SVpnGatewayInner> beginReset(String /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of p2SVpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, P2SVpnGatewayInner> beginReset(String resourceGroupName, @@ -519,12 +519,12 @@ SyncPoller, P2SVpnGatewayInner> beginReset(String /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetAsync(String resourceGroupName, String gatewayName); @@ -532,12 +532,12 @@ SyncPoller, P2SVpnGatewayInner> beginReset(String /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName); @@ -545,13 +545,13 @@ SyncPoller, P2SVpnGatewayInner> beginReset(String /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName, Context context); @@ -559,14 +559,13 @@ SyncPoller, P2SVpnGatewayInner> beginReset(String /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> generateVpnProfileWithResponseAsync(String resourceGroupName, String gatewayName, @@ -575,13 +574,13 @@ Mono>> generateVpnProfileWithResponseAsync(String reso /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnProfileResponseInner> @@ -590,13 +589,13 @@ Mono>> generateVpnProfileWithResponseAsync(String reso /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnProfileResponseInner> @@ -605,14 +604,14 @@ Mono>> generateVpnProfileWithResponseAsync(String reso /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnProfileResponseInner> beginGenerateVpnProfile( @@ -621,13 +620,13 @@ SyncPoller, VpnProfileResponseInner> beginGe /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono generateVpnProfileAsync(String resourceGroupName, String gatewayName, @@ -636,13 +635,13 @@ Mono generateVpnProfileAsync(String resourceGroupName, /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gatewayName, @@ -651,14 +650,14 @@ VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gate /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gatewayName, @@ -667,8 +666,8 @@ VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gate /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -682,8 +681,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -697,8 +696,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -712,8 +711,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -728,8 +727,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -742,8 +741,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -755,8 +754,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -770,8 +769,8 @@ Mono>> getP2SVpnConnectionHealthWithResponseAsync(Stri * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -787,8 +786,8 @@ Mono>> getP2SVpnConnectionHealthDetailedWithResponseAs * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -805,8 +804,8 @@ Mono>> getP2SVpnConnectionHealthDetailedWithResponseAs * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -823,8 +822,8 @@ Mono>> getP2SVpnConnectionHealthDetailedWithResponseAs * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -842,8 +841,8 @@ Mono>> getP2SVpnConnectionHealthDetailedWithResponseAs * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -859,8 +858,8 @@ Mono getP2SVpnConnectionHealthDetailedAsync(String * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -876,8 +875,8 @@ P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String resourceGro * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -893,8 +892,8 @@ P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String resourceGro /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -903,13 +902,13 @@ P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String resourceGro */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> disconnectP2SVpnConnectionsWithResponseAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request); + String p2sVpnGatewayName, P2SVpnConnectionRequest request); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -918,13 +917,13 @@ Mono>> disconnectP2SVpnConnectionsWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request); + String p2sVpnGatewayName, P2SVpnConnectionRequest request); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -933,13 +932,13 @@ PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDisconnectP2SVpnConnections(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request); + String p2sVpnGatewayName, P2SVpnConnectionRequest request); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -949,13 +948,13 @@ SyncPoller, Void> beginDisconnectP2SVpnConnections(String resou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDisconnectP2SVpnConnections(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request, Context context); + String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -963,28 +962,28 @@ SyncPoller, Void> beginDisconnectP2SVpnConnections(String resou * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2SVpnGatewayName, + Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnGatewayName, + void disconnectP2SVpnConnections(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request); /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -992,6 +991,6 @@ void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnGatewayN * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnGatewayName, + void disconnectP2SVpnConnections(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java index 108c2a11caa8..5912ba7284da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,7 +27,7 @@ public interface PacketCapturesClient { /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -44,7 +44,7 @@ Mono>> createWithResponseAsync(String resourceGroupNam /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -60,7 +60,7 @@ PollerFlux, PacketCaptureResultInner> begin /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -76,7 +76,7 @@ SyncPoller, PacketCaptureResultInner> begin /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -93,7 +93,7 @@ SyncPoller, PacketCaptureResultInner> begin /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -109,7 +109,7 @@ Mono createAsync(String resourceGroupName, String netw /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -125,7 +125,7 @@ PacketCaptureResultInner create(String resourceGroupName, String networkWatcherN /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -142,7 +142,7 @@ PacketCaptureResultInner create(String resourceGroupName, String networkWatcherN /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -157,7 +157,7 @@ Mono> getWithResponseAsync(String resourceGro /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -172,7 +172,7 @@ Mono getAsync(String resourceGroupName, String network /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -188,7 +188,7 @@ Response getWithResponse(String resourceGroupName, Str /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -202,7 +202,7 @@ Response getWithResponse(String resourceGroupName, Str /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -217,7 +217,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -232,7 +232,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -247,7 +247,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -263,7 +263,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -277,7 +277,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -290,7 +290,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -304,7 +304,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -319,7 +319,7 @@ Mono>> stopWithResponseAsync(String resourceGroupName, /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,7 +334,7 @@ PollerFlux, Void> beginStopAsync(String resourceGroupName, Stri /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,7 +349,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -365,7 +365,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -379,7 +379,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -392,7 +392,7 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -406,9 +406,9 @@ SyncPoller, Void> beginStop(String resourceGroupName, String ne /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -421,9 +421,9 @@ Mono>> getStatusWithResponseAsync(String resourceGroup /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -436,9 +436,9 @@ Mono>> getStatusWithResponseAsync(String resourceGroup /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -451,9 +451,9 @@ Mono>> getStatusWithResponseAsync(String resourceGroup /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -467,9 +467,9 @@ Mono>> getStatusWithResponseAsync(String resourceGroup /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -482,9 +482,9 @@ Mono getStatusAsync(String resourceGroupNam /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -497,9 +497,9 @@ PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, String n /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -513,8 +513,8 @@ PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, String n /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -526,8 +526,8 @@ PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, String n /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -539,8 +539,8 @@ PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, String n /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PeerExpressRouteCircuitConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PeerExpressRouteCircuitConnectionsClient.java index fbe5437280ab..43c001f702ba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PeerExpressRouteCircuitConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PeerExpressRouteCircuitConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,10 +20,11 @@ public interface PeerExpressRouteCircuitConnectionsClient { /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -37,10 +38,11 @@ Mono> getWithResponseAsync(Stri /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -54,10 +56,11 @@ Mono getAsync(String resourceGroupName, /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -72,10 +75,11 @@ Response getWithResponse(String resource /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -88,8 +92,8 @@ PeerExpressRouteCircuitConnectionInner get(String resourceGroupName, String circ /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -104,8 +108,8 @@ PagedFlux listAsync(String resourceGroup /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -120,8 +124,8 @@ PagedIterable list(String resourceGroupN /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateDnsZoneGroupsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateDnsZoneGroupsClient.java index 88a4394856a0..f772e065a6d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateDnsZoneGroupsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateDnsZoneGroupsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,9 @@ public interface PrivateDnsZoneGroupsClient { /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -40,9 +40,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -55,9 +55,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -70,9 +70,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -86,9 +86,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -100,9 +100,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -113,9 +113,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -127,9 +127,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -143,9 +143,9 @@ Mono> getWithResponseAsync(String resourceGro /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -159,9 +159,9 @@ Mono getAsync(String resourceGroupName, String private /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -175,9 +175,9 @@ Response getWithResponse(String resourceGroupName, Str /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -189,9 +189,9 @@ Response getWithResponse(String resourceGroupName, Str /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -205,9 +205,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -222,9 +222,9 @@ PollerFlux, PrivateDnsZoneGroupInner> begin /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -239,9 +239,9 @@ SyncPoller, PrivateDnsZoneGroupInner> begin /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,9 +257,9 @@ SyncPoller, PrivateDnsZoneGroupInner> begin /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -273,9 +273,9 @@ Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -289,9 +289,9 @@ PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String private /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,9 +307,9 @@ PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String private * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedFlux}. */ @@ -320,9 +320,9 @@ PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String private * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedIterable}. */ @@ -333,10 +333,10 @@ PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String private * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedIterable}. */ diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateEndpointsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateEndpointsClient.java index b90acee29b14..6d00c576db95 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateEndpointsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateEndpointsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,266 +27,266 @@ public interface PrivateEndpointsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Deletes the specified private endpoint. + * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private endpoint by resource group along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String privateEndpointName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String privateEndpointName, String expand); /** - * Deletes the specified private endpoint. + * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified private endpoint by resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String privateEndpointName); /** - * Deletes the specified private endpoint. + * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified private endpoint by resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String privateEndpointName, + String expand, Context context); /** - * Deletes the specified private endpoint. + * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified private endpoint by resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + PrivateEndpointInner getByResourceGroup(String resourceGroupName, String privateEndpointName); /** - * Deletes the specified private endpoint. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return private endpoint resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String privateEndpointName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String privateEndpointName, PrivateEndpointInner parameters); /** - * Deletes the specified private endpoint. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of private endpoint resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String privateEndpointName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PrivateEndpointInner> + beginCreateOrUpdateAsync(String resourceGroupName, String privateEndpointName, PrivateEndpointInner parameters); /** - * Deletes the specified private endpoint. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of private endpoint resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String privateEndpointName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateEndpointInner> beginCreateOrUpdate(String resourceGroupName, + String privateEndpointName, PrivateEndpointInner parameters); /** - * Gets the specified private endpoint by resource group. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update private endpoint operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint by resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of private endpoint resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String privateEndpointName, String expand); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateEndpointInner> beginCreateOrUpdate(String resourceGroupName, + String privateEndpointName, PrivateEndpointInner parameters, Context context); /** - * Gets the specified private endpoint by resource group. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint by resource group on successful completion of {@link Mono}. + * @return private endpoint resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String privateEndpointName); + Mono createOrUpdateAsync(String resourceGroupName, String privateEndpointName, + PrivateEndpointInner parameters); /** - * Gets the specified private endpoint by resource group. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint by resource group along with {@link Response}. + * @return private endpoint resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String privateEndpointName, - String expand, Context context); + PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndpointName, + PrivateEndpointInner parameters); /** - * Gets the specified private endpoint by resource group. + * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. + * @param parameters Parameters supplied to the create or update private endpoint operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint by resource group. + * @return private endpoint resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointInner getByResourceGroup(String resourceGroupName, String privateEndpointName); + PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndpointName, + PrivateEndpointInner parameters, Context context); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String privateEndpointName, PrivateEndpointInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String privateEndpointName); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of private endpoint resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, PrivateEndpointInner> - beginCreateOrUpdateAsync(String resourceGroupName, String privateEndpointName, PrivateEndpointInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private endpoint resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PrivateEndpointInner> beginCreateOrUpdate(String resourceGroupName, - String privateEndpointName, PrivateEndpointInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private endpoint resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PrivateEndpointInner> beginCreateOrUpdate(String resourceGroupName, - String privateEndpointName, PrivateEndpointInner parameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName, + Context context); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String privateEndpointName, - PrivateEndpointInner parameters); + Mono deleteAsync(String resourceGroupName, String privateEndpointName); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndpointName, - PrivateEndpointInner parameters); + void delete(String resourceGroupName, String privateEndpointName); /** - * Creates or updates an private endpoint in the specified resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private endpoint resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndpointName, - PrivateEndpointInner parameters, Context context); + void delete(String resourceGroupName, String privateEndpointName, Context context); /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -298,7 +298,7 @@ PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndp /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -310,7 +310,7 @@ PrivateEndpointInner createOrUpdate(String resourceGroupName, String privateEndp /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateLinkServicesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateLinkServicesClient.java index 0525eb34bf19..f36902ab4d1c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateLinkServicesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PrivateLinkServicesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,265 +31,265 @@ public interface PrivateLinkServicesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private link service by resource group along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String serviceName, String expand); /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified private link service by resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String serviceName); /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified private link service by resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String serviceName, + String expand, Context context); /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified private link service by resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + PrivateLinkServiceInner getByResourceGroup(String resourceGroupName, String serviceName); /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String serviceName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters); /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PrivateLinkServiceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters); /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateLinkServiceInner> + beginCreateOrUpdate(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters); /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String serviceName, String expand); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateLinkServiceInner> beginCreateOrUpdate( + String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context); /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group on successful completion of {@link Mono}. + * @return private link service resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String serviceName); + Mono createOrUpdateAsync(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters); /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group along with {@link Response}. + * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String serviceName, - String expand, Context context); + PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters); /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group. + * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkServiceInner getByResourceGroup(String resourceGroupName, String serviceName); + PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters, Context context); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of private link service resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, PrivateLinkServiceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private link service resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PrivateLinkServiceInner> - beginCreateOrUpdate(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private link service resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, PrivateLinkServiceInner> beginCreateOrUpdate( - String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, Context context); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters); + Mono deleteAsync(String resourceGroupName, String serviceName); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters); + void delete(String resourceGroupName, String serviceName); /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters, Context context); + void delete(String resourceGroupName, String serviceName, Context context); /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -301,7 +301,7 @@ PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceN /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -313,7 +313,7 @@ PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceN /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -358,9 +358,10 @@ PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceN /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -375,9 +376,10 @@ Mono> getPrivateEndpointConnectionWithR /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -391,9 +393,10 @@ Mono getPrivateEndpointConnectionAsync(String re /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -409,9 +412,10 @@ Response getPrivateEndpointConnectionWithRespons /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -424,9 +428,10 @@ PrivateEndpointConnectionInner getPrivateEndpointConnection(String resourceGroup /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -441,9 +446,10 @@ Mono> updatePrivateEndpointConnectionWi /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -457,9 +463,10 @@ Mono updatePrivateEndpointConnectionAsync(String /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -474,9 +481,10 @@ Response updatePrivateEndpointConnectionWithResp /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -490,9 +498,10 @@ PrivateEndpointConnectionInner updatePrivateEndpointConnection(String resourceGr /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -505,9 +514,10 @@ Mono>> deletePrivateEndpointConnectionWithResponseAsyn /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -520,9 +530,10 @@ PollerFlux, Void> beginDeletePrivateEndpointConnectionAsync(Str /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -535,9 +546,10 @@ SyncPoller, Void> beginDeletePrivateEndpointConnection(String r /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -551,9 +563,10 @@ SyncPoller, Void> beginDeletePrivateEndpointConnection(String r /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -566,9 +579,10 @@ Mono deletePrivateEndpointConnectionAsync(String resourceGroupName, String /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -579,9 +593,10 @@ Mono deletePrivateEndpointConnectionAsync(String resourceGroupName, String /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -594,7 +609,7 @@ void deletePrivateEndpointConnection(String resourceGroupName, String serviceNam /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -609,7 +624,7 @@ PagedFlux listPrivateEndpointConnectionsAsync(St /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -624,7 +639,7 @@ PagedIterable listPrivateEndpointConnections(Str /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -640,13 +655,12 @@ PagedIterable listPrivateEndpointConnections(Str /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> checkPrivateLinkServiceVisibilityWithResponseAsync(String location, @@ -655,13 +669,12 @@ Mono>> checkPrivateLinkServiceVisibilityWithResponseAs /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, PrivateLinkServiceVisibilityInner> @@ -671,13 +684,12 @@ Mono>> checkPrivateLinkServiceVisibilityWithResponseAs /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateLinkServiceVisibilityInner> @@ -686,14 +698,13 @@ Mono>> checkPrivateLinkServiceVisibilityWithResponseAs /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateLinkServiceVisibilityInner> @@ -703,13 +714,12 @@ Mono>> checkPrivateLinkServiceVisibilityWithResponseAs /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono checkPrivateLinkServiceVisibilityAsync(String location, @@ -718,12 +728,12 @@ Mono checkPrivateLinkServiceVisibilityAsync(S /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, @@ -732,13 +742,13 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String locat /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, @@ -747,14 +757,13 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String locat /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> checkPrivateLinkServiceVisibilityByResourceGroupWithResponseAsync(String location, @@ -763,14 +772,13 @@ Mono>> checkPrivateLinkServiceVisibilityByResourceGrou /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, PrivateLinkServiceVisibilityInner> @@ -780,14 +788,13 @@ Mono>> checkPrivateLinkServiceVisibilityByResourceGrou /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateLinkServiceVisibilityInner> @@ -797,15 +804,14 @@ Mono>> checkPrivateLinkServiceVisibilityByResourceGrou /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateLinkServiceVisibilityInner> @@ -815,14 +821,13 @@ Mono>> checkPrivateLinkServiceVisibilityByResourceGrou /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, @@ -831,13 +836,13 @@ Mono checkPrivateLinkServiceVisibilityByResou /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, @@ -846,14 +851,14 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGro /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, @@ -863,7 +868,7 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGro * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -877,7 +882,7 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGro * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -891,7 +896,7 @@ PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGro * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -907,8 +912,8 @@ PagedIterable listAutoApprovedPrivateLinkSe * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -923,8 +928,8 @@ PagedIterable listAutoApprovedPrivateLinkSe * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -939,8 +944,8 @@ PagedIterable listAutoApprovedPrivateLinkSe * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java index f1a157228c7a..266defdf0f85 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,112 +30,10 @@ */ public interface PublicIpAddressesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Gets information about all public IP addresses on a cloud service level. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, - String cloudServiceName); - - /** - * Gets information about all public IP addresses on a cloud service level. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, - String cloudServiceName); - - /** - * Gets information about all public IP addresses on a cloud service level. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, - String cloudServiceName, Context context); - - /** - * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a role instance IP configuration in a cloud service as - * paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listCloudServiceRoleInstancePublicIpAddressesAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName); - - /** - * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a role instance IP configuration in a cloud service as - * paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceRoleInstancePublicIpAddresses(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName); - - /** - * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a role instance IP configuration in a cloud service as - * paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCloudServiceRoleInstancePublicIpAddresses(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, - Context context); - /** * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The role instance name. * @param networkInterfaceName The name of the network interface. @@ -156,7 +54,7 @@ Mono> getCloudServicePublicIpAddressWithResponseA /** * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The role instance name. * @param networkInterfaceName The name of the network interface. @@ -174,7 +72,7 @@ Mono getCloudServicePublicIpAddressAsync(String resourceGr /** * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The role instance name. * @param networkInterfaceName The name of the network interface. @@ -195,7 +93,7 @@ Response getCloudServicePublicIpAddressWithResponse(String /** * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The role instance name. * @param networkInterfaceName The name of the network interface. @@ -211,101 +109,65 @@ PublicIpAddressInner getCloudServicePublicIpAddress(String resourceGroupName, St String roleInstanceName, String networkInterfaceName, String ipConfigurationName, String publicIpAddressName); /** - * Deletes the specified public IP address. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String publicIpAddressName); - - /** - * Deletes the specified public IP address. + * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return information about all public IP addresses in a role instance IP configuration in a cloud service as + * paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listCloudServiceRoleInstancePublicIpAddressesAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName); /** - * Deletes the specified public IP address. + * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return information about all public IP addresses in a role instance IP configuration in a cloud service as + * paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCloudServiceRoleInstancePublicIpAddresses(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName); /** - * Deletes the specified public IP address. + * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return information about all public IP addresses in a role instance IP configuration in a cloud service as + * paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName, + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listCloudServiceRoleInstancePublicIpAddresses(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, Context context); - /** - * Deletes the specified public IP address. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String publicIpAddressName); - - /** - * Deletes the specified public IP address. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String publicIpAddressName); - - /** - * Deletes the specified public IP address. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String publicIpAddressName, Context context); - /** * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -321,7 +183,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -334,7 +196,7 @@ Mono> getByResourceGroupWithResponseAsync(String /** * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -350,7 +212,7 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -363,7 +225,7 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -378,7 +240,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -393,7 +255,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -408,7 +270,7 @@ SyncPoller, PublicIpAddressInner> beginCreateOr /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. @@ -424,7 +286,7 @@ SyncPoller, PublicIpAddressInner> beginCreateOr /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -439,7 +301,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -454,7 +316,7 @@ PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAdd /** * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. @@ -470,7 +332,7 @@ PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAdd /** * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -485,7 +347,7 @@ Mono> updateTagsWithResponseAsync(String resource /** * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -500,7 +362,7 @@ Mono updateTagsAsync(String resourceGroupName, String publ /** * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to update public IP address tags. * @param context The context to associate with this operation. @@ -516,7 +378,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -528,41 +390,101 @@ Response updateTagsWithResponse(String resourceGroupName, PublicIpAddressInner updateTags(String resourceGroupName, String publicIpAddressName, TagsObject parameters); /** - * Gets all the public IP addresses in a subscription. + * Deletes the specified public IP address. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP addresses in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String publicIpAddressName); /** - * Gets all the public IP addresses in a subscription. + * Deletes the specified public IP address. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP addresses in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName); /** - * Gets all the public IP addresses in a subscription. + * Deletes the specified public IP address. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName); + + /** + * Deletes the specified public IP address. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP addresses in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName, + Context context); + + /** + * Deletes the specified public IP address. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String publicIpAddressName); + + /** + * Deletes the specified public IP address. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String publicIpAddressName); + + /** + * Deletes the specified public IP address. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String publicIpAddressName, Context context); /** * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -574,7 +496,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -586,7 +508,7 @@ Response updateTagsWithResponse(String resourceGroupName, /** * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -596,10 +518,42 @@ Response updateTagsWithResponse(String resourceGroupName, @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + /** + * Gets all the public IP addresses in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP addresses in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the public IP addresses in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP addresses in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the public IP addresses in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP addresses in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -614,7 +568,7 @@ Mono>> ddosProtectionStatusWithResponseAsync(String re /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -628,7 +582,7 @@ Mono>> ddosProtectionStatusWithResponseAsync(String re /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -642,7 +596,7 @@ Mono>> ddosProtectionStatusWithResponseAsync(String re /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -657,7 +611,7 @@ Mono>> ddosProtectionStatusWithResponseAsync(String re /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -671,7 +625,7 @@ Mono ddosProtectionStatusAsync(String r /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -684,7 +638,7 @@ Mono ddosProtectionStatusAsync(String r /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -700,7 +654,7 @@ PublicIpDdosProtectionStatusResultInner ddosProtectionStatus(String resourceGrou * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -717,7 +671,7 @@ Mono>> reserveCloudServicePublicIpAddressWithResponseA * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -734,7 +688,7 @@ PollerFlux, PublicIpAddressInner> beginReserveC * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -751,7 +705,7 @@ SyncPoller, PublicIpAddressInner> beginReserveC * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -770,7 +724,7 @@ SyncPoller, PublicIpAddressInner> beginReserveC * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -787,7 +741,7 @@ Mono reserveCloudServicePublicIpAddressAsync(String resour * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -804,7 +758,7 @@ PublicIpAddressInner reserveCloudServicePublicIpAddress(String resourceGroupName * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -822,7 +776,7 @@ PublicIpAddressInner reserveCloudServicePublicIpAddress(String resourceGroupName * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -839,7 +793,7 @@ Mono>> disassociateCloudServiceReservedPublicIpWithRes * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -857,7 +811,7 @@ Mono>> disassociateCloudServiceReservedPublicIpWithRes * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -874,7 +828,7 @@ SyncPoller, PublicIpAddressInner> beginDisassoc * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -893,7 +847,7 @@ SyncPoller, PublicIpAddressInner> beginDisassoc * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -910,7 +864,7 @@ Mono disassociateCloudServiceReservedPublicIpAsync(String * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -927,7 +881,7 @@ PublicIpAddressInner disassociateCloudServiceReservedPublicIp(String resourceGro * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -942,121 +896,106 @@ PublicIpAddressInner disassociateCloudServiceReservedPublicIp(String resourceGro DisassociateCloudServicePublicIpRequest parameters, Context context); /** - * Gets information about all public IP addresses on a virtual machine scale set level. + * Gets information about all public IP addresses on a cloud service level. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * @return information about all public IP addresses on a cloud service level as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listVirtualMachineScaleSetPublicIpAddressesAsync(String resourceGroupName, - String virtualMachineScaleSetName); + PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, + String cloudServiceName); /** - * Gets information about all public IP addresses on a virtual machine scale set level. + * Gets information about all public IP addresses on a cloud service level. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * @return information about all public IP addresses on a cloud service level as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName, - String virtualMachineScaleSetName); + PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, + String cloudServiceName); /** - * Gets information about all public IP addresses on a virtual machine scale set level. + * Gets information about all public IP addresses on a cloud service level. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * @return information about all public IP addresses on a cloud service level as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName, - String virtualMachineScaleSetName, Context context); + PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, + String cloudServiceName, Context context); /** - * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale - * set. + * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine - * scale set as paginated response with {@link PagedFlux}. + * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listVirtualMachineScaleSetVMPublicIpAddressesAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName); + PagedFlux listVirtualMachineScaleSetPublicIpAddressesAsync(String resourceGroupName, + String virtualMachineScaleSetName); /** - * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale - * set. + * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine - * scale set as paginated response with {@link PagedIterable}. + * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName); + PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName, + String virtualMachineScaleSetName); /** - * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale - * set. + * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine - * scale set as paginated response with {@link PagedIterable}. + * @return information about all public IP addresses on a virtual machine scale set level as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, Context context); + PagedIterable listVirtualMachineScaleSetPublicIpAddresses(String resourceGroupName, + String virtualMachineScaleSetName, Context context); /** * Get the specified public IP address in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1072,12 +1011,12 @@ Mono> getVirtualMachineScaleSetPublicIpAddressWit /** * Get the specified public IP address in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1091,12 +1030,12 @@ Mono getVirtualMachineScaleSetPublicIpAddressAsync(String /** * Get the specified public IP address in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1112,12 +1051,12 @@ Response getVirtualMachineScaleSetPublicIpAddressWithRespo /** * Get the specified public IP address in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1127,4 +1066,65 @@ Response getVirtualMachineScaleSetPublicIpAddressWithRespo PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String ipConfigurationName, String publicIpAddressName); + + /** + * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale + * set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine + * scale set as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listVirtualMachineScaleSetVMPublicIpAddressesAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName); + + /** + * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale + * set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine + * scale set as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName); + + /** + * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale + * set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine + * scale set as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listVirtualMachineScaleSetVMPublicIpAddresses(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpPrefixesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpPrefixesClient.java index a15395ddfea6..0a28303497e6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpPrefixesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/PublicIpPrefixesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,102 +27,10 @@ */ public interface PublicIpPrefixesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName, - Context context); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String publicIpPrefixName); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String publicIpPrefixName); - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String publicIpPrefixName, Context context); - /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +59,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -167,7 +75,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +88,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +118,7 @@ PollerFlux, PublicIpPrefixInner> beginCreateOrUp /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +133,7 @@ SyncPoller, PublicIpPrefixInner> beginCreateOrUp /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -241,7 +149,7 @@ SyncPoller, PublicIpPrefixInner> beginCreateOrUp /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String p /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -271,7 +179,7 @@ PublicIpPrefixInner createOrUpdate(String resourceGroupName, String publicIpPref /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -287,7 +195,7 @@ PublicIpPrefixInner createOrUpdate(String resourceGroupName, String publicIpPref /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,7 +210,7 @@ Mono> updateTagsWithResponseAsync(String resourceG /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,7 +225,7 @@ Mono updateTagsAsync(String resourceGroupName, String publi /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @param context The context to associate with this operation. @@ -333,7 +241,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,41 +253,101 @@ Response updateTagsWithResponse(String resourceGroupName, S PublicIpPrefixInner updateTags(String resourceGroupName, String publicIpPrefixName, TagsObject parameters); /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName); /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName); /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName); + + /** + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName, + Context context); + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String publicIpPrefixName); + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String publicIpPrefixName); + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String publicIpPrefixName, Context context); /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -391,7 +359,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -403,7 +371,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -412,4 +380,36 @@ Response updateTagsWithResponse(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the public IP prefixes in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the public IP prefixes in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the public IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisIntentsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisIntentsClient.java index a380fee53344..a2d93b396b9a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisIntentsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisIntentsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -17,84 +17,12 @@ * An instance of this class provides access to all the operations defined in ReachabilityAnalysisIntentsClient. */ public interface ReachabilityAnalysisIntentsClient { - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue); - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName); - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName); - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context); - /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -108,9 +36,9 @@ Mono> getWithResponseAsync(String reso /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -124,9 +52,9 @@ Mono getAsync(String resourceGroupName, String /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -141,9 +69,9 @@ Response getWithResponse(String resourceGroupNa /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -157,9 +85,9 @@ ReachabilityAnalysisIntentInner get(String resourceGroupName, String networkMana /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,9 +104,9 @@ Mono> createWithResponseAsync(String r /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,9 +122,9 @@ Mono createAsync(String resourceGroupName, Stri /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @param context The context to associate with this operation. @@ -213,9 +141,9 @@ Response createWithResponse(String resourceGrou /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,9 +158,9 @@ ReachabilityAnalysisIntentInner create(String resourceGroupName, String networkM /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -246,9 +174,9 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -262,9 +190,9 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -279,9 +207,9 @@ Response deleteWithResponse(String resourceGroupName, String networkManage /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -290,4 +218,76 @@ Response deleteWithResponse(String resourceGroupName, String networkManage @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String workspaceName, String reachabilityAnalysisIntentName); + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue); + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName); + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName); + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisRunsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisRunsClient.java index 472ae82d2ff9..3f6344233fc2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisRunsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisRunsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,84 +22,12 @@ * An instance of this class provides access to all the operations defined in ReachabilityAnalysisRunsClient. */ public interface ReachabilityAnalysisRunsClient { - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue); - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName); - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName); - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context); - /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -113,9 +41,9 @@ Mono> getWithResponseAsync(String resourc /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -129,9 +57,9 @@ Mono getAsync(String resourceGroupName, String net /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -146,9 +74,9 @@ Response getWithResponse(String resourceGroupName, /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -162,9 +90,9 @@ ReachabilityAnalysisRunInner get(String resourceGroupName, String networkManager /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,9 +109,9 @@ Mono> createWithResponseAsync(String reso /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,9 +126,9 @@ Mono createAsync(String resourceGroupName, String /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @param context The context to associate with this operation. @@ -216,9 +144,9 @@ Response createWithResponse(String resourceGroupNa /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,9 +161,9 @@ ReachabilityAnalysisRunInner create(String resourceGroupName, String networkMana /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -249,9 +177,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -265,9 +193,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -281,9 +209,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,9 +226,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -314,9 +242,9 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -329,9 +257,9 @@ void delete(String resourceGroupName, String networkManagerName, String workspac /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,4 +269,76 @@ void delete(String resourceGroupName, String networkManagerName, String workspac @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String workspaceName, String reachabilityAnalysisRunName, Context context); + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue); + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName); + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName); + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ResourceNavigationLinksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ResourceNavigationLinksClient.java index 7b94b85009ba..04b8a001cdb7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ResourceNavigationLinksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ResourceNavigationLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface ResourceNavigationLinksClient { /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,7 +34,7 @@ Mono> listWithResponseAsync(Str /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -49,7 +49,7 @@ Mono listAsync(String resourceGroupName, /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -65,7 +65,7 @@ Response listWithResponse(String resourc /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFilterRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFilterRulesClient.java index 4c8e0af73367..afcb36ec4dce 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFilterRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFilterRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,9 @@ public interface RouteFilterRulesClient { /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -40,9 +40,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -55,9 +55,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,9 +69,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -85,9 +85,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -99,9 +99,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -112,9 +112,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -126,9 +126,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -142,9 +142,9 @@ Mono> getWithResponseAsync(String resourceGroupNa /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -156,9 +156,9 @@ Mono> getWithResponseAsync(String resourceGroupNa /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -172,9 +172,9 @@ Response getWithResponse(String resourceGroupName, String /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -186,7 +186,7 @@ Response getWithResponse(String resourceGroupName, String /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -202,7 +202,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -219,7 +219,7 @@ PollerFlux, RouteFilterRuleInner> beginCreateOr /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -235,7 +235,7 @@ SyncPoller, RouteFilterRuleInner> beginCreateOr /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -252,7 +252,7 @@ SyncPoller, RouteFilterRuleInner> beginCreateOr /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -268,7 +268,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -284,7 +284,7 @@ RouteFilterRuleInner createOrUpdate(String resourceGroupName, String routeFilter /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -301,7 +301,7 @@ RouteFilterRuleInner createOrUpdate(String resourceGroupName, String routeFilter /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -314,7 +314,7 @@ RouteFilterRuleInner createOrUpdate(String resourceGroupName, String routeFilter /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -327,7 +327,7 @@ RouteFilterRuleInner createOrUpdate(String resourceGroupName, String routeFilter /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFiltersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFiltersClient.java index e9efe80f21a2..6702a658008a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFiltersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteFiltersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,101 +27,10 @@ */ public interface RouteFiltersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName, Context context); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String routeFilterName); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeFilterName); - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeFilterName, Context context); - /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param expand Expands referenced express route bgp peering resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync(String reso /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -149,7 +58,7 @@ Mono> getByResourceGroupWithResponseAsync(String reso /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param expand Expands referenced express route bgp peering resources. * @param context The context to associate with this operation. @@ -165,7 +74,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -178,7 +87,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -193,7 +102,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,7 +117,7 @@ PollerFlux, RouteFilterInner> beginCreateOrUpdateAs /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -223,7 +132,7 @@ SyncPoller, RouteFilterInner> beginCreateOrUpdate(S /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -239,7 +148,7 @@ SyncPoller, RouteFilterInner> beginCreateOrUpdate(S /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,7 +163,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String rout /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -269,7 +178,7 @@ RouteFilterInner createOrUpdate(String resourceGroupName, String routeFilterName /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -285,7 +194,7 @@ RouteFilterInner createOrUpdate(String resourceGroupName, String routeFilterName /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -300,7 +209,7 @@ Mono> updateTagsWithResponseAsync(String resourceGrou /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +223,7 @@ Mono> updateTagsWithResponseAsync(String resourceGrou /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @param context The context to associate with this operation. @@ -330,7 +239,7 @@ Response updateTagsWithResponse(String resourceGroupName, Stri /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,10 +250,101 @@ Response updateTagsWithResponse(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) RouteFilterInner updateTags(String resourceGroupName, String routeFilterName, TagsObject parameters); + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName, Context context); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String routeFilterName); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String routeFilterName); + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String routeFilterName, Context context); + /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -356,7 +356,7 @@ Response updateTagsWithResponse(String resourceGroupName, Stri /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -368,7 +368,7 @@ Response updateTagsWithResponse(String resourceGroupName, Stri /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteMapsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteMapsClient.java index 7d3838ceb08d..5992e4c0688a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteMapsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteMapsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,10 @@ public interface RouteMapsClient { /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -41,9 +42,10 @@ Mono> getWithResponseAsync(String resourceGroupName, Str /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -55,9 +57,10 @@ Mono> getWithResponseAsync(String resourceGroupName, Str /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -71,9 +74,10 @@ Response getWithResponse(String resourceGroupName, String virtual /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -85,9 +89,10 @@ Response getWithResponse(String resourceGroupName, String virtual /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -102,9 +107,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -118,9 +124,10 @@ PollerFlux, RouteMapInner> beginCreateOrUpdateAsync(St /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -134,9 +141,10 @@ SyncPoller, RouteMapInner> beginCreateOrUpdate(String /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,9 +159,10 @@ SyncPoller, RouteMapInner> beginCreateOrUpdate(String /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -167,9 +176,10 @@ Mono createOrUpdateAsync(String resourceGroupName, String virtual /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,9 +193,10 @@ RouteMapInner createOrUpdate(String resourceGroupName, String virtualHubName, St /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,9 +211,10 @@ RouteMapInner createOrUpdate(String resourceGroupName, String virtualHubName, St /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -215,9 +227,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +243,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -245,9 +259,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -261,9 +276,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -275,9 +291,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -288,9 +305,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -302,8 +320,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -316,8 +334,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -330,8 +348,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteTablesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteTablesClient.java index 4300f59e2b1f..a3443550724a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteTablesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RouteTablesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,101 +27,10 @@ */ public interface RouteTablesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, Context context); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String routeTableName); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeTableName); - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeTableName, Context context); - /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -149,7 +58,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -165,7 +74,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -178,7 +87,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -193,7 +102,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,7 +117,7 @@ PollerFlux, RouteTableInner> beginCreateOrUpdateAsyn /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -223,7 +132,7 @@ SyncPoller, RouteTableInner> beginCreateOrUpdate(Str /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -239,7 +148,7 @@ SyncPoller, RouteTableInner> beginCreateOrUpdate(Str /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,7 +163,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String route /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -268,7 +177,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String route /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -284,7 +193,7 @@ RouteTableInner createOrUpdate(String resourceGroupName, String routeTableName, /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -299,7 +208,7 @@ Mono> updateTagsWithResponseAsync(String resourceGroup /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -313,7 +222,7 @@ Mono> updateTagsWithResponseAsync(String resourceGroup /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @param context The context to associate with this operation. @@ -329,7 +238,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -340,10 +249,101 @@ Response updateTagsWithResponse(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) RouteTableInner updateTags(String resourceGroupName, String routeTableName, TagsObject parameters); + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, Context context); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String routeTableName); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String routeTableName); + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String routeTableName, Context context); + /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -355,7 +355,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -367,7 +367,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutesClient.java index bb1511a0580f..ac7e1e7679e1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,283 +23,283 @@ */ public interface RoutesClient { /** - * Deletes the specified route from a route table. + * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified route from a route table along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, - String routeName); + Mono> getWithResponseAsync(String resourceGroupName, String routeTableName, String routeName); /** - * Deletes the specified route from a route table. + * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified route from a route table on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, - String routeName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String routeTableName, String routeName); /** - * Deletes the specified route from a route table. + * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified route from a route table along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, String routeName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String routeTableName, String routeName, + Context context); /** - * Deletes the specified route from a route table. + * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified route from a route table. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, String routeName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + RouteInner get(String resourceGroupName, String routeTableName, String routeName); /** - * Deletes the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return route resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String routeTableName, + String routeName, RouteInner routeParameters); /** - * Deletes the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of route resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeTableName, String routeName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, RouteInner> beginCreateOrUpdateAsync(String resourceGroupName, + String routeTableName, String routeName, RouteInner routeParameters); /** - * Deletes the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param context The context to associate with this operation. + * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of route resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String routeTableName, String routeName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RouteInner> beginCreateOrUpdate(String resourceGroupName, String routeTableName, + String routeName, RouteInner routeParameters); /** - * Gets the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified route from a route table along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of route resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String routeTableName, String routeName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RouteInner> beginCreateOrUpdate(String resourceGroupName, String routeTableName, + String routeName, RouteInner routeParameters, Context context); /** - * Gets the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified route from a route table on successful completion of {@link Mono}. + * @return route resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String routeTableName, String routeName); + Mono createOrUpdateAsync(String resourceGroupName, String routeTableName, String routeName, + RouteInner routeParameters); /** - * Gets the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param context The context to associate with this operation. + * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified route from a route table along with {@link Response}. + * @return route resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String routeTableName, String routeName, - Context context); + RouteInner createOrUpdate(String resourceGroupName, String routeTableName, String routeName, + RouteInner routeParameters); /** - * Gets the specified route from a route table. + * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified route from a route table. + * @return route resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - RouteInner get(String resourceGroupName, String routeTableName, String routeName); + RouteInner createOrUpdate(String resourceGroupName, String routeTableName, String routeName, + RouteInner routeParameters, Context context); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return route resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String routeTableName, - String routeName, RouteInner routeParameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, + String routeName); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of route resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, RouteInner> beginCreateOrUpdateAsync(String resourceGroupName, - String routeTableName, String routeName, RouteInner routeParameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, + String routeName); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of route resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RouteInner> beginCreateOrUpdate(String resourceGroupName, String routeTableName, - String routeName, RouteInner routeParameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, String routeName); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of route resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RouteInner> beginCreateOrUpdate(String resourceGroupName, String routeTableName, - String routeName, RouteInner routeParameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, String routeName, + Context context); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return route resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String routeTableName, String routeName, - RouteInner routeParameters); + Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return route resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - RouteInner createOrUpdate(String resourceGroupName, String routeTableName, String routeName, - RouteInner routeParameters); + void delete(String resourceGroupName, String routeTableName, String routeName); /** - * Creates or updates a route in the specified route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. - * @param routeParameters Parameters supplied to the create or update route operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return route resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - RouteInner createOrUpdate(String resourceGroupName, String routeTableName, String routeName, - RouteInner routeParameters, Context context); + void delete(String resourceGroupName, String routeTableName, String routeName, Context context); /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -312,7 +312,7 @@ RouteInner createOrUpdate(String resourceGroupName, String routeTableName, Strin /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -325,7 +325,7 @@ RouteInner createOrUpdate(String resourceGroupName, String routeTableName, Strin /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingIntentsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingIntentsClient.java index e4d75333bf1d..b1ae5b86a17a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingIntentsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingIntentsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,12 +23,12 @@ */ public interface RoutingIntentsClient { /** - * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * Retrieves the details of a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. - * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -36,173 +36,185 @@ public interface RoutingIntentsClient { * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualHubName, - String routingIntentName, RoutingIntentInner routingIntentParameters); + Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routingIntentName); /** - * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * Retrieves the details of a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. - * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the routing intent child resource of a Virtual hub. + * @return the routing intent child resource of a Virtual hub on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, RoutingIntentInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String virtualHubName, String routingIntentName); /** - * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * Retrieves the details of a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. - * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the routing intent child resource of a Virtual hub. + * @return the routing intent child resource of a Virtual hub along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RoutingIntentInner> beginCreateOrUpdate(String resourceGroupName, - String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String virtualHubName, + String routingIntentName, Context context); /** - * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. + * Retrieves the details of a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. - * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. - * @param context The context to associate with this operation. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the routing intent child resource of a Virtual hub. + * @return the routing intent child resource of a Virtual hub. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RoutingIntentInner> beginCreateOrUpdate(String resourceGroupName, - String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + RoutingIntentInner get(String resourceGroupName, String virtualHubName, String routingIntentName); /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub on successful completion of {@link Mono}. + * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters); /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub. + * @return the {@link PollerFlux} for polling of the routing intent child resource of a Virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - RoutingIntentInner createOrUpdate(String resourceGroupName, String virtualHubName, String routingIntentName, - RoutingIntentInner routingIntentParameters); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, RoutingIntentInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters); /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub. + * @return the {@link SyncPoller} for polling of the routing intent child resource of a Virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - RoutingIntentInner createOrUpdate(String resourceGroupName, String virtualHubName, String routingIntentName, - RoutingIntentInner routingIntentParameters, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RoutingIntentInner> beginCreateOrUpdate(String resourceGroupName, + String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters); /** - * Retrieves the details of a RoutingIntent. + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of the routing intent child resource of a Virtual hub. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routingIntentName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RoutingIntentInner> beginCreateOrUpdate(String resourceGroupName, + String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters, Context context); /** - * Retrieves the details of a RoutingIntent. + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the routing intent child resource of a Virtual hub on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String virtualHubName, String routingIntentName); + Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, + String routingIntentName, RoutingIntentInner routingIntentParameters); /** - * Retrieves the details of a RoutingIntent. + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @param context The context to associate with this operation. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub along with {@link Response}. + * @return the routing intent child resource of a Virtual hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String virtualHubName, - String routingIntentName, Context context); + RoutingIntentInner createOrUpdate(String resourceGroupName, String virtualHubName, String routingIntentName, + RoutingIntentInner routingIntentParameters); /** - * Retrieves the details of a RoutingIntent. + * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the routing intent child resource of a Virtual hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - RoutingIntentInner get(String resourceGroupName, String virtualHubName, String routingIntentName); + RoutingIntentInner createOrUpdate(String resourceGroupName, String virtualHubName, String routingIntentName, + RoutingIntentInner routingIntentParameters, Context context); /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -215,9 +227,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +243,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -245,9 +259,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -261,9 +276,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -275,9 +291,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -288,9 +305,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -302,7 +320,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,7 +334,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -330,7 +348,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRuleCollectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRuleCollectionsClient.java index 98074b4c7e46..c639dec3212c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRuleCollectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRuleCollectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,77 +22,6 @@ * An instance of this class provides access to all the operations defined in RoutingRuleCollectionsClient. */ public interface RoutingRuleCollectionsClient { - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken); - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context); - /** * Gets a network manager routing configuration rule collection. * @@ -383,4 +312,75 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, Boolean force, Context context); + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken); + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRulesClient.java index 261d2bb3c151..92849671c176 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/RoutingRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,81 +22,6 @@ * An instance of this class provides access to all the operations defined in RoutingRulesClient. */ public interface RoutingRulesClient { - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String configurationName, - String ruleCollectionName, Integer top, String skipToken); - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String configurationName, - String ruleCollectionName); - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String configurationName, - String ruleCollectionName); - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String configurationName, - String ruleCollectionName, Integer top, String skipToken, Context context); - /** * Gets a network manager routing configuration routing rule. * @@ -404,4 +329,79 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, String ruleName, Boolean force, Context context); + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String configurationName, + String ruleCollectionName, Integer top, String skipToken); + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String configurationName, + String ruleCollectionName); + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String configurationName, + String ruleCollectionName); + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String configurationName, + String ruleCollectionName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ScopeConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ScopeConnectionsClient.java index 01845dd8501d..eaa8e8c330d2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ScopeConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ScopeConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,135 +18,135 @@ */ public interface ScopeConnectionsClient { /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. + * @return specified scope connection created by this Network Manager along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters); + Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String scopeConnectionName); /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource on successful completion of {@link Mono}. + * @return specified scope connection created by this Network Manager on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String networkManagerName, - String scopeConnectionName, ScopeConnectionInner parameters); + Mono getAsync(String resourceGroupName, String networkManagerName, + String scopeConnectionName); /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource along with {@link Response}. + * @return specified scope connection created by this Network Manager along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String resourceGroupName, String networkManagerName, - String scopeConnectionName, ScopeConnectionInner parameters, Context context); + Response getWithResponse(String resourceGroupName, String networkManagerName, + String scopeConnectionName, Context context); /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource. + * @return specified scope connection created by this Network Manager. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScopeConnectionInner createOrUpdate(String resourceGroupName, String networkManagerName, String scopeConnectionName, - ScopeConnectionInner parameters); + ScopeConnectionInner get(String resourceGroupName, String networkManagerName, String scopeConnectionName); /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, - String scopeConnectionName); + Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters); /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager on successful completion of {@link Mono}. + * @return the Scope Connections resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkManagerName, - String scopeConnectionName); + Mono createOrUpdateAsync(String resourceGroupName, String networkManagerName, + String scopeConnectionName, ScopeConnectionInner parameters); /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager along with {@link Response}. + * @return the Scope Connections resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkManagerName, - String scopeConnectionName, Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String networkManagerName, + String scopeConnectionName, ScopeConnectionInner parameters, Context context); /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager. + * @return the Scope Connections resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ScopeConnectionInner get(String resourceGroupName, String networkManagerName, String scopeConnectionName); + ScopeConnectionInner createOrUpdate(String resourceGroupName, String networkManagerName, String scopeConnectionName, + ScopeConnectionInner parameters); /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -161,7 +161,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -175,7 +175,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @param context The context to associate with this operation. @@ -191,7 +191,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +204,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -214,7 +214,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedFlux}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -223,12 +223,12 @@ PagedFlux listAsync(String resourceGroupName, String netwo /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedFlux}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName); @@ -236,12 +236,12 @@ PagedFlux listAsync(String resourceGroupName, String netwo /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedIterable}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName); @@ -249,7 +249,7 @@ PagedFlux listAsync(String resourceGroupName, String netwo /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -260,7 +260,7 @@ PagedFlux listAsync(String resourceGroupName, String netwo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedIterable}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityAdminConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityAdminConfigurationsClient.java index 4978933a7eb3..74e5d381ad0f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityAdminConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityAdminConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,75 +22,10 @@ * An instance of this class provides access to all the operations defined in SecurityAdminConfigurationsClient. */ public interface SecurityAdminConfigurationsClient { - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken); - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context); - /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -106,7 +41,7 @@ Mono> getWithResponseAsync(String reso /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -121,7 +56,7 @@ Mono getAsync(String resourceGroupName, String /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param context The context to associate with this operation. @@ -137,7 +72,7 @@ Response getWithResponse(String resourceGroupNa /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,7 +86,7 @@ Response getWithResponse(String resourceGroupNa /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -169,7 +104,7 @@ Mono> createOrUpdateWithResponseAsync( /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -185,7 +120,7 @@ Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -203,7 +138,7 @@ Response createOrUpdateWithResponse(String reso /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -219,7 +154,7 @@ SecurityAdminConfigurationInner createOrUpdate(String resourceGroupName, String /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -236,7 +171,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -253,7 +188,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -268,7 +203,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -283,7 +218,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -301,7 +236,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -318,7 +253,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,7 +267,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,7 +280,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -358,4 +293,71 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, Boolean force, Context context); + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken); + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityPartnerProvidersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityPartnerProvidersClient.java index baf1f060c29e..983d17394ad9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityPartnerProvidersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityPartnerProvidersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,103 +27,10 @@ */ public interface SecurityPartnerProvidersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String securityPartnerProviderName); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String securityPartnerProviderName); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName, - Context context); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String securityPartnerProviderName); - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String securityPartnerProviderName, Context context); - /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -152,7 +59,7 @@ Mono getByResourceGroupAsync(String resourceGroupN /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +74,7 @@ Response getByResourceGroupWithResponse(String res /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +87,7 @@ Response getByResourceGroupWithResponse(String res /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +102,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +117,7 @@ PollerFlux, SecurityPartnerProviderInne /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +132,7 @@ SyncPoller, SecurityPartnerProviderInne /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -242,7 +149,7 @@ SyncPoller, SecurityPartnerProviderInne /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +164,7 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +179,7 @@ SecurityPartnerProviderInner createOrUpdate(String resourceGroupName, String sec /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -288,7 +195,7 @@ SecurityPartnerProviderInner createOrUpdate(String resourceGroupName, String sec /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,7 +210,7 @@ Mono> updateTagsWithResponseAsync(String /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -318,7 +225,7 @@ Mono updateTagsAsync(String resourceGroupName, Str /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @param context The context to associate with this operation. @@ -334,7 +241,7 @@ Response updateTagsWithResponse(String resourceGro /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -346,14 +253,107 @@ Response updateTagsWithResponse(String resourceGro SecurityPartnerProviderInner updateTags(String resourceGroupName, String securityPartnerProviderName, TagsObject parameters); + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String securityPartnerProviderName); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String securityPartnerProviderName); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName, + Context context); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String securityPartnerProviderName); + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String securityPartnerProviderName, Context context); + /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with {@link PagedFlux}. + * @return the response of a SecurityPartnerProvider list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -361,11 +361,11 @@ SecurityPartnerProviderInner updateTags(String resourceGroupName, String securit /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with + * @return the response of a SecurityPartnerProvider list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -374,12 +374,12 @@ SecurityPartnerProviderInner updateTags(String resourceGroupName, String securit /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with + * @return the response of a SecurityPartnerProvider list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityRulesClient.java index c6843620afbb..61f539838227 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,286 +23,286 @@ */ public interface SecurityRulesClient { /** - * Deletes the specified network security rule. + * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified network security rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, + Mono> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); /** - * Deletes the specified network security rule. + * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified network security rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName, + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); /** - * Deletes the specified network security rule. + * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified network security rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName, Context context); /** - * Deletes the specified network security rule. + * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified network security rule. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); /** - * Deletes the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return network security rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); /** - * Deletes the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of network security rule. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); /** - * Deletes the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of network security rule. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); /** - * Get the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network security rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of network security rule. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, + Context context); /** - * Get the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network security rule on successful completion of {@link Mono}. + * @return network security rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName); + Mono createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName, SecurityRuleInner securityRuleParameters); /** - * Get the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network security rule along with {@link Response}. + * @return network security rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName, Context context); + SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, + SecurityRuleInner securityRuleParameters); /** - * Get the specified network security rule. + * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network security rule. + * @return network security rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); + SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, + SecurityRuleInner securityRuleParameters, Context context); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network security rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of network security rule. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of network security rule. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of network security rule. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName, Context context); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network security rule on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName, SecurityRuleInner securityRuleParameters); + Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network security rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, - SecurityRuleInner securityRuleParameters); + void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName); /** - * Creates or updates a security rule in the specified network security group. + * Deletes the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. - * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network security rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, - SecurityRuleInner securityRuleParameters, Context context); + void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, Context context); /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -315,7 +315,7 @@ SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurit /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -328,7 +328,7 @@ SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurit /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserConfigurationsClient.java index 4566ab680d1a..6756c0783531 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,71 +22,6 @@ * An instance of this class provides access to all the operations defined in SecurityUserConfigurationsClient. */ public interface SecurityUserConfigurationsClient { - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken); - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName); - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, - String skipToken, Context context); - /** * Retrieves a network manager security user configuration. * @@ -357,4 +292,71 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, Boolean force, Context context); + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken); + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName); + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, + String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRuleCollectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRuleCollectionsClient.java index 7e79203b4493..0dd5f055fee8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRuleCollectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRuleCollectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,77 +22,6 @@ * An instance of this class provides access to all the operations defined in SecurityUserRuleCollectionsClient. */ public interface SecurityUserRuleCollectionsClient { - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken); - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName); - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context); - /** * Gets a network manager security user configuration rule collection. * @@ -386,4 +315,77 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, Boolean force, Context context); + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken); + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName); + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRulesClient.java index b2951bc329b2..97851a9959ce 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,81 +22,6 @@ * An instance of this class provides access to all the operations defined in SecurityUserRulesClient. */ public interface SecurityUserRulesClient { - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken); - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName); - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName); - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context); - /** * Gets a security user rule. * @@ -403,4 +328,79 @@ void delete(String resourceGroupName, String networkManagerName, String configur @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, String ruleName, Boolean force, Context context); + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken); + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName); + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName); + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceAssociationLinksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceAssociationLinksClient.java index 5b1aef994c44..e2a72710f008 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceAssociationLinksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceAssociationLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface ServiceAssociationLinksClient { /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,7 +34,7 @@ Mono> listWithResponseAsync(Str /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -49,7 +49,7 @@ Mono listAsync(String resourceGroupName, /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -65,7 +65,7 @@ Response listWithResponse(String resourc /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPoliciesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPoliciesClient.java index 2ae35d414b9a..d7348c537884 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPoliciesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,103 +27,10 @@ */ public interface ServiceEndpointPoliciesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceEndpointPolicyName); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - Context context); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceEndpointPolicyName); - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context); - /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,7 +46,7 @@ Mono> getByResourceGroupWithResponseAsync(S /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -154,7 +61,7 @@ Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -170,7 +77,7 @@ Response getByResourceGroupWithResponse(String resou /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,7 +90,7 @@ Response getByResourceGroupWithResponse(String resou /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +105,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +120,7 @@ PollerFlux, ServiceEndpointPolicyInner> b /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,7 +135,7 @@ SyncPoller, ServiceEndpointPolicyInner> b /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -245,7 +152,7 @@ SyncPoller, ServiceEndpointPolicyInner> b /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,7 +167,7 @@ Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -275,7 +182,7 @@ ServiceEndpointPolicyInner createOrUpdate(String resourceGroupName, String servi /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -291,7 +198,7 @@ ServiceEndpointPolicyInner createOrUpdate(String resourceGroupName, String servi /** * Updates tags of a service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,7 +213,7 @@ Mono> updateTagsWithResponseAsync(String re /** * Updates tags of a service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -321,7 +228,7 @@ Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates tags of a service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to update service endpoint policy tags. * @param context The context to associate with this operation. @@ -337,7 +244,7 @@ Response updateTagsWithResponse(String resourceGroup /** * Updates tags of a service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -350,41 +257,102 @@ ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEn TagsObject parameters); /** - * Gets all the service endpoint policies in a subscription. + * Deletes the specified service endpoint policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName); /** - * Gets all the service endpoint policies in a subscription. + * Deletes the specified service endpoint policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceEndpointPolicyName); /** - * Gets all the service endpoint policies in a subscription. + * Deletes the specified service endpoint policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName); + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + Context context); + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName); + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceEndpointPolicyName); + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context); /** * Gets all service endpoint Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -396,7 +364,7 @@ ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEn /** * Gets all service endpoint Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -408,7 +376,7 @@ ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEn /** * Gets all service endpoint Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -417,4 +385,36 @@ ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEn */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the service endpoint policies in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the service endpoint policies in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the service endpoint policies in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPolicyDefinitionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPolicyDefinitionsClient.java index 1465eec6f454..c6318558dd83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPolicyDefinitionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPolicyDefinitionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,168 +23,65 @@ */ public interface ServiceEndpointPolicyDefinitionsClient { /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName); - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName); - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName); - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName, Context context); - - /** - * Deletes the specified ServiceEndpoint policy definitions. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName); - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName); - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, - Context context); - - /** - * Get the specified service endpoint policy definitions from service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy along with - * {@link Response} on successful completion of {@link Mono}. + * @return a ServiceEndpointPolicyDefinition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getWithResponseAsync(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName); /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy on successful completion - * of {@link Mono}. + * @return a ServiceEndpointPolicyDefinition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getAsync(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName); /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy along with - * {@link Response}. + * @return a ServiceEndpointPolicyDefinition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, Context context); /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy. + * @return a ServiceEndpointPolicyDefinition. */ @ServiceMethod(returns = ReturnType.SINGLE) ServiceEndpointPolicyDefinitionInner get(String resourceGroupName, String serviceEndpointPolicyName, @@ -193,9 +90,10 @@ ServiceEndpointPolicyDefinitionInner get(String resourceGroupName, String servic /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,9 +109,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,9 +129,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,9 +149,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -269,9 +170,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -287,9 +189,10 @@ Mono createOrUpdateAsync(String resourceGr /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,9 +208,10 @@ ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupName, St /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -321,11 +225,122 @@ ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupName, St String serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions, Context context); + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName, Context context); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName); + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, + Context context); + /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -339,8 +354,8 @@ PagedFlux listByResourceGroupAsync(String /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -354,8 +369,8 @@ PagedIterable listByResourceGroup(String r /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java index dfa3b4837fb4..6271ef669be3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,98 +31,6 @@ */ public interface ServiceGatewaysClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceGatewayName); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName, - Context context); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String serviceGatewayName); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceGatewayName); - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String serviceGatewayName, Context context); - /** * Gets the specified service gateway. * @@ -346,36 +254,96 @@ Response updateTagsWithResponse(String resourceGroupName, S ServiceGatewayInner updateTags(String resourceGroupName, String serviceGatewayName, TagsObject parameters); /** - * Gets all the service gateways in a subscription. + * Deletes the specified service gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceGatewayName); /** - * Gets all the service gateways in a subscription. + * Deletes the specified service gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName); /** - * Gets all the service gateways in a subscription. + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName); + + /** + * Deletes the specified service gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName, + Context context); + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String serviceGatewayName); + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceGatewayName); + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String serviceGatewayName, Context context); /** * Gets all the service gateways in a resource group. @@ -414,6 +382,38 @@ Response updateTagsWithResponse(String resourceGroupName, S @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + /** + * Gets all the service gateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the service gateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the service gateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Creates or updates address locations within the service gateway. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagInformationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagInformationsClient.java index 027824724109..0c404da1e3c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagInformationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagInformationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,9 +18,7 @@ public interface ServiceTagInformationsClient { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,9 +32,7 @@ public interface ServiceTagInformationsClient { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -48,9 +44,7 @@ public interface ServiceTagInformationsClient { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -63,9 +57,7 @@ public interface ServiceTagInformationsClient { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagsClient.java index d49449f035d7..cbf98e8142a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,9 +18,7 @@ public interface ServiceTagsClient { /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -33,9 +31,7 @@ public interface ServiceTagsClient { /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -47,9 +43,7 @@ public interface ServiceTagsClient { /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,9 +56,7 @@ public interface ServiceTagsClient { /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticCidrsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticCidrsClient.java index 73da98591875..b198c356392f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticCidrsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticCidrsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,81 +23,76 @@ */ public interface StaticCidrsClient { /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName); /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Static CIDR resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName); /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Static CIDR resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String poolName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName, Context context); /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Static CIDR resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String poolName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + StaticCidrInner get(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @param body StaticCidr resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -111,10 +106,10 @@ Mono> createWithResponseAsync(String resourceGroupName /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -127,10 +122,10 @@ Mono createAsync(String resourceGroupName, String networkManage /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @param body StaticCidr resource object to create/update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,10 +140,10 @@ Response createWithResponse(String resourceGroupName, String ne /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -158,176 +153,181 @@ Response createWithResponse(String resourceGroupName, String ne StaticCidrInner create(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName); /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName); /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - StaticCidrInner get(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName, Context context); /** * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName); + Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); /** * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); /** * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName, + Context context); /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. - * @param context The context to associate with this operation. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue); /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName); /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String poolName); /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName, - Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String poolName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticMembersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticMembersClient.java index 251e529a714c..0aac83848b83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticMembersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/StaticMembersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,7 +20,7 @@ public interface StaticMembersClient { /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -36,7 +36,7 @@ Mono> getWithResponseAsync(String resourceGroupName, /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -52,7 +52,7 @@ Mono getAsync(String resourceGroupName, String networkManager /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -69,7 +69,7 @@ Response getWithResponse(String resourceGroupName, String net /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -85,7 +85,7 @@ StaticMemberInner get(String resourceGroupName, String networkManagerName, Strin /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -102,7 +102,7 @@ Mono> createOrUpdateWithResponseAsync(String resourc /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -119,7 +119,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String net /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -137,7 +137,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -154,7 +154,7 @@ StaticMemberInner createOrUpdate(String resourceGroupName, String networkManager /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -170,7 +170,7 @@ Mono> deleteWithResponseAsync(String resourceGroupName, String ne /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -186,7 +186,7 @@ Mono deleteAsync(String resourceGroupName, String networkManagerName, Stri /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -203,7 +203,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -217,7 +217,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -228,7 +228,7 @@ Response deleteWithResponse(String resourceGroupName, String networkManage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedFlux}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName, String networkGroupName, @@ -237,13 +237,13 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedFlux}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -252,13 +252,13 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedIterable}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName, String networkGroupName); @@ -266,7 +266,7 @@ PagedFlux listAsync(String resourceGroupName, String networkM /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -278,7 +278,7 @@ PagedFlux listAsync(String resourceGroupName, String networkM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedIterable}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkManagerName, String networkGroupName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubnetsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubnetsClient.java index 29fd96b27ef9..3bb2571301c3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubnetsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubnetsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,288 +25,328 @@ */ public interface SubnetsClient { /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified subnet by virtual network and resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String subnetName); + Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String subnetName, String expand); /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified subnet by virtual network and resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String subnetName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String virtualNetworkName, String subnetName); /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified subnet by virtual network and resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String subnetName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, + String expand, Context context); /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified subnet by virtual network and resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String subnetName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName); /** - * Deletes the specified subnet. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return subnet in a virtual network resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters); /** - * Deletes the specified subnet. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName, String subnetName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters); /** - * Deletes the specified subnet. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param context The context to associate with this operation. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters); /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param expand Expands referenced resources. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String subnetName, String expand); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context); /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group on successful completion of {@link Mono}. + * @return subnet in a virtual network resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String virtualNetworkName, String subnetName); + Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters); /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group along with {@link Response}. + * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, - String expand, Context context); + SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters); /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group. + * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName); + SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters, Context context); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String subnetName); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String subnetName); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String subnetName); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String subnetName, Context context); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters); + Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters); + void delete(String resourceGroupName, String virtualNetworkName, String subnetName); /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters, Context context); + void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context); + + /** + * Gets all subnets in a virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String virtualNetworkName); + + /** + * Gets all subnets in a virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String virtualNetworkName); + + /** + * Gets all subnets in a virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String virtualNetworkName, Context context); /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -324,7 +364,7 @@ Mono>> prepareNetworkPoliciesWithResponseAsync(String /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -342,7 +382,7 @@ PollerFlux, Void> beginPrepareNetworkPoliciesAsync(String resou /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -359,7 +399,7 @@ SyncPoller, Void> beginPrepareNetworkPolicies(String resourceGr /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -377,7 +417,7 @@ SyncPoller, Void> beginPrepareNetworkPolicies(String resourceGr /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -394,7 +434,7 @@ Mono prepareNetworkPoliciesAsync(String resourceGroupName, String virtualN /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -410,7 +450,7 @@ void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -427,7 +467,7 @@ void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -445,7 +485,7 @@ Mono>> unprepareNetworkPoliciesWithResponseAsync(Strin /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -463,7 +503,7 @@ PollerFlux, Void> beginUnprepareNetworkPoliciesAsync(String res /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -481,7 +521,7 @@ SyncPoller, Void> beginUnprepareNetworkPolicies(String resource /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -500,7 +540,7 @@ SyncPoller, Void> beginUnprepareNetworkPolicies(String resource /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -517,7 +557,7 @@ Mono unprepareNetworkPoliciesAsync(String resourceGroupName, String virtua /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -533,7 +573,7 @@ void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkNam /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -546,44 +586,4 @@ void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkNam @ServiceMethod(returns = ReturnType.SINGLE) void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context); - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String virtualNetworkName); - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String virtualNetworkName); - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String virtualNetworkName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubscriptionNetworkManagerConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubscriptionNetworkManagerConnectionsClient.java index ad2839ae4185..2863367d9470 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubscriptionNetworkManagerConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/SubscriptionNetworkManagerConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -19,112 +19,112 @@ */ public interface SubscriptionNetworkManagerConnectionsClient { /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this subscription along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> createOrUpdateWithResponseAsync(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters); + Mono> getWithResponseAsync(String networkManagerConnectionName); /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource on successful completion of {@link Mono}. + * @return a specified connection created by this subscription on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters); + Mono getAsync(String networkManagerConnectionName); /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response}. + * @return a specified connection created by this subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters, Context context); + Response getWithResponse(String networkManagerConnectionName, Context context); /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource. + * @return a specified connection created by this subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters); + NetworkManagerConnectionInner get(String networkManagerConnectionName); /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription along with {@link Response} on successful completion - * of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String networkManagerConnectionName); + Mono> createOrUpdateWithResponseAsync(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters); /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription on successful completion of {@link Mono}. + * @return the Network Manager Connection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String networkManagerConnectionName); + Mono createOrUpdateAsync(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters); /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription along with {@link Response}. + * @return the Network Manager Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String networkManagerConnectionName, Context context); + Response createOrUpdateWithResponse(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters, Context context); /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription. + * @return the Network Manager Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - NetworkManagerConnectionInner get(String networkManagerConnectionName); + NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters); /** * Delete specified connection created by this subscription. @@ -185,7 +185,7 @@ NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(Integer top, String skipToken); @@ -195,7 +195,7 @@ NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(); @@ -205,7 +205,8 @@ NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -222,7 +223,8 @@ NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, String skipToken, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/UsagesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/UsagesClient.java index 4af25d373528..ee4e12e7edc8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/UsagesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/UsagesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,7 +18,7 @@ public interface UsagesClient { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -30,7 +30,7 @@ public interface UsagesClient { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -42,7 +42,7 @@ public interface UsagesClient { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VerifierWorkspacesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VerifierWorkspacesClient.java index 5cfb4e4405b7..ff06d7a0bdab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VerifierWorkspacesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VerifierWorkspacesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,77 +23,12 @@ * An instance of this class provides access to all the operations defined in VerifierWorkspacesClient. */ public interface VerifierWorkspacesClient { - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue); - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String networkManagerName); - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName); - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue, Context context); - /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -106,9 +41,9 @@ Mono> getWithResponseAsync(String resourceGroup /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -120,9 +55,9 @@ Mono> getWithResponseAsync(String resourceGroup /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -136,9 +71,9 @@ Response getWithResponse(String resourceGroupName, Strin /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -150,9 +85,9 @@ Response getWithResponse(String resourceGroupName, Strin /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -168,9 +103,9 @@ Mono> createWithResponseAsync(String resourceGr /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -184,9 +119,9 @@ Mono createAsync(String resourceGroupName, String networ /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -203,9 +138,9 @@ Response createWithResponse(String resourceGroupName, St /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -219,9 +154,9 @@ VerifierWorkspaceInner create(String resourceGroupName, String networkManagerNam /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Verifier Workspace object to create/update. @@ -237,9 +172,9 @@ Mono> updateWithResponseAsync(String resourceGr /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -251,9 +186,9 @@ Mono> updateWithResponseAsync(String resourceGr /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Verifier Workspace object to create/update. @@ -270,9 +205,9 @@ Response updateWithResponse(String resourceGroupName, St /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -284,9 +219,9 @@ Response updateWithResponse(String resourceGroupName, St /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,9 +236,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -318,9 +253,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -333,9 +268,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -348,9 +283,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -366,9 +301,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -382,9 +317,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -396,9 +331,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -409,9 +344,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -422,4 +357,69 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String networkManagerName, String workspaceName, String ifMatch, Context context); + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue); + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String networkManagerName); + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName); + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VipSwapsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VipSwapsClient.java index c920d9dc1366..766ce5dd3653 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VipSwapsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VipSwapsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,7 +25,7 @@ public interface VipSwapsClient { * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -40,7 +40,7 @@ public interface VipSwapsClient { * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -55,7 +55,7 @@ public interface VipSwapsClient { * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +71,7 @@ public interface VipSwapsClient { * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -84,7 +84,7 @@ public interface VipSwapsClient { /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -100,7 +100,7 @@ Mono>> createWithResponseAsync(String groupName, Strin /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -116,7 +116,7 @@ PollerFlux, Void> beginCreateAsync(String groupName, String res /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -131,7 +131,7 @@ PollerFlux, Void> beginCreateAsync(String groupName, String res /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -148,7 +148,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -163,7 +163,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -177,7 +177,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -193,7 +193,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -208,7 +208,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -223,7 +223,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -239,7 +239,7 @@ SyncPoller, Void> beginCreate(String groupName, String resource * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSitesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSitesClient.java index 8d4dc4875f64..de359f16581b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSitesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSitesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -22,114 +22,13 @@ * An instance of this class provides access to all the operations defined in VirtualApplianceSitesClient. */ public interface VirtualApplianceSitesClient { - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String siteName); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkVirtualApplianceName, - String siteName); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - String siteName); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - String siteName, Context context); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName); - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName, Context context); - /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -143,9 +42,10 @@ Mono> getWithResponseAsync(String resourceGr /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -158,9 +58,10 @@ Mono getAsync(String resourceGroupName, String networ /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -174,9 +75,10 @@ Response getWithResponse(String resourceGroupName, St /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -188,9 +90,10 @@ Response getWithResponse(String resourceGroupName, St /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -204,9 +107,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -221,9 +125,10 @@ PollerFlux, VirtualApplianceSiteInner> beg /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -238,9 +143,10 @@ SyncPoller, VirtualApplianceSiteInner> beg /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,9 +162,10 @@ SyncPoller, VirtualApplianceSiteInner> beg /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -272,9 +179,10 @@ Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -288,9 +196,10 @@ VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String networ /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,16 +211,124 @@ VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String networ VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, String siteName, VirtualApplianceSiteInner parameters, Context context); + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String siteName); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkVirtualApplianceName, + String siteName); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, + String siteName); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, + String siteName, Context context); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName); + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName, Context context); + /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String networkVirtualApplianceName); @@ -319,13 +336,12 @@ VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String networ /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkVirtualApplianceName); @@ -333,14 +349,13 @@ VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String networ /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String networkVirtualApplianceName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSkusClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSkusClient.java index 62df3e644f3c..55780ebe43b1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSkusClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSkusClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -17,41 +17,6 @@ * An instance of this class provides access to all the operations defined in VirtualApplianceSkusClient. */ public interface VirtualApplianceSkusClient { - /** - * List all SKUs available for a virtual appliance. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * List all SKUs available for a virtual appliance. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List all SKUs available for a virtual appliance. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - /** * Retrieves a single available sku for network virtual appliance. * @@ -101,4 +66,38 @@ public interface VirtualApplianceSkusClient { */ @ServiceMethod(returns = ReturnType.SINGLE) NetworkVirtualApplianceSkuInner get(String skuName); + + /** + * List all SKUs available for a virtual appliance. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * List all SKUs available for a virtual appliance. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List all SKUs available for a virtual appliance. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubBgpConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubBgpConnectionsClient.java index 61682012272b..32735ebdc469 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubBgpConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubBgpConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -28,7 +28,7 @@ public interface VirtualHubBgpConnectionsClient { /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +43,7 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -57,7 +57,7 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -73,7 +73,7 @@ Response getWithResponse(String resourceGroupName, String vi /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,7 +87,7 @@ Response getWithResponse(String resourceGroupName, String vi /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -103,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -119,7 +119,7 @@ PollerFlux, BgpConnectionInner> beginCreateOrUpda /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -135,7 +135,7 @@ SyncPoller, BgpConnectionInner> beginCreateOrUpda /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -152,7 +152,7 @@ SyncPoller, BgpConnectionInner> beginCreateOrUpda /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -168,7 +168,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String vi /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -184,7 +184,7 @@ BgpConnectionInner createOrUpdate(String resourceGroupName, String virtualHubNam /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -201,7 +201,7 @@ BgpConnectionInner createOrUpdate(String resourceGroupName, String virtualHubNam /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,7 +216,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,7 +231,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -246,7 +246,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -262,7 +262,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -276,7 +276,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -289,7 +289,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -303,7 +303,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -316,7 +316,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -329,7 +329,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,14 +343,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> listLearnedRoutesWithResponseAsync(String resourceGroupName, String hubName, @@ -359,13 +358,13 @@ Mono>> listLearnedRoutesWithResponseAsync(String resou /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux>>, Map>> @@ -374,13 +373,13 @@ Mono>> listLearnedRoutesWithResponseAsync(String resou /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>>, Map>> @@ -389,14 +388,14 @@ Mono>> listLearnedRoutesWithResponseAsync(String resou /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>>, Map>> @@ -405,13 +404,13 @@ Mono>> listLearnedRoutesWithResponseAsync(String resou /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> listLearnedRoutesAsync(String resourceGroupName, String hubName, @@ -420,13 +419,13 @@ Mono>> listLearnedRoutesAsync(String resourceGroupNa /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) Map> listLearnedRoutes(String resourceGroupName, String hubName, String connectionName); @@ -434,14 +433,14 @@ Mono>> listLearnedRoutesAsync(String resourceGroupNa /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) Map> listLearnedRoutes(String resourceGroupName, String hubName, String connectionName, @@ -450,14 +449,13 @@ Map> listLearnedRoutes(String resourceGroupName, String /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> listAdvertisedRoutesWithResponseAsync(String resourceGroupName, String hubName, @@ -466,13 +464,13 @@ Mono>> listAdvertisedRoutesWithResponseAsync(String re /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux>>, Map>> @@ -481,13 +479,13 @@ Mono>> listAdvertisedRoutesWithResponseAsync(String re /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>>, Map>> @@ -496,14 +494,14 @@ Mono>> listAdvertisedRoutesWithResponseAsync(String re /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>>, Map>> @@ -512,13 +510,13 @@ Mono>> listAdvertisedRoutesWithResponseAsync(String re /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> listAdvertisedRoutesAsync(String resourceGroupName, String hubName, @@ -527,13 +525,13 @@ Mono>> listAdvertisedRoutesAsync(String resourceGrou /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) Map> listAdvertisedRoutes(String resourceGroupName, String hubName, String connectionName); @@ -541,14 +539,14 @@ Mono>> listAdvertisedRoutesAsync(String resourceGrou /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) Map> listAdvertisedRoutes(String resourceGroupName, String hubName, String connectionName, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubIpConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubIpConfigurationsClient.java index 2cc0cc3fa3f3..e0e0a79ab1ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubIpConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubIpConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,10 @@ public interface VirtualHubIpConfigurationsClient { /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -40,9 +41,10 @@ Mono> getWithResponseAsync(String resourceGrou /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -54,9 +56,10 @@ Mono> getWithResponseAsync(String resourceGrou /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -70,9 +73,10 @@ Response getWithResponse(String resourceGroupName, Stri /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -85,9 +89,10 @@ Response getWithResponse(String resourceGroupName, Stri * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -102,9 +107,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -119,9 +125,10 @@ PollerFlux, HubIpConfigurationInner> beginCr * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -136,9 +143,10 @@ SyncPoller, HubIpConfigurationInner> beginCr * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -155,9 +163,10 @@ SyncPoller, HubIpConfigurationInner> beginCr * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -172,9 +181,10 @@ Mono createOrUpdateAsync(String resourceGroupName, Stri * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -189,9 +199,10 @@ HubIpConfigurationInner createOrUpdate(String resourceGroupName, String virtualH * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -206,9 +217,10 @@ HubIpConfigurationInner createOrUpdate(String resourceGroupName, String virtualH /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -221,9 +233,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -236,9 +249,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -251,9 +265,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -267,9 +282,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -281,9 +297,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -294,9 +311,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -308,7 +326,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -321,7 +339,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -334,7 +352,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubRouteTableV2SClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubRouteTableV2SClient.java index 47948e28001c..5cfe0af22196 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubRouteTableV2SClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubRouteTableV2SClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,8 +25,8 @@ public interface VirtualHubRouteTableV2SClient { /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -40,8 +40,8 @@ Mono> getWithResponseAsync(String resource /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -54,8 +54,8 @@ Mono> getWithResponseAsync(String resource /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -70,8 +70,8 @@ Response getWithResponse(String resourceGroupName, /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -84,8 +84,8 @@ Response getWithResponse(String resourceGroupName, /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -100,8 +100,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,8 +117,8 @@ PollerFlux, VirtualHubRouteTableV2Inner> /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,8 +134,8 @@ SyncPoller, VirtualHubRouteTableV2Inner> /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -152,8 +152,8 @@ SyncPoller, VirtualHubRouteTableV2Inner> /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,8 +168,8 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -184,8 +184,8 @@ VirtualHubRouteTableV2Inner createOrUpdate(String resourceGroupName, String virt /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -201,8 +201,8 @@ VirtualHubRouteTableV2Inner createOrUpdate(String resourceGroupName, String virt /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -216,8 +216,8 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -231,8 +231,8 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -246,8 +246,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -262,8 +262,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -276,8 +276,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -289,8 +289,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,7 +303,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,7 +317,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -331,7 +331,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubsClient.java index 1ef915baccf8..977adc09cb92 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -35,7 +35,7 @@ public interface VirtualHubsClient /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,7 +49,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,7 +62,7 @@ Mono> getByResourceGroupWithResponseAsync(String resou /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +77,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -90,7 +90,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -105,7 +105,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -120,7 +120,7 @@ PollerFlux, VirtualHubInner> beginCreateOrUpdateAsyn /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +135,7 @@ SyncPoller, VirtualHubInner> beginCreateOrUpdate(Str /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -151,7 +151,7 @@ SyncPoller, VirtualHubInner> beginCreateOrUpdate(Str /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +166,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String virtu /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +181,7 @@ VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHubName, /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -197,7 +197,7 @@ VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHubName, /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -212,7 +212,7 @@ Mono> updateTagsWithResponseAsync(String resourceGroup /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -227,7 +227,7 @@ Mono updateTagsAsync(String resourceGroupName, String virtualHu /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @param context The context to associate with this operation. @@ -243,7 +243,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +257,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -270,7 +270,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -283,7 +283,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -296,7 +296,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -310,7 +310,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -323,7 +323,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -335,7 +335,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,7 +348,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -360,7 +360,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -372,7 +372,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -417,7 +417,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -433,7 +433,7 @@ Mono>> getEffectiveVirtualHubRoutesWithResponseAsync(S /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -450,7 +450,7 @@ Mono>> getEffectiveVirtualHubRoutesWithResponseAsync(S /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -465,7 +465,7 @@ Mono>> getEffectiveVirtualHubRoutesWithResponseAsync(S /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -480,7 +480,7 @@ Mono>> getEffectiveVirtualHubRoutesWithResponseAsync(S /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -498,7 +498,7 @@ Mono>> getEffectiveVirtualHubRoutesWithResponseAsync(S /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,7 +514,7 @@ Mono getEffectiveVirtualHubRoutesAsync(String /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -529,7 +529,7 @@ Mono getEffectiveVirtualHubRoutesAsync(String /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -542,7 +542,7 @@ Mono getEffectiveVirtualHubRoutesAsync(String /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -558,7 +558,7 @@ VirtualHubEffectiveRouteListInner getEffectiveVirtualHubRoutes(String resourceGr /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -574,7 +574,7 @@ Mono>> getInboundRoutesWithResponseAsync(String resour /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,7 +590,7 @@ PollerFlux, EffectiveRouteMapRouteLi /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -606,7 +606,7 @@ SyncPoller, EffectiveRouteMapRouteLi /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -624,7 +624,7 @@ SyncPoller, EffectiveRouteMapRouteLi /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -640,7 +640,7 @@ Mono getInboundRoutesAsync(String resourceGroup /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -655,7 +655,7 @@ EffectiveRouteMapRouteListInner getInboundRoutes(String resourceGroupName, Strin /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -671,7 +671,7 @@ EffectiveRouteMapRouteListInner getInboundRoutes(String resourceGroupName, Strin /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -687,7 +687,7 @@ Mono>> getOutboundRoutesWithResponseAsync(String resou /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,7 +704,7 @@ Mono>> getOutboundRoutesWithResponseAsync(String resou /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -720,7 +720,7 @@ SyncPoller, EffectiveRouteMapRouteLi /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. @@ -738,7 +738,7 @@ SyncPoller, EffectiveRouteMapRouteLi /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -754,7 +754,7 @@ Mono getOutboundRoutesAsync(String resourceGrou /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -769,7 +769,7 @@ EffectiveRouteMapRouteListInner getOutboundRoutes(String resourceGroupName, Stri /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java index b557ef80e185..2fe9415cce2a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,103 +27,10 @@ */ public interface VirtualNetworkAppliancesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkApplianceName); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkApplianceName); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName, - Context context); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkApplianceName); - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkApplianceName, Context context); - /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +45,7 @@ Mono> getByResourceGroupWithResponseAsync /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -152,7 +59,7 @@ Mono getByResourceGroupAsync(String resourceGroupN /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +74,7 @@ Response getByResourceGroupWithResponse(String res /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +87,7 @@ Response getByResourceGroupWithResponse(String res /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,7 +103,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,7 +118,7 @@ PollerFlux, VirtualNetworkApplianceInne /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +133,7 @@ SyncPoller, VirtualNetworkApplianceInne /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -243,7 +150,7 @@ SyncPoller, VirtualNetworkApplianceInne /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,7 +165,7 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +180,7 @@ VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, String vir /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -289,7 +196,7 @@ VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, String vir /** * Updates a virtual network appliance tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,7 +212,7 @@ Mono> updateTagsWithResponseAsync(String /** * Updates a virtual network appliance tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -320,7 +227,7 @@ Mono updateTagsAsync(String resourceGroupName, Str /** * Updates a virtual network appliance tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to update virtual network appliance tags. * @param context The context to associate with this operation. @@ -336,7 +243,7 @@ Response updateTagsWithResponse(String resourceGro /** * Updates a virtual network appliance tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,41 +256,102 @@ VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtual TagsObject parameters); /** - * Gets all virtual network appliances in a subscription. + * Deletes the specified virtual network appliance. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkApplianceName); /** - * Gets all virtual network appliances in a subscription. + * Deletes the specified virtual network appliance. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkApplianceName); /** - * Gets all virtual network appliances in a subscription. + * Deletes the specified virtual network appliance. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName); + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName, + Context context); + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName); + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkApplianceName); + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkApplianceName, Context context); /** * Gets all virtual network appliances in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -395,7 +363,7 @@ VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtual /** * Gets all virtual network appliances in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -407,7 +375,7 @@ VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtual /** * Gets all virtual network appliances in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -416,4 +384,36 @@ VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtual */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all virtual network appliances in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all virtual network appliances in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all virtual network appliances in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayConnectionsClient.java index 2762f4d929da..a19dfdb68d95 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,10 +30,69 @@ */ public interface VirtualNetworkGatewayConnectionsClient extends InnerSupportsGet, InnerSupportsDelete { + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName); + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName); + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String virtualNetworkGatewayConnectionName, Context context); + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualNetworkGatewayConnectionInner getByResourceGroup(String resourceGroupName, + String virtualNetworkGatewayConnectionName); + /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -49,7 +108,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,7 +124,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -81,7 +140,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -98,7 +157,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -113,7 +172,7 @@ Mono createOrUpdateAsync(String resourceGr /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -128,7 +187,7 @@ VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupName, /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -142,68 +201,118 @@ VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupName, String virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnectionInner parameters, Context context); /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group along with {@link Response} on - * successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName); + Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters); /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, VirtualNetworkGatewayConnectionInner> + beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, + TagsObject parameters); /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualNetworkGatewayConnectionInner> + beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters); + + /** + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group along with {@link Response}. + * @return the {@link SyncPoller} for polling of a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualNetworkGatewayConnectionInner> beginUpdateTags( + String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context); + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String virtualNetworkGatewayConnectionName, Context context); + Mono updateTagsAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters); /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayConnectionInner getByResourceGroup(String resourceGroupName, - String virtualNetworkGatewayConnectionName); + VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters); + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context); /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -217,7 +326,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -231,7 +340,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -245,7 +354,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,7 +369,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -273,7 +382,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -285,7 +394,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -296,120 +405,54 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String virtualNetworkGatewayConnectionName, Context context); /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters); - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, VirtualNetworkGatewayConnectionInner> - beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, - TagsObject parameters); - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualNetworkGatewayConnectionInner> - beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters); - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualNetworkGatewayConnectionInner> beginUpdateTags( - String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context); - - /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -426,8 +469,8 @@ Mono>> setSharedKeyWithResponseAsync(String resourceGr * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -443,8 +486,8 @@ PollerFlux, ConnectionSharedKeyInner> begin * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -460,8 +503,8 @@ SyncPoller, ConnectionSharedKeyInner> begin * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -479,8 +522,8 @@ SyncPoller, ConnectionSharedKeyInner> begin * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,8 +539,8 @@ Mono setSharedKeyAsync(String resourceGroupName, * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -513,8 +556,8 @@ ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNe * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -531,8 +574,8 @@ ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNe * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -547,8 +590,8 @@ Mono> getSharedKeyWithResponseAsync(String re * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -562,8 +605,8 @@ Mono getSharedKeyAsync(String resourceGroupName, * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -578,8 +621,8 @@ Response getSharedKeyWithResponse(String resourceGroup * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -588,63 +631,19 @@ Response getSharedKeyWithResponse(String resourceGroup @ServiceMethod(returns = ReturnType.SINGLE) ConnectionSharedKeyInner getSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName); - /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> resetSharedKeyWithResponseAsync(String resourceGroupName, @@ -655,14 +654,14 @@ Mono>> resetSharedKeyWithResponseAsync(String resource * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the virtual network connection reset shared key. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, ConnectionResetSharedKeyInner> beginResetSharedKeyAsync( @@ -673,14 +672,14 @@ PollerFlux, ConnectionResetSharedKeyIn * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the virtual network connection reset shared key. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConnectionResetSharedKeyInner> beginResetSharedKey( @@ -691,15 +690,15 @@ SyncPoller, ConnectionResetSharedKeyIn * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the virtual network connection reset shared key. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConnectionResetSharedKeyInner> beginResetSharedKey( @@ -711,14 +710,14 @@ SyncPoller, ConnectionResetSharedKeyIn * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetSharedKeyAsync(String resourceGroupName, @@ -729,14 +728,14 @@ Mono resetSharedKeyAsync(String resourceGroupName * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, @@ -747,15 +746,15 @@ ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, String vi * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, @@ -764,7 +763,7 @@ ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, String vi /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -780,7 +779,7 @@ Mono>> startPacketCaptureWithResponseAsync(String reso /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -796,7 +795,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -810,7 +809,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -824,7 +823,7 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -841,7 +840,7 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -857,7 +856,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -870,7 +869,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -883,7 +882,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -900,8 +899,8 @@ String startPacketCapture(String resourceGroupName, String virtualNetworkGateway /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -916,8 +915,8 @@ Mono>> stopPacketCaptureWithResponseAsync(String resou /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -932,8 +931,8 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -948,8 +947,8 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -965,8 +964,8 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -981,8 +980,8 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String virtualNetw /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -997,8 +996,8 @@ String stopPacketCapture(String resourceGroupName, String virtualNetworkGatewayC /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -1014,8 +1013,8 @@ String stopPacketCapture(String resourceGroupName, String virtualNetworkGatewayC /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1028,8 +1027,8 @@ Mono>> getIkeSasWithResponseAsync(String resourceGroup /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1042,8 +1041,8 @@ PollerFlux, String> beginGetIkeSasAsync(String resourceGroupN /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1056,8 +1055,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1071,8 +1070,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1084,8 +1083,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1097,8 +1096,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1111,8 +1110,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1125,8 +1124,8 @@ Mono>> resetConnectionWithResponseAsync(String resourc /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1139,8 +1138,8 @@ PollerFlux, Void> beginResetConnectionAsync(String resourceGrou /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1153,8 +1152,8 @@ SyncPoller, Void> beginResetConnection(String resourceGroupName /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1168,8 +1167,8 @@ SyncPoller, Void> beginResetConnection(String resourceGroupName /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1181,8 +1180,8 @@ SyncPoller, Void> beginResetConnection(String resourceGroupName /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1193,8 +1192,8 @@ SyncPoller, Void> beginResetConnection(String resourceGroupName /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayNatRulesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayNatRulesClient.java index fda4f3d31e19..d50f1571414c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayNatRulesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayNatRulesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -25,9 +25,10 @@ public interface VirtualNetworkGatewayNatRulesClient { /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -41,9 +42,10 @@ Mono> getWithResponseAsync(String re /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -56,9 +58,10 @@ Mono getAsync(String resourceGroupName, Strin /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -72,9 +75,10 @@ Response getWithResponse(String resourceGroup /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -87,9 +91,10 @@ VirtualNetworkGatewayNatRuleInner get(String resourceGroupName, String virtualNe /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -104,9 +109,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -121,9 +127,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,9 +145,10 @@ SyncPoller, VirtualNetworkGatewayN /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -156,9 +164,10 @@ SyncPoller, VirtualNetworkGatewayN /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -172,9 +181,10 @@ Mono createOrUpdateAsync(String resourceGroup /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -188,9 +198,10 @@ VirtualNetworkGatewayNatRuleInner createOrUpdate(String resourceGroupName, Strin /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -205,9 +216,10 @@ VirtualNetworkGatewayNatRuleInner createOrUpdate(String resourceGroupName, Strin /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -220,9 +232,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -235,9 +248,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -250,9 +264,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -266,9 +281,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -280,9 +296,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -293,9 +310,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -307,8 +325,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -322,8 +340,8 @@ PagedFlux listByVirtualNetworkGatewayAsync(St /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -337,8 +355,8 @@ PagedIterable listByVirtualNetworkGateway(Str /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewaysClient.java index 5ad92404a13a..87c7c3c70eee 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -44,10 +44,67 @@ */ public interface VirtualNetworkGatewaysClient extends InnerSupportsGet, InnerSupportsDelete { + /** + * Gets the specified virtual network gateway by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway by resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName); + + /** + * Gets the specified virtual network gateway by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway by resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, + String virtualNetworkGatewayName); + + /** + * Gets the specified virtual network gateway by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway by resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String virtualNetworkGatewayName, Context context); + + /** + * Gets the specified virtual network gateway by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway by resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualNetworkGatewayInner getByResourceGroup(String resourceGroupName, String virtualNetworkGatewayName); + /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,7 +120,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -78,7 +135,7 @@ PollerFlux, VirtualNetworkGatewayInner> b /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -93,7 +150,7 @@ SyncPoller, VirtualNetworkGatewayInner> b /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. @@ -110,7 +167,7 @@ SyncPoller, VirtualNetworkGatewayInner> b /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -125,7 +182,7 @@ Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +197,7 @@ VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtu /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. @@ -154,267 +211,210 @@ VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtu VirtualNetworkGatewayInner parameters, Context context); /** - * Gets the specified virtual network gateway by resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName); - - /** - * Gets the specified virtual network gateway by resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, - String virtualNetworkGatewayName); - - /** - * Gets the specified virtual network gateway by resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String virtualNetworkGatewayName, Context context); - - /** - * Gets the specified virtual network gateway by resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayInner getByResourceGroup(String resourceGroupName, String virtualNetworkGatewayName); - - /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName); + Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName, TagsObject parameters); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkGatewayName); + PollerFlux, VirtualNetworkGatewayInner> + beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName); + SyncPoller, VirtualNetworkGatewayInner> + beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName, - Context context); + SyncPoller, VirtualNetworkGatewayInner> beginUpdateTags( + String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName); + Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkGatewayName); + VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters); /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkGatewayName, Context context); + VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters, Context context); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, TagsObject parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, VirtualNetworkGatewayInner> - beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkGatewayName); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualNetworkGatewayInner> - beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualNetworkGatewayInner> beginUpdateTags( - String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName, + Context context); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters); + Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters); + void delete(String resourceGroupName, String virtualNetworkGatewayName); /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters, Context context); + void delete(String resourceGroupName, String virtualNetworkGatewayName, Context context); /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -426,7 +426,7 @@ VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNe /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -438,7 +438,7 @@ VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNe /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -451,7 +451,7 @@ VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNe /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -465,7 +465,7 @@ PagedFlux listConnectionsAsync(S /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -479,7 +479,7 @@ PagedIterable listConnections(St /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -494,15 +494,14 @@ PagedIterable listConnections(St /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> resetWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, @@ -511,14 +510,14 @@ Mono>> resetWithResponseAsync(String resourceGroupName /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VirtualNetworkGatewayInner> @@ -527,12 +526,12 @@ Mono>> resetWithResponseAsync(String resourceGroupName /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VirtualNetworkGatewayInner> @@ -541,12 +540,12 @@ Mono>> resetWithResponseAsync(String resourceGroupName /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualNetworkGatewayInner> beginReset(String resourceGroupName, @@ -555,7 +554,7 @@ SyncPoller, VirtualNetworkGatewayInner> b /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -563,7 +562,7 @@ SyncPoller, VirtualNetworkGatewayInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualNetworkGatewayInner> beginReset(String resourceGroupName, @@ -572,14 +571,14 @@ SyncPoller, VirtualNetworkGatewayInner> b /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetAsync(String resourceGroupName, String virtualNetworkGatewayName, @@ -588,12 +587,12 @@ Mono resetAsync(String resourceGroupName, String vir /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetAsync(String resourceGroupName, String virtualNetworkGatewayName); @@ -601,12 +600,12 @@ Mono resetAsync(String resourceGroupName, String vir /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VirtualNetworkGatewayInner reset(String resourceGroupName, String virtualNetworkGatewayName); @@ -614,7 +613,7 @@ Mono resetAsync(String resourceGroupName, String vir /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -622,7 +621,7 @@ Mono resetAsync(String resourceGroupName, String vir * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VirtualNetworkGatewayInner reset(String resourceGroupName, String virtualNetworkGatewayName, String gatewayVip, @@ -631,7 +630,7 @@ VirtualNetworkGatewayInner reset(String resourceGroupName, String virtualNetwork /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -645,7 +644,7 @@ Mono>> resetVpnClientSharedKeyWithResponseAsync(String /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -659,7 +658,7 @@ PollerFlux, Void> beginResetVpnClientSharedKeyAsync(String reso /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -673,7 +672,7 @@ SyncPoller, Void> beginResetVpnClientSharedKey(String resourceG /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -688,7 +687,7 @@ SyncPoller, Void> beginResetVpnClientSharedKey(String resourceG /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -701,7 +700,7 @@ SyncPoller, Void> beginResetVpnClientSharedKey(String resourceG /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -713,7 +712,7 @@ SyncPoller, Void> beginResetVpnClientSharedKey(String resourceG /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -726,7 +725,7 @@ SyncPoller, Void> beginResetVpnClientSharedKey(String resourceG /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -741,7 +740,7 @@ Mono>> generatevpnclientpackageWithResponseAsync(Strin /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -756,7 +755,7 @@ PollerFlux, String> beginGeneratevpnclientpackageAsync(String /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -771,7 +770,7 @@ SyncPoller, String> beginGeneratevpnclientpackage(String reso /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -787,7 +786,7 @@ SyncPoller, String> beginGeneratevpnclientpackage(String reso /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -802,7 +801,7 @@ Mono generatevpnclientpackageAsync(String resourceGroupName, String virt /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -817,7 +816,7 @@ String generatevpnclientpackage(String resourceGroupName, String virtualNetworkG /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -834,7 +833,7 @@ String generatevpnclientpackage(String resourceGroupName, String virtualNetworkG * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -850,7 +849,7 @@ Mono>> generateVpnProfileWithResponseAsync(String reso * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -866,7 +865,7 @@ PollerFlux, String> beginGenerateVpnProfileAsync(String resou * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -882,7 +881,7 @@ SyncPoller, String> beginGenerateVpnProfile(String resourceGr * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -899,7 +898,7 @@ SyncPoller, String> beginGenerateVpnProfile(String resourceGr * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -915,7 +914,7 @@ Mono generateVpnProfileAsync(String resourceGroupName, String virtualNet * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -931,7 +930,7 @@ String generateVpnProfile(String resourceGroupName, String virtualNetworkGateway * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -948,7 +947,7 @@ String generateVpnProfile(String resourceGroupName, String virtualNetworkGateway * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -964,7 +963,7 @@ Mono>> getVpnProfilePackageUrlWithResponseAsync(String * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -980,7 +979,7 @@ PollerFlux, String> beginGetVpnProfilePackageUrlAsync(String * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -996,7 +995,7 @@ SyncPoller, String> beginGetVpnProfilePackageUrl(String resou * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1013,7 +1012,7 @@ SyncPoller, String> beginGetVpnProfilePackageUrl(String resou * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1028,7 +1027,7 @@ SyncPoller, String> beginGetVpnProfilePackageUrl(String resou * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1042,7 +1041,7 @@ SyncPoller, String> beginGetVpnProfilePackageUrl(String resou * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1056,14 +1055,13 @@ SyncPoller, String> beginGetVpnProfilePackageUrl(String resou /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call along with {@link Response} on successful completion - * of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getBgpPeerStatusWithResponseAsync(String resourceGroupName, @@ -1072,13 +1070,13 @@ Mono>> getBgpPeerStatusWithResponseAsync(String resour /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list BGP peer status API service call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, BgpPeerStatusListResultInner> @@ -1087,12 +1085,12 @@ Mono>> getBgpPeerStatusWithResponseAsync(String resour /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list BGP peer status API service call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, BgpPeerStatusListResultInner> @@ -1101,12 +1099,12 @@ Mono>> getBgpPeerStatusWithResponseAsync(String resour /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list BGP peer status API service call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BgpPeerStatusListResultInner> @@ -1115,14 +1113,14 @@ Mono>> getBgpPeerStatusWithResponseAsync(String resour /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list BGP peer status API service call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BgpPeerStatusListResultInner> @@ -1131,13 +1129,13 @@ Mono>> getBgpPeerStatusWithResponseAsync(String resour /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getBgpPeerStatusAsync(String resourceGroupName, String virtualNetworkGatewayName, @@ -1146,12 +1144,12 @@ Mono getBgpPeerStatusAsync(String resourceGroupNam /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getBgpPeerStatusAsync(String resourceGroupName, @@ -1160,12 +1158,12 @@ Mono getBgpPeerStatusAsync(String resourceGroupNam /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, String virtualNetworkGatewayName); @@ -1173,14 +1171,14 @@ Mono getBgpPeerStatusAsync(String resourceGroupNam /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, String virtualNetworkGatewayName, @@ -1189,7 +1187,7 @@ BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, String v /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1204,7 +1202,7 @@ Mono> supportedVpnDevicesWithResponseAsync(String resourceGroup /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1217,7 +1215,7 @@ Mono> supportedVpnDevicesWithResponseAsync(String resourceGroup /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1232,7 +1230,7 @@ Response supportedVpnDevicesWithResponse(String resourceGroupName, Strin /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1303,13 +1301,12 @@ Response listRadiusSecretsWithResponse(String r * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getLearnedRoutesWithResponseAsync(String resourceGroupName, @@ -1319,12 +1316,12 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayRouteListResultInner> @@ -1334,12 +1331,12 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteListResultInner> @@ -1349,13 +1346,13 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteListResultInner> @@ -1365,12 +1362,12 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getLearnedRoutesAsync(String resourceGroupName, String virtualNetworkGatewayName); @@ -1379,12 +1376,12 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, String virtualNetworkGatewayName); @@ -1393,13 +1390,13 @@ Mono>> getLearnedRoutesWithResponseAsync(String resour * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -1408,14 +1405,13 @@ GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, String vi /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getAdvertisedRoutesWithResponseAsync(String resourceGroupName, @@ -1424,13 +1420,13 @@ Mono>> getAdvertisedRoutesWithResponseAsync(String res /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayRouteListResultInner> @@ -1439,13 +1435,13 @@ Mono>> getAdvertisedRoutesWithResponseAsync(String res /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteListResultInner> @@ -1454,14 +1450,14 @@ Mono>> getAdvertisedRoutesWithResponseAsync(String res /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteListResultInner> beginGetAdvertisedRoutes( @@ -1470,13 +1466,13 @@ SyncPoller, GatewayRouteListResultInner> /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getAdvertisedRoutesAsync(String resourceGroupName, @@ -1485,13 +1481,13 @@ Mono getAdvertisedRoutesAsync(String resourceGroupN /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -1500,14 +1496,14 @@ GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -1517,13 +1513,13 @@ GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getResiliencyInformationWithResponseAsync(String resourceGroupName, @@ -1533,13 +1529,13 @@ Mono>> getResiliencyInformationWithResponseAsync(Strin * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Resiliency Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayResiliencyInformationInner> @@ -1550,12 +1546,12 @@ Mono>> getResiliencyInformationWithResponseAsync(Strin * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Resiliency Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayResiliencyInformationInner> @@ -1565,12 +1561,12 @@ Mono>> getResiliencyInformationWithResponseAsync(Strin * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Resiliency Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayResiliencyInformationInner> @@ -1580,14 +1576,14 @@ Mono>> getResiliencyInformationWithResponseAsync(Strin * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Resiliency Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayResiliencyInformationInner> @@ -1598,13 +1594,13 @@ Mono>> getResiliencyInformationWithResponseAsync(Strin * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getResiliencyInformationAsync(String resourceGroupName, @@ -1614,12 +1610,12 @@ Mono getResiliencyInformationAsync(String res * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getResiliencyInformationAsync(String resourceGroupName, @@ -1629,12 +1625,12 @@ Mono getResiliencyInformationAsync(String res * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupName, @@ -1644,14 +1640,14 @@ GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupN * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupName, @@ -1660,13 +1656,13 @@ GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupN /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getRoutesInformationWithResponseAsync(String resourceGroupName, @@ -1675,13 +1671,13 @@ Mono>> getRoutesInformationWithResponseAsync(String re /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Route Sets Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayRouteSetsInformationInner> @@ -1691,12 +1687,12 @@ Mono>> getRoutesInformationWithResponseAsync(String re /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Route Sets Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, GatewayRouteSetsInformationInner> @@ -1705,12 +1701,12 @@ Mono>> getRoutesInformationWithResponseAsync(String re /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Route Sets Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteSetsInformationInner> @@ -1719,14 +1715,14 @@ Mono>> getRoutesInformationWithResponseAsync(String re /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Route Sets Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, GatewayRouteSetsInformationInner> @@ -1736,13 +1732,13 @@ Mono>> getRoutesInformationWithResponseAsync(String re /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getRoutesInformationAsync(String resourceGroupName, @@ -1751,12 +1747,12 @@ Mono getRoutesInformationAsync(String resource /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getRoutesInformationAsync(String resourceGroupName, @@ -1765,12 +1761,12 @@ Mono getRoutesInformationAsync(String resource /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteSetsInformationInner getRoutesInformation(String resourceGroupName, String virtualNetworkGatewayName); @@ -1778,14 +1774,14 @@ Mono getRoutesInformationAsync(String resource /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) GatewayRouteSetsInformationInner getRoutesInformation(String resourceGroupName, String virtualNetworkGatewayName, @@ -1795,15 +1791,14 @@ GatewayRouteSetsInformationInner getRoutesInformation(String resourceGroupName, * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> setVpnclientIpsecParametersWithResponseAsync(String resourceGroupName, @@ -1813,14 +1808,14 @@ Mono>> setVpnclientIpsecParametersWithResponseAsync(St * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnClientIPsecParametersInner> @@ -1831,14 +1826,14 @@ Mono>> setVpnclientIpsecParametersWithResponseAsync(St * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnClientIPsecParametersInner> @@ -1849,7 +1844,7 @@ Mono>> setVpnclientIpsecParametersWithResponseAsync(St * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -1857,7 +1852,7 @@ Mono>> setVpnclientIpsecParametersWithResponseAsync(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnClientIPsecParametersInner> @@ -1868,15 +1863,14 @@ Mono>> setVpnclientIpsecParametersWithResponseAsync(St * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono setVpnclientIpsecParametersAsync(String resourceGroupName, @@ -1886,14 +1880,14 @@ Mono setVpnclientIpsecParametersAsync(String reso * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, @@ -1903,7 +1897,7 @@ VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupNa * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -1911,7 +1905,7 @@ VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, @@ -1921,8 +1915,8 @@ VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupNa * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1937,8 +1931,8 @@ Mono>> getVpnclientIpsecParametersWithResponseAsync(St * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1952,8 +1946,8 @@ Mono>> getVpnclientIpsecParametersWithResponseAsync(St * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1967,8 +1961,8 @@ Mono>> getVpnclientIpsecParametersWithResponseAsync(St * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1983,8 +1977,8 @@ Mono>> getVpnclientIpsecParametersWithResponseAsync(St * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1999,8 +1993,8 @@ Mono getVpnclientIpsecParametersAsync(String reso * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2014,8 +2008,8 @@ VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupNa * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2026,76 +2020,10 @@ VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupNa VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, Context context); - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters); - - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono vpnDeviceConfigurationScriptAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, - VpnDeviceScriptParameters parameters); - - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response vpnDeviceConfigurationScriptWithResponse(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context); - - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - String vpnDeviceConfigurationScript(String resourceGroupName, String virtualNetworkGatewayConnectionName, - VpnDeviceScriptParameters parameters); - /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2110,7 +2038,7 @@ Mono>> startPacketCaptureWithResponseAsync(String reso /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2125,7 +2053,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -2139,7 +2067,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -2153,7 +2081,7 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -2169,7 +2097,7 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2184,7 +2112,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -2197,7 +2125,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. @@ -2210,7 +2138,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String virtualNet /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -2226,7 +2154,7 @@ String startPacketCapture(String resourceGroupName, String virtualNetworkGateway /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2241,7 +2169,7 @@ Mono>> stopPacketCaptureWithResponseAsync(String resou /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2256,7 +2184,7 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2271,7 +2199,7 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -2287,7 +2215,7 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2302,7 +2230,7 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String virtualNetw /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2317,7 +2245,7 @@ String stopPacketCapture(String resourceGroupName, String virtualNetworkGatewayN /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -2334,14 +2262,14 @@ String stopPacketCapture(String resourceGroupName, String virtualNetworkGatewayN * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getFailoverAllTestDetailsWithResponseAsync(String resourceGroupName, @@ -2351,14 +2279,14 @@ Mono>> getFailoverAllTestDetailsWithResponseAsync(Stri * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover All Test Details. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux>, List> @@ -2369,14 +2297,14 @@ Mono>> getFailoverAllTestDetailsWithResponseAsync(Stri * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover All Test Details. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>, List> @@ -2387,7 +2315,7 @@ Mono>> getFailoverAllTestDetailsWithResponseAsync(Stri * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -2395,7 +2323,7 @@ Mono>> getFailoverAllTestDetailsWithResponseAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover All Test Details. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>, List> @@ -2406,14 +2334,14 @@ Mono>> getFailoverAllTestDetailsWithResponseAsync(Stri * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getFailoverAllTestDetailsAsync(String resourceGroupName, @@ -2423,14 +2351,14 @@ Mono> getFailoverAllTestDetailsAsync( * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) List getFailoverAllTestDetails(String resourceGroupName, @@ -2440,7 +2368,7 @@ List getFailoverAllTestDetails(String reso * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -2448,7 +2376,7 @@ List getFailoverAllTestDetails(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) List getFailoverAllTestDetails(String resourceGroupName, @@ -2458,15 +2386,14 @@ List getFailoverAllTestDetails(String reso * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> getFailoverSingleTestDetailsWithResponseAsync(String resourceGroupName, @@ -2476,14 +2403,14 @@ Mono>> getFailoverSingleTestDetailsWithResponseAsync(S * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover Single Test Details Object. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux>, List> @@ -2494,14 +2421,14 @@ Mono>> getFailoverSingleTestDetailsWithResponseAsync(S * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover Single Test Details Object. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>, List> @@ -2512,7 +2439,7 @@ Mono>> getFailoverSingleTestDetailsWithResponseAsync(S * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -2520,7 +2447,7 @@ Mono>> getFailoverSingleTestDetailsWithResponseAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover Single Test Details Object. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller>, List> @@ -2531,14 +2458,14 @@ Mono>> getFailoverSingleTestDetailsWithResponseAsync(S * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getFailoverSingleTestDetailsAsync(String resourceGroupName, @@ -2548,14 +2475,14 @@ Mono> getFailoverSingleTestDeta * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) List getFailoverSingleTestDetails(String resourceGroupName, @@ -2565,7 +2492,7 @@ List getFailoverSingleTestDetails(St * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -2573,7 +2500,7 @@ List getFailoverSingleTestDetails(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) List getFailoverSingleTestDetails(String resourceGroupName, @@ -2582,7 +2509,7 @@ List getFailoverSingleTestDetails(St /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2597,7 +2524,7 @@ Mono>> startExpressRouteSiteFailoverSimulationWithResp /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2612,7 +2539,7 @@ PollerFlux, String> beginStartExpressRouteSiteFailoverSimulat /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2627,7 +2554,7 @@ SyncPoller, String> beginStartExpressRouteSiteFailoverSimulat /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -2643,7 +2570,7 @@ SyncPoller, String> beginStartExpressRouteSiteFailoverSimulat /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2658,7 +2585,7 @@ Mono startExpressRouteSiteFailoverSimulationAsync(String resourceGroupNa /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2673,7 +2600,7 @@ String startExpressRouteSiteFailoverSimulation(String resourceGroupName, String /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -2689,7 +2616,7 @@ String startExpressRouteSiteFailoverSimulation(String resourceGroupName, String /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2705,7 +2632,7 @@ Mono>> stopExpressRouteSiteFailoverSimulationWithRespo /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2721,7 +2648,7 @@ PollerFlux, String> beginStopExpressRouteSiteFailoverSimulati /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2737,7 +2664,7 @@ SyncPoller, String> beginStopExpressRouteSiteFailoverSimulati /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2754,7 +2681,7 @@ SyncPoller, String> beginStopExpressRouteSiteFailoverSimulati /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2770,7 +2697,7 @@ Mono stopExpressRouteSiteFailoverSimulationAsync(String resourceGroupNam /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2786,7 +2713,7 @@ String stopExpressRouteSiteFailoverSimulation(String resourceGroupName, String v /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -2804,7 +2731,7 @@ String stopExpressRouteSiteFailoverSimulation(String resourceGroupName, String v * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2820,7 +2747,7 @@ Mono>> getVpnclientConnectionHealthWithResponseAsync(S * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2836,7 +2763,7 @@ Mono>> getVpnclientConnectionHealthWithResponseAsync(S * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2852,7 +2779,7 @@ Mono>> getVpnclientConnectionHealthWithResponseAsync(S * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2869,7 +2796,7 @@ Mono>> getVpnclientConnectionHealthWithResponseAsync(S * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2885,7 +2812,7 @@ Mono getVpnclientConnectionHealt * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -2901,7 +2828,7 @@ VpnClientConnectionHealthDetailListResultInner getVpnclientConnectionHealth(Stri * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2917,7 +2844,7 @@ VpnClientConnectionHealthDetailListResultInner getVpnclientConnectionHealth(Stri /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2932,7 +2859,7 @@ Mono>> disconnectVirtualNetworkGatewayVpnConnectionsWi /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2947,7 +2874,7 @@ PollerFlux, Void> beginDisconnectVirtualNetworkGatewayVpnConnec /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2962,7 +2889,7 @@ SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVpnConnec /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -2978,7 +2905,7 @@ SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVpnConnec /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2993,7 +2920,7 @@ Mono disconnectVirtualNetworkGatewayVpnConnectionsAsync(String resourceGro /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3007,7 +2934,7 @@ void disconnectVirtualNetworkGatewayVpnConnections(String resourceGroupName, Str /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -3022,8 +2949,8 @@ void disconnectVirtualNetworkGatewayVpnConnections(String resourceGroupName, Str /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3038,8 +2965,8 @@ Mono>> invokePrepareMigrationWithResponseAsync(String /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3054,8 +2981,8 @@ PollerFlux, Void> beginInvokePrepareMigrationAsync(String resou /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3070,8 +2997,8 @@ SyncPoller, Void> beginInvokePrepareMigration(String resourceGr /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -3087,8 +3014,8 @@ SyncPoller, Void> beginInvokePrepareMigration(String resourceGr /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3103,8 +3030,8 @@ Mono invokePrepareMigrationAsync(String resourceGroupName, String virtualN /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3118,8 +3045,8 @@ void invokePrepareMigration(String resourceGroupName, String virtualNetworkGatew /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -3134,8 +3061,8 @@ void invokePrepareMigration(String resourceGroupName, String virtualNetworkGatew /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3148,8 +3075,8 @@ Mono>> invokeExecuteMigrationWithResponseAsync(String /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3162,8 +3089,8 @@ PollerFlux, Void> beginInvokeExecuteMigrationAsync(String resou /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3176,8 +3103,8 @@ SyncPoller, Void> beginInvokeExecuteMigration(String resourceGr /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3191,8 +3118,8 @@ SyncPoller, Void> beginInvokeExecuteMigration(String resourceGr /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3204,8 +3131,8 @@ SyncPoller, Void> beginInvokeExecuteMigration(String resourceGr /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3216,8 +3143,8 @@ SyncPoller, Void> beginInvokeExecuteMigration(String resourceGr /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3229,8 +3156,8 @@ SyncPoller, Void> beginInvokeExecuteMigration(String resourceGr /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3243,8 +3170,8 @@ Mono>> invokeCommitMigrationWithResponseAsync(String r /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3257,8 +3184,8 @@ PollerFlux, Void> beginInvokeCommitMigrationAsync(String resour /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3271,8 +3198,8 @@ SyncPoller, Void> beginInvokeCommitMigration(String resourceGro /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3286,8 +3213,8 @@ SyncPoller, Void> beginInvokeCommitMigration(String resourceGro /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3299,8 +3226,8 @@ SyncPoller, Void> beginInvokeCommitMigration(String resourceGro /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3311,8 +3238,8 @@ SyncPoller, Void> beginInvokeCommitMigration(String resourceGro /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3324,8 +3251,8 @@ SyncPoller, Void> beginInvokeCommitMigration(String resourceGro /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3338,8 +3265,8 @@ Mono>> invokeAbortMigrationWithResponseAsync(String re /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3352,8 +3279,8 @@ PollerFlux, Void> beginInvokeAbortMigrationAsync(String resourc /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3366,8 +3293,8 @@ SyncPoller, Void> beginInvokeAbortMigration(String resourceGrou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3381,8 +3308,8 @@ SyncPoller, Void> beginInvokeAbortMigration(String resourceGrou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3394,8 +3321,8 @@ SyncPoller, Void> beginInvokeAbortMigration(String resourceGrou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3406,8 +3333,8 @@ SyncPoller, Void> beginInvokeAbortMigration(String resourceGrou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -3415,4 +3342,66 @@ SyncPoller, Void> beginInvokeAbortMigration(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) void invokeAbortMigration(String resourceGroupName, String virtualNetworkGatewayName, Context context); + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters); + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono vpnDeviceConfigurationScriptAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, + VpnDeviceScriptParameters parameters); + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response vpnDeviceConfigurationScriptWithResponse(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context); + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + String vpnDeviceConfigurationScript(String resourceGroupName, String virtualNetworkGatewayConnectionName, + VpnDeviceScriptParameters parameters); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkPeeringsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkPeeringsClient.java index 15551cb455de..09f27e195275 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkPeeringsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkPeeringsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,112 +23,10 @@ * An instance of this class provides access to all the operations defined in VirtualNetworkPeeringsClient. */ public interface VirtualNetworkPeeringsClient { - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName, Context context); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName); - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, Context context); - /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -144,7 +42,7 @@ Mono> getWithResponseAsync(String resourceG /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +57,7 @@ Mono getAsync(String resourceGroupName, String virtu /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @param context The context to associate with this operation. @@ -175,7 +73,7 @@ Response getWithResponse(String resourceGroupName, S /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,9 +88,9 @@ VirtualNetworkPeeringInner get(String resourceGroupName, String virtualNetworkNa /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -211,9 +109,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -231,9 +129,9 @@ PollerFlux, VirtualNetworkPeeringInner> b /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,9 +147,9 @@ PollerFlux, VirtualNetworkPeeringInner> b /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,9 +165,9 @@ SyncPoller, VirtualNetworkPeeringInner> b /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -289,9 +187,9 @@ SyncPoller, VirtualNetworkPeeringInner> b /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -309,9 +207,9 @@ Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -326,9 +224,9 @@ Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,9 +241,9 @@ VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtu /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -361,10 +259,112 @@ VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtu String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace, Context context); + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName, Context context); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName); + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, Context context); + /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -377,7 +377,7 @@ VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtu /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -390,7 +390,7 @@ VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtu /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkTapsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkTapsClient.java index 9eac35df681d..82011f3a7203 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkTapsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkTapsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -28,157 +28,65 @@ public interface VirtualNetworkTapsClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Deletes the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String tapName); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String tapName, Context context); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String tapName); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String tapName); - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String tapName, Context context); - - /** - * Gets information about the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap along with {@link Response} on successful completion - * of {@link Mono}. + * @return a VirtualNetworkTap along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String tapName); /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap on successful completion of {@link Mono}. + * @return a VirtualNetworkTap on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono getByResourceGroupAsync(String resourceGroupName, String tapName); /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap along with {@link Response}. + * @return a VirtualNetworkTap along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse(String resourceGroupName, String tapName, Context context); /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap. + * @return a VirtualNetworkTap. */ @ServiceMethod(returns = ReturnType.SINGLE) VirtualNetworkTapInner getByResourceGroup(String resourceGroupName, String tapName); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -190,10 +98,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource VirtualNetworkTapInner parameters); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -205,10 +113,10 @@ Mono>> createOrUpdateWithResponseAsync(String resource beginCreateOrUpdateAsync(String resourceGroupName, String tapName, VirtualNetworkTapInner parameters); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -220,10 +128,10 @@ SyncPoller, VirtualNetworkTapInner> beginCrea String tapName, VirtualNetworkTapInner parameters); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -236,10 +144,10 @@ SyncPoller, VirtualNetworkTapInner> beginCrea String tapName, VirtualNetworkTapInner parameters, Context context); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -251,10 +159,10 @@ Mono createOrUpdateAsync(String resourceGroupName, Strin VirtualNetworkTapInner parameters); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -265,10 +173,10 @@ Mono createOrUpdateAsync(String resourceGroupName, Strin VirtualNetworkTapInner createOrUpdate(String resourceGroupName, String tapName, VirtualNetworkTapInner parameters); /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -281,10 +189,10 @@ VirtualNetworkTapInner createOrUpdate(String resourceGroupName, String tapName, Context context); /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -296,10 +204,10 @@ Mono> updateTagsWithResponseAsync(String resour TagsObject tapParameters); /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -310,10 +218,10 @@ Mono> updateTagsWithResponseAsync(String resour Mono updateTagsAsync(String resourceGroupName, String tapName, TagsObject tapParameters); /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -326,10 +234,10 @@ Response updateTagsWithResponse(String resourceGroupName TagsObject tapParameters, Context context); /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -339,29 +247,125 @@ Response updateTagsWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) VirtualNetworkTapInner updateTags(String resourceGroupName, String tapName, TagsObject tapParameters); + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String tapName); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String tapName, Context context); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String tapName); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String tapName); + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String tapName, Context context); + /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable listByResourceGroup(String resourceGroupName); /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -369,36 +373,31 @@ Response updateTagsWithResponse(String resourceGroupName * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); + PagedFlux listAsync(); /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable list(); /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -406,5 +405,5 @@ Response updateTagsWithResponse(String resourceGroupName * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworksClient.java index 6d3aac3ceb25..ed19e0c0bc52 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,102 +30,10 @@ */ public interface VirtualNetworksClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - Context context); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualNetworkName); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName); - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualNetworkName, Context context); - /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -141,7 +49,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -154,7 +62,7 @@ Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -170,7 +78,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,7 +91,7 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +106,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +121,7 @@ PollerFlux, VirtualNetworkInner> beginCreateOrUp /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,7 +136,7 @@ SyncPoller, VirtualNetworkInner> beginCreateOrUp /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -244,7 +152,7 @@ SyncPoller, VirtualNetworkInner> beginCreateOrUp /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,7 +167,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String v /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -274,7 +182,7 @@ VirtualNetworkInner createOrUpdate(String resourceGroupName, String virtualNetwo /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -290,7 +198,7 @@ VirtualNetworkInner createOrUpdate(String resourceGroupName, String virtualNetwo /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,7 +213,7 @@ Mono> updateTagsWithResponseAsync(String resourceG /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -320,7 +228,7 @@ Mono updateTagsAsync(String resourceGroupName, String virtu /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @param context The context to associate with this operation. @@ -336,7 +244,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,41 +256,101 @@ Response updateTagsWithResponse(String resourceGroupName, S VirtualNetworkInner updateTags(String resourceGroupName, String virtualNetworkName, TagsObject parameters); /** - * Gets all virtual networks in a subscription. + * Deletes the specified virtual network. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName); /** - * Gets all virtual networks in a subscription. + * Deletes the specified virtual network. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName); /** - * Gets all virtual networks in a subscription. + * Deletes the specified virtual network. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName); + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + Context context); + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String virtualNetworkName); + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkName); + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String virtualNetworkName, Context context); /** * Gets all virtual networks in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -394,7 +362,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all virtual networks in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -406,7 +374,7 @@ Response updateTagsWithResponse(String resourceGroupName, S /** * Gets all virtual networks in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -416,10 +384,42 @@ Response updateTagsWithResponse(String resourceGroupName, S @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); + /** + * Gets all virtual networks in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all virtual networks in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all virtual networks in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,7 +435,7 @@ Mono> checkIpAddressAvailabilityWithR /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -450,7 +450,7 @@ Mono checkIpAddressAvailabilityAsync(String re /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @param context The context to associate with this operation. @@ -466,7 +466,7 @@ Response checkIpAddressAvailabilityWithRespons /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -481,7 +481,7 @@ IpAddressAvailabilityResultInner checkIpAddressAvailability(String resourceGroup /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -494,7 +494,7 @@ IpAddressAvailabilityResultInner checkIpAddressAvailability(String resourceGroup /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -508,7 +508,7 @@ IpAddressAvailabilityResultInner checkIpAddressAvailability(String resourceGroup /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -524,7 +524,7 @@ PagedIterable listUsage(String resourceGroupName, Stri /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -541,7 +541,7 @@ PagedFlux listDdosProtectionStatusAsync /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -556,7 +556,7 @@ PagedFlux listDdosProtectionStatusAsync /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -571,7 +571,7 @@ PagedIterable listDdosProtectionStatus( /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRouterPeeringsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRouterPeeringsClient.java index 7e7980b6fa64..2da3dc6f351d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRouterPeeringsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRouterPeeringsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,291 +23,309 @@ */ public interface VirtualRouterPeeringsClient { /** - * Deletes the specified peering from a Virtual Router. + * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Virtual Router Peering along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, + Mono> getWithResponseAsync(String resourceGroupName, String virtualRouterName, String peeringName); /** - * Deletes the specified peering from a Virtual Router. + * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified Virtual Router Peering on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, - String peeringName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String virtualRouterName, String peeringName); /** - * Deletes the specified peering from a Virtual Router. + * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Virtual Router Peering along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, - String peeringName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String virtualRouterName, + String peeringName, Context context); /** - * Deletes the specified peering from a Virtual Router. + * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Virtual Router Peering. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, - String peeringName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualRouterPeeringInner get(String resourceGroupName, String virtualRouterName, String peeringName); /** - * Deletes the specified peering from a Virtual Router. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return virtual Router Peering resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualRouterName, + String peeringName, VirtualRouterPeeringInner parameters); /** - * Deletes the specified peering from a Virtual Router. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of virtual Router Peering resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualRouterName, String peeringName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, VirtualRouterPeeringInner> beginCreateOrUpdateAsync( + String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters); /** - * Deletes the specified peering from a Virtual Router. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of virtual Router Peering resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualRouterName, String peeringName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualRouterPeeringInner> beginCreateOrUpdate( + String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters); /** - * Gets the specified Virtual Router Peering. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router Peering along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of virtual Router Peering resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String virtualRouterName, - String peeringName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualRouterPeeringInner> beginCreateOrUpdate( + String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters, + Context context); /** - * Gets the specified Virtual Router Peering. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router Peering on successful completion of {@link Mono}. + * @return virtual Router Peering resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String virtualRouterName, String peeringName); + Mono createOrUpdateAsync(String resourceGroupName, String virtualRouterName, + String peeringName, VirtualRouterPeeringInner parameters); /** - * Gets the specified Virtual Router Peering. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param context The context to associate with this operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router Peering along with {@link Response}. + * @return virtual Router Peering resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String virtualRouterName, - String peeringName, Context context); + VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtualRouterName, String peeringName, + VirtualRouterPeeringInner parameters); /** - * Gets the specified Virtual Router Peering. + * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router Peering. + * @return virtual Router Peering resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterPeeringInner get(String resourceGroupName, String virtualRouterName, String peeringName); + VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtualRouterName, String peeringName, + VirtualRouterPeeringInner parameters, Context context); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Router Peering resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualRouterName, - String peeringName, VirtualRouterPeeringInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, + String peeringName); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of virtual Router Peering resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, VirtualRouterPeeringInner> beginCreateOrUpdateAsync( - String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, + String peeringName); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of virtual Router Peering resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualRouterPeeringInner> beginCreateOrUpdate( - String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, + String peeringName); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of virtual Router Peering resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualRouterPeeringInner> beginCreateOrUpdate( - String resourceGroupName, String virtualRouterName, String peeringName, VirtualRouterPeeringInner parameters, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, + String peeringName, Context context); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Router Peering resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualRouterName, - String peeringName, VirtualRouterPeeringInner parameters); + Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Router Peering resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtualRouterName, String peeringName, - VirtualRouterPeeringInner parameters); + void delete(String resourceGroupName, String virtualRouterName, String peeringName); /** - * Creates or updates the specified Virtual Router Peering. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. - * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Router Peering resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtualRouterName, String peeringName, - VirtualRouterPeeringInner parameters, Context context); + void delete(String resourceGroupName, String virtualRouterName, String peeringName, Context context); /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(String resourceGroupName, String virtualRouterName); @@ -315,12 +333,12 @@ VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtua /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String virtualRouterName); @@ -328,13 +346,13 @@ VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String virtua /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String virtualRouterName, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRoutersClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRoutersClient.java index f6281c41a71e..623eae4b9a3e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRoutersClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualRoutersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,268 +27,268 @@ public interface VirtualRoutersClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { /** - * Deletes the specified Virtual Router. + * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Virtual Router along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String virtualRouterName, String expand); /** - * Deletes the specified Virtual Router. + * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified Virtual Router on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName); + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String virtualRouterName); /** - * Deletes the specified Virtual Router. + * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Virtual Router along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String virtualRouterName, + String expand, Context context); /** - * Deletes the specified Virtual Router. + * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Virtual Router. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualRouterInner getByResourceGroup(String resourceGroupName, String virtualRouterName); /** - * Deletes the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return virtualRouter Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualRouterName); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualRouterName, + VirtualRouterInner parameters); /** - * Deletes the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of virtualRouter Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualRouterName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, VirtualRouterInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualRouterName, VirtualRouterInner parameters); /** - * Deletes the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of virtualRouter Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualRouterName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualRouterInner> beginCreateOrUpdate(String resourceGroupName, + String virtualRouterName, VirtualRouterInner parameters); /** - * Gets the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update Virtual Router. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of virtualRouter Resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualRouterName, String expand); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, VirtualRouterInner> beginCreateOrUpdate(String resourceGroupName, + String virtualRouterName, VirtualRouterInner parameters, Context context); /** - * Gets the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router on successful completion of {@link Mono}. + * @return virtualRouter Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String virtualRouterName); + Mono createOrUpdateAsync(String resourceGroupName, String virtualRouterName, + VirtualRouterInner parameters); /** - * Gets the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router along with {@link Response}. + * @return virtualRouter Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String virtualRouterName, - String expand, Context context); + VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouterName, + VirtualRouterInner parameters); /** - * Gets the specified Virtual Router. + * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param parameters Parameters supplied to the create or update Virtual Router. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Virtual Router. + * @return virtualRouter Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterInner getByResourceGroup(String resourceGroupName, String virtualRouterName); + VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters, + Context context); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtualRouter Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualRouterName, - VirtualRouterInner parameters); + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of virtualRouter Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, VirtualRouterInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualRouterName, VirtualRouterInner parameters); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of virtualRouter Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualRouterInner> beginCreateOrUpdate(String resourceGroupName, - String virtualRouterName, VirtualRouterInner parameters); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of virtualRouter Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, VirtualRouterInner> beginCreateOrUpdate(String resourceGroupName, - String virtualRouterName, VirtualRouterInner parameters, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, Context context); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtualRouter Resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualRouterName, - VirtualRouterInner parameters); + Mono deleteAsync(String resourceGroupName, String virtualRouterName); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtualRouter Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouterName, - VirtualRouterInner parameters); + void delete(String resourceGroupName, String virtualRouterName); /** - * Creates or updates the specified Virtual Router. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtualRouter Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouterName, VirtualRouterInner parameters, - Context context); + void delete(String resourceGroupName, String virtualRouterName, Context context); /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); @@ -296,11 +296,11 @@ VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouter /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -308,12 +308,12 @@ VirtualRouterInner createOrUpdate(String resourceGroupName, String virtualRouter /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.network.models.ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualWansClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualWansClient.java index 5fa7aa55809d..febde489e3e9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualWansClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VirtualWansClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,8 +30,8 @@ public interface VirtualWansClient /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -39,26 +39,26 @@ public interface VirtualWansClient */ @ServiceMethod(returns = ReturnType.SINGLE) Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualWanName); + String virtualWANName); /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String virtualWanName); + Mono getByResourceGroupAsync(String resourceGroupName, String virtualWANName); /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -66,43 +66,43 @@ Mono> getByResourceGroupWithResponseAsync(String resou * @return virtualWAN Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String virtualWanName, + Response getByResourceGroupWithResponse(String resourceGroupName, String virtualWANName, Context context); /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualWanInner getByResourceGroup(String resourceGroupName, String virtualWanName); + VirtualWanInner getByResourceGroup(String resourceGroupName, String virtualWANName); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters); + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -110,14 +110,14 @@ Mono>> createOrUpdateWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VirtualWanInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters); + String virtualWANName, VirtualWanInner wANParameters); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -125,14 +125,14 @@ PollerFlux, VirtualWanInner> beginCreateOrUpdateAsyn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualWanInner> beginCreateOrUpdate(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters); + String virtualWANName, VirtualWanInner wANParameters); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -141,43 +141,43 @@ SyncPoller, VirtualWanInner> beginCreateOrUpdate(Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualWanInner> beginCreateOrUpdate(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters, Context context); + String virtualWANName, VirtualWanInner wANParameters, Context context); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters); + Mono createOrUpdateAsync(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWanName, VirtualWanInner wanParameters); + VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWANName, VirtualWanInner wANParameters); /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -185,44 +185,44 @@ Mono createOrUpdateAsync(String resourceGroupName, String virtu * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWanName, VirtualWanInner wanParameters, + VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWANName, VirtualWanInner wANParameters, Context context); /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWanName, - TagsObject wanParameters); + Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWANName, + TagsObject wANParameters); /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateTagsAsync(String resourceGroupName, String virtualWanName, TagsObject wanParameters); + Mono updateTagsAsync(String resourceGroupName, String virtualWANName, TagsObject wANParameters); /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -230,67 +230,67 @@ Mono> updateTagsWithResponseAsync(String resourceGroup * @return virtualWAN Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateTagsWithResponse(String resourceGroupName, String virtualWanName, - TagsObject wanParameters, Context context); + Response updateTagsWithResponse(String resourceGroupName, String virtualWANName, + TagsObject wANParameters, Context context); /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - VirtualWanInner updateTags(String resourceGroupName, String virtualWanName, TagsObject wanParameters); + VirtualWanInner updateTags(String resourceGroupName, String virtualWANName, TagsObject wANParameters); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWanName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWANName); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWanName); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWANName); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWanName); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWANName); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -298,50 +298,50 @@ Response updateTagsWithResponse(String resourceGroupName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWanName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWANName, Context context); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String virtualWanName); + Mono deleteAsync(String resourceGroupName, String virtualWANName); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualWanName); + void delete(String resourceGroupName, String virtualWANName); /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualWanName, Context context); + void delete(String resourceGroupName, String virtualWANName, Context context); /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -353,7 +353,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -365,7 +365,7 @@ Response updateTagsWithResponse(String resourceGroupName, Strin /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java index 034dd6351e53..00af437ee0f8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -27,8 +27,8 @@ public interface VpnConnectionsClient { /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -42,8 +42,8 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -56,8 +56,8 @@ Mono> getWithResponseAsync(String resourceGroupName /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -72,8 +72,8 @@ Response getWithResponse(String resourceGroupName, String ga /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -86,9 +86,9 @@ Response getWithResponse(String resourceGroupName, String ga /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -102,9 +102,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -118,9 +118,9 @@ PollerFlux, VpnConnectionInner> beginCreateOrUpda /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -134,9 +134,9 @@ SyncPoller, VpnConnectionInner> beginCreateOrUpda /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,9 +151,9 @@ SyncPoller, VpnConnectionInner> beginCreateOrUpda /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -167,9 +167,9 @@ Mono createOrUpdateAsync(String resourceGroupName, String ga /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -183,9 +183,9 @@ VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewayName, /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,9 +200,9 @@ VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewayName, /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -215,9 +215,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +230,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -244,9 +244,9 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -260,9 +260,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -274,9 +274,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -287,9 +287,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -301,8 +301,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -318,8 +318,8 @@ Mono>> startPacketCaptureWithResponseAsync(String reso /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -335,8 +335,8 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -350,8 +350,8 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -365,8 +365,8 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -383,8 +383,8 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -400,8 +400,8 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -414,8 +414,8 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -428,8 +428,8 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -446,8 +446,8 @@ String startPacketCapture(String resourceGroupName, String gatewayName, String v /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -462,8 +462,8 @@ Mono>> stopPacketCaptureWithResponseAsync(String resou /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -478,8 +478,8 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -493,8 +493,8 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -508,8 +508,8 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -525,8 +525,8 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -541,8 +541,8 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -555,8 +555,8 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -569,8 +569,8 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -586,7 +586,7 @@ String stopPacketCapture(String resourceGroupName, String gatewayName, String vp /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -600,7 +600,7 @@ String stopPacketCapture(String resourceGroupName, String gatewayName, String vp /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -614,7 +614,7 @@ String stopPacketCapture(String resourceGroupName, String gatewayName, String vp /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnGatewaysClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnGatewaysClient.java index 8a87219e3a5b..46f6ba8ac938 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnGatewaysClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnGatewaysClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -32,7 +32,7 @@ public interface VpnGatewaysClient /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -45,7 +45,7 @@ public interface VpnGatewaysClient /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,7 +58,7 @@ public interface VpnGatewaysClient /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,7 +73,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -86,7 +86,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -101,7 +101,7 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -116,7 +116,7 @@ PollerFlux, VpnGatewayInner> beginCreateOrUpdateAsyn /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +131,7 @@ SyncPoller, VpnGatewayInner> beginCreateOrUpdate(Str /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -147,7 +147,7 @@ SyncPoller, VpnGatewayInner> beginCreateOrUpdate(Str /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -162,7 +162,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String gatew /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,7 +176,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String gatew /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -192,7 +192,7 @@ VpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayName, Vpn /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -207,7 +207,7 @@ Mono>> updateTagsWithResponseAsync(String resourceGrou /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +222,7 @@ PollerFlux, VpnGatewayInner> beginUpdateTagsAsync(St /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -237,7 +237,7 @@ SyncPoller, VpnGatewayInner> beginUpdateTags(String /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -253,7 +253,7 @@ SyncPoller, VpnGatewayInner> beginUpdateTags(String /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -268,7 +268,7 @@ Mono updateTagsAsync(String resourceGroupName, String gatewayNa /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -282,7 +282,7 @@ Mono updateTagsAsync(String resourceGroupName, String gatewayNa /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -298,7 +298,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -311,7 +311,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -324,7 +324,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -337,7 +337,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -351,7 +351,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -364,7 +364,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -376,7 +376,7 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -386,16 +386,85 @@ VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, TagsObj @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String gatewayName, Context context); + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Lists all the VpnGateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, @@ -404,13 +473,13 @@ Mono>> resetWithResponseAsync(String resourceGroupName /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnGateway Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, @@ -419,12 +488,12 @@ PollerFlux, VpnGatewayInner> beginResetAsync(String /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnGateway Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, @@ -433,12 +502,12 @@ PollerFlux, VpnGatewayInner> beginResetAsync(String /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, String gatewayName); @@ -446,14 +515,14 @@ PollerFlux, VpnGatewayInner> beginResetAsync(String /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, String gatewayName, @@ -462,13 +531,13 @@ SyncPoller, VpnGatewayInner> beginReset(String resou /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetAsync(String resourceGroupName, String gatewayName, String ipConfigurationId); @@ -476,12 +545,12 @@ SyncPoller, VpnGatewayInner> beginReset(String resou /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono resetAsync(String resourceGroupName, String gatewayName); @@ -489,12 +558,12 @@ SyncPoller, VpnGatewayInner> beginReset(String resou /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnGatewayInner reset(String resourceGroupName, String gatewayName); @@ -502,14 +571,14 @@ SyncPoller, VpnGatewayInner> beginReset(String resou /** * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) VpnGatewayInner reset(String resourceGroupName, String gatewayName, String ipConfigurationId, Context context); @@ -517,7 +586,7 @@ SyncPoller, VpnGatewayInner> beginReset(String resou /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -532,7 +601,7 @@ Mono>> startPacketCaptureWithResponseAsync(String reso /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -547,7 +616,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -560,7 +629,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -573,7 +642,7 @@ PollerFlux, String> beginStartPacketCaptureAsync(String resou /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. @@ -589,7 +658,7 @@ SyncPoller, String> beginStartPacketCapture(String resourceGr /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -604,7 +673,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -617,7 +686,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -630,7 +699,7 @@ Mono startPacketCaptureAsync(String resourceGroupName, String gatewayNam /** * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. @@ -646,7 +715,7 @@ String startPacketCapture(String resourceGroupName, String gatewayName, /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -661,7 +730,7 @@ Mono>> stopPacketCaptureWithResponseAsync(String resou /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -676,7 +745,7 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -689,7 +758,7 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -702,7 +771,7 @@ PollerFlux, String> beginStopPacketCaptureAsync(String resour /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @param context The context to associate with this operation. @@ -718,7 +787,7 @@ SyncPoller, String> beginStopPacketCapture(String resourceGro /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,7 +802,7 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -746,7 +815,7 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -759,7 +828,7 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName /** * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @param context The context to associate with this operation. @@ -771,73 +840,4 @@ Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName @ServiceMethod(returns = ReturnType.SINGLE) String stopPacketCapture(String resourceGroupName, String gatewayName, VpnGatewayPacketCaptureStopParameters parameters, Context context); - - /** - * Lists all the VpnGateways in a resource group. - * - * @param resourceGroupName The resource group name of the VpnGateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Lists all the VpnGateways in a resource group. - * - * @param resourceGroupName The resource group name of the VpnGateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists all the VpnGateways in a resource group. - * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Lists all the VpnGateways in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Lists all the VpnGateways in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Lists all the VpnGateways in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnLinkConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnLinkConnectionsClient.java index ef744ef51a66..3f7c7dd74c8f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnLinkConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnLinkConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,122 +24,216 @@ */ public interface VpnLinkConnectionsClient { /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> resetConnectionWithResponseAsync(String resourceGroupName, String gatewayName, + Mono> getDefaultSharedKeyWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName); + + /** + * Gets the shared key of VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the shared key of VpnLink connection specified on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName); /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the shared key of VpnLink connection specified along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, + @ServiceMethod(returns = ReturnType.SINGLE) + Response getDefaultSharedKeyWithResponse(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, Context context); + + /** + * Gets the shared key of VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the shared key of VpnLink connection specified. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConnectionSharedKeyResultInner getDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName); /** - * Resets the VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters); + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of sharedKey Resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName); + PollerFlux, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); /** - * Resets the VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of sharedKey Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of sharedKey Resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, Context context); + SyncPoller, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context); /** - * Resets the VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return sharedKey Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName); + Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); /** - * Resets the VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sharedKey Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void resetConnection(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName); + ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); /** - * Resets the VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sharedKey Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void resetConnection(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context); /** * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -154,8 +248,8 @@ PagedFlux getAllSharedKeysAsync(String resourceG /** * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,8 +264,8 @@ PagedIterable getAllSharedKeys(String resourceGr /** * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -185,282 +279,237 @@ PagedIterable getAllSharedKeys(String resourceGr String connectionName, String linkConnectionName, Context context); /** - * Gets the shared key of VpnLink connection specified. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of - * {@link Mono}. + * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getDefaultSharedKeyWithResponseAsync(String resourceGroupName, + Mono> listDefaultSharedKeyWithResponseAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName); /** - * Gets the shared key of VpnLink connection specified. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified on successful completion of {@link Mono}. + * @return the value of the shared key of VpnLink connection specified on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, + Mono listDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName); /** - * Gets the shared key of VpnLink connection specified. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified along with {@link Response}. + * @return the value of the shared key of VpnLink connection specified along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDefaultSharedKeyWithResponse(String resourceGroupName, + Response listDefaultSharedKeyWithResponse(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, Context context); /** - * Gets the shared key of VpnLink connection specified. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified. + * @return the value of the shared key of VpnLink connection specified. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionSharedKeyResultInner getDefaultSharedKey(String resourceGroupName, String gatewayName, + ConnectionSharedKeyResultInner listDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. - * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters); - - /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, + String connectionName); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, + String connectionName, Context context); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); + Mono>> resetConnectionWithResponseAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName); /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, - Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName); /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono> listDefaultSharedKeyWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, Context context); /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono listDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName); + Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName); /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listDefaultSharedKeyWithResponse(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, Context context); + void resetConnection(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName); /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConnectionSharedKeyResultInner listDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName); + void resetConnection(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, + Context context); /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -475,8 +524,8 @@ Mono>> getIkeSasWithResponseAsync(String resourceGroup /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -491,8 +540,8 @@ PollerFlux, String> beginGetIkeSasAsync(String resourceGroupN /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -507,8 +556,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -524,8 +573,8 @@ SyncPoller, String> beginGetIkeSas(String resourceGroupName, /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,8 +589,8 @@ Mono getIkeSasAsync(String resourceGroupName, String gatewayName, String /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -555,8 +604,8 @@ Mono getIkeSasAsync(String resourceGroupName, String gatewayName, String /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -568,53 +617,4 @@ Mono getIkeSasAsync(String resourceGroupName, String gatewayName, String @ServiceMethod(returns = ReturnType.SINGLE) String getIkeSas(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, Context context); - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, - String connectionName); - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, - String connectionName); - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, - String connectionName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsAssociatedWithVirtualWansClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsAssociatedWithVirtualWansClient.java index 91d01302164d..b03614bd3788 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsAssociatedWithVirtualWansClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsAssociatedWithVirtualWansClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -24,98 +24,96 @@ public interface VpnServerConfigurationsAssociatedWithVirtualWansClient { /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> listWithResponseAsync(String resourceGroupName, String virtualWanName); + Mono>> listWithResponseAsync(String resourceGroupName, String virtualWANName); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, VpnServerConfigurationsResponseInner> - beginListAsync(String resourceGroupName, String virtualWanName); + beginListAsync(String resourceGroupName, String virtualWANName); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnServerConfigurationsResponseInner> - beginList(String resourceGroupName, String virtualWanName); + beginList(String resourceGroupName, String virtualWANName); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VpnServerConfigurationsResponseInner> - beginList(String resourceGroupName, String virtualWanName, Context context); + beginList(String resourceGroupName, String virtualWANName, Context context); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono listAsync(String resourceGroupName, String virtualWanName); + Mono listAsync(String resourceGroupName, String virtualWANName); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWanName); + VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWANName); /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWanName, Context context); + VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWANName, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsClient.java index 64d1b6bd10ed..e7cc96b9dd64 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -31,8 +31,9 @@ public interface VpnServerConfigurationsClient extends InnerSupportsGet> getByResourceGroupWithResponseAsync( /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -59,8 +61,9 @@ Mono getByResourceGroupAsync(String resourceGroupNa /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -74,8 +77,9 @@ Response getByResourceGroupWithResponse(String reso /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -87,8 +91,9 @@ Response getByResourceGroupWithResponse(String reso /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -102,8 +107,9 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -118,8 +124,9 @@ PollerFlux, VpnServerConfigurationInner> /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -134,8 +141,9 @@ SyncPoller, VpnServerConfigurationInner> /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,8 +159,9 @@ SyncPoller, VpnServerConfigurationInner> /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -166,8 +175,9 @@ Mono createOrUpdateAsync(String resourceGroupName, /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,8 +191,9 @@ VpnServerConfigurationInner createOrUpdate(String resourceGroupName, String vpnS /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -197,8 +208,9 @@ VpnServerConfigurationInner createOrUpdate(String resourceGroupName, String vpnS /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -212,8 +224,9 @@ Mono> updateTagsWithResponseAsync(String r /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -227,8 +240,9 @@ Mono updateTagsAsync(String resourceGroupName, Stri /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -243,8 +257,9 @@ Response updateTagsWithResponse(String resourceGrou /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,8 +273,9 @@ VpnServerConfigurationInner updateTags(String resourceGroupName, String vpnServe /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -272,8 +288,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -285,8 +302,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -298,8 +316,9 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -313,8 +332,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -326,8 +346,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -338,8 +359,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -351,7 +373,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -363,7 +385,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -376,7 +398,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -425,7 +447,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -440,7 +463,8 @@ Mono> listRadiusSecretsWithResponseAsy * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -454,7 +478,8 @@ Mono listRadiusSecretsAsync(String resourceGrou * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -469,7 +494,8 @@ Response listRadiusSecretsWithResponse(String r * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinkConnectionsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinkConnectionsClient.java index 57f4e22eabd6..8974f96e8025 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinkConnectionsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinkConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -18,10 +18,10 @@ public interface VpnSiteLinkConnectionsClient { /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -34,10 +34,10 @@ Mono> getWithResponseAsync(String resourceG /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -50,10 +50,10 @@ Mono getAsync(String resourceGroupName, String gatew /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -67,10 +67,10 @@ Response getWithResponse(String resourceGroupName, S /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinksClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinksClient.java index 39df5b6b315b..2fca4729ccaa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinksClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -20,9 +20,10 @@ public interface VpnSiteLinksClient { /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -35,9 +36,10 @@ Mono> getWithResponseAsync(String resourceGroupName, /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -49,9 +51,10 @@ Mono> getWithResponseAsync(String resourceGroupName, /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -65,9 +68,10 @@ Response getWithResponse(String resourceGroupName, String vpnS /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -79,8 +83,8 @@ Response getWithResponse(String resourceGroupName, String vpnS /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -92,8 +96,8 @@ Response getWithResponse(String resourceGroupName, String vpnS /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -105,8 +109,8 @@ Response getWithResponse(String resourceGroupName, String vpnS /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesClient.java index 9d77583abd1a..71a689fe8da5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -30,7 +30,7 @@ public interface VpnSitesClient /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -43,7 +43,7 @@ public interface VpnSitesClient /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -56,7 +56,7 @@ public interface VpnSitesClient /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +71,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -84,8 +84,8 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -99,8 +99,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -114,8 +114,8 @@ PollerFlux, VpnSiteInner> beginCreateOrUpdateAsync(Stri /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -129,8 +129,8 @@ SyncPoller, VpnSiteInner> beginCreateOrUpdate(String re /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,8 +145,8 @@ SyncPoller, VpnSiteInner> beginCreateOrUpdate(String re /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -160,8 +160,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String vpnSiteN /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -174,8 +174,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String vpnSiteN /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,8 +190,8 @@ VpnSiteInner createOrUpdate(String resourceGroupName, String vpnSiteName, VpnSit /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -205,8 +205,8 @@ Mono> updateTagsWithResponseAsync(String resourceGroupNam /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -219,8 +219,8 @@ Mono> updateTagsWithResponseAsync(String resourceGroupNam /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -235,8 +235,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -249,8 +249,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -262,8 +262,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -275,8 +275,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -288,8 +288,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -302,8 +302,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -315,8 +315,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -327,8 +327,8 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -340,7 +340,7 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -352,7 +352,7 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -364,7 +364,7 @@ Response updateTagsWithResponse(String resourceGroupName, String v /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesConfigurationsClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesConfigurationsClient.java index a00aa38b8937..e02e6b3c402f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesConfigurationsClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesConfigurationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -23,8 +23,8 @@ public interface VpnSitesConfigurationsClient { /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -32,14 +32,14 @@ public interface VpnSitesConfigurationsClient { * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWanName, + Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -47,14 +47,14 @@ Mono>> downloadWithResponseAsync(String resourceGroupN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWanName, + PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,14 +62,14 @@ PollerFlux, Void> beginDownloadAsync(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWanName, + SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -78,14 +78,14 @@ SyncPoller, Void> beginDownload(String resourceGroupName, Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWanName, + SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -93,26 +93,26 @@ SyncPoller, Void> beginDownload(String resourceGroupName, Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono downloadAsync(String resourceGroupName, String virtualWanName, GetVpnSitesConfigurationRequest request); + Mono downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void download(String resourceGroupName, String virtualWanName, GetVpnSitesConfigurationRequest request); + void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request); /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -120,6 +120,6 @@ SyncPoller, Void> beginDownload(String resourceGroupName, Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void download(String resourceGroupName, String virtualWanName, GetVpnSitesConfigurationRequest request, + void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebApplicationFirewallPoliciesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebApplicationFirewallPoliciesClient.java index 605996b58aaa..27ab3e8605e9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebApplicationFirewallPoliciesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebApplicationFirewallPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; @@ -26,82 +26,10 @@ */ public interface WebApplicationFirewallPoliciesClient extends InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Gets all the WAF policies in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); - - /** - * Gets all the WAF policies in a subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Gets all the WAF policies in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -116,7 +44,7 @@ Mono> getByResourceGroupWithResponse /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -129,7 +57,7 @@ Mono> getByResourceGroupWithResponse /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -144,7 +72,7 @@ Response getByResourceGroupWithResponse(Strin /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -157,7 +85,7 @@ Response getByResourceGroupWithResponse(Strin /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,7 +101,7 @@ Mono> createOrUpdateWithResponseAsyn /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -188,7 +116,7 @@ Mono createOrUpdateAsync(String resourceGroup /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @param context The context to associate with this operation. @@ -204,7 +132,7 @@ Response createOrUpdateWithResponse(String re /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,7 +147,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -232,7 +160,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -245,7 +173,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -258,7 +186,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +200,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -285,7 +213,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -297,7 +225,7 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,4 +234,73 @@ WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String policyName, Context context); + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets all the WAF policies in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets all the WAF policies in a subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets all the WAF policies in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebCategoriesClient.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebCategoriesClient.java index 647e65867efd..ff28e50bb63b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebCategoriesClient.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/WebCategoriesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java index e42c2547376d..3205201b7a86 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ * Result of the request to list active connectivity configurations. It contains a list of active connectivity * configurations and a skiptoken to get the next set of results. */ -@Fluent +@Immutable public final class ActiveConnectivityConfigurationsListResultInner implements JsonSerializable { /* @@ -34,7 +34,7 @@ public final class ActiveConnectivityConfigurationsListResultInner /** * Creates an instance of ActiveConnectivityConfigurationsListResultInner class. */ - public ActiveConnectivityConfigurationsListResultInner() { + private ActiveConnectivityConfigurationsListResultInner() { } /** @@ -46,17 +46,6 @@ public List value() { return this.value; } - /** - * Set the value property: Gets a page of active connectivity configurations. - * - * @param value the value value to set. - * @return the ActiveConnectivityConfigurationsListResultInner object itself. - */ - public ActiveConnectivityConfigurationsListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the * same query and scopes used in the current request) to retrieve the next page of data. @@ -67,18 +56,6 @@ public String skipToken() { return this.skipToken; } - /** - * Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the - * same query and scopes used in the current request) to retrieve the next page of data. - * - * @param skipToken the skipToken value to set. - * @return the ActiveConnectivityConfigurationsListResultInner object itself. - */ - public ActiveConnectivityConfigurationsListResultInner withSkipToken(String skipToken) { - this.skipToken = skipToken; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveSecurityAdminRulesListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveSecurityAdminRulesListResultInner.java index 8306f20d2c99..0e9e0edd68b6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveSecurityAdminRulesListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveSecurityAdminRulesListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ * Result of the request to list active security admin rules. It contains a list of active security admin rules and a * skiptoken to get the next set of results. */ -@Fluent +@Immutable public final class ActiveSecurityAdminRulesListResultInner implements JsonSerializable { /* @@ -34,7 +34,7 @@ public final class ActiveSecurityAdminRulesListResultInner /** * Creates an instance of ActiveSecurityAdminRulesListResultInner class. */ - public ActiveSecurityAdminRulesListResultInner() { + private ActiveSecurityAdminRulesListResultInner() { } /** @@ -46,17 +46,6 @@ public List value() { return this.value; } - /** - * Set the value property: Gets a page of active security admin rules. - * - * @param value the value value to set. - * @return the ActiveSecurityAdminRulesListResultInner object itself. - */ - public ActiveSecurityAdminRulesListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the * same query and scopes used in the current request) to retrieve the next page of data. @@ -67,18 +56,6 @@ public String skipToken() { return this.skipToken; } - /** - * Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the - * same query and scopes used in the current request) to retrieve the next page of data. - * - * @param skipToken the skipToken value to set. - * @return the ActiveSecurityAdminRulesListResultInner object itself. - */ - public ActiveSecurityAdminRulesListResultInner withSkipToken(String skipToken) { - this.skipToken = skipToken; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminPropertiesFormat.java index c0a76ae1d4b7..2ca4fc5ceb1a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionInner.java index 488d700fb665..3da1e3f0e5ee 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -36,17 +36,17 @@ public final class AdminRuleCollectionInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -85,7 +85,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -95,7 +95,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -105,7 +105,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -206,7 +206,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AdminRuleCollectionInner if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AdminRuleCollectionInner. */ public static AdminRuleCollectionInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java index 2a523aa7a0a6..3fa76e1111d2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificateInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificateInner.java index 02c102be3b85..a3ded13798fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificateInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificateInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificatePropertiesFormat.java index 038609fec851..d044e7039cdb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsInner.java index 1cfcf1b0e61b..7de2066557e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; @@ -20,7 +20,7 @@ /** * Response for ApplicationGatewayAvailableSslOptions API service call. */ -@Fluent +@Immutable public final class ApplicationGatewayAvailableSslOptionsInner extends Resource { /* * Properties of the application gateway available SSL options. @@ -45,7 +45,7 @@ public final class ApplicationGatewayAvailableSslOptionsInner extends Resource { /** * Creates an instance of ApplicationGatewayAvailableSslOptionsInner class. */ - public ApplicationGatewayAvailableSslOptionsInner() { + private ApplicationGatewayAvailableSslOptionsInner() { } /** @@ -66,17 +66,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the ApplicationGatewayAvailableSslOptionsInner object itself. - */ - public ApplicationGatewayAvailableSslOptionsInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -97,24 +86,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewayAvailableSslOptionsInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewayAvailableSslOptionsInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the predefinedPolicies property: List of available Ssl predefined policy. * @@ -124,20 +95,6 @@ public List predefinedPolicies() { return this.innerProperties() == null ? null : this.innerProperties().predefinedPolicies(); } - /** - * Set the predefinedPolicies property: List of available Ssl predefined policy. - * - * @param predefinedPolicies the predefinedPolicies value to set. - * @return the ApplicationGatewayAvailableSslOptionsInner object itself. - */ - public ApplicationGatewayAvailableSslOptionsInner withPredefinedPolicies(List predefinedPolicies) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayAvailableSslOptionsPropertiesFormat(); - } - this.innerProperties().withPredefinedPolicies(predefinedPolicies); - return this; - } - /** * Get the defaultPolicy property: Name of the Ssl predefined policy applied by default to application gateway. * @@ -147,20 +104,6 @@ public ApplicationGatewaySslPolicyName defaultPolicy() { return this.innerProperties() == null ? null : this.innerProperties().defaultPolicy(); } - /** - * Set the defaultPolicy property: Name of the Ssl predefined policy applied by default to application gateway. - * - * @param defaultPolicy the defaultPolicy value to set. - * @return the ApplicationGatewayAvailableSslOptionsInner object itself. - */ - public ApplicationGatewayAvailableSslOptionsInner withDefaultPolicy(ApplicationGatewaySslPolicyName defaultPolicy) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayAvailableSslOptionsPropertiesFormat(); - } - this.innerProperties().withDefaultPolicy(defaultPolicy); - return this; - } - /** * Get the availableCipherSuites property: List of available Ssl cipher suites. * @@ -170,21 +113,6 @@ public List availableCipherSuites() { return this.innerProperties() == null ? null : this.innerProperties().availableCipherSuites(); } - /** - * Set the availableCipherSuites property: List of available Ssl cipher suites. - * - * @param availableCipherSuites the availableCipherSuites value to set. - * @return the ApplicationGatewayAvailableSslOptionsInner object itself. - */ - public ApplicationGatewayAvailableSslOptionsInner - withAvailableCipherSuites(List availableCipherSuites) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayAvailableSslOptionsPropertiesFormat(); - } - this.innerProperties().withAvailableCipherSuites(availableCipherSuites); - return this; - } - /** * Get the availableProtocols property: List of available Ssl protocols. * @@ -194,21 +122,6 @@ public List availableProtocols() { return this.innerProperties() == null ? null : this.innerProperties().availableProtocols(); } - /** - * Set the availableProtocols property: List of available Ssl protocols. - * - * @param availableProtocols the availableProtocols value to set. - * @return the ApplicationGatewayAvailableSslOptionsInner object itself. - */ - public ApplicationGatewayAvailableSslOptionsInner - withAvailableProtocols(List availableProtocols) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayAvailableSslOptionsPropertiesFormat(); - } - this.innerProperties().withAvailableProtocols(availableProtocols); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsPropertiesFormat.java index 1da5b16e6b8d..b364b259f30f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -19,7 +19,7 @@ /** * Properties of ApplicationGatewayAvailableSslOptions. */ -@Fluent +@Immutable public final class ApplicationGatewayAvailableSslOptionsPropertiesFormat implements JsonSerializable { /* @@ -45,7 +45,7 @@ public final class ApplicationGatewayAvailableSslOptionsPropertiesFormat /** * Creates an instance of ApplicationGatewayAvailableSslOptionsPropertiesFormat class. */ - public ApplicationGatewayAvailableSslOptionsPropertiesFormat() { + private ApplicationGatewayAvailableSslOptionsPropertiesFormat() { } /** @@ -57,18 +57,6 @@ public List predefinedPolicies() { return this.predefinedPolicies; } - /** - * Set the predefinedPolicies property: List of available Ssl predefined policy. - * - * @param predefinedPolicies the predefinedPolicies value to set. - * @return the ApplicationGatewayAvailableSslOptionsPropertiesFormat object itself. - */ - public ApplicationGatewayAvailableSslOptionsPropertiesFormat - withPredefinedPolicies(List predefinedPolicies) { - this.predefinedPolicies = predefinedPolicies; - return this; - } - /** * Get the defaultPolicy property: Name of the Ssl predefined policy applied by default to application gateway. * @@ -78,18 +66,6 @@ public ApplicationGatewaySslPolicyName defaultPolicy() { return this.defaultPolicy; } - /** - * Set the defaultPolicy property: Name of the Ssl predefined policy applied by default to application gateway. - * - * @param defaultPolicy the defaultPolicy value to set. - * @return the ApplicationGatewayAvailableSslOptionsPropertiesFormat object itself. - */ - public ApplicationGatewayAvailableSslOptionsPropertiesFormat - withDefaultPolicy(ApplicationGatewaySslPolicyName defaultPolicy) { - this.defaultPolicy = defaultPolicy; - return this; - } - /** * Get the availableCipherSuites property: List of available Ssl cipher suites. * @@ -99,18 +75,6 @@ public List availableCipherSuites() { return this.availableCipherSuites; } - /** - * Set the availableCipherSuites property: List of available Ssl cipher suites. - * - * @param availableCipherSuites the availableCipherSuites value to set. - * @return the ApplicationGatewayAvailableSslOptionsPropertiesFormat object itself. - */ - public ApplicationGatewayAvailableSslOptionsPropertiesFormat - withAvailableCipherSuites(List availableCipherSuites) { - this.availableCipherSuites = availableCipherSuites; - return this; - } - /** * Get the availableProtocols property: List of available Ssl protocols. * @@ -120,18 +84,6 @@ public List availableProtocols() { return this.availableProtocols; } - /** - * Set the availableProtocols property: List of available Ssl protocols. - * - * @param availableProtocols the availableProtocols value to set. - * @return the ApplicationGatewayAvailableSslOptionsPropertiesFormat object itself. - */ - public ApplicationGatewayAvailableSslOptionsPropertiesFormat - withAvailableProtocols(List availableProtocols) { - this.availableProtocols = availableProtocols; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableWafRuleSetsResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableWafRuleSetsResultInner.java index bc0f594420e4..56ec021e95b3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableWafRuleSetsResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableWafRuleSetsResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Response for ApplicationGatewayAvailableWafRuleSets API service call. */ -@Fluent +@Immutable public final class ApplicationGatewayAvailableWafRuleSetsResultInner implements JsonSerializable { /* @@ -27,7 +27,7 @@ public final class ApplicationGatewayAvailableWafRuleSetsResultInner /** * Creates an instance of ApplicationGatewayAvailableWafRuleSetsResultInner class. */ - public ApplicationGatewayAvailableWafRuleSetsResultInner() { + private ApplicationGatewayAvailableWafRuleSetsResultInner() { } /** @@ -39,17 +39,6 @@ public List value() { return this.value; } - /** - * Set the value property: The list of application gateway rule sets. - * - * @param value the value value to set. - * @return the ApplicationGatewayAvailableWafRuleSetsResultInner object itself. - */ - public ApplicationGatewayAvailableWafRuleSetsResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendAddressPoolPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendAddressPoolPropertiesFormat.java index d738ac338edd..522f4d70b6ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendAddressPoolPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendAddressPoolPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthInner.java index 76ce129487ce..586055027b71 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Response for ApplicationGatewayBackendHealth API service call. */ -@Fluent +@Immutable public final class ApplicationGatewayBackendHealthInner implements JsonSerializable { /* @@ -27,7 +27,7 @@ public final class ApplicationGatewayBackendHealthInner /** * Creates an instance of ApplicationGatewayBackendHealthInner class. */ - public ApplicationGatewayBackendHealthInner() { + private ApplicationGatewayBackendHealthInner() { } /** @@ -39,18 +39,6 @@ public List backendAddressPools() { return this.backendAddressPools; } - /** - * Set the backendAddressPools property: A list of ApplicationGatewayBackendHealthPool resources. - * - * @param backendAddressPools the backendAddressPools value to set. - * @return the ApplicationGatewayBackendHealthInner object itself. - */ - public ApplicationGatewayBackendHealthInner - withBackendAddressPools(List backendAddressPools) { - this.backendAddressPools = backendAddressPools; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthOnDemandInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthOnDemandInner.java index 13db8d1d7119..bac48201cef4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthOnDemandInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthOnDemandInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Result of on demand test probe. */ -@Fluent +@Immutable public final class ApplicationGatewayBackendHealthOnDemandInner implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class ApplicationGatewayBackendHealthOnDemandInner /** * Creates an instance of ApplicationGatewayBackendHealthOnDemandInner class. */ - public ApplicationGatewayBackendHealthOnDemandInner() { + private ApplicationGatewayBackendHealthOnDemandInner() { } /** @@ -44,18 +44,6 @@ public ApplicationGatewayBackendAddressPool backendAddressPool() { return this.backendAddressPool; } - /** - * Set the backendAddressPool property: Reference to an ApplicationGatewayBackendAddressPool resource. - * - * @param backendAddressPool the backendAddressPool value to set. - * @return the ApplicationGatewayBackendHealthOnDemandInner object itself. - */ - public ApplicationGatewayBackendHealthOnDemandInner - withBackendAddressPool(ApplicationGatewayBackendAddressPool backendAddressPool) { - this.backendAddressPool = backendAddressPool; - return this; - } - /** * Get the backendHealthHttpSettings property: Application gateway BackendHealthHttp settings. * @@ -65,18 +53,6 @@ public ApplicationGatewayBackendHealthHttpSettings backendHealthHttpSettings() { return this.backendHealthHttpSettings; } - /** - * Set the backendHealthHttpSettings property: Application gateway BackendHealthHttp settings. - * - * @param backendHealthHttpSettings the backendHealthHttpSettings value to set. - * @return the ApplicationGatewayBackendHealthOnDemandInner object itself. - */ - public ApplicationGatewayBackendHealthOnDemandInner - withBackendHealthHttpSettings(ApplicationGatewayBackendHealthHttpSettings backendHealthHttpSettings) { - this.backendHealthHttpSettings = backendHealthHttpSettings; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthServerInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthServerInner.java index 5efc3292ae30..bd9d5ac1b410 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthServerInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthServerInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Application gateway backendhealth http settings. */ -@Fluent +@Immutable public final class ApplicationGatewayBackendHealthServerInner implements JsonSerializable { /* @@ -41,7 +41,7 @@ public final class ApplicationGatewayBackendHealthServerInner /** * Creates an instance of ApplicationGatewayBackendHealthServerInner class. */ - public ApplicationGatewayBackendHealthServerInner() { + private ApplicationGatewayBackendHealthServerInner() { } /** @@ -53,17 +53,6 @@ public String address() { return this.address; } - /** - * Set the address property: IP address or FQDN of backend server. - * - * @param address the address value to set. - * @return the ApplicationGatewayBackendHealthServerInner object itself. - */ - public ApplicationGatewayBackendHealthServerInner withAddress(String address) { - this.address = address; - return this; - } - /** * Get the ipConfiguration property: Reference to IP configuration of backend server. * @@ -73,18 +62,6 @@ public NetworkInterfaceIpConfigurationInner ipConfiguration() { return this.ipConfiguration; } - /** - * Set the ipConfiguration property: Reference to IP configuration of backend server. - * - * @param ipConfiguration the ipConfiguration value to set. - * @return the ApplicationGatewayBackendHealthServerInner object itself. - */ - public ApplicationGatewayBackendHealthServerInner - withIpConfiguration(NetworkInterfaceIpConfigurationInner ipConfiguration) { - this.ipConfiguration = ipConfiguration; - return this; - } - /** * Get the health property: Health of backend server. * @@ -94,17 +71,6 @@ public ApplicationGatewayBackendHealthServerHealth health() { return this.health; } - /** - * Set the health property: Health of backend server. - * - * @param health the health value to set. - * @return the ApplicationGatewayBackendHealthServerInner object itself. - */ - public ApplicationGatewayBackendHealthServerInner withHealth(ApplicationGatewayBackendHealthServerHealth health) { - this.health = health; - return this; - } - /** * Get the healthProbeLog property: Health Probe Log. * @@ -114,17 +80,6 @@ public String healthProbeLog() { return this.healthProbeLog; } - /** - * Set the healthProbeLog property: Health Probe Log. - * - * @param healthProbeLog the healthProbeLog value to set. - * @return the ApplicationGatewayBackendHealthServerInner object itself. - */ - public ApplicationGatewayBackendHealthServerInner withHealthProbeLog(String healthProbeLog) { - this.healthProbeLog = healthProbeLog; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java index f4904cac1e60..d27673243f04 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java index f3033707a7c8..97ce29051918 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayEntraJwtValidationConfigPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayEntraJwtValidationConfigPropertiesFormat.java index 5ae5e80a65ce..7ca627db3a7b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayEntraJwtValidationConfigPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayEntraJwtValidationConfigPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java index c425dedde397..4f3f0a60748c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -19,7 +19,7 @@ /** * Properties of the web application firewall rule set. */ -@Fluent +@Immutable public final class ApplicationGatewayFirewallRuleSetPropertiesFormat implements JsonSerializable { /* @@ -50,7 +50,7 @@ public final class ApplicationGatewayFirewallRuleSetPropertiesFormat /** * Creates an instance of ApplicationGatewayFirewallRuleSetPropertiesFormat class. */ - public ApplicationGatewayFirewallRuleSetPropertiesFormat() { + private ApplicationGatewayFirewallRuleSetPropertiesFormat() { } /** @@ -71,17 +71,6 @@ public String ruleSetType() { return this.ruleSetType; } - /** - * Set the ruleSetType property: The type of the web application firewall rule set. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ApplicationGatewayFirewallRuleSetPropertiesFormat object itself. - */ - public ApplicationGatewayFirewallRuleSetPropertiesFormat withRuleSetType(String ruleSetType) { - this.ruleSetType = ruleSetType; - return this; - } - /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. * @@ -91,17 +80,6 @@ public String ruleSetVersion() { return this.ruleSetVersion; } - /** - * Set the ruleSetVersion property: The version of the web application firewall rule set type. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ApplicationGatewayFirewallRuleSetPropertiesFormat object itself. - */ - public ApplicationGatewayFirewallRuleSetPropertiesFormat withRuleSetVersion(String ruleSetVersion) { - this.ruleSetVersion = ruleSetVersion; - return this; - } - /** * Get the ruleGroups property: The rule groups of the web application firewall rule set. * @@ -111,18 +89,6 @@ public List ruleGroups() { return this.ruleGroups; } - /** - * Set the ruleGroups property: The rule groups of the web application firewall rule set. - * - * @param ruleGroups the ruleGroups value to set. - * @return the ApplicationGatewayFirewallRuleSetPropertiesFormat object itself. - */ - public ApplicationGatewayFirewallRuleSetPropertiesFormat - withRuleGroups(List ruleGroups) { - this.ruleGroups = ruleGroups; - return this; - } - /** * Get the tiers property: Tier of an application gateway that support the rule set. * @@ -132,17 +98,6 @@ public List tiers() { return this.tiers; } - /** - * Set the tiers property: Tier of an application gateway that support the rule set. - * - * @param tiers the tiers value to set. - * @return the ApplicationGatewayFirewallRuleSetPropertiesFormat object itself. - */ - public ApplicationGatewayFirewallRuleSetPropertiesFormat withTiers(List tiers) { - this.tiers = tiers; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendIpConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendIpConfigurationPropertiesFormat.java index 31bb7891f756..d4d57d2cf8ea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendIpConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendIpConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendPortPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendPortPropertiesFormat.java index c1bf6b98a0c5..22c98d4b6f6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendPortPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendPortPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java index 1b132e92888a..764f3421be0d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java index c1240aa1be04..24028b1071b0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -1002,30 +1002,30 @@ public List loadDistributionPolicies() } /** - * Get the entraJwtValidationConfigs property: Entra JWT validation configurations for the application gateway + * Get the entraJWTValidationConfigs property: Entra JWT validation configurations for the application gateway * resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * - * @return the entraJwtValidationConfigs value. + * @return the entraJWTValidationConfigs value. */ - public List entraJwtValidationConfigs() { - return this.innerProperties() == null ? null : this.innerProperties().entraJwtValidationConfigs(); + public List entraJWTValidationConfigs() { + return this.innerProperties() == null ? null : this.innerProperties().entraJWTValidationConfigs(); } /** - * Set the entraJwtValidationConfigs property: Entra JWT validation configurations for the application gateway + * Set the entraJWTValidationConfigs property: Entra JWT validation configurations for the application gateway * resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * - * @param entraJwtValidationConfigs the entraJwtValidationConfigs value to set. + * @param entraJWTValidationConfigs the entraJWTValidationConfigs value to set. * @return the ApplicationGatewayInner object itself. */ public ApplicationGatewayInner - withEntraJwtValidationConfigs(List entraJwtValidationConfigs) { + withEntraJWTValidationConfigs(List entraJWTValidationConfigs) { if (this.innerProperties() == null) { this.innerProperties = new ApplicationGatewayPropertiesFormat(); } - this.innerProperties().withEntraJwtValidationConfigs(entraJwtValidationConfigs); + this.innerProperties().withEntraJWTValidationConfigs(entraJWTValidationConfigs); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationInner.java index 31017d09bdbc..10333730ff93 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationPropertiesFormat.java index 028ed6acb29b..34e9817da933 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerInner.java index 4f420287753b..bb0cc0b644a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java index 7438fbcb699b..563e2799e7f7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionPolicyPropertiesFormat.java index 6479b8e5d268..1fb8c71ad29e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionPolicyPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionTargetPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionTargetPropertiesFormat.java index 0ee873e5a838..ce48a528e7e6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionTargetPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionTargetPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRuleInner.java index 26ff2a804d23..f2a80297b2c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRulePropertiesFormat.java index 430235723392..29ccb379e868 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java index 4a70e1111f69..c30500e3ff2d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java @@ -1,40 +1,35 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Private Endpoint connection on an application gateway. */ @Fluent -public final class ApplicationGatewayPrivateEndpointConnectionInner extends SubResource { +public final class ApplicationGatewayPrivateEndpointConnectionInner extends SubResourceModel { /* * Properties of the application gateway private endpoint connection. */ private ApplicationGatewayPrivateEndpointConnectionPropertiesInner innerProperties; - /* - * Name of the private endpoint connection on an application gateway. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -53,26 +48,6 @@ private ApplicationGatewayPrivateEndpointConnectionPropertiesInner innerProperti return this.innerProperties; } - /** - * Get the name property: Name of the private endpoint connection on an application gateway. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Name of the private endpoint connection on an application gateway. - * - * @param name the name value to set. - * @return the ApplicationGatewayPrivateEndpointConnectionInner object itself. - */ - public ApplicationGatewayPrivateEndpointConnectionInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -83,14 +58,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ApplicationGatewayPrivateEndpointConnectionInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -159,6 +144,7 @@ public String linkIdentifier() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -172,8 +158,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -195,15 +181,15 @@ public static ApplicationGatewayPrivateEndpointConnectionInner fromJson(JsonRead if ("id".equals(fieldName)) { deserializedApplicationGatewayPrivateEndpointConnectionInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedApplicationGatewayPrivateEndpointConnectionInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedApplicationGatewayPrivateEndpointConnectionInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedApplicationGatewayPrivateEndpointConnectionInner.innerProperties = ApplicationGatewayPrivateEndpointConnectionPropertiesInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedApplicationGatewayPrivateEndpointConnectionInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedApplicationGatewayPrivateEndpointConnectionInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedApplicationGatewayPrivateEndpointConnectionInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java index 81ad94c229fc..d72dc3284e55 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java index 5e0c98b17d18..d2400011e89d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkIpConfigurationProperties.java index 986d94e6b3c1..2d72680b441d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkIpConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkIpConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceInner.java index 84cd9095b8d6..07f8f920bc54 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * PrivateLink Resource of an application gateway. */ -@Fluent +@Immutable public final class ApplicationGatewayPrivateLinkResourceInner extends SubResource { /* * Properties of the application gateway private link resource. @@ -40,7 +40,7 @@ public final class ApplicationGatewayPrivateLinkResourceInner extends SubResourc /** * Creates an instance of ApplicationGatewayPrivateLinkResourceInner class. */ - public ApplicationGatewayPrivateLinkResourceInner() { + private ApplicationGatewayPrivateLinkResourceInner() { } /** @@ -61,17 +61,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of the private link resource that is unique within an Application Gateway. - * - * @param name the name value to set. - * @return the ApplicationGatewayPrivateLinkResourceInner object itself. - */ - public ApplicationGatewayPrivateLinkResourceInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -90,15 +79,6 @@ public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewayPrivateLinkResourceInner withId(String id) { - super.withId(id); - return this; - } - /** * Get the groupId property: Group identifier of private link resource. * @@ -126,20 +106,6 @@ public List requiredZoneNames() { return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames(); } - /** - * Set the requiredZoneNames property: Required DNS zone names of the the private link resource. - * - * @param requiredZoneNames the requiredZoneNames value to set. - * @return the ApplicationGatewayPrivateLinkResourceInner object itself. - */ - public ApplicationGatewayPrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayPrivateLinkResourceProperties(); - } - this.innerProperties().withRequiredZoneNames(requiredZoneNames); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceProperties.java index 6d89fadc8c10..aaa614ce71d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Properties of a private link resource. */ -@Fluent +@Immutable public final class ApplicationGatewayPrivateLinkResourceProperties implements JsonSerializable { /* @@ -36,7 +36,7 @@ public final class ApplicationGatewayPrivateLinkResourceProperties /** * Creates an instance of ApplicationGatewayPrivateLinkResourceProperties class. */ - public ApplicationGatewayPrivateLinkResourceProperties() { + private ApplicationGatewayPrivateLinkResourceProperties() { } /** @@ -66,17 +66,6 @@ public List requiredZoneNames() { return this.requiredZoneNames; } - /** - * Set the requiredZoneNames property: Required DNS zone names of the the private link resource. - * - * @param requiredZoneNames the requiredZoneNames value to set. - * @return the ApplicationGatewayPrivateLinkResourceProperties object itself. - */ - public ApplicationGatewayPrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) { - this.requiredZoneNames = requiredZoneNames; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java index 471f97fe2ca1..75edf2b6d614 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java index a309b1fddaec..d40b3ace771b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java index 19744210de96..b938f5dadf70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -231,7 +231,7 @@ public final class ApplicationGatewayPropertiesFormat implements JsonSerializabl * Entra JWT validation configurations for the application gateway resource. For default limits, see [Application * Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ - private List entraJwtValidationConfigs; + private List entraJWTValidationConfigs; /* * Global Configuration. @@ -964,27 +964,27 @@ public List loadDistributionPolicies() } /** - * Get the entraJwtValidationConfigs property: Entra JWT validation configurations for the application gateway + * Get the entraJWTValidationConfigs property: Entra JWT validation configurations for the application gateway * resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * - * @return the entraJwtValidationConfigs value. + * @return the entraJWTValidationConfigs value. */ - public List entraJwtValidationConfigs() { - return this.entraJwtValidationConfigs; + public List entraJWTValidationConfigs() { + return this.entraJWTValidationConfigs; } /** - * Set the entraJwtValidationConfigs property: Entra JWT validation configurations for the application gateway + * Set the entraJWTValidationConfigs property: Entra JWT validation configurations for the application gateway * resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * - * @param entraJwtValidationConfigs the entraJwtValidationConfigs value to set. + * @param entraJWTValidationConfigs the entraJWTValidationConfigs value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ public ApplicationGatewayPropertiesFormat - withEntraJwtValidationConfigs(List entraJwtValidationConfigs) { - this.entraJwtValidationConfigs = entraJwtValidationConfigs; + withEntraJWTValidationConfigs(List entraJWTValidationConfigs) { + this.entraJWTValidationConfigs = entraJWTValidationConfigs; return this; } @@ -1106,8 +1106,8 @@ public void validate() { if (loadDistributionPolicies() != null) { loadDistributionPolicies().forEach(e -> e.validate()); } - if (entraJwtValidationConfigs() != null) { - entraJwtValidationConfigs().forEach(e -> e.validate()); + if (entraJWTValidationConfigs() != null) { + entraJWTValidationConfigs().forEach(e -> e.validate()); } if (globalConfiguration() != null) { globalConfiguration().validate(); @@ -1165,7 +1165,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("forceFirewallPolicyAssociation", this.forceFirewallPolicyAssociation); jsonWriter.writeArrayField("loadDistributionPolicies", this.loadDistributionPolicies, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("entraJWTValidationConfigs", this.entraJwtValidationConfigs, + jsonWriter.writeArrayField("entraJWTValidationConfigs", this.entraJWTValidationConfigs, (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("globalConfiguration", this.globalConfiguration); return jsonWriter.writeEndObject(); @@ -1317,10 +1317,10 @@ public static ApplicationGatewayPropertiesFormat fromJson(JsonReader jsonReader) = reader.readArray(reader1 -> ApplicationGatewayLoadDistributionPolicy.fromJson(reader1)); deserializedApplicationGatewayPropertiesFormat.loadDistributionPolicies = loadDistributionPolicies; } else if ("entraJWTValidationConfigs".equals(fieldName)) { - List entraJwtValidationConfigs + List entraJWTValidationConfigs = reader.readArray(reader1 -> ApplicationGatewayEntraJwtValidationConfig.fromJson(reader1)); - deserializedApplicationGatewayPropertiesFormat.entraJwtValidationConfigs - = entraJwtValidationConfigs; + deserializedApplicationGatewayPropertiesFormat.entraJWTValidationConfigs + = entraJWTValidationConfigs; } else if ("globalConfiguration".equals(fieldName)) { deserializedApplicationGatewayPropertiesFormat.globalConfiguration = ApplicationGatewayGlobalConfiguration.fromJson(reader); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationInner.java index f40d77998904..e9ab98f00658 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationPropertiesFormat.java index 172af382965b..bc38705bba70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRuleInner.java index 0331057dc5bf..d4a7ca288562 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -308,28 +308,28 @@ public ApplicationGatewayRequestRoutingRuleInner withLoadDistributionPolicy(SubR } /** - * Get the entraJwtValidationConfig property: Entra JWT validation configuration resource of the application + * Get the entraJWTValidationConfig property: Entra JWT validation configuration resource of the application * gateway. * - * @return the entraJwtValidationConfig value. + * @return the entraJWTValidationConfig value. */ - public SubResource entraJwtValidationConfig() { - return this.innerProperties() == null ? null : this.innerProperties().entraJwtValidationConfig(); + public SubResource entraJWTValidationConfig() { + return this.innerProperties() == null ? null : this.innerProperties().entraJWTValidationConfig(); } /** - * Set the entraJwtValidationConfig property: Entra JWT validation configuration resource of the application + * Set the entraJWTValidationConfig property: Entra JWT validation configuration resource of the application * gateway. * - * @param entraJwtValidationConfig the entraJwtValidationConfig value to set. + * @param entraJWTValidationConfig the entraJWTValidationConfig value to set. * @return the ApplicationGatewayRequestRoutingRuleInner object itself. */ public ApplicationGatewayRequestRoutingRuleInner - withEntraJwtValidationConfig(SubResource entraJwtValidationConfig) { + withEntraJWTValidationConfig(SubResource entraJWTValidationConfig) { if (this.innerProperties() == null) { this.innerProperties = new ApplicationGatewayRequestRoutingRulePropertiesFormat(); } - this.innerProperties().withEntraJwtValidationConfig(entraJwtValidationConfig); + this.innerProperties().withEntraJWTValidationConfig(entraJWTValidationConfig); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRulePropertiesFormat.java index 10760a48b810..b667c4ff1d47 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -68,7 +68,7 @@ public final class ApplicationGatewayRequestRoutingRulePropertiesFormat /* * Entra JWT validation configuration resource of the application gateway. */ - private SubResource entraJwtValidationConfig; + private SubResource entraJWTValidationConfig; /* * The provisioning state of the request routing rule resource. @@ -266,25 +266,25 @@ public SubResource loadDistributionPolicy() { } /** - * Get the entraJwtValidationConfig property: Entra JWT validation configuration resource of the application + * Get the entraJWTValidationConfig property: Entra JWT validation configuration resource of the application * gateway. * - * @return the entraJwtValidationConfig value. + * @return the entraJWTValidationConfig value. */ - public SubResource entraJwtValidationConfig() { - return this.entraJwtValidationConfig; + public SubResource entraJWTValidationConfig() { + return this.entraJWTValidationConfig; } /** - * Set the entraJwtValidationConfig property: Entra JWT validation configuration resource of the application + * Set the entraJWTValidationConfig property: Entra JWT validation configuration resource of the application * gateway. * - * @param entraJwtValidationConfig the entraJwtValidationConfig value to set. + * @param entraJWTValidationConfig the entraJWTValidationConfig value to set. * @return the ApplicationGatewayRequestRoutingRulePropertiesFormat object itself. */ public ApplicationGatewayRequestRoutingRulePropertiesFormat - withEntraJwtValidationConfig(SubResource entraJwtValidationConfig) { - this.entraJwtValidationConfig = entraJwtValidationConfig; + withEntraJWTValidationConfig(SubResource entraJWTValidationConfig) { + this.entraJWTValidationConfig = entraJWTValidationConfig; return this; } @@ -320,7 +320,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("rewriteRuleSet", this.rewriteRuleSet); jsonWriter.writeJsonField("redirectConfiguration", this.redirectConfiguration); jsonWriter.writeJsonField("loadDistributionPolicy", this.loadDistributionPolicy); - jsonWriter.writeJsonField("entraJWTValidationConfig", this.entraJwtValidationConfig); + jsonWriter.writeJsonField("entraJWTValidationConfig", this.entraJWTValidationConfig); return jsonWriter.writeEndObject(); } @@ -369,7 +369,7 @@ public static ApplicationGatewayRequestRoutingRulePropertiesFormat fromJson(Json deserializedApplicationGatewayRequestRoutingRulePropertiesFormat.loadDistributionPolicy = SubResource.fromJson(reader); } else if ("entraJWTValidationConfig".equals(fieldName)) { - deserializedApplicationGatewayRequestRoutingRulePropertiesFormat.entraJwtValidationConfig + deserializedApplicationGatewayRequestRoutingRulePropertiesFormat.entraJWTValidationConfig = SubResource.fromJson(reader); } else if ("provisioningState".equals(fieldName)) { deserializedApplicationGatewayRequestRoutingRulePropertiesFormat.provisioningState diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRewriteRuleSetPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRewriteRuleSetPropertiesFormat.java index 5d6d85d6f773..713f691d9b42 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRewriteRuleSetPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRewriteRuleSetPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRoutingRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRoutingRulePropertiesFormat.java index f13bd7abcd11..518a35d782e0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRoutingRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRoutingRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificateInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificateInner.java index 4f18f5047570..ddf16d0a6542 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificateInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificateInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificatePropertiesFormat.java index 26d056d26238..b772ac2c766e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyInner.java index 0b620e59179b..a92bcb9b89c2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * An Ssl predefined policy. */ -@Fluent +@Immutable public final class ApplicationGatewaySslPredefinedPolicyInner extends SubResource { /* * Name of the Ssl predefined policy. @@ -32,7 +32,7 @@ public final class ApplicationGatewaySslPredefinedPolicyInner extends SubResourc /** * Creates an instance of ApplicationGatewaySslPredefinedPolicyInner class. */ - public ApplicationGatewaySslPredefinedPolicyInner() { + private ApplicationGatewaySslPredefinedPolicyInner() { } /** @@ -44,17 +44,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of the Ssl predefined policy. - * - * @param name the name value to set. - * @return the ApplicationGatewaySslPredefinedPolicyInner object itself. - */ - public ApplicationGatewaySslPredefinedPolicyInner withName(String name) { - this.name = name; - return this; - } - /** * Get the innerProperties property: Properties of the application gateway SSL predefined policy. * @@ -64,15 +53,6 @@ private ApplicationGatewaySslPredefinedPolicyPropertiesFormat innerProperties() return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewaySslPredefinedPolicyInner withId(String id) { - super.withId(id); - return this; - } - /** * Get the cipherSuites property: Ssl cipher suites to be enabled in the specified order for application gateway. * @@ -82,21 +62,6 @@ public List cipherSuites() { return this.innerProperties() == null ? null : this.innerProperties().cipherSuites(); } - /** - * Set the cipherSuites property: Ssl cipher suites to be enabled in the specified order for application gateway. - * - * @param cipherSuites the cipherSuites value to set. - * @return the ApplicationGatewaySslPredefinedPolicyInner object itself. - */ - public ApplicationGatewaySslPredefinedPolicyInner - withCipherSuites(List cipherSuites) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewaySslPredefinedPolicyPropertiesFormat(); - } - this.innerProperties().withCipherSuites(cipherSuites); - return this; - } - /** * Get the minProtocolVersion property: Minimum version of Ssl protocol to be supported on application gateway. * @@ -106,21 +71,6 @@ public ApplicationGatewaySslProtocol minProtocolVersion() { return this.innerProperties() == null ? null : this.innerProperties().minProtocolVersion(); } - /** - * Set the minProtocolVersion property: Minimum version of Ssl protocol to be supported on application gateway. - * - * @param minProtocolVersion the minProtocolVersion value to set. - * @return the ApplicationGatewaySslPredefinedPolicyInner object itself. - */ - public ApplicationGatewaySslPredefinedPolicyInner - withMinProtocolVersion(ApplicationGatewaySslProtocol minProtocolVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewaySslPredefinedPolicyPropertiesFormat(); - } - this.innerProperties().withMinProtocolVersion(minProtocolVersion); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyPropertiesFormat.java index f9bc62056539..efdadbe3935c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * Properties of ApplicationGatewaySslPredefinedPolicy. */ -@Fluent +@Immutable public final class ApplicationGatewaySslPredefinedPolicyPropertiesFormat implements JsonSerializable { /* @@ -33,7 +33,7 @@ public final class ApplicationGatewaySslPredefinedPolicyPropertiesFormat /** * Creates an instance of ApplicationGatewaySslPredefinedPolicyPropertiesFormat class. */ - public ApplicationGatewaySslPredefinedPolicyPropertiesFormat() { + private ApplicationGatewaySslPredefinedPolicyPropertiesFormat() { } /** @@ -45,18 +45,6 @@ public List cipherSuites() { return this.cipherSuites; } - /** - * Set the cipherSuites property: Ssl cipher suites to be enabled in the specified order for application gateway. - * - * @param cipherSuites the cipherSuites value to set. - * @return the ApplicationGatewaySslPredefinedPolicyPropertiesFormat object itself. - */ - public ApplicationGatewaySslPredefinedPolicyPropertiesFormat - withCipherSuites(List cipherSuites) { - this.cipherSuites = cipherSuites; - return this; - } - /** * Get the minProtocolVersion property: Minimum version of Ssl protocol to be supported on application gateway. * @@ -66,18 +54,6 @@ public ApplicationGatewaySslProtocol minProtocolVersion() { return this.minProtocolVersion; } - /** - * Set the minProtocolVersion property: Minimum version of Ssl protocol to be supported on application gateway. - * - * @param minProtocolVersion the minProtocolVersion value to set. - * @return the ApplicationGatewaySslPredefinedPolicyPropertiesFormat object itself. - */ - public ApplicationGatewaySslPredefinedPolicyPropertiesFormat - withMinProtocolVersion(ApplicationGatewaySslProtocol minProtocolVersion) { - this.minProtocolVersion = minProtocolVersion; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslProfilePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslProfilePropertiesFormat.java index b2a727709256..cb61d629d985 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslProfilePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslProfilePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedClientCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedClientCertificatePropertiesFormat.java index b1ebaf4bcd65..9d2aeda39442 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedClientCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedClientCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedRootCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedRootCertificatePropertiesFormat.java index 1a8c4585ad9b..72f712ead9e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedRootCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedRootCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapInner.java index 17b0cbbf694a..759d34e4784b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapPropertiesFormat.java index 02ab142dc261..2af73966e226 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestPropertiesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestPropertiesResult.java index 7589dab83f6f..62d2c8f15c22 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestPropertiesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestPropertiesResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties of ApplicationGatewayWafDynamicManifest. */ -@Fluent +@Immutable public final class ApplicationGatewayWafDynamicManifestPropertiesResult implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class ApplicationGatewayWafDynamicManifestPropertiesResult /** * Creates an instance of ApplicationGatewayWafDynamicManifestPropertiesResult class. */ - public ApplicationGatewayWafDynamicManifestPropertiesResult() { + private ApplicationGatewayWafDynamicManifestPropertiesResult() { } /** @@ -53,18 +53,6 @@ public List availableRuleSets() { return this.availableRuleSets; } - /** - * Set the availableRuleSets property: The available rulesets. - * - * @param availableRuleSets the availableRuleSets value to set. - * @return the ApplicationGatewayWafDynamicManifestPropertiesResult object itself. - */ - public ApplicationGatewayWafDynamicManifestPropertiesResult - withAvailableRuleSets(List availableRuleSets) { - this.availableRuleSets = availableRuleSets; - return this; - } - /** * Get the ruleSetType property: The type of the web application firewall rule set. * @@ -74,20 +62,6 @@ public String ruleSetType() { return this.innerDefaultRuleSet() == null ? null : this.innerDefaultRuleSet().ruleSetType(); } - /** - * Set the ruleSetType property: The type of the web application firewall rule set. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ApplicationGatewayWafDynamicManifestPropertiesResult object itself. - */ - public ApplicationGatewayWafDynamicManifestPropertiesResult withRuleSetType(String ruleSetType) { - if (this.innerDefaultRuleSet() == null) { - this.innerDefaultRuleSet = new DefaultRuleSetPropertyFormat(); - } - this.innerDefaultRuleSet().withRuleSetType(ruleSetType); - return this; - } - /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. * @@ -97,20 +71,6 @@ public String ruleSetVersion() { return this.innerDefaultRuleSet() == null ? null : this.innerDefaultRuleSet().ruleSetVersion(); } - /** - * Set the ruleSetVersion property: The version of the web application firewall rule set type. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ApplicationGatewayWafDynamicManifestPropertiesResult object itself. - */ - public ApplicationGatewayWafDynamicManifestPropertiesResult withRuleSetVersion(String ruleSetVersion) { - if (this.innerDefaultRuleSet() == null) { - this.innerDefaultRuleSet = new DefaultRuleSetPropertyFormat(); - } - this.innerDefaultRuleSet().withRuleSetVersion(ruleSetVersion); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestResultInner.java index 47d7d54c7e6a..7f8407d68643 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestResultInner.java @@ -1,68 +1,66 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ApplicationGatewayFirewallManifestRuleSet; +import com.azure.resourcemanager.network.models.ProxyResourceWithSettableId; import java.io.IOException; import java.util.List; /** * Response for ApplicationGatewayWafDynamicManifest API service call. */ -@Fluent -public final class ApplicationGatewayWafDynamicManifestResultInner - implements JsonSerializable { +@Immutable +public final class ApplicationGatewayWafDynamicManifestResultInner extends ProxyResourceWithSettableId { /* - * Resource ID. + * Properties of the ApplicationGatewayWafDynamicManifest . */ - private String id; + private ApplicationGatewayWafDynamicManifestPropertiesResult innerProperties; /* - * Resource name. + * Resource type. */ - private String name; + private String type; /* - * Resource type. + * Resource name. */ - private String type; + private String name; /* - * Properties of the ApplicationGatewayWafDynamicManifest . + * Resource ID. */ - private ApplicationGatewayWafDynamicManifestPropertiesResult innerProperties; + private String id; /** * Creates an instance of ApplicationGatewayWafDynamicManifestResultInner class. */ - public ApplicationGatewayWafDynamicManifestResultInner() { + private ApplicationGatewayWafDynamicManifestResultInner() { } /** - * Get the id property: Resource ID. + * Get the innerProperties property: Properties of the ApplicationGatewayWafDynamicManifest . * - * @return the id value. + * @return the innerProperties value. */ - public String id() { - return this.id; + private ApplicationGatewayWafDynamicManifestPropertiesResult innerProperties() { + return this.innerProperties; } /** - * Set the id property: Resource ID. + * Get the type property: Resource type. * - * @param id the id value to set. - * @return the ApplicationGatewayWafDynamicManifestResultInner object itself. + * @return the type value. */ - public ApplicationGatewayWafDynamicManifestResultInner withId(String id) { - this.id = id; - return this; + @Override + public String type() { + return this.type; } /** @@ -70,26 +68,19 @@ public ApplicationGatewayWafDynamicManifestResultInner withId(String id) { * * @return the name value. */ + @Override public String name() { return this.name; } /** - * Get the type property: Resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the innerProperties property: Properties of the ApplicationGatewayWafDynamicManifest . + * Get the id property: Resource ID. * - * @return the innerProperties value. + * @return the id value. */ - private ApplicationGatewayWafDynamicManifestPropertiesResult innerProperties() { - return this.innerProperties; + @Override + public String id() { + return this.id; } /** @@ -101,21 +92,6 @@ public List availableRuleSets() { return this.innerProperties() == null ? null : this.innerProperties().availableRuleSets(); } - /** - * Set the availableRuleSets property: The available rulesets. - * - * @param availableRuleSets the availableRuleSets value to set. - * @return the ApplicationGatewayWafDynamicManifestResultInner object itself. - */ - public ApplicationGatewayWafDynamicManifestResultInner - withAvailableRuleSets(List availableRuleSets) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayWafDynamicManifestPropertiesResult(); - } - this.innerProperties().withAvailableRuleSets(availableRuleSets); - return this; - } - /** * Get the ruleSetType property: The type of the web application firewall rule set. * @@ -125,20 +101,6 @@ public String ruleSetType() { return this.innerProperties() == null ? null : this.innerProperties().ruleSetType(); } - /** - * Set the ruleSetType property: The type of the web application firewall rule set. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ApplicationGatewayWafDynamicManifestResultInner object itself. - */ - public ApplicationGatewayWafDynamicManifestResultInner withRuleSetType(String ruleSetType) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayWafDynamicManifestPropertiesResult(); - } - this.innerProperties().withRuleSetType(ruleSetType); - return this; - } - /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. * @@ -148,25 +110,12 @@ public String ruleSetVersion() { return this.innerProperties() == null ? null : this.innerProperties().ruleSetVersion(); } - /** - * Set the ruleSetVersion property: The version of the web application firewall rule set type. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ApplicationGatewayWafDynamicManifestResultInner object itself. - */ - public ApplicationGatewayWafDynamicManifestResultInner withRuleSetVersion(String ruleSetVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayWafDynamicManifestPropertiesResult(); - } - this.innerProperties().withRuleSetVersion(ruleSetVersion); - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -179,7 +128,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("id", id()); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java index 508dc8a6ade6..e87ee50e8751 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java index c7422cbedbba..4dcf40340b13 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AuthorizationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AuthorizationPropertiesFormat.java index f8bb0fb5ed6f..070ea0ad6473 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AuthorizationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AuthorizationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AutoApprovedPrivateLinkServiceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AutoApprovedPrivateLinkServiceInner.java index f758afc800a2..7ba8e6afc183 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AutoApprovedPrivateLinkServiceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AutoApprovedPrivateLinkServiceInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The information of an AutoApprovedPrivateLinkService. */ -@Fluent +@Immutable public final class AutoApprovedPrivateLinkServiceInner implements JsonSerializable { /* @@ -25,7 +25,7 @@ public final class AutoApprovedPrivateLinkServiceInner /** * Creates an instance of AutoApprovedPrivateLinkServiceInner class. */ - public AutoApprovedPrivateLinkServiceInner() { + private AutoApprovedPrivateLinkServiceInner() { } /** @@ -37,17 +37,6 @@ public String privateLinkService() { return this.privateLinkService; } - /** - * Set the privateLinkService property: The id of the private link service resource. - * - * @param privateLinkService the privateLinkService value to set. - * @return the AutoApprovedPrivateLinkServiceInner object itself. - */ - public AutoApprovedPrivateLinkServiceInner withPrivateLinkService(String privateLinkService) { - this.privateLinkService = privateLinkService; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableDelegationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableDelegationInner.java index ca6cef4c7ce5..5a40eb5cc96b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableDelegationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableDelegationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The serviceName of an AvailableDelegation indicates a possible delegation for a subnet. */ -@Fluent +@Immutable public final class AvailableDelegationInner implements JsonSerializable { /* * The name of the AvailableDelegation resource. @@ -45,7 +45,7 @@ public final class AvailableDelegationInner implements JsonSerializable actions() { return this.actions; } - /** - * Set the actions property: The actions permitted to the service upon delegation. - * - * @param actions the actions value to set. - * @return the AvailableDelegationInner object itself. - */ - public AvailableDelegationInner withActions(List actions) { - this.actions = actions; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailablePrivateEndpointTypeInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailablePrivateEndpointTypeInner.java index 6cada32bb5c0..f0eff4a242f4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailablePrivateEndpointTypeInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailablePrivateEndpointTypeInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The information of an AvailablePrivateEndpointType. */ -@Fluent +@Immutable public final class AvailablePrivateEndpointTypeInner implements JsonSerializable { /* * The name of the service and resource. @@ -44,7 +44,7 @@ public final class AvailablePrivateEndpointTypeInner implements JsonSerializable /** * Creates an instance of AvailablePrivateEndpointTypeInner class. */ - public AvailablePrivateEndpointTypeInner() { + private AvailablePrivateEndpointTypeInner() { } /** @@ -56,17 +56,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the service and resource. - * - * @param name the name value to set. - * @return the AvailablePrivateEndpointTypeInner object itself. - */ - public AvailablePrivateEndpointTypeInner withName(String name) { - this.name = name; - return this; - } - /** * Get the id property: A unique identifier of the AvailablePrivateEndpoint Type resource. * @@ -76,17 +65,6 @@ public String id() { return this.id; } - /** - * Set the id property: A unique identifier of the AvailablePrivateEndpoint Type resource. - * - * @param id the id value to set. - * @return the AvailablePrivateEndpointTypeInner object itself. - */ - public AvailablePrivateEndpointTypeInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: Resource type. * @@ -96,17 +74,6 @@ public String type() { return this.type; } - /** - * Set the type property: Resource type. - * - * @param type the type value to set. - * @return the AvailablePrivateEndpointTypeInner object itself. - */ - public AvailablePrivateEndpointTypeInner withType(String type) { - this.type = type; - return this; - } - /** * Get the resourceName property: The name of the service and resource. * @@ -116,17 +83,6 @@ public String resourceName() { return this.resourceName; } - /** - * Set the resourceName property: The name of the service and resource. - * - * @param resourceName the resourceName value to set. - * @return the AvailablePrivateEndpointTypeInner object itself. - */ - public AvailablePrivateEndpointTypeInner withResourceName(String resourceName) { - this.resourceName = resourceName; - return this; - } - /** * Get the displayName property: Display name of the resource. * @@ -136,17 +92,6 @@ public String displayName() { return this.displayName; } - /** - * Set the displayName property: Display name of the resource. - * - * @param displayName the displayName value to set. - * @return the AvailablePrivateEndpointTypeInner object itself. - */ - public AvailablePrivateEndpointTypeInner withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java index e6aaf1978e40..ccf2bc0c198e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * List of available countries with details. */ -@Fluent +@Immutable public final class AvailableProvidersListInner implements JsonSerializable { /* * List of available countries. @@ -27,7 +27,7 @@ public final class AvailableProvidersListInner implements JsonSerializable countries() { return this.countries; } - /** - * Set the countries property: List of available countries. - * - * @param countries the countries value to set. - * @return the AvailableProvidersListInner object itself. - */ - public AvailableProvidersListInner withCountries(List countries) { - this.countries = countries; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableServiceAliasInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableServiceAliasInner.java index 5498f84a4eab..b60e15ef11a5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableServiceAliasInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableServiceAliasInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The available service alias. */ -@Fluent +@Immutable public final class AvailableServiceAliasInner implements JsonSerializable { /* * The name of the service alias. @@ -39,7 +39,7 @@ public final class AvailableServiceAliasInner implements JsonSerializable tags) { - super.withTags(tags); - return this; - } - /** * Get the provisioningState property: The provisioning state of the Azure firewall FQDN tag resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagPropertiesFormat.java index 817568621e70..3e9c9d9e3650 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -31,7 +31,7 @@ public final class AzureFirewallFqdnTagPropertiesFormat /** * Creates an instance of AzureFirewallFqdnTagPropertiesFormat class. */ - public AzureFirewallFqdnTagPropertiesFormat() { + private AzureFirewallFqdnTagPropertiesFormat() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java index 5c0aab737198..f82dd2c5ed7f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -383,25 +383,25 @@ public AzureFirewallInner withFirewallPolicy(SubResource firewallPolicy) { } /** - * Get the hubIpAddresses property: IP addresses associated with AzureFirewall. + * Get the hubIPAddresses property: IP addresses associated with AzureFirewall. * - * @return the hubIpAddresses value. + * @return the hubIPAddresses value. */ - public HubIpAddresses hubIpAddresses() { - return this.innerProperties() == null ? null : this.innerProperties().hubIpAddresses(); + public HubIpAddresses hubIPAddresses() { + return this.innerProperties() == null ? null : this.innerProperties().hubIPAddresses(); } /** - * Set the hubIpAddresses property: IP addresses associated with AzureFirewall. + * Set the hubIPAddresses property: IP addresses associated with AzureFirewall. * - * @param hubIpAddresses the hubIpAddresses value to set. + * @param hubIPAddresses the hubIPAddresses value to set. * @return the AzureFirewallInner object itself. */ - public AzureFirewallInner withHubIpAddresses(HubIpAddresses hubIpAddresses) { + public AzureFirewallInner withHubIPAddresses(HubIpAddresses hubIPAddresses) { if (this.innerProperties() == null) { this.innerProperties = new AzureFirewallPropertiesFormat(); } - this.innerProperties().withHubIpAddresses(hubIpAddresses); + this.innerProperties().withHubIPAddresses(hubIPAddresses); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java index b146b4896602..41ecf0dcf4b9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNatRuleCollectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNatRuleCollectionProperties.java index 407da6a24d1d..ced5b80fe6d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNatRuleCollectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNatRuleCollectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNetworkRuleCollectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNetworkRuleCollectionPropertiesFormat.java index cc9344626896..19b33b5654c2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNetworkRuleCollectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNetworkRuleCollectionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPacketCaptureResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPacketCaptureResponseInner.java index 98c253697546..04a076e0101f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPacketCaptureResponseInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPacketCaptureResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Response of an Azure Firewall Packet Capture Operation. */ -@Fluent +@Immutable public final class AzureFirewallPacketCaptureResponseInner implements JsonSerializable { /* @@ -31,7 +31,7 @@ public final class AzureFirewallPacketCaptureResponseInner /** * Creates an instance of AzureFirewallPacketCaptureResponseInner class. */ - public AzureFirewallPacketCaptureResponseInner() { + private AzureFirewallPacketCaptureResponseInner() { } /** @@ -43,17 +43,6 @@ public AzureFirewallPacketCaptureResponseCode statusCode() { return this.statusCode; } - /** - * Set the statusCode property: The response code of the performed packet capture operation. - * - * @param statusCode the statusCode value to set. - * @return the AzureFirewallPacketCaptureResponseInner object itself. - */ - public AzureFirewallPacketCaptureResponseInner withStatusCode(AzureFirewallPacketCaptureResponseCode statusCode) { - this.statusCode = statusCode; - return this; - } - /** * Get the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation. * @@ -63,17 +52,6 @@ public String message() { return this.message; } - /** - * Set the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation. - * - * @param message the message value to set. - * @return the AzureFirewallPacketCaptureResponseInner object itself. - */ - public AzureFirewallPacketCaptureResponseInner withMessage(String message) { - this.message = message; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPropertiesFormat.java index 5816a4961f5f..4ee3de006d4e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -77,7 +77,7 @@ public final class AzureFirewallPropertiesFormat implements JsonSerializable e.validate()); @@ -424,7 +424,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.threatIntelMode == null ? null : this.threatIntelMode.toString()); jsonWriter.writeJsonField("virtualHub", this.virtualHub); jsonWriter.writeJsonField("firewallPolicy", this.firewallPolicy); - jsonWriter.writeJsonField("hubIPAddresses", this.hubIpAddresses); + jsonWriter.writeJsonField("hubIPAddresses", this.hubIPAddresses); jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeMapField("additionalProperties", this.additionalProperties, (writer, element) -> writer.writeString(element)); @@ -478,7 +478,7 @@ public static AzureFirewallPropertiesFormat fromJson(JsonReader jsonReader) thro } else if ("firewallPolicy".equals(fieldName)) { deserializedAzureFirewallPropertiesFormat.firewallPolicy = SubResource.fromJson(reader); } else if ("hubIPAddresses".equals(fieldName)) { - deserializedAzureFirewallPropertiesFormat.hubIpAddresses = HubIpAddresses.fromJson(reader); + deserializedAzureFirewallPropertiesFormat.hubIPAddresses = HubIpAddresses.fromJson(reader); } else if ("ipGroups".equals(fieldName)) { List ipGroups = reader.readArray(reader1 -> AzureFirewallIpGroups.fromJson(reader1)); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java index 01c31c7834df..120a09f02007 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * Azure reachability report details. */ -@Fluent +@Immutable public final class AzureReachabilityReportInner implements JsonSerializable { /* * The aggregation level of Azure reachability report. Can be Country, State or City. @@ -38,7 +38,7 @@ public final class AzureReachabilityReportInner implements JsonSerializable reachabilityReport() { return this.reachabilityReport; } - /** - * Set the reachabilityReport property: List of Azure reachability report items. - * - * @param reachabilityReport the reachabilityReport value to set. - * @return the AzureReachabilityReportInner object itself. - */ - public AzureReachabilityReportInner withReachabilityReport(List reachabilityReport) { - this.reachabilityReport = reachabilityReport; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryInner.java index c20ef588a21c..513624fd022e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryInner.java @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; @@ -14,37 +14,37 @@ /** * Azure Web Category Resource. */ -@Fluent -public final class AzureWebCategoryInner implements JsonSerializable { +@Immutable +public final class AzureWebCategoryInner extends ProxyResource { /* * Properties of the Azure Web Category. */ private AzureWebCategoryPropertiesFormat innerProperties; /* - * Resource ID. + * A unique read-only string that changes whenever the resource is updated. */ - private String id; + private String etag; /* - * Resource name. + * Resource ID. */ - private String name; + private String id; /* - * Resource type. + * The type of the resource. */ private String type; /* - * A unique read-only string that changes whenever the resource is updated. + * The name of the resource. */ - private String etag; + private String name; /** * Creates an instance of AzureWebCategoryInner class. */ - public AzureWebCategoryInner() { + private AzureWebCategoryInner() { } /** @@ -57,50 +57,41 @@ private AzureWebCategoryPropertiesFormat innerProperties() { } /** - * Get the id property: Resource ID. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: Resource ID. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @param id the id value to set. - * @return the AzureWebCategoryInner object itself. + * @return the etag value. */ - public AzureWebCategoryInner withId(String id) { - this.id = id; - return this; + public String etag() { + return this.etag; } /** - * Get the name property: Resource name. + * Get the id property: Resource ID. * - * @return the name value. + * @return the id value. */ - public String name() { - return this.name; + public String id() { + return this.id; } /** - * Get the type property: Resource type. + * Get the type property: The type of the resource. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the name property: The name of the resource. * - * @return the etag value. + * @return the name value. */ - public String etag() { - return this.etag; + @Override + public String name() { + return this.name; } /** @@ -140,6 +131,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AzureWebCategoryInner if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AzureWebCategoryInner. */ public static AzureWebCategoryInner fromJson(JsonReader jsonReader) throws IOException { @@ -149,17 +141,17 @@ public static AzureWebCategoryInner fromJson(JsonReader jsonReader) throws IOExc String fieldName = reader.getFieldName(); reader.nextToken(); - if ("properties".equals(fieldName)) { - deserializedAzureWebCategoryInner.innerProperties - = AzureWebCategoryPropertiesFormat.fromJson(reader); - } else if ("id".equals(fieldName)) { - deserializedAzureWebCategoryInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { + if ("name".equals(fieldName)) { deserializedAzureWebCategoryInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedAzureWebCategoryInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedAzureWebCategoryInner.innerProperties + = AzureWebCategoryPropertiesFormat.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedAzureWebCategoryInner.etag = reader.getString(); + } else if ("id".equals(fieldName)) { + deserializedAzureWebCategoryInner.id = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryPropertiesFormat.java index 32a9e8b6da65..8cc9006cdedf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -24,7 +24,7 @@ public final class AzureWebCategoryPropertiesFormat implements JsonSerializable< /** * Creates an instance of AzureWebCategoryPropertiesFormat class. */ - public AzureWebCategoryPropertiesFormat() { + private AzureWebCategoryPropertiesFormat() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressInboundNatRulePortMappingsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressInboundNatRulePortMappingsInner.java index e35f91b83775..980c18305a74 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressInboundNatRulePortMappingsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressInboundNatRulePortMappingsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * The response for a QueryInboundNatRulePortMapping API. */ -@Fluent +@Immutable public final class BackendAddressInboundNatRulePortMappingsInner implements JsonSerializable { /* @@ -27,7 +27,7 @@ public final class BackendAddressInboundNatRulePortMappingsInner /** * Creates an instance of BackendAddressInboundNatRulePortMappingsInner class. */ - public BackendAddressInboundNatRulePortMappingsInner() { + private BackendAddressInboundNatRulePortMappingsInner() { } /** @@ -39,18 +39,6 @@ public List inboundNatRulePortMappings() { return this.inboundNatRulePortMappings; } - /** - * Set the inboundNatRulePortMappings property: Collection of inbound NAT rule port mappings. - * - * @param inboundNatRulePortMappings the inboundNatRulePortMappings value to set. - * @return the BackendAddressInboundNatRulePortMappingsInner object itself. - */ - public BackendAddressInboundNatRulePortMappingsInner - withInboundNatRulePortMappings(List inboundNatRulePortMappings) { - this.inboundNatRulePortMappings = inboundNatRulePortMappings; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java index f864b83b25bb..90275f2b1388 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface; import com.azure.resourcemanager.network.models.LoadBalancerBackendAddress; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.SyncMode; import java.io.IOException; import java.util.List; @@ -20,25 +21,19 @@ * Pool of backend IP addresses. */ @Fluent -public final class BackendAddressPoolInner extends SubResource { +public final class BackendAddressPoolInner extends SubResourceModel { /* * Properties of load balancer backend address pool. */ private BackendAddressPoolPropertiesFormat innerProperties; - /* - * 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. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -57,28 +52,6 @@ private BackendAddressPoolPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: 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. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: 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. - * - * @param name the name value to set. - * @return the BackendAddressPoolInner object itself. - */ - public BackendAddressPoolInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -89,14 +62,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public BackendAddressPoolInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -307,6 +290,7 @@ public BackendAddressPoolInner withSyncMode(SyncMode syncMode) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -320,8 +304,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -342,15 +326,15 @@ public static BackendAddressPoolInner fromJson(JsonReader jsonReader) throws IOE if ("id".equals(fieldName)) { deserializedBackendAddressPoolInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedBackendAddressPoolInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedBackendAddressPoolInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedBackendAddressPoolInner.innerProperties = BackendAddressPoolPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedBackendAddressPoolInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedBackendAddressPoolInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedBackendAddressPoolInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java index 3d1758a002c0..b9ffe2af3544 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java index 5e1c20583af4..41cef5620b08 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -36,17 +36,17 @@ public class BaseAdminRuleInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -96,7 +96,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -106,7 +106,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -116,7 +116,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -150,7 +150,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BaseAdminRuleInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BaseAdminRuleInner. */ public static BaseAdminRuleInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionActiveSessionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionActiveSessionInner.java index 8f6b246f818e..76c9fedc8dec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionActiveSessionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionActiveSessionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -40,7 +40,7 @@ public final class BastionActiveSessionInner implements JsonSerializable { /* * List of BGP peers. @@ -26,7 +26,7 @@ public final class BgpPeerStatusListResultInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: List of BGP peers. - * - * @param value the value value to set. - * @return the BgpPeerStatusListResultInner object itself. - */ - public BgpPeerStatusListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityInner.java index 67bfe354e225..4620b95b23ba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * Service Community Properties. */ -@Fluent +@Immutable public final class BgpServiceCommunityInner extends Resource { /* * Properties of the BGP service community. @@ -42,7 +42,7 @@ public final class BgpServiceCommunityInner extends Resource { /** * Creates an instance of BgpServiceCommunityInner class. */ - public BgpServiceCommunityInner() { + private BgpServiceCommunityInner() { } /** @@ -63,17 +63,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the BgpServiceCommunityInner object itself. - */ - public BgpServiceCommunityInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -94,24 +83,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public BgpServiceCommunityInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public BgpServiceCommunityInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the serviceName property: The name of the bgp community. e.g. Skype. * @@ -121,20 +92,6 @@ public String serviceName() { return this.innerProperties() == null ? null : this.innerProperties().serviceName(); } - /** - * Set the serviceName property: The name of the bgp community. e.g. Skype. - * - * @param serviceName the serviceName value to set. - * @return the BgpServiceCommunityInner object itself. - */ - public BgpServiceCommunityInner withServiceName(String serviceName) { - if (this.innerProperties() == null) { - this.innerProperties = new BgpServiceCommunityPropertiesFormat(); - } - this.innerProperties().withServiceName(serviceName); - return this; - } - /** * Get the bgpCommunities property: A list of bgp communities. * @@ -144,20 +101,6 @@ public List bgpCommunities() { return this.innerProperties() == null ? null : this.innerProperties().bgpCommunities(); } - /** - * Set the bgpCommunities property: A list of bgp communities. - * - * @param bgpCommunities the bgpCommunities value to set. - * @return the BgpServiceCommunityInner object itself. - */ - public BgpServiceCommunityInner withBgpCommunities(List bgpCommunities) { - if (this.innerProperties() == null) { - this.innerProperties = new BgpServiceCommunityPropertiesFormat(); - } - this.innerProperties().withBgpCommunities(bgpCommunities); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityPropertiesFormat.java index dbc43c5f80ae..6d5e97af0ebd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties of Service Community. */ -@Fluent +@Immutable public final class BgpServiceCommunityPropertiesFormat implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class BgpServiceCommunityPropertiesFormat /** * Creates an instance of BgpServiceCommunityPropertiesFormat class. */ - public BgpServiceCommunityPropertiesFormat() { + private BgpServiceCommunityPropertiesFormat() { } /** @@ -44,17 +44,6 @@ public String serviceName() { return this.serviceName; } - /** - * Set the serviceName property: The name of the bgp community. e.g. Skype. - * - * @param serviceName the serviceName value to set. - * @return the BgpServiceCommunityPropertiesFormat object itself. - */ - public BgpServiceCommunityPropertiesFormat withServiceName(String serviceName) { - this.serviceName = serviceName; - return this; - } - /** * Get the bgpCommunities property: A list of bgp communities. * @@ -64,17 +53,6 @@ public List bgpCommunities() { return this.bgpCommunities; } - /** - * Set the bgpCommunities property: A list of bgp communities. - * - * @param bgpCommunities the bgpCommunities value to set. - * @return the BgpServiceCommunityPropertiesFormat object itself. - */ - public BgpServiceCommunityPropertiesFormat withBgpCommunities(List bgpCommunities) { - this.bgpCommunities = bgpCommunities; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java index dad87e05f3fb..7e7f21fe94de 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorParameters.java index c21ffefedb24..f0904a890a4d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultInner.java index c4812fd9212d..38cf57982844 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultInner.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -17,6 +16,7 @@ import com.azure.resourcemanager.network.models.ConnectionMonitorTestGroup; import com.azure.resourcemanager.network.models.ConnectionMonitorType; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.TrackedResourceWithEtag; import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; @@ -26,29 +26,29 @@ * Information about the connection monitor. */ @Fluent -public final class ConnectionMonitorResultInner extends Resource { +public final class ConnectionMonitorResultInner extends TrackedResourceWithEtag { /* - * A unique read-only string that changes whenever the resource is updated. + * Properties of the connection monitor result. */ - private String etag; + private ConnectionMonitorResultProperties innerProperties; /* - * Properties of the connection monitor result. + * A unique read-only string that changes whenever the resource is updated. */ - private ConnectionMonitorResultProperties innerProperties; + private String etag; /* - * The type of the resource. + * Connection monitor type. */ private String type; /* - * The name of the resource. + * Name of the connection monitor. */ private String name; /* - * Fully qualified resource Id for the resource. + * ID of the connection monitor. */ private String id; @@ -59,25 +59,26 @@ public ConnectionMonitorResultInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: Properties of the connection monitor result. * - * @return the etag value. + * @return the innerProperties value. */ - public String etag() { - return this.etag; + private ConnectionMonitorResultProperties innerProperties() { + return this.innerProperties; } /** - * Get the innerProperties property: Properties of the connection monitor result. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @return the innerProperties value. + * @return the etag value. */ - private ConnectionMonitorResultProperties innerProperties() { - return this.innerProperties; + @Override + public String etag() { + return this.etag; } /** - * Get the type property: The type of the resource. + * Get the type property: Connection monitor type. * * @return the type value. */ @@ -87,7 +88,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Name of the connection monitor. * * @return the name value. */ @@ -97,7 +98,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: ID of the connection monitor. * * @return the id value. */ @@ -373,6 +374,7 @@ public ConnectionMonitorResultInner withNotes(String notes) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -397,7 +399,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ConnectionMonitorResultInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ConnectionMonitorResultInner. */ public static ConnectionMonitorResultInner fromJson(JsonReader jsonReader) throws IOException { @@ -413,13 +414,13 @@ public static ConnectionMonitorResultInner fromJson(JsonReader jsonReader) throw deserializedConnectionMonitorResultInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedConnectionMonitorResultInner.type = reader.getString(); + } else if ("etag".equals(fieldName)) { + deserializedConnectionMonitorResultInner.etag = reader.getString(); } else if ("location".equals(fieldName)) { deserializedConnectionMonitorResultInner.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedConnectionMonitorResultInner.withTags(tags); - } else if ("etag".equals(fieldName)) { - deserializedConnectionMonitorResultInner.etag = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedConnectionMonitorResultInner.innerProperties = ConnectionMonitorResultProperties.fromJson(reader); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultProperties.java index 92e588d42c83..7ea4dec4af69 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionResetSharedKeyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionResetSharedKeyInner.java index 942a819b49fa..7c0368dd1399 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionResetSharedKeyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionResetSharedKeyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java index 26f644e1943c..db090445fe06 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyResultInner.java index 8480ee9694a6..31ca6378bf10 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyResultInner.java @@ -1,32 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.SharedKeyProperties; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * SharedKey Resource . */ @Fluent -public final class ConnectionSharedKeyResultInner extends SubResource { +public final class ConnectionSharedKeyResultInner extends SubResourceModel { /* * Properties of the shared key. */ private SharedKeyProperties properties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * Resource type. */ @@ -59,36 +54,24 @@ public ConnectionSharedKeyResultInner withProperties(SharedKeyProperties propert } /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the type property: Resource type. * - * @return the name value. + * @return the type value. */ - public String name() { - return this.name; + @Override + public String type() { + return this.type; } /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ConnectionSharedKeyResultInner object itself. + * {@inheritDoc} */ + @Override public ConnectionSharedKeyResultInner withName(String name) { - this.name = name; + super.withName(name); return this; } - /** - * Get the type property: Resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public ConnectionSharedKeyResultInner withId(String id) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (properties() != null) { properties().validate(); @@ -116,8 +100,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -139,12 +123,12 @@ public static ConnectionSharedKeyResultInner fromJson(JsonReader jsonReader) thr if ("id".equals(fieldName)) { deserializedConnectionSharedKeyResultInner.withId(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedConnectionSharedKeyResultInner.properties = SharedKeyProperties.fromJson(reader); } else if ("name".equals(fieldName)) { - deserializedConnectionSharedKeyResultInner.name = reader.getString(); + deserializedConnectionSharedKeyResultInner.withName(reader.getString()); } else if ("type".equals(fieldName)) { deserializedConnectionSharedKeyResultInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedConnectionSharedKeyResultInner.properties = SharedKeyProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationInner.java index 805ac5dfa339..cbdfe93048ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -41,17 +41,17 @@ public final class ConnectivityConfigurationInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -90,7 +90,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -100,7 +100,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -110,7 +110,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -329,7 +329,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ConnectivityConfigurationInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ConnectivityConfigurationInner. */ public static ConnectivityConfigurationInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java index c181cfb27201..19bd63a6a5fd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityInformationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityInformationInner.java index cb1f858b7fbb..1cfed80fa1a2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityInformationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityInformationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -57,7 +57,7 @@ public final class ConnectivityInformationInner implements JsonSerializable { /* @@ -45,7 +45,7 @@ public final class ContainerNetworkInterfacePropertiesFormat /** * Creates an instance of ContainerNetworkInterfacePropertiesFormat class. */ - public ContainerNetworkInterfacePropertiesFormat() { + private ContainerNetworkInterfacePropertiesFormat() { } /** @@ -67,17 +67,6 @@ public Container container() { return this.container; } - /** - * Set the container property: Reference to the container to which this container network interface is attached. - * - * @param container the container value to set. - * @return the ContainerNetworkInterfacePropertiesFormat object itself. - */ - public ContainerNetworkInterfacePropertiesFormat withContainer(Container container) { - this.container = container; - return this; - } - /** * Get the ipConfigurations property: Reference to the ip configuration on this container nic. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java index 5acb032cc818..918fc8265b9e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,14 +25,14 @@ @Fluent public final class CustomIpPrefixInner extends Resource { /* - * The extended location of the custom IP prefix. + * Custom IP prefix properties. */ - private ExtendedLocation extendedLocation; + private CustomIpPrefixPropertiesFormat innerProperties; /* - * Custom IP prefix properties. + * The extended location of the custom IP prefix. */ - private CustomIpPrefixPropertiesFormat innerProperties; + private ExtendedLocation extendedLocation; /* * A unique read-only string that changes whenever the resource is updated. @@ -40,7 +40,7 @@ public final class CustomIpPrefixInner extends Resource { private String etag; /* - * A list of availability zones denoting the IP allocated for the resource needs to come from. + * A list of availability zones denoting where the resource needs to come from. */ private List zones; @@ -65,6 +65,15 @@ public final class CustomIpPrefixInner extends Resource { public CustomIpPrefixInner() { } + /** + * Get the innerProperties property: Custom IP prefix properties. + * + * @return the innerProperties value. + */ + private CustomIpPrefixPropertiesFormat innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the custom IP prefix. * @@ -85,15 +94,6 @@ public CustomIpPrefixInner withExtendedLocation(ExtendedLocation extendedLocatio return this; } - /** - * Get the innerProperties property: Custom IP prefix properties. - * - * @return the innerProperties value. - */ - private CustomIpPrefixPropertiesFormat innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -104,8 +104,7 @@ public String etag() { } /** - * Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come - * from. + * Get the zones property: A list of availability zones denoting where the resource needs to come from. * * @return the zones value. */ @@ -114,8 +113,7 @@ public List zones() { } /** - * Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come - * from. + * Set the zones property: A list of availability zones denoting where the resource needs to come from. * * @param zones the zones value to set. * @return the CustomIpPrefixInner object itself. @@ -464,12 +462,12 @@ public ProvisioningState provisioningState() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (extendedLocation() != null) { - extendedLocation().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } } /** @@ -480,8 +478,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); @@ -512,10 +510,10 @@ public static CustomIpPrefixInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedCustomIpPrefixInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedCustomIpPrefixInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedCustomIpPrefixInner.innerProperties = CustomIpPrefixPropertiesFormat.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedCustomIpPrefixInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedCustomIpPrefixInner.etag = reader.getString(); } else if ("zones".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java index ae4874ebbcbd..87b1609e9c3f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyInner.java index a581265ea6c3..fc58214a09f8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java index c9ecb5ac5c98..29c105fc6599 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosDetectionRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosDetectionRulePropertiesFormat.java index c1bb25442771..0292bb12c7cb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosDetectionRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosDetectionRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java index 819aa7d3bd00..179d2f1d90b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,6 +25,11 @@ public final class DdosProtectionPlanInner extends Resource { */ private DdosProtectionPlanPropertiesFormat innerProperties; + /* + * Resource tags. + */ + private Map tags; + /* * A unique read-only string that changes whenever the resource is updated. */ @@ -60,6 +65,26 @@ private DdosProtectionPlanPropertiesFormat innerProperties() { return this.innerProperties; } + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the DdosProtectionPlanInner object itself. + */ + public DdosProtectionPlanInner withTags(Map tags) { + this.tags = tags; + return this; + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -108,15 +133,6 @@ public DdosProtectionPlanInner withLocation(String location) { return this; } - /** - * {@inheritDoc} - */ - @Override - public DdosProtectionPlanInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the resourceGuid property: The resource GUID property of the DDoS protection plan resource. It uniquely * identifies the resource, even if the user changes its name or migrate the resource across subscriptions or @@ -175,8 +191,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -204,12 +220,12 @@ public static DdosProtectionPlanInner fromJson(JsonReader jsonReader) throws IOE deserializedDdosProtectionPlanInner.type = reader.getString(); } else if ("location".equals(fieldName)) { deserializedDdosProtectionPlanInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedDdosProtectionPlanInner.withTags(tags); } else if ("properties".equals(fieldName)) { deserializedDdosProtectionPlanInner.innerProperties = DdosProtectionPlanPropertiesFormat.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDdosProtectionPlanInner.tags = tags; } else if ("etag".equals(fieldName)) { deserializedDdosProtectionPlanInner.etag = reader.getString(); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java index 3a3fc5b4c728..ac6d55f9b0c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java index 4d7d00c59011..600d342253d5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultRuleSetPropertyFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultRuleSetPropertyFormat.java index a919ec5f95a2..b96beaba974a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultRuleSetPropertyFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultRuleSetPropertyFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * the default web application firewall rule set. */ -@Fluent +@Immutable public final class DefaultRuleSetPropertyFormat implements JsonSerializable { /* * The type of the web application firewall rule set. @@ -29,7 +29,7 @@ public final class DefaultRuleSetPropertyFormat implements JsonSerializable { /* * Domain availability (True/False). @@ -24,7 +24,7 @@ public final class DnsNameAvailabilityResultInner implements JsonSerializable { /* - * A list of effective network security groups. + * The EffectiveNetworkSecurityGroup items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of EffectiveNetworkSecurityGroupListResultInner class. */ - public EffectiveNetworkSecurityGroupListResultInner() { + private EffectiveNetworkSecurityGroupListResultInner() { } /** - * Get the value property: A list of effective network security groups. + * Get the value property: The EffectiveNetworkSecurityGroup items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of effective network security groups. - * - * @param value the value value to set. - * @return the EffectiveNetworkSecurityGroupListResultInner object itself. - */ - public EffectiveNetworkSecurityGroupListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EffectiveNetworkSecurityGroupListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(EffectiveNetworkSecurityGroupListResultInner.class); + /** * {@inheritDoc} */ @@ -91,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of EffectiveNetworkSecurityGroupListResultInner if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the EffectiveNetworkSecurityGroupListResultInner. */ public static EffectiveNetworkSecurityGroupListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteListResultInner.java index 739b2cc0f5b7..3a7d62ee7683 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for list effective route API service call. */ -@Fluent +@Immutable public final class EffectiveRouteListResultInner implements JsonSerializable { /* - * A list of effective routes. + * The EffectiveRoute items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of EffectiveRouteListResultInner class. */ - public EffectiveRouteListResultInner() { + private EffectiveRouteListResultInner() { } /** - * Get the value property: A list of effective routes. + * Get the value property: The EffectiveRoute items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of effective routes. - * - * @param value the value value to set. - * @return the EffectiveRouteListResultInner object itself. - */ - public EffectiveRouteListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EffectiveRouteListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(EffectiveRouteListResultInner.class); + /** * {@inheritDoc} */ @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of EffectiveRouteListResultInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the EffectiveRouteListResultInner. */ public static EffectiveRouteListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteMapRouteListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteMapRouteListInner.java index 550bd1cb7e9b..f777f5020869 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteMapRouteListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteMapRouteListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * EffectiveRouteMapRoute List. */ -@Fluent +@Immutable public final class EffectiveRouteMapRouteListInner implements JsonSerializable { /* * The list of Effective RouteMap Routes configured on the connection resource. @@ -26,7 +26,7 @@ public final class EffectiveRouteMapRouteListInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The list of Effective RouteMap Routes configured on the connection resource. - * - * @param value the value value to set. - * @return the EffectiveRouteMapRouteListInner object itself. - */ - public EffectiveRouteMapRouteListInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EndpointServiceResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EndpointServiceResultInner.java index ca0c0f7d47d6..20919d371ee9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EndpointServiceResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/EndpointServiceResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Endpoint service. */ -@Fluent +@Immutable public final class EndpointServiceResultInner extends SubResource { /* * Name of the endpoint service. @@ -29,7 +29,7 @@ public final class EndpointServiceResultInner extends SubResource { /** * Creates an instance of EndpointServiceResultInner class. */ - public EndpointServiceResultInner() { + private EndpointServiceResultInner() { } /** @@ -50,15 +50,6 @@ public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public EndpointServiceResultInner withId(String id) { - super.withId(id); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitAuthorizationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitAuthorizationInner.java index 50a7475e7aef..8e884a25fb08 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitAuthorizationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitAuthorizationInner.java @@ -1,40 +1,35 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.AuthorizationUseStatus; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Authorization in an ExpressRouteCircuit resource. */ @Fluent -public final class ExpressRouteCircuitAuthorizationInner extends SubResource { +public final class ExpressRouteCircuitAuthorizationInner extends SubResourceModel { /* * Properties of the express route circuit authorization. */ private AuthorizationPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -53,28 +48,6 @@ private AuthorizationPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ExpressRouteCircuitAuthorizationInner object itself. - */ - public ExpressRouteCircuitAuthorizationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -85,14 +58,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ExpressRouteCircuitAuthorizationInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -173,6 +156,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -186,8 +170,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -209,15 +193,15 @@ public static ExpressRouteCircuitAuthorizationInner fromJson(JsonReader jsonRead if ("id".equals(fieldName)) { deserializedExpressRouteCircuitAuthorizationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedExpressRouteCircuitAuthorizationInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedExpressRouteCircuitAuthorizationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedExpressRouteCircuitAuthorizationInner.innerProperties = AuthorizationPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedExpressRouteCircuitAuthorizationInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedExpressRouteCircuitAuthorizationInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedExpressRouteCircuitAuthorizationInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionInner.java index fc905965b491..6e96b73fc7b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -12,30 +12,26 @@ import com.azure.resourcemanager.network.models.CircuitConnectionStatus; import com.azure.resourcemanager.network.models.Ipv6CircuitConnectionConfig; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. */ @Fluent -public final class ExpressRouteCircuitConnectionInner extends SubResource { +public final class ExpressRouteCircuitConnectionInner extends SubResourceModel { /* * Properties of the express route circuit connection. */ private ExpressRouteCircuitConnectionPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -54,28 +50,6 @@ private ExpressRouteCircuitConnectionPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ExpressRouteCircuitConnectionInner object itself. - */ - public ExpressRouteCircuitConnectionInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -86,14 +60,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ExpressRouteCircuitConnectionInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -249,6 +233,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -262,8 +247,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -285,15 +270,15 @@ public static ExpressRouteCircuitConnectionInner fromJson(JsonReader jsonReader) if ("id".equals(fieldName)) { deserializedExpressRouteCircuitConnectionInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedExpressRouteCircuitConnectionInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedExpressRouteCircuitConnectionInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedExpressRouteCircuitConnectionInner.innerProperties = ExpressRouteCircuitConnectionPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedExpressRouteCircuitConnectionInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedExpressRouteCircuitConnectionInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedExpressRouteCircuitConnectionInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionPropertiesFormat.java index d093fa7b41e4..7e8042fde55d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java index 991ca3e5c7b6..d0601c19f3e8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -23,11 +23,6 @@ */ @Fluent public final class ExpressRouteCircuitInner extends Resource { - /* - * The SKU. - */ - private ExpressRouteCircuitSku sku; - /* * Properties of the express route circuit. */ @@ -38,6 +33,11 @@ public final class ExpressRouteCircuitInner extends Resource { */ private String etag; + /* + * The SKU. + */ + private ExpressRouteCircuitSku sku; + /* * Resource ID. */ @@ -60,41 +60,41 @@ public ExpressRouteCircuitInner() { } /** - * Get the sku property: The SKU. + * Get the innerProperties property: Properties of the express route circuit. * - * @return the sku value. + * @return the innerProperties value. */ - public ExpressRouteCircuitSku sku() { - return this.sku; + private ExpressRouteCircuitPropertiesFormat innerProperties() { + return this.innerProperties; } /** - * Set the sku property: The SKU. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @param sku the sku value to set. - * @return the ExpressRouteCircuitInner object itself. + * @return the etag value. */ - public ExpressRouteCircuitInner withSku(ExpressRouteCircuitSku sku) { - this.sku = sku; - return this; + public String etag() { + return this.etag; } /** - * Get the innerProperties property: Properties of the express route circuit. + * Get the sku property: The SKU. * - * @return the innerProperties value. + * @return the sku value. */ - private ExpressRouteCircuitPropertiesFormat innerProperties() { - return this.innerProperties; + public ExpressRouteCircuitSku sku() { + return this.sku; } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Set the sku property: The SKU. * - * @return the etag value. + * @param sku the sku value to set. + * @return the ExpressRouteCircuitInner object itself. */ - public String etag() { - return this.etag; + public ExpressRouteCircuitInner withSku(ExpressRouteCircuitSku sku) { + this.sku = sku; + return this; } /** @@ -518,12 +518,12 @@ public ExpressRouteCircuitInner withEnableDirectPortRateLimit(Boolean enableDire * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (sku() != null) { - sku().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (sku() != null) { + sku().validate(); + } } /** @@ -534,8 +534,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -565,13 +565,13 @@ public static ExpressRouteCircuitInner fromJson(JsonReader jsonReader) throws IO } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedExpressRouteCircuitInner.withTags(tags); - } else if ("sku".equals(fieldName)) { - deserializedExpressRouteCircuitInner.sku = ExpressRouteCircuitSku.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedExpressRouteCircuitInner.innerProperties = ExpressRouteCircuitPropertiesFormat.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedExpressRouteCircuitInner.etag = reader.getString(); + } else if ("sku".equals(fieldName)) { + deserializedExpressRouteCircuitInner.sku = ExpressRouteCircuitSku.fromJson(reader); } else if ("id".equals(fieldName)) { deserializedExpressRouteCircuitInner.id = reader.getString(); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringInner.java index 620756296bb7..f9515079b2e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -15,6 +15,7 @@ import com.azure.resourcemanager.network.models.ExpressRoutePeeringType; import com.azure.resourcemanager.network.models.Ipv6ExpressRouteCircuitPeeringConfig; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -22,24 +23,19 @@ * Peering in an ExpressRouteCircuit resource. */ @Fluent -public final class ExpressRouteCircuitPeeringInner extends SubResource { +public final class ExpressRouteCircuitPeeringInner extends SubResourceModel { /* * Properties of the express route circuit peering. */ private ExpressRouteCircuitPeeringPropertiesFormatInner innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -58,28 +54,6 @@ private ExpressRouteCircuitPeeringPropertiesFormatInner innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ExpressRouteCircuitPeeringInner object itself. - */ - public ExpressRouteCircuitPeeringInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -90,14 +64,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ExpressRouteCircuitPeeringInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -535,6 +519,7 @@ public List peeredConnections() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -548,8 +533,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -571,15 +556,15 @@ public static ExpressRouteCircuitPeeringInner fromJson(JsonReader jsonReader) th if ("id".equals(fieldName)) { deserializedExpressRouteCircuitPeeringInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedExpressRouteCircuitPeeringInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedExpressRouteCircuitPeeringInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedExpressRouteCircuitPeeringInner.innerProperties = ExpressRouteCircuitPeeringPropertiesFormatInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedExpressRouteCircuitPeeringInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedExpressRouteCircuitPeeringInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedExpressRouteCircuitPeeringInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringPropertiesFormatInner.java index 4d741618bc3b..dda26e9a4c21 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPropertiesFormat.java index 5f36c3035726..054b482645c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitStatsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitStatsInner.java index 8c25403393b5..34a17a492ee6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitStatsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitStatsInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsArpTableListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsArpTableListResultInner.java index 11b2046bef12..5bfac59c61f2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsArpTableListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsArpTableListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ListArpTable associated with the Express Route Circuits API. */ -@Fluent +@Immutable public final class ExpressRouteCircuitsArpTableListResultInner implements JsonSerializable { /* - * A list of the ARP tables. + * The ExpressRouteCircuitArpTable items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitsArpTableListResultInner class. */ - public ExpressRouteCircuitsArpTableListResultInner() { + private ExpressRouteCircuitsArpTableListResultInner() { } /** - * Get the value property: A list of the ARP tables. + * Get the value property: The ExpressRouteCircuitArpTable items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of the ARP tables. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitsArpTableListResultInner object itself. - */ - public ExpressRouteCircuitsArpTableListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitsArpTableListResultInner object itself. - */ - public ExpressRouteCircuitsArpTableListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitsArpTableListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCircuitsArpTableListResultInner.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitsArpTableListResultInner if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitsArpTableListResultInner. */ public static ExpressRouteCircuitsArpTableListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableListResultInner.java index 7d509ff44f88..c9fcaaf74c14 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ListRoutesTable associated with the Express Route Circuits API. */ -@Fluent +@Immutable public final class ExpressRouteCircuitsRoutesTableListResultInner implements JsonSerializable { /* - * The list of routes table. + * The ExpressRouteCircuitRoutesTable items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitsRoutesTableListResultInner class. */ - public ExpressRouteCircuitsRoutesTableListResultInner() { + private ExpressRouteCircuitsRoutesTableListResultInner() { } /** - * Get the value property: The list of routes table. + * Get the value property: The ExpressRouteCircuitRoutesTable items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The list of routes table. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitsRoutesTableListResultInner object itself. - */ - public ExpressRouteCircuitsRoutesTableListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitsRoutesTableListResultInner object itself. - */ - public ExpressRouteCircuitsRoutesTableListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitsRoutesTableListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCircuitsRoutesTableListResultInner.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitsRoutesTableListResultInner if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitsRoutesTableListResultInner. */ public static ExpressRouteCircuitsRoutesTableListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java index 8c9973f8ddcf..8235df7c1dfd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ListRoutesTable associated with the Express Route Circuits API. */ -@Fluent +@Immutable public final class ExpressRouteCircuitsRoutesTableSummaryListResultInner implements JsonSerializable { /* - * A list of the routes table. + * The ExpressRouteCircuitRoutesTableSummary items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitsRoutesTableSummaryListResultInner class. */ - public ExpressRouteCircuitsRoutesTableSummaryListResultInner() { + private ExpressRouteCircuitsRoutesTableSummaryListResultInner() { } /** - * Get the value property: A list of the routes table. + * Get the value property: The ExpressRouteCircuitRoutesTableSummary items on this page. * * @return the value value. */ @@ -45,19 +46,7 @@ public List value() { } /** - * Set the value property: A list of the routes table. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitsRoutesTableSummaryListResultInner object itself. - */ - public ExpressRouteCircuitsRoutesTableSummaryListResultInner - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,24 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitsRoutesTableSummaryListResultInner object itself. - */ - public ExpressRouteCircuitsRoutesTableSummaryListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitsRoutesTableSummaryListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER + = new ClientLogger(ExpressRouteCircuitsRoutesTableSummaryListResultInner.class); + /** * {@inheritDoc} */ @@ -104,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitsRoutesTableSummaryListResultInner if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitsRoutesTableSummaryListResultInner. */ public static ExpressRouteCircuitsRoutesTableSummaryListResultInner fromJson(JsonReader jsonReader) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionInner.java index 6b18c9c18a50..1fc4c0269bac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionListInner.java index a347be152596..a00d8fc1651e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * ExpressRouteConnection list. */ -@Fluent +@Immutable public final class ExpressRouteConnectionListInner implements JsonSerializable { /* * The list of ExpressRoute connections. @@ -25,7 +25,7 @@ public final class ExpressRouteConnectionListInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The list of ExpressRoute connections. - * - * @param value the value value to set. - * @return the ExpressRouteConnectionListInner object itself. - */ - public ExpressRouteConnectionListInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionProperties.java index 0caa96873a2c..1fc616187249 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionInner.java index e67ea62ca85c..2b2dd7931a37 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringInner.java index 510adad5e83c..a516b5c4af53 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringProperties.java index 98229c3cb00e..da8349ac030c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionProperties.java index c7fd272d5f79..142db2f20aad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java index c6ca43eeb203..4ae75ec3c898 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ListRoutesTable associated with the Express Route Cross Connections. */ -@Fluent +@Immutable public final class ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner implements JsonSerializable { /* - * A list of the routes table. + * The ExpressRouteCrossConnectionRoutesTableSummary items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner class. */ - public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner() { + private ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner() { } /** - * Get the value property: A list of the routes table. + * Get the value property: The ExpressRouteCrossConnectionRoutesTableSummary items on this page. * * @return the value value. */ @@ -45,19 +46,7 @@ public List value() { } /** - * Set the value property: A list of the routes table. - * - * @param value the value value to set. - * @return the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object itself. - */ - public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -71,11 +60,18 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER + = new ClientLogger(ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.class); + /** * {@inheritDoc} */ @@ -92,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner if the JsonReader was * pointing to an instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the * ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner. */ diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverSingleTestDetailsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverSingleTestDetailsInner.java index b08ac389665b..ca2ff99e3d90 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverSingleTestDetailsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverSingleTestDetailsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -18,7 +18,7 @@ /** * ExpressRoute failover single test details. */ -@Fluent +@Immutable public final class ExpressRouteFailoverSingleTestDetailsInner implements JsonSerializable { /* @@ -64,7 +64,7 @@ public final class ExpressRouteFailoverSingleTestDetailsInner /** * Creates an instance of ExpressRouteFailoverSingleTestDetailsInner class. */ - public ExpressRouteFailoverSingleTestDetailsInner() { + private ExpressRouteFailoverSingleTestDetailsInner() { } /** @@ -76,17 +76,6 @@ public String peeringLocation() { return this.peeringLocation; } - /** - * Set the peeringLocation property: Peering location of the test. - * - * @param peeringLocation the peeringLocation value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withPeeringLocation(String peeringLocation) { - this.peeringLocation = peeringLocation; - return this; - } - /** * Get the status property: The current status of the test. * @@ -96,17 +85,6 @@ public FailoverTestStatusForSingleTest status() { return this.status; } - /** - * Set the status property: The current status of the test. - * - * @param status the status value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withStatus(FailoverTestStatusForSingleTest status) { - this.status = status; - return this; - } - /** * Get the startTimeUtc property: Time when the test was started. * @@ -116,17 +94,6 @@ public String startTimeUtc() { return this.startTimeUtc; } - /** - * Set the startTimeUtc property: Time when the test was started. - * - * @param startTimeUtc the startTimeUtc value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withStartTimeUtc(String startTimeUtc) { - this.startTimeUtc = startTimeUtc; - return this; - } - /** * Get the endTimeUtc property: Time when the test was completed. * @@ -136,17 +103,6 @@ public String endTimeUtc() { return this.endTimeUtc; } - /** - * Set the endTimeUtc property: Time when the test was completed. - * - * @param endTimeUtc the endTimeUtc value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withEndTimeUtc(String endTimeUtc) { - this.endTimeUtc = endTimeUtc; - return this; - } - /** * Get the redundantRoutes property: List of routes received from this peering as well as some other peering * location. @@ -157,19 +113,6 @@ public List redundantRoutes() { return this.redundantRoutes; } - /** - * Set the redundantRoutes property: List of routes received from this peering as well as some other peering - * location. - * - * @param redundantRoutes the redundantRoutes value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner - withRedundantRoutes(List redundantRoutes) { - this.redundantRoutes = redundantRoutes; - return this; - } - /** * Get the nonRedundantRoutes property: List of al the routes that were received only from this peering location. * @@ -179,17 +122,6 @@ public List nonRedundantRoutes() { return this.nonRedundantRoutes; } - /** - * Set the nonRedundantRoutes property: List of al the routes that were received only from this peering location. - * - * @param nonRedundantRoutes the nonRedundantRoutes value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withNonRedundantRoutes(List nonRedundantRoutes) { - this.nonRedundantRoutes = nonRedundantRoutes; - return this; - } - /** * Get the wasSimulationSuccessful property: Whether the failover simulation was successful or not. * @@ -199,17 +131,6 @@ public Boolean wasSimulationSuccessful() { return this.wasSimulationSuccessful; } - /** - * Set the wasSimulationSuccessful property: Whether the failover simulation was successful or not. - * - * @param wasSimulationSuccessful the wasSimulationSuccessful value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner withWasSimulationSuccessful(Boolean wasSimulationSuccessful) { - this.wasSimulationSuccessful = wasSimulationSuccessful; - return this; - } - /** * Get the failoverConnectionDetails property: List of all the failover connections for this peering location. * @@ -219,18 +140,6 @@ public List failoverConnectionDetails() { return this.failoverConnectionDetails; } - /** - * Set the failoverConnectionDetails property: List of all the failover connections for this peering location. - * - * @param failoverConnectionDetails the failoverConnectionDetails value to set. - * @return the ExpressRouteFailoverSingleTestDetailsInner object itself. - */ - public ExpressRouteFailoverSingleTestDetailsInner - withFailoverConnectionDetails(List failoverConnectionDetails) { - this.failoverConnectionDetails = failoverConnectionDetails; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverTestDetailsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverTestDetailsInner.java index 9a67535be0a8..ab214c296a02 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverTestDetailsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverTestDetailsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +19,7 @@ /** * ExpressRoute failover test details. */ -@Fluent +@Immutable public final class ExpressRouteFailoverTestDetailsInner implements JsonSerializable { /* @@ -70,7 +70,7 @@ public final class ExpressRouteFailoverTestDetailsInner /** * Creates an instance of ExpressRouteFailoverTestDetailsInner class. */ - public ExpressRouteFailoverTestDetailsInner() { + private ExpressRouteFailoverTestDetailsInner() { } /** @@ -82,17 +82,6 @@ public String peeringLocation() { return this.peeringLocation; } - /** - * Set the peeringLocation property: Peering location of the test. - * - * @param peeringLocation the peeringLocation value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withPeeringLocation(String peeringLocation) { - this.peeringLocation = peeringLocation; - return this; - } - /** * Get the circuits property: All circuits in the peering location. * @@ -102,18 +91,6 @@ public List circuits() { return this.circuits; } - /** - * Set the circuits property: All circuits in the peering location. - * - * @param circuits the circuits value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner - withCircuits(List circuits) { - this.circuits = circuits; - return this; - } - /** * Get the status property: The current status of the test. * @@ -123,17 +100,6 @@ public FailoverTestStatus status() { return this.status; } - /** - * Set the status property: The current status of the test. - * - * @param status the status value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withStatus(FailoverTestStatus status) { - this.status = status; - return this; - } - /** * Get the startTime property: Time when the test was started. * @@ -143,17 +109,6 @@ public String startTime() { return this.startTime; } - /** - * Set the startTime property: Time when the test was started. - * - * @param startTime the startTime value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withStartTime(String startTime) { - this.startTime = startTime; - return this; - } - /** * Get the endTime property: Time when the test was completed. * @@ -163,17 +118,6 @@ public String endTime() { return this.endTime; } - /** - * Set the endTime property: Time when the test was completed. - * - * @param endTime the endTime value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withEndTime(String endTime) { - this.endTime = endTime; - return this; - } - /** * Get the connections property: All connections to the circuits in the peering location. * @@ -183,18 +127,6 @@ public List connections() { return this.connections; } - /** - * Set the connections property: All connections to the circuits in the peering location. - * - * @param connections the connections value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner - withConnections(List connections) { - this.connections = connections; - return this; - } - /** * Get the testGuid property: The unique GUID associated with the test. * @@ -204,17 +136,6 @@ public String testGuid() { return this.testGuid; } - /** - * Set the testGuid property: The unique GUID associated with the test. - * - * @param testGuid the testGuid value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withTestGuid(String testGuid) { - this.testGuid = testGuid; - return this; - } - /** * Get the testType property: The type of failover test. * @@ -224,17 +145,6 @@ public FailoverTestType testType() { return this.testType; } - /** - * Set the testType property: The type of failover test. - * - * @param testType the testType value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withTestType(FailoverTestType testType) { - this.testType = testType; - return this; - } - /** * Get the issues property: A list of all issues with the test. * @@ -244,17 +154,6 @@ public List issues() { return this.issues; } - /** - * Set the issues property: A list of all issues with the test. - * - * @param issues the issues value to set. - * @return the ExpressRouteFailoverTestDetailsInner object itself. - */ - public ExpressRouteFailoverTestDetailsInner withIssues(List issues) { - this.issues = issues; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java index 2345a54d8573..23a5ef627638 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayListInner.java index cbe42282ca6e..678da7d4c48e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * List of ExpressRoute gateways. */ -@Fluent +@Immutable public final class ExpressRouteGatewayListInner implements JsonSerializable { /* * List of ExpressRoute gateways. @@ -25,7 +25,7 @@ public final class ExpressRouteGatewayListInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: List of ExpressRoute gateways. - * - * @param value the value value to set. - * @return the ExpressRouteGatewayListInner object itself. - */ - public ExpressRouteGatewayListInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayProperties.java index edb46359df1a..4af222803e1b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkInner.java index 0f1d4407e63a..f04b913a4f1e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkPropertiesFormat.java index e36c82c3e1ef..b02a344921ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationInner.java index bf026d220148..3f7a639ef97d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationInner.java @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ExpressRoutePortAuthorizationUseStatus; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** @@ -19,24 +19,19 @@ * ExpressRoutePort Authorization resource definition. */ @Fluent -public final class ExpressRoutePortAuthorizationInner extends SubResource { +public final class ExpressRoutePortAuthorizationInner extends SubResourceModel { /* * ExpressRoutePort properties. */ private ExpressRoutePortAuthorizationPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -55,28 +50,6 @@ private ExpressRoutePortAuthorizationPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ExpressRoutePortAuthorizationInner object itself. - */ - public ExpressRoutePortAuthorizationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -87,14 +60,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ExpressRoutePortAuthorizationInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -145,6 +128,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -158,8 +142,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -181,15 +165,15 @@ public static ExpressRoutePortAuthorizationInner fromJson(JsonReader jsonReader) if ("id".equals(fieldName)) { deserializedExpressRoutePortAuthorizationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedExpressRoutePortAuthorizationInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedExpressRoutePortAuthorizationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedExpressRoutePortAuthorizationInner.innerProperties = ExpressRoutePortAuthorizationPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedExpressRoutePortAuthorizationInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedExpressRoutePortAuthorizationInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedExpressRoutePortAuthorizationInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationPropertiesFormat.java index f05bc144a88d..1fa5025751c3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortInner.java index a9c1a8210292..fc7f663b57ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -265,7 +265,9 @@ public String allocationDate() { } /** - * Get the links property: The set of physical links of the ExpressRoutePort resource. + * Get the links property: ExpressRouteLink Sub-Resources + * + * The set of physical links of the ExpressRoutePort resource. * * @return the links value. */ @@ -274,7 +276,9 @@ public List links() { } /** - * Set the links property: The set of physical links of the ExpressRoutePort resource. + * Set the links property: ExpressRouteLink Sub-Resources + * + * The set of physical links of the ExpressRoutePort resource. * * @param links the links value to set. * @return the ExpressRoutePortInner object itself. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortPropertiesFormat.java index bb6b4059f9be..05b40935b612 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -59,6 +59,8 @@ public final class ExpressRoutePortPropertiesFormat implements JsonSerializable< private String allocationDate; /* + * ExpressRouteLink Sub-Resources + * * The set of physical links of the ExpressRoutePort resource. */ private List links; @@ -188,7 +190,9 @@ public String allocationDate() { } /** - * Get the links property: The set of physical links of the ExpressRoutePort resource. + * Get the links property: ExpressRouteLink Sub-Resources + * + * The set of physical links of the ExpressRoutePort resource. * * @return the links value. */ @@ -197,7 +201,9 @@ public List links() { } /** - * Set the links property: The set of physical links of the ExpressRoutePort resource. + * Set the links property: ExpressRouteLink Sub-Resources + * + * The set of physical links of the ExpressRoutePort resource. * * @param links the links value to set. * @return the ExpressRoutePortPropertiesFormat object itself. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationInner.java index 05f8415c0e91..a7c895fdeb6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -20,7 +20,7 @@ * * Definition of the ExpressRoutePorts peering location resource. */ -@Fluent +@Immutable public final class ExpressRoutePortsLocationInner extends Resource { /* * ExpressRoutePort peering location properties. @@ -45,7 +45,7 @@ public final class ExpressRoutePortsLocationInner extends Resource { /** * Creates an instance of ExpressRoutePortsLocationInner class. */ - public ExpressRoutePortsLocationInner() { + private ExpressRoutePortsLocationInner() { } /** @@ -66,17 +66,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the ExpressRoutePortsLocationInner object itself. - */ - public ExpressRoutePortsLocationInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -97,24 +86,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public ExpressRoutePortsLocationInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ExpressRoutePortsLocationInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the address property: Address of peering location. * @@ -142,21 +113,6 @@ public List availableBandwidths() { return this.innerProperties() == null ? null : this.innerProperties().availableBandwidths(); } - /** - * Set the availableBandwidths property: The inventory of available ExpressRoutePort bandwidths. - * - * @param availableBandwidths the availableBandwidths value to set. - * @return the ExpressRoutePortsLocationInner object itself. - */ - public ExpressRoutePortsLocationInner - withAvailableBandwidths(List availableBandwidths) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRoutePortsLocationPropertiesFormat(); - } - this.innerProperties().withAvailableBandwidths(availableBandwidths); - return this; - } - /** * Get the provisioningState property: The provisioning state of the express route port location resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationPropertiesFormat.java index 6f93fb127a24..d71653d51405 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +19,7 @@ * * Properties specific to ExpressRoutePorts peering location resources. */ -@Fluent +@Immutable public final class ExpressRoutePortsLocationPropertiesFormat implements JsonSerializable { /* @@ -45,7 +45,7 @@ public final class ExpressRoutePortsLocationPropertiesFormat /** * Creates an instance of ExpressRoutePortsLocationPropertiesFormat class. */ - public ExpressRoutePortsLocationPropertiesFormat() { + private ExpressRoutePortsLocationPropertiesFormat() { } /** @@ -75,18 +75,6 @@ public List availableBandwidths() { return this.availableBandwidths; } - /** - * Set the availableBandwidths property: The inventory of available ExpressRoutePort bandwidths. - * - * @param availableBandwidths the availableBandwidths value to set. - * @return the ExpressRoutePortsLocationPropertiesFormat object itself. - */ - public ExpressRoutePortsLocationPropertiesFormat - withAvailableBandwidths(List availableBandwidths) { - this.availableBandwidths = availableBandwidths; - return this; - } - /** * Get the provisioningState property: The provisioning state of the express route port location resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortInner.java index 147014f4c381..3a304cce3329 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * ExpressRouteProviderPort resource. */ -@Fluent +@Immutable public final class ExpressRouteProviderPortInner extends Resource { /* * Properties of the express route Service Provider Port. @@ -27,11 +27,6 @@ public final class ExpressRouteProviderPortInner extends Resource { */ private String etag; - /* - * Resource ID. - */ - private String id; - /* * The type of the resource. */ @@ -42,10 +37,15 @@ public final class ExpressRouteProviderPortInner extends Resource { */ private String name; + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of ExpressRouteProviderPortInner class. */ - public ExpressRouteProviderPortInner() { + private ExpressRouteProviderPortInner() { } /** @@ -66,26 +66,6 @@ public String etag() { return this.etag; } - /** - * Get the id property: Resource ID. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -107,21 +87,13 @@ public String name() { } /** - * {@inheritDoc} - */ - @Override - public ExpressRouteProviderPortInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. */ @Override - public ExpressRouteProviderPortInner withTags(Map tags) { - super.withTags(tags); - return this; + public String id() { + return this.id; } /** @@ -160,20 +132,6 @@ public String peeringLocation() { return this.innerProperties() == null ? null : this.innerProperties().peeringLocation(); } - /** - * Set the peeringLocation property: The peering location of the port pair. - * - * @param peeringLocation the peeringLocation value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withPeeringLocation(String peeringLocation) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteProviderPortProperties(); - } - this.innerProperties().withPeeringLocation(peeringLocation); - return this; - } - /** * Get the overprovisionFactor property: Overprovisioning factor for the port pair. * @@ -183,20 +141,6 @@ public Integer overprovisionFactor() { return this.innerProperties() == null ? null : this.innerProperties().overprovisionFactor(); } - /** - * Set the overprovisionFactor property: Overprovisioning factor for the port pair. - * - * @param overprovisionFactor the overprovisionFactor value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withOverprovisionFactor(Integer overprovisionFactor) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteProviderPortProperties(); - } - this.innerProperties().withOverprovisionFactor(overprovisionFactor); - return this; - } - /** * Get the portBandwidthInMbps property: Bandwidth of the port in Mbps. * @@ -206,20 +150,6 @@ public Integer portBandwidthInMbps() { return this.innerProperties() == null ? null : this.innerProperties().portBandwidthInMbps(); } - /** - * Set the portBandwidthInMbps property: Bandwidth of the port in Mbps. - * - * @param portBandwidthInMbps the portBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withPortBandwidthInMbps(Integer portBandwidthInMbps) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteProviderPortProperties(); - } - this.innerProperties().withPortBandwidthInMbps(portBandwidthInMbps); - return this; - } - /** * Get the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps. * @@ -229,20 +159,6 @@ public Integer usedBandwidthInMbps() { return this.innerProperties() == null ? null : this.innerProperties().usedBandwidthInMbps(); } - /** - * Set the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps. - * - * @param usedBandwidthInMbps the usedBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withUsedBandwidthInMbps(Integer usedBandwidthInMbps) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteProviderPortProperties(); - } - this.innerProperties().withUsedBandwidthInMbps(usedBandwidthInMbps); - return this; - } - /** * Get the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps. * @@ -252,20 +168,6 @@ public Integer remainingBandwidthInMbps() { return this.innerProperties() == null ? null : this.innerProperties().remainingBandwidthInMbps(); } - /** - * Set the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps. - * - * @param remainingBandwidthInMbps the remainingBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortInner object itself. - */ - public ExpressRouteProviderPortInner withRemainingBandwidthInMbps(Integer remainingBandwidthInMbps) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteProviderPortProperties(); - } - this.innerProperties().withRemainingBandwidthInMbps(remainingBandwidthInMbps); - return this; - } - /** * Validates the instance. * @@ -286,7 +188,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -307,7 +208,9 @@ public static ExpressRouteProviderPortInner fromJson(JsonReader jsonReader) thro String fieldName = reader.getFieldName(); reader.nextToken(); - if ("name".equals(fieldName)) { + if ("id".equals(fieldName)) { + deserializedExpressRouteProviderPortInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { deserializedExpressRouteProviderPortInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedExpressRouteProviderPortInner.type = reader.getString(); @@ -321,8 +224,6 @@ public static ExpressRouteProviderPortInner fromJson(JsonReader jsonReader) thro = ExpressRouteProviderPortProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedExpressRouteProviderPortInner.etag = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedExpressRouteProviderPortInner.id = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortListResultInner.java index 42dfa7bec4c6..c377a6d68ef8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,27 +16,27 @@ /** * Response for ListExpressRouteProviderPort API service call. */ -@Fluent +@Immutable public final class ExpressRouteProviderPortListResultInner implements JsonSerializable { /* - * A list of ExpressRouteProviderPort resources. + * The ExpressRouteProviderPort items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteProviderPortListResultInner class. */ - public ExpressRouteProviderPortListResultInner() { + private ExpressRouteProviderPortListResultInner() { } /** - * Get the value property: A list of ExpressRouteProviderPort resources. + * Get the value property: The ExpressRouteProviderPort items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of ExpressRouteProviderPort resources. - * - * @param value the value value to set. - * @return the ExpressRouteProviderPortListResultInner object itself. - */ - public ExpressRouteProviderPortListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteProviderPortListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteProviderPortListResultInner.class); + /** * {@inheritDoc} */ @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteProviderPortListResultInner if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteProviderPortListResultInner. */ public static ExpressRouteProviderPortListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortProperties.java index 84972d853b00..6726ff57575e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Properties of ExpressRouteProviderPort. */ -@Fluent +@Immutable public final class ExpressRouteProviderPortProperties implements JsonSerializable { /* * The name of the port pair. @@ -59,7 +59,7 @@ public final class ExpressRouteProviderPortProperties implements JsonSerializabl /** * Creates an instance of ExpressRouteProviderPortProperties class. */ - public ExpressRouteProviderPortProperties() { + private ExpressRouteProviderPortProperties() { } /** @@ -98,17 +98,6 @@ public String peeringLocation() { return this.peeringLocation; } - /** - * Set the peeringLocation property: The peering location of the port pair. - * - * @param peeringLocation the peeringLocation value to set. - * @return the ExpressRouteProviderPortProperties object itself. - */ - public ExpressRouteProviderPortProperties withPeeringLocation(String peeringLocation) { - this.peeringLocation = peeringLocation; - return this; - } - /** * Get the overprovisionFactor property: Overprovisioning factor for the port pair. * @@ -118,17 +107,6 @@ public Integer overprovisionFactor() { return this.overprovisionFactor; } - /** - * Set the overprovisionFactor property: Overprovisioning factor for the port pair. - * - * @param overprovisionFactor the overprovisionFactor value to set. - * @return the ExpressRouteProviderPortProperties object itself. - */ - public ExpressRouteProviderPortProperties withOverprovisionFactor(Integer overprovisionFactor) { - this.overprovisionFactor = overprovisionFactor; - return this; - } - /** * Get the portBandwidthInMbps property: Bandwidth of the port in Mbps. * @@ -138,17 +116,6 @@ public Integer portBandwidthInMbps() { return this.portBandwidthInMbps; } - /** - * Set the portBandwidthInMbps property: Bandwidth of the port in Mbps. - * - * @param portBandwidthInMbps the portBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortProperties object itself. - */ - public ExpressRouteProviderPortProperties withPortBandwidthInMbps(Integer portBandwidthInMbps) { - this.portBandwidthInMbps = portBandwidthInMbps; - return this; - } - /** * Get the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps. * @@ -158,17 +125,6 @@ public Integer usedBandwidthInMbps() { return this.usedBandwidthInMbps; } - /** - * Set the usedBandwidthInMbps property: Used Bandwidth of the port in Mbps. - * - * @param usedBandwidthInMbps the usedBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortProperties object itself. - */ - public ExpressRouteProviderPortProperties withUsedBandwidthInMbps(Integer usedBandwidthInMbps) { - this.usedBandwidthInMbps = usedBandwidthInMbps; - return this; - } - /** * Get the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps. * @@ -178,17 +134,6 @@ public Integer remainingBandwidthInMbps() { return this.remainingBandwidthInMbps; } - /** - * Set the remainingBandwidthInMbps property: Remaining Bandwidth of the port in Mbps. - * - * @param remainingBandwidthInMbps the remainingBandwidthInMbps value to set. - * @return the ExpressRouteProviderPortProperties object itself. - */ - public ExpressRouteProviderPortProperties withRemainingBandwidthInMbps(Integer remainingBandwidthInMbps) { - this.remainingBandwidthInMbps = remainingBandwidthInMbps; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderInner.java index ebe1a4a28b27..997cd9d4a9ca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -18,7 +18,7 @@ /** * A ExpressRouteResourceProvider object. */ -@Fluent +@Immutable public final class ExpressRouteServiceProviderInner extends Resource { /* * Properties of the express route service provider. @@ -43,7 +43,7 @@ public final class ExpressRouteServiceProviderInner extends Resource { /** * Creates an instance of ExpressRouteServiceProviderInner class. */ - public ExpressRouteServiceProviderInner() { + private ExpressRouteServiceProviderInner() { } /** @@ -64,17 +64,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the ExpressRouteServiceProviderInner object itself. - */ - public ExpressRouteServiceProviderInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -95,24 +84,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public ExpressRouteServiceProviderInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ExpressRouteServiceProviderInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the peeringLocations property: A list of peering locations. * @@ -122,20 +93,6 @@ public List peeringLocations() { return this.innerProperties() == null ? null : this.innerProperties().peeringLocations(); } - /** - * Set the peeringLocations property: A list of peering locations. - * - * @param peeringLocations the peeringLocations value to set. - * @return the ExpressRouteServiceProviderInner object itself. - */ - public ExpressRouteServiceProviderInner withPeeringLocations(List peeringLocations) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteServiceProviderPropertiesFormat(); - } - this.innerProperties().withPeeringLocations(peeringLocations); - return this; - } - /** * Get the bandwidthsOffered property: A list of bandwidths offered. * @@ -145,21 +102,6 @@ public List bandwidthsOffered() { return this.innerProperties() == null ? null : this.innerProperties().bandwidthsOffered(); } - /** - * Set the bandwidthsOffered property: A list of bandwidths offered. - * - * @param bandwidthsOffered the bandwidthsOffered value to set. - * @return the ExpressRouteServiceProviderInner object itself. - */ - public ExpressRouteServiceProviderInner - withBandwidthsOffered(List bandwidthsOffered) { - if (this.innerProperties() == null) { - this.innerProperties = new ExpressRouteServiceProviderPropertiesFormat(); - } - this.innerProperties().withBandwidthsOffered(bandwidthsOffered); - return this; - } - /** * Get the provisioningState property: The provisioning state of the express route service provider resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderPropertiesFormat.java index 2759bab102df..dbdd6aea43a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * Properties of ExpressRouteServiceProvider. */ -@Fluent +@Immutable public final class ExpressRouteServiceProviderPropertiesFormat implements JsonSerializable { /* @@ -38,7 +38,7 @@ public final class ExpressRouteServiceProviderPropertiesFormat /** * Creates an instance of ExpressRouteServiceProviderPropertiesFormat class. */ - public ExpressRouteServiceProviderPropertiesFormat() { + private ExpressRouteServiceProviderPropertiesFormat() { } /** @@ -50,17 +50,6 @@ public List peeringLocations() { return this.peeringLocations; } - /** - * Set the peeringLocations property: A list of peering locations. - * - * @param peeringLocations the peeringLocations value to set. - * @return the ExpressRouteServiceProviderPropertiesFormat object itself. - */ - public ExpressRouteServiceProviderPropertiesFormat withPeeringLocations(List peeringLocations) { - this.peeringLocations = peeringLocations; - return this; - } - /** * Get the bandwidthsOffered property: A list of bandwidths offered. * @@ -70,18 +59,6 @@ public List bandwidthsOffered() { return this.bandwidthsOffered; } - /** - * Set the bandwidthsOffered property: A list of bandwidths offered. - * - * @param bandwidthsOffered the bandwidthsOffered value to set. - * @return the ExpressRouteServiceProviderPropertiesFormat object itself. - */ - public ExpressRouteServiceProviderPropertiesFormat - withBandwidthsOffered(List bandwidthsOffered) { - this.bandwidthsOffered = bandwidthsOffered; - return this; - } - /** * Get the provisioningState property: The provisioning state of the express route service provider resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java index cf945817b156..962d6ce21b53 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java index 74d2ea471e82..69e015c3c3e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyInner.java index 7482d25351d7..5530c583cb7f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyPropertiesFormat.java index 457af1cf01a2..ab59a6f28e39 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java index e9656d82d811..274beb04b343 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -17,19 +17,14 @@ * Rule Collection Group resource. */ @Fluent -public final class FirewallPolicyRuleCollectionGroupDraftInner extends SubResource { +public final class FirewallPolicyRuleCollectionGroupDraftInner extends SubResourceModel { /* * The properties of the firewall policy rule collection group. */ private FirewallPolicyRuleCollectionGroupDraftProperties innerProperties; /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - - /* - * Rule Group type. + * Resource type. */ private String type; @@ -49,36 +44,24 @@ private FirewallPolicyRuleCollectionGroupDraftProperties innerProperties() { } /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the type property: Resource type. * - * @return the name value. + * @return the type value. */ - public String name() { - return this.name; + @Override + public String type() { + return this.type; } /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the FirewallPolicyRuleCollectionGroupDraftInner object itself. + * {@inheritDoc} */ + @Override public FirewallPolicyRuleCollectionGroupDraftInner withName(String name) { - this.name = name; + super.withName(name); return this; } - /** - * Get the type property: Rule Group type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - /** * {@inheritDoc} */ @@ -150,6 +133,7 @@ public List ruleCollections() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -163,8 +147,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -186,13 +170,13 @@ public static FirewallPolicyRuleCollectionGroupDraftInner fromJson(JsonReader js if ("id".equals(fieldName)) { deserializedFirewallPolicyRuleCollectionGroupDraftInner.withId(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedFirewallPolicyRuleCollectionGroupDraftInner.innerProperties - = FirewallPolicyRuleCollectionGroupDraftProperties.fromJson(reader); } else if ("name".equals(fieldName)) { - deserializedFirewallPolicyRuleCollectionGroupDraftInner.name = reader.getString(); + deserializedFirewallPolicyRuleCollectionGroupDraftInner.withName(reader.getString()); } else if ("type".equals(fieldName)) { deserializedFirewallPolicyRuleCollectionGroupDraftInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedFirewallPolicyRuleCollectionGroupDraftInner.innerProperties + = FirewallPolicyRuleCollectionGroupDraftProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java index af1301da5309..de59b5d3e0f4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java index 85ca82bc6d49..75ad9eb804f9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -18,24 +18,19 @@ * Rule Collection Group resource. */ @Fluent -public final class FirewallPolicyRuleCollectionGroupInner extends SubResource { +public final class FirewallPolicyRuleCollectionGroupInner extends SubResourceModel { /* * The properties of the firewall policy rule collection group. */ private FirewallPolicyRuleCollectionGroupProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Rule Group type. + * Resource type. */ private String type; @@ -54,28 +49,6 @@ private FirewallPolicyRuleCollectionGroupProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the FirewallPolicyRuleCollectionGroupInner object itself. - */ - public FirewallPolicyRuleCollectionGroupInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -86,14 +59,24 @@ public String etag() { } /** - * Get the type property: Rule Group type. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public FirewallPolicyRuleCollectionGroupInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -174,6 +157,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -187,8 +171,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -210,15 +194,15 @@ public static FirewallPolicyRuleCollectionGroupInner fromJson(JsonReader jsonRea if ("id".equals(fieldName)) { deserializedFirewallPolicyRuleCollectionGroupInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedFirewallPolicyRuleCollectionGroupInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedFirewallPolicyRuleCollectionGroupInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedFirewallPolicyRuleCollectionGroupInner.innerProperties = FirewallPolicyRuleCollectionGroupProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedFirewallPolicyRuleCollectionGroupInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedFirewallPolicyRuleCollectionGroupInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedFirewallPolicyRuleCollectionGroupInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java index 57da3ef0a90d..21b9fbb3ea8c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java index 272f134f4d6a..bb90bc4dc56c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInner.java index be4031f44f81..7351d5ee2b70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java index 34ae35730845..71da56f8347a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java index 960b9705b5c4..cb0083593b96 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java index b69dc3511176..855a80701e98 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.IpAllocationMethod; import com.azure.resourcemanager.network.models.IpVersion; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -19,32 +20,26 @@ * Frontend IP address of the load balancer. */ @Fluent -public final class FrontendIpConfigurationInner extends SubResource { +public final class FrontendIpConfigurationInner extends SubResourceModel { /* * Properties of the load balancer probe. */ private FrontendIpConfigurationPropertiesFormatInner innerProperties; - /* - * The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. - * This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * A list of availability zones denoting the IP allocated for the resource needs to come from. */ - private String type; + private List zones; /* - * A list of availability zones denoting the IP allocated for the resource needs to come from. + * Resource type. */ - private List zones; + private String type; /** * Creates an instance of FrontendIpConfigurationInner class. @@ -61,28 +56,6 @@ private FrontendIpConfigurationPropertiesFormatInner innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within the set of frontend IP configurations used - * by the load balancer. This name can be used to access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within the set of frontend IP configurations used - * by the load balancer. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the FrontendIpConfigurationInner object itself. - */ - public FrontendIpConfigurationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -92,15 +65,6 @@ public String etag() { return this.etag; } - /** - * Get the type property: Type of the resource. - * - * @return the type value. - */ - public String type() { - return this.type; - } - /** * Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come * from. @@ -123,6 +87,25 @@ public FrontendIpConfigurationInner withZones(List zones) { return this; } + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Override + public FrontendIpConfigurationInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -286,25 +269,25 @@ public FrontendIpConfigurationInner withPublicIpAddress(PublicIpAddressInner pub } /** - * Get the publicIpPrefix property: The reference to the Public IP Prefix resource. + * Get the publicIPPrefix property: The reference to the Public IP Prefix resource. * - * @return the publicIpPrefix value. + * @return the publicIPPrefix value. */ - public SubResource publicIpPrefix() { - return this.innerProperties() == null ? null : this.innerProperties().publicIpPrefix(); + public SubResource publicIPPrefix() { + return this.innerProperties() == null ? null : this.innerProperties().publicIPPrefix(); } /** - * Set the publicIpPrefix property: The reference to the Public IP Prefix resource. + * Set the publicIPPrefix property: The reference to the Public IP Prefix resource. * - * @param publicIpPrefix the publicIpPrefix value to set. + * @param publicIPPrefix the publicIPPrefix value to set. * @return the FrontendIpConfigurationInner object itself. */ - public FrontendIpConfigurationInner withPublicIpPrefix(SubResource publicIpPrefix) { + public FrontendIpConfigurationInner withPublicIPPrefix(SubResource publicIPPrefix) { if (this.innerProperties() == null) { this.innerProperties = new FrontendIpConfigurationPropertiesFormatInner(); } - this.innerProperties().withPublicIpPrefix(publicIpPrefix); + this.innerProperties().withPublicIPPrefix(publicIPPrefix); return this; } @@ -345,6 +328,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -358,8 +342,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -381,15 +365,15 @@ public static FrontendIpConfigurationInner fromJson(JsonReader jsonReader) throw if ("id".equals(fieldName)) { deserializedFrontendIpConfigurationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedFrontendIpConfigurationInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedFrontendIpConfigurationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedFrontendIpConfigurationInner.innerProperties = FrontendIpConfigurationPropertiesFormatInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedFrontendIpConfigurationInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedFrontendIpConfigurationInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedFrontendIpConfigurationInner.type = reader.getString(); } else if ("zones".equals(fieldName)) { List zones = reader.readArray(reader1 -> reader1.getString()); deserializedFrontendIpConfigurationInner.zones = zones; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationPropertiesFormatInner.java index a7ce1acd3594..9d4a450b22de 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -70,7 +70,7 @@ public final class FrontendIpConfigurationPropertiesFormatInner /* * The reference to the Public IP Prefix resource. */ - private SubResource publicIpPrefix; + private SubResource publicIPPrefix; /* * The reference to gateway load balancer frontend IP. @@ -228,22 +228,22 @@ public FrontendIpConfigurationPropertiesFormatInner withPublicIpAddress(PublicIp } /** - * Get the publicIpPrefix property: The reference to the Public IP Prefix resource. + * Get the publicIPPrefix property: The reference to the Public IP Prefix resource. * - * @return the publicIpPrefix value. + * @return the publicIPPrefix value. */ - public SubResource publicIpPrefix() { - return this.publicIpPrefix; + public SubResource publicIPPrefix() { + return this.publicIPPrefix; } /** - * Set the publicIpPrefix property: The reference to the Public IP Prefix resource. + * Set the publicIPPrefix property: The reference to the Public IP Prefix resource. * - * @param publicIpPrefix the publicIpPrefix value to set. + * @param publicIPPrefix the publicIPPrefix value to set. * @return the FrontendIpConfigurationPropertiesFormatInner object itself. */ - public FrontendIpConfigurationPropertiesFormatInner withPublicIpPrefix(SubResource publicIpPrefix) { - this.publicIpPrefix = publicIpPrefix; + public FrontendIpConfigurationPropertiesFormatInner withPublicIPPrefix(SubResource publicIPPrefix) { + this.publicIPPrefix = publicIPPrefix; return this; } @@ -303,7 +303,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.privateIpAddressVersion == null ? null : this.privateIpAddressVersion.toString()); jsonWriter.writeJsonField("subnet", this.subnet); jsonWriter.writeJsonField("publicIPAddress", this.publicIpAddress); - jsonWriter.writeJsonField("publicIPPrefix", this.publicIpPrefix); + jsonWriter.writeJsonField("publicIPPrefix", this.publicIPPrefix); jsonWriter.writeJsonField("gatewayLoadBalancer", this.gatewayLoadBalancer); return jsonWriter.writeEndObject(); } @@ -350,7 +350,7 @@ public static FrontendIpConfigurationPropertiesFormatInner fromJson(JsonReader j deserializedFrontendIpConfigurationPropertiesFormatInner.publicIpAddress = PublicIpAddressInner.fromJson(reader); } else if ("publicIPPrefix".equals(fieldName)) { - deserializedFrontendIpConfigurationPropertiesFormatInner.publicIpPrefix + deserializedFrontendIpConfigurationPropertiesFormatInner.publicIPPrefix = SubResource.fromJson(reader); } else if ("gatewayLoadBalancer".equals(fieldName)) { deserializedFrontendIpConfigurationPropertiesFormatInner.gatewayLoadBalancer diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayResiliencyInformationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayResiliencyInformationInner.java index 5aa9baf15556..347b853ec618 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayResiliencyInformationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayResiliencyInformationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -19,7 +19,7 @@ /** * Gateway Resiliency Information. */ -@Fluent +@Immutable public final class GatewayResiliencyInformationInner implements JsonSerializable { /* * Current Resiliency Score for the gateway @@ -59,7 +59,7 @@ public final class GatewayResiliencyInformationInner implements JsonSerializable /** * Creates an instance of GatewayResiliencyInformationInner class. */ - public GatewayResiliencyInformationInner() { + private GatewayResiliencyInformationInner() { } /** @@ -71,17 +71,6 @@ public String overallScore() { return this.overallScore; } - /** - * Set the overallScore property: Current Resiliency Score for the gateway. - * - * @param overallScore the overallScore value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withOverallScore(String overallScore) { - this.overallScore = overallScore; - return this; - } - /** * Get the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score. * @@ -91,17 +80,6 @@ public String scoreChange() { return this.scoreChange; } - /** - * Set the scoreChange property: Update in the Resiliency Score for the gateway from the last computed score. - * - * @param scoreChange the scoreChange value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withScoreChange(String scoreChange) { - this.scoreChange = scoreChange; - return this; - } - /** * Get the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the * recommendations is applied for the gateway. @@ -112,18 +90,6 @@ public String minScoreFromRecommendations() { return this.minScoreFromRecommendations; } - /** - * Set the minScoreFromRecommendations property: Minimum increase expected in the score if the at least one of the - * recommendations is applied for the gateway. - * - * @param minScoreFromRecommendations the minScoreFromRecommendations value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withMinScoreFromRecommendations(String minScoreFromRecommendations) { - this.minScoreFromRecommendations = minScoreFromRecommendations; - return this; - } - /** * Get the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the * recommendations are applied for the gateway. @@ -134,18 +100,6 @@ public String maxScoreFromRecommendations() { return this.maxScoreFromRecommendations; } - /** - * Set the maxScoreFromRecommendations property: Maximum increase expected in the score if all of the - * recommendations are applied for the gateway. - * - * @param maxScoreFromRecommendations the maxScoreFromRecommendations value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withMaxScoreFromRecommendations(String maxScoreFromRecommendations) { - this.maxScoreFromRecommendations = maxScoreFromRecommendations; - return this; - } - /** * Get the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for * the gateway. @@ -156,18 +110,6 @@ public OffsetDateTime lastComputedTime() { return this.lastComputedTime; } - /** - * Set the lastComputedTime property: Timestamp denoting the last time when the resiliency score was computed for - * the gateway. - * - * @param lastComputedTime the lastComputedTime value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withLastComputedTime(OffsetDateTime lastComputedTime) { - this.lastComputedTime = lastComputedTime; - return this; - } - /** * Get the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency * score for the gateway. @@ -178,18 +120,6 @@ public OffsetDateTime nextEligibleComputeTime() { return this.nextEligibleComputeTime; } - /** - * Set the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the resiliency - * score for the gateway. - * - * @param nextEligibleComputeTime the nextEligibleComputeTime value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withNextEligibleComputeTime(OffsetDateTime nextEligibleComputeTime) { - this.nextEligibleComputeTime = nextEligibleComputeTime; - return this; - } - /** * Get the components property: List of Resiliency based Recommendation Components for the gateway. * @@ -199,17 +129,6 @@ public List components() { return this.components; } - /** - * Set the components property: List of Resiliency based Recommendation Components for the gateway. - * - * @param components the components value to set. - * @return the GatewayResiliencyInformationInner object itself. - */ - public GatewayResiliencyInformationInner withComponents(List components) { - this.components = components; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteListResultInner.java index 9368ee82522f..ff5e9b1dcfa7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * List of virtual network gateway routes. */ -@Fluent +@Immutable public final class GatewayRouteListResultInner implements JsonSerializable { /* * List of gateway routes. @@ -26,7 +26,7 @@ public final class GatewayRouteListResultInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: List of gateway routes. - * - * @param value the value value to set. - * @return the GatewayRouteListResultInner object itself. - */ - public GatewayRouteListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteSetsInformationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteSetsInformationInner.java index da7917b169c8..12844aa1e05c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteSetsInformationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteSetsInformationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -21,7 +21,7 @@ /** * Gateway Route Sets Information. */ -@Fluent +@Immutable public final class GatewayRouteSetsInformationInner implements JsonSerializable { /* * Timestamp denoting the last time when the route sets were computed for the gateway @@ -51,7 +51,7 @@ public final class GatewayRouteSetsInformationInner implements JsonSerializable< /** * Creates an instance of GatewayRouteSetsInformationInner class. */ - public GatewayRouteSetsInformationInner() { + private GatewayRouteSetsInformationInner() { } /** @@ -64,18 +64,6 @@ public OffsetDateTime lastComputedTime() { return this.lastComputedTime; } - /** - * Set the lastComputedTime property: Timestamp denoting the last time when the route sets were computed for the - * gateway. - * - * @param lastComputedTime the lastComputedTime value to set. - * @return the GatewayRouteSetsInformationInner object itself. - */ - public GatewayRouteSetsInformationInner withLastComputedTime(OffsetDateTime lastComputedTime) { - this.lastComputedTime = lastComputedTime; - return this; - } - /** * Get the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the route sets * for the gateway. @@ -86,18 +74,6 @@ public OffsetDateTime nextEligibleComputeTime() { return this.nextEligibleComputeTime; } - /** - * Set the nextEligibleComputeTime property: Timestamp denoting the next eligible time to re-compute the route sets - * for the gateway. - * - * @param nextEligibleComputeTime the nextEligibleComputeTime value to set. - * @return the GatewayRouteSetsInformationInner object itself. - */ - public GatewayRouteSetsInformationInner withNextEligibleComputeTime(OffsetDateTime nextEligibleComputeTime) { - this.nextEligibleComputeTime = nextEligibleComputeTime; - return this; - } - /** * Get the routeSetVersion property: Version for the route set. * @@ -107,17 +83,6 @@ public String routeSetVersion() { return this.routeSetVersion; } - /** - * Set the routeSetVersion property: Version for the route set. - * - * @param routeSetVersion the routeSetVersion value to set. - * @return the GatewayRouteSetsInformationInner object itself. - */ - public GatewayRouteSetsInformationInner withRouteSetVersion(String routeSetVersion) { - this.routeSetVersion = routeSetVersion; - return this; - } - /** * Get the routeSets property: List of Gateway Route Sets. * @@ -127,17 +92,6 @@ public List routeSets() { return this.routeSets; } - /** - * Set the routeSets property: List of Gateway Route Sets. - * - * @param routeSets the routeSets value to set. - * @return the GatewayRouteSetsInformationInner object itself. - */ - public GatewayRouteSetsInformationInner withRouteSets(List routeSets) { - this.routeSets = routeSets; - return this; - } - /** * Get the circuitsMetadataMap property: Dictionary containing map of the circuit id and circuit details. * @@ -147,18 +101,6 @@ public Map circuitsMetadataMap() { return this.circuitsMetadataMap; } - /** - * Set the circuitsMetadataMap property: Dictionary containing map of the circuit id and circuit details. - * - * @param circuitsMetadataMap the circuitsMetadataMap value to set. - * @return the GatewayRouteSetsInformationInner object itself. - */ - public GatewayRouteSetsInformationInner - withCircuitsMetadataMap(Map circuitsMetadataMap) { - this.circuitsMetadataMap = circuitsMetadataMap; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GenerateExpressRoutePortsLoaResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GenerateExpressRoutePortsLoaResultInner.java index 1c0ee78afbc4..b5bf9804479e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GenerateExpressRoutePortsLoaResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/GenerateExpressRoutePortsLoaResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Response for GenerateExpressRoutePortsLOA API service call. */ -@Fluent +@Immutable public final class GenerateExpressRoutePortsLoaResultInner implements JsonSerializable { /* @@ -25,7 +25,7 @@ public final class GenerateExpressRoutePortsLoaResultInner /** * Creates an instance of GenerateExpressRoutePortsLoaResultInner class. */ - public GenerateExpressRoutePortsLoaResultInner() { + private GenerateExpressRoutePortsLoaResultInner() { } /** @@ -37,17 +37,6 @@ public String encodedContent() { return this.encodedContent; } - /** - * Set the encodedContent property: The content as a base64 encoded string. - * - * @param encodedContent the encodedContent value to set. - * @return the GenerateExpressRoutePortsLoaResultInner object itself. - */ - public GenerateExpressRoutePortsLoaResultInner withEncodedContent(String encodedContent) { - this.encodedContent = encodedContent; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HopLinkProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HopLinkProperties.java index 87b1b1a310b3..18b94752e72c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HopLinkProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HopLinkProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -34,7 +34,7 @@ public final class HopLinkProperties implements JsonSerializable { /* * Private IP address availability. @@ -35,7 +35,7 @@ public final class IpAddressAvailabilityResultInner implements JsonSerializable< /** * Creates an instance of IpAddressAvailabilityResultInner class. */ - public IpAddressAvailabilityResultInner() { + private IpAddressAvailabilityResultInner() { } /** @@ -47,17 +47,6 @@ public Boolean available() { return this.available; } - /** - * Set the available property: Private IP address availability. - * - * @param available the available value to set. - * @return the IpAddressAvailabilityResultInner object itself. - */ - public IpAddressAvailabilityResultInner withAvailable(Boolean available) { - this.available = available; - return this; - } - /** * Get the availableIpAddresses property: Contains other available private IP addresses if the asked for address is * taken. @@ -68,18 +57,6 @@ public List availableIpAddresses() { return this.availableIpAddresses; } - /** - * Set the availableIpAddresses property: Contains other available private IP addresses if the asked for address is - * taken. - * - * @param availableIpAddresses the availableIpAddresses value to set. - * @return the IpAddressAvailabilityResultInner object itself. - */ - public IpAddressAvailabilityResultInner withAvailableIpAddresses(List availableIpAddresses) { - this.availableIpAddresses = availableIpAddresses; - return this; - } - /** * Get the isPlatformReserved property: Private IP address platform reserved. * @@ -89,17 +66,6 @@ public Boolean isPlatformReserved() { return this.isPlatformReserved; } - /** - * Set the isPlatformReserved property: Private IP address platform reserved. - * - * @param isPlatformReserved the isPlatformReserved value to set. - * @return the IpAddressAvailabilityResultInner object itself. - */ - public IpAddressAvailabilityResultInner withIsPlatformReserved(Boolean isPlatformReserved) { - this.isPlatformReserved = isPlatformReserved; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationInner.java index d53483796692..4f701068d2b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationPropertiesFormat.java index 4733bd41e761..d99ff0145bfa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationInner.java index 5766b617cfec..c4d3ff884478 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * IP configuration. */ -@Fluent +@Immutable public final class IpConfigurationInner extends SubResource { /* * Properties of the IP configuration. @@ -36,7 +36,7 @@ public final class IpConfigurationInner extends SubResource { /** * Creates an instance of IpConfigurationInner class. */ - public IpConfigurationInner() { + private IpConfigurationInner() { } /** @@ -58,18 +58,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the IpConfigurationInner object itself. - */ - public IpConfigurationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -79,15 +67,6 @@ public String etag() { return this.etag; } - /** - * {@inheritDoc} - */ - @Override - public IpConfigurationInner withId(String id) { - super.withId(id); - return this; - } - /** * Get the privateIpAddress property: The private IP address of the IP configuration. * @@ -97,20 +76,6 @@ public String privateIpAddress() { return this.innerProperties() == null ? null : this.innerProperties().privateIpAddress(); } - /** - * Set the privateIpAddress property: The private IP address of the IP configuration. - * - * @param privateIpAddress the privateIpAddress value to set. - * @return the IpConfigurationInner object itself. - */ - public IpConfigurationInner withPrivateIpAddress(String privateIpAddress) { - if (this.innerProperties() == null) { - this.innerProperties = new IpConfigurationPropertiesFormatInner(); - } - this.innerProperties().withPrivateIpAddress(privateIpAddress); - return this; - } - /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -120,20 +85,6 @@ public IpAllocationMethod privateIpAllocationMethod() { return this.innerProperties() == null ? null : this.innerProperties().privateIpAllocationMethod(); } - /** - * Set the privateIpAllocationMethod property: The private IP address allocation method. - * - * @param privateIpAllocationMethod the privateIpAllocationMethod value to set. - * @return the IpConfigurationInner object itself. - */ - public IpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) { - if (this.innerProperties() == null) { - this.innerProperties = new IpConfigurationPropertiesFormatInner(); - } - this.innerProperties().withPrivateIpAllocationMethod(privateIpAllocationMethod); - return this; - } - /** * Get the subnet property: The reference to the subnet resource. * @@ -143,20 +94,6 @@ public SubnetInner subnet() { return this.innerProperties() == null ? null : this.innerProperties().subnet(); } - /** - * Set the subnet property: The reference to the subnet resource. - * - * @param subnet the subnet value to set. - * @return the IpConfigurationInner object itself. - */ - public IpConfigurationInner withSubnet(SubnetInner subnet) { - if (this.innerProperties() == null) { - this.innerProperties = new IpConfigurationPropertiesFormatInner(); - } - this.innerProperties().withSubnet(subnet); - return this; - } - /** * Get the publicIpAddress property: The reference to the public IP resource. * @@ -166,20 +103,6 @@ public PublicIpAddressInner publicIpAddress() { return this.innerProperties() == null ? null : this.innerProperties().publicIpAddress(); } - /** - * Set the publicIpAddress property: The reference to the public IP resource. - * - * @param publicIpAddress the publicIpAddress value to set. - * @return the IpConfigurationInner object itself. - */ - public IpConfigurationInner withPublicIpAddress(PublicIpAddressInner publicIpAddress) { - if (this.innerProperties() == null) { - this.innerProperties = new IpConfigurationPropertiesFormatInner(); - } - this.innerProperties().withPublicIpAddress(publicIpAddress); - return this; - } - /** * Get the provisioningState property: The provisioning state of the IP configuration resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfileInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfileInner.java index d0a6310ff5c9..27bcf586a685 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfileInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfileInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfilePropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfilePropertiesFormatInner.java index 374738b3c7bb..7acd8c13f84e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfilePropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfilePropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationPropertiesFormatInner.java index 22f54dcab845..c525c54544a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationPropertiesFormatInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties of IP configuration. */ -@Fluent +@Immutable public final class IpConfigurationPropertiesFormatInner implements JsonSerializable { /* @@ -47,7 +47,7 @@ public final class IpConfigurationPropertiesFormatInner /** * Creates an instance of IpConfigurationPropertiesFormatInner class. */ - public IpConfigurationPropertiesFormatInner() { + private IpConfigurationPropertiesFormatInner() { } /** @@ -59,17 +59,6 @@ public String privateIpAddress() { return this.privateIpAddress; } - /** - * Set the privateIpAddress property: The private IP address of the IP configuration. - * - * @param privateIpAddress the privateIpAddress value to set. - * @return the IpConfigurationPropertiesFormatInner object itself. - */ - public IpConfigurationPropertiesFormatInner withPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - return this; - } - /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -79,18 +68,6 @@ public IpAllocationMethod privateIpAllocationMethod() { return this.privateIpAllocationMethod; } - /** - * Set the privateIpAllocationMethod property: The private IP address allocation method. - * - * @param privateIpAllocationMethod the privateIpAllocationMethod value to set. - * @return the IpConfigurationPropertiesFormatInner object itself. - */ - public IpConfigurationPropertiesFormatInner - withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) { - this.privateIpAllocationMethod = privateIpAllocationMethod; - return this; - } - /** * Get the subnet property: The reference to the subnet resource. * @@ -100,17 +77,6 @@ public SubnetInner subnet() { return this.subnet; } - /** - * Set the subnet property: The reference to the subnet resource. - * - * @param subnet the subnet value to set. - * @return the IpConfigurationPropertiesFormatInner object itself. - */ - public IpConfigurationPropertiesFormatInner withSubnet(SubnetInner subnet) { - this.subnet = subnet; - return this; - } - /** * Get the publicIpAddress property: The reference to the public IP resource. * @@ -120,17 +86,6 @@ public PublicIpAddressInner publicIpAddress() { return this.publicIpAddress; } - /** - * Set the publicIpAddress property: The reference to the public IP resource. - * - * @param publicIpAddress the publicIpAddress value to set. - * @return the IpConfigurationPropertiesFormatInner object itself. - */ - public IpConfigurationPropertiesFormatInner withPublicIpAddress(PublicIpAddressInner publicIpAddress) { - this.publicIpAddress = publicIpAddress; - return this; - } - /** * Get the provisioningState property: The provisioning state of the IP configuration resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupInner.java index 8e96804441bc..3d88780fbc83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupPropertiesFormat.java index d38c3b54cfcd..2ba6df34980d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpPrefixesListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpPrefixesListInner.java index 743ea57b7de8..5a453b245c09 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpPrefixesListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpPrefixesListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * List of SNAT IP Prefixes learnt by firewall to not SNAT. */ -@Fluent +@Immutable public final class IpPrefixesListInner implements JsonSerializable { /* * IP Prefix value. @@ -25,7 +25,7 @@ public final class IpPrefixesListInner implements JsonSerializable ipPrefixes() { return this.ipPrefixes; } - /** - * Set the ipPrefixes property: IP Prefix value. - * - * @param ipPrefixes the ipPrefixes value to set. - * @return the IpPrefixesListInner object itself. - */ - public IpPrefixesListInner withIpPrefixes(List ipPrefixes) { - this.ipPrefixes = ipPrefixes; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolInner.java index 5cf7d3718ed8..9b4fec5e7a63 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -26,7 +26,7 @@ public final class IpamPoolInner extends CommonTrackedResource { private IpamPoolProperties properties; /* - * String representing unique etag for the resource document. + * A unique read-only string that changes whenever the resource is updated. */ private String etag; @@ -36,17 +36,18 @@ public final class IpamPoolInner extends CommonTrackedResource { private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -77,7 +78,7 @@ public IpamPoolInner withProperties(IpamPoolProperties properties) { } /** - * Get the etag property: String representing unique etag for the resource document. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * * @return the etag value. */ @@ -96,7 +97,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -116,7 +118,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -192,14 +195,14 @@ public static IpamPoolInner fromJson(JsonReader jsonReader) throws IOException { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedIpamPoolInner.withLocation(reader.getString()); + } else if ("id".equals(fieldName)) { deserializedIpamPoolInner.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedIpamPoolInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedIpamPoolInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedIpamPoolInner.withLocation(reader.getString()); } else if ("systemData".equals(fieldName)) { deserializedIpamPoolInner.systemData = SystemData.fromJson(reader); } else if ("tags".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolPrefixAllocationPool.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolPrefixAllocationPool.java index efa0904c67fa..5836c683c0c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolPrefixAllocationPool.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolPrefixAllocationPool.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java index 91b242400761..e9e6e2bcda7b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerHealthPerRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerHealthPerRuleInner.java index c8a82d57fbbf..5986768e3857 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerHealthPerRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerHealthPerRuleInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * The response for a Health API. */ -@Fluent +@Immutable public final class LoadBalancerHealthPerRuleInner implements JsonSerializable { /* * Number of backend instances associated to the LB rule that are considered healthy. @@ -36,7 +36,7 @@ public final class LoadBalancerHealthPerRuleInner implements JsonSerializable loadBalancerBackendAddre return this.loadBalancerBackendAddresses; } - /** - * Set the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses. - * - * @param loadBalancerBackendAddresses the loadBalancerBackendAddresses value to set. - * @return the LoadBalancerHealthPerRuleInner object itself. - */ - public LoadBalancerHealthPerRuleInner withLoadBalancerBackendAddresses( - List loadBalancerBackendAddresses) { - this.loadBalancerBackendAddresses = loadBalancerBackendAddresses; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java index 8716188f5ac2..fd368a856f51 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -24,24 +24,24 @@ @Fluent public final class LoadBalancerInner extends Resource { /* - * The extended location of the load balancer. + * Properties of load balancer. */ - private ExtendedLocation extendedLocation; + private LoadBalancerPropertiesFormat innerProperties; /* - * The load balancer SKU. + * A unique read-only string that changes whenever the resource is updated. */ - private LoadBalancerSku sku; + private String etag; /* - * Properties of load balancer. + * The extended location of the load balancer. */ - private LoadBalancerPropertiesFormat innerProperties; + private ExtendedLocation extendedLocation; /* - * A unique read-only string that changes whenever the resource is updated. + * The load balancer SKU. */ - private String etag; + private LoadBalancerSku sku; /* * Resource ID. @@ -64,6 +64,24 @@ public final class LoadBalancerInner extends Resource { public LoadBalancerInner() { } + /** + * Get the innerProperties property: Properties of load balancer. + * + * @return the innerProperties value. + */ + private LoadBalancerPropertiesFormat innerProperties() { + return this.innerProperties; + } + + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** * Get the extendedLocation property: The extended location of the load balancer. * @@ -104,24 +122,6 @@ public LoadBalancerInner withSku(LoadBalancerSku sku) { return this; } - /** - * Get the innerProperties property: Properties of load balancer. - * - * @return the innerProperties value. - */ - private LoadBalancerPropertiesFormat innerProperties() { - return this.innerProperties; - } - - /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - /** * Get the id property: Resource ID. * @@ -406,15 +406,15 @@ public LoadBalancerInner withScope(LoadBalancerScope scope) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } if (extendedLocation() != null) { extendedLocation().validate(); } if (sku() != null) { sku().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); - } } /** @@ -425,9 +425,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -457,14 +457,14 @@ public static LoadBalancerInner fromJson(JsonReader jsonReader) throws IOExcepti } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedLoadBalancerInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedLoadBalancerInner.extendedLocation = ExtendedLocation.fromJson(reader); - } else if ("sku".equals(fieldName)) { - deserializedLoadBalancerInner.sku = LoadBalancerSku.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedLoadBalancerInner.innerProperties = LoadBalancerPropertiesFormat.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedLoadBalancerInner.etag = reader.getString(); + } else if ("extendedLocation".equals(fieldName)) { + deserializedLoadBalancerInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedLoadBalancerInner.sku = LoadBalancerSku.fromJson(reader); } else if ("id".equals(fieldName)) { deserializedLoadBalancerInner.id = reader.getString(); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java index dd5199394c43..35797f5366b2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerVipSwapRequestFrontendIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerVipSwapRequestFrontendIpConfigurationProperties.java index e26e8cfd9466..a6ff498bae15 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerVipSwapRequestFrontendIpConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerVipSwapRequestFrontendIpConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java index 7e0e65b2099e..4fd5625d1840 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.LoadDistribution; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.TransportProtocol; import java.io.IOException; import java.util.List; @@ -19,25 +20,19 @@ * A load balancing rule for a load balancer. */ @Fluent -public final class LoadBalancingRuleInner extends SubResource { +public final class LoadBalancingRuleInner extends SubResourceModel { /* * Properties of load balancer load balancing rule. */ private LoadBalancingRulePropertiesFormat innerProperties; - /* - * The name of the resource that is unique within the set of load balancing rules used by the load balancer. This - * name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -56,28 +51,6 @@ private LoadBalancingRulePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within the set of load balancing rules used by the - * load balancer. This name can be used to access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within the set of load balancing rules used by the - * load balancer. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the LoadBalancingRuleInner object itself. - */ - public LoadBalancingRuleInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -88,14 +61,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public LoadBalancingRuleInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -436,6 +419,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -449,8 +433,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -471,15 +455,15 @@ public static LoadBalancingRuleInner fromJson(JsonReader jsonReader) throws IOEx if ("id".equals(fieldName)) { deserializedLoadBalancingRuleInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedLoadBalancingRuleInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedLoadBalancingRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedLoadBalancingRuleInner.innerProperties = LoadBalancingRulePropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedLoadBalancingRuleInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedLoadBalancingRuleInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedLoadBalancingRuleInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java index b2bdc3ec9a3f..cf3585f7bacd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java index 4fd3b6a5737c..a468360475b9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayPropertiesFormat.java index abe22f0b445c..4fd0ea8b378d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/MigratedPoolsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/MigratedPoolsInner.java index 6ad6bf2f0500..332cf813df03 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/MigratedPoolsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/MigratedPoolsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The response for a migrateToIpBased API. */ -@Fluent +@Immutable public final class MigratedPoolsInner implements JsonSerializable { /* * A list of pools migrated from Nic based to IP based pool @@ -25,7 +25,7 @@ public final class MigratedPoolsInner implements JsonSerializable migratedPools() { return this.migratedPools; } - /** - * Set the migratedPools property: A list of pools migrated from Nic based to IP based pool. - * - * @param migratedPools the migratedPools value to set. - * @return the MigratedPoolsInner object itself. - */ - public MigratedPoolsInner withMigratedPools(List migratedPools) { - this.migratedPools = migratedPools; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java index 204bb7d811f5..40fb611fffad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -22,14 +22,14 @@ @Fluent public final class NatGatewayInner extends Resource { /* - * The nat gateway SKU. + * Nat Gateway properties. */ - private NatGatewaySku sku; + private NatGatewayPropertiesFormat innerProperties; /* - * Nat Gateway properties. + * The nat gateway SKU. */ - private NatGatewayPropertiesFormat innerProperties; + private NatGatewaySku sku; /* * A list of availability zones denoting the zone in which Nat Gateway should be deployed. @@ -62,6 +62,15 @@ public final class NatGatewayInner extends Resource { public NatGatewayInner() { } + /** + * Get the innerProperties property: Nat Gateway properties. + * + * @return the innerProperties value. + */ + private NatGatewayPropertiesFormat innerProperties() { + return this.innerProperties; + } + /** * Get the sku property: The nat gateway SKU. * @@ -82,15 +91,6 @@ public NatGatewayInner withSku(NatGatewaySku sku) { return this; } - /** - * Get the innerProperties property: Nat Gateway properties. - * - * @return the innerProperties value. - */ - private NatGatewayPropertiesFormat innerProperties() { - return this.innerProperties; - } - /** * Get the zones property: A list of availability zones denoting the zone in which Nat Gateway should be deployed. * @@ -374,12 +374,12 @@ public ProvisioningState provisioningState() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (sku() != null) { - sku().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (sku() != null) { + sku().validate(); + } } /** @@ -390,8 +390,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); @@ -422,10 +422,10 @@ public static NatGatewayInner fromJson(JsonReader jsonReader) throws IOException } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNatGatewayInner.withTags(tags); - } else if ("sku".equals(fieldName)) { - deserializedNatGatewayInner.sku = NatGatewaySku.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedNatGatewayInner.innerProperties = NatGatewayPropertiesFormat.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedNatGatewayInner.sku = NatGatewaySku.fromJson(reader); } else if ("zones".equals(fieldName)) { List zones = reader.readArray(reader1 -> reader1.getString()); deserializedNatGatewayInner.zones = zones; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java index cbebe52a9ede..a3a63140464c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkConfigurationDiagnosticResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkConfigurationDiagnosticResponseInner.java index 23ab37e36810..8017ee214ebf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkConfigurationDiagnosticResponseInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkConfigurationDiagnosticResponseInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -27,7 +27,7 @@ public final class NetworkConfigurationDiagnosticResponseInner /** * Creates an instance of NetworkConfigurationDiagnosticResponseInner class. */ - public NetworkConfigurationDiagnosticResponseInner() { + private NetworkConfigurationDiagnosticResponseInner() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupInner.java index 86007c806e55..73307c7b5150 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -35,17 +35,17 @@ public final class NetworkGroupInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -84,7 +84,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -94,7 +94,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -104,7 +104,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -205,7 +205,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkGroupInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkGroupInner. */ public static NetworkGroupInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupProperties.java index fecac4bb42d9..93238af536fe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceInner.java index 11024321ca97..557d7f4e5455 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -27,14 +27,14 @@ @Fluent public final class NetworkInterfaceInner extends Resource { /* - * The extended location of the network interface. + * Properties of the network interface. */ - private ExtendedLocation extendedLocation; + private NetworkInterfacePropertiesFormatInner innerProperties; /* - * Properties of the network interface. + * The extended location of the network interface. */ - private NetworkInterfacePropertiesFormatInner innerProperties; + private ExtendedLocation extendedLocation; /* * A unique read-only string that changes whenever the resource is updated. @@ -62,6 +62,15 @@ public final class NetworkInterfaceInner extends Resource { public NetworkInterfaceInner() { } + /** + * Get the innerProperties property: Properties of the network interface. + * + * @return the innerProperties value. + */ + private NetworkInterfacePropertiesFormatInner innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the network interface. * @@ -82,15 +91,6 @@ public NetworkInterfaceInner withExtendedLocation(ExtendedLocation extendedLocat return this; } - /** - * Get the innerProperties property: Properties of the network interface. - * - * @return the innerProperties value. - */ - private NetworkInterfacePropertiesFormatInner innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -544,12 +544,12 @@ public NetworkInterfaceInner withAuxiliarySku(NetworkInterfaceAuxiliarySku auxil * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (extendedLocation() != null) { - extendedLocation().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } } /** @@ -560,8 +560,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -591,11 +591,11 @@ public static NetworkInterfaceInner fromJson(JsonReader jsonReader) throws IOExc } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNetworkInterfaceInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedNetworkInterfaceInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedNetworkInterfaceInner.innerProperties = NetworkInterfacePropertiesFormatInner.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedNetworkInterfaceInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedNetworkInterfaceInner.etag = reader.getString(); } else if ("id".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java index cc08551b1466..c62c9faabb64 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -14,6 +14,7 @@ import com.azure.resourcemanager.network.models.IpVersion; import com.azure.resourcemanager.network.models.NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -21,17 +22,12 @@ * IPConfiguration in a network interface. */ @Fluent -public final class NetworkInterfaceIpConfigurationInner extends SubResource { +public final class NetworkInterfaceIpConfigurationInner extends SubResourceModel { /* * Network interface IP configuration properties. */ private NetworkInterfaceIpConfigurationPropertiesFormatInner innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -57,28 +53,6 @@ private NetworkInterfaceIpConfigurationPropertiesFormatInner innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the NetworkInterfaceIpConfigurationInner object itself. - */ - public NetworkInterfaceIpConfigurationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -93,18 +67,17 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: Resource type. - * - * @param type the type value to set. - * @return the NetworkInterfaceIpConfigurationInner object itself. + * {@inheritDoc} */ - public NetworkInterfaceIpConfigurationInner withType(String type) { - this.type = type; + @Override + public NetworkInterfaceIpConfigurationInner withName(String name) { + super.withName(name); return this; } @@ -264,27 +237,27 @@ public NetworkInterfaceIpConfigurationInner withPrivateIpAddress(String privateI } /** - * Get the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the + * Get the privateIPAddressPrefixLength property: 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. * - * @return the privateIpAddressPrefixLength value. + * @return the privateIPAddressPrefixLength value. */ - public Integer privateIpAddressPrefixLength() { - return this.innerProperties() == null ? null : this.innerProperties().privateIpAddressPrefixLength(); + public Integer privateIPAddressPrefixLength() { + return this.innerProperties() == null ? null : this.innerProperties().privateIPAddressPrefixLength(); } /** - * Set the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the + * Set the privateIPAddressPrefixLength property: 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. * - * @param privateIpAddressPrefixLength the privateIpAddressPrefixLength value to set. + * @param privateIPAddressPrefixLength the privateIPAddressPrefixLength value to set. * @return the NetworkInterfaceIpConfigurationInner object itself. */ - public NetworkInterfaceIpConfigurationInner withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength) { + public NetworkInterfaceIpConfigurationInner withPrivateIPAddressPrefixLength(Integer privateIPAddressPrefixLength) { if (this.innerProperties() == null) { this.innerProperties = new NetworkInterfaceIpConfigurationPropertiesFormatInner(); } - this.innerProperties().withPrivateIpAddressPrefixLength(privateIpAddressPrefixLength); + this.innerProperties().withPrivateIPAddressPrefixLength(privateIPAddressPrefixLength); return this; } @@ -453,6 +426,7 @@ public NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties privateLin * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -466,9 +440,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -490,15 +463,15 @@ public static NetworkInterfaceIpConfigurationInner fromJson(JsonReader jsonReade if ("id".equals(fieldName)) { deserializedNetworkInterfaceIpConfigurationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedNetworkInterfaceIpConfigurationInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedNetworkInterfaceIpConfigurationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedNetworkInterfaceIpConfigurationInner.innerProperties = NetworkInterfaceIpConfigurationPropertiesFormatInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedNetworkInterfaceIpConfigurationInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedNetworkInterfaceIpConfigurationInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedNetworkInterfaceIpConfigurationInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java index 3ab9d41a7c4f..f59bbc18e143 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -59,7 +59,7 @@ public final class NetworkInterfaceIpConfigurationPropertiesFormatInner * 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. */ - private Integer privateIpAddressPrefixLength; + private Integer privateIPAddressPrefixLength; /* * The private IP address allocation method. @@ -237,25 +237,25 @@ public NetworkInterfaceIpConfigurationPropertiesFormatInner withPrivateIpAddress } /** - * Get the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the + * Get the privateIPAddressPrefixLength property: 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. * - * @return the privateIpAddressPrefixLength value. + * @return the privateIPAddressPrefixLength value. */ - public Integer privateIpAddressPrefixLength() { - return this.privateIpAddressPrefixLength; + public Integer privateIPAddressPrefixLength() { + return this.privateIPAddressPrefixLength; } /** - * Set the privateIpAddressPrefixLength property: The private IP address prefix length. If specified and the + * Set the privateIPAddressPrefixLength property: 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. * - * @param privateIpAddressPrefixLength the privateIpAddressPrefixLength value to set. + * @param privateIPAddressPrefixLength the privateIPAddressPrefixLength value to set. * @return the NetworkInterfaceIpConfigurationPropertiesFormatInner object itself. */ public NetworkInterfaceIpConfigurationPropertiesFormatInner - withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength) { - this.privateIpAddressPrefixLength = privateIpAddressPrefixLength; + withPrivateIPAddressPrefixLength(Integer privateIPAddressPrefixLength) { + this.privateIPAddressPrefixLength = privateIPAddressPrefixLength; return this; } @@ -451,7 +451,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("loadBalancerInboundNatRules", this.loadBalancerInboundNatRules, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateIPAddress", this.privateIpAddress); - jsonWriter.writeNumberField("privateIPAddressPrefixLength", this.privateIpAddressPrefixLength); + jsonWriter.writeNumberField("privateIPAddressPrefixLength", this.privateIPAddressPrefixLength); jsonWriter.writeStringField("privateIPAllocationMethod", this.privateIpAllocationMethod == null ? null : this.privateIpAllocationMethod.toString()); jsonWriter.writeStringField("privateIPAddressVersion", @@ -508,7 +508,7 @@ public static NetworkInterfaceIpConfigurationPropertiesFormatInner fromJson(Json deserializedNetworkInterfaceIpConfigurationPropertiesFormatInner.privateIpAddress = reader.getString(); } else if ("privateIPAddressPrefixLength".equals(fieldName)) { - deserializedNetworkInterfaceIpConfigurationPropertiesFormatInner.privateIpAddressPrefixLength + deserializedNetworkInterfaceIpConfigurationPropertiesFormatInner.privateIPAddressPrefixLength = reader.getNullable(JsonReader::getInt); } else if ("privateIPAllocationMethod".equals(fieldName)) { deserializedNetworkInterfaceIpConfigurationPropertiesFormatInner.privateIpAllocationMethod diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java index 1d38584ca950..09d2af36819d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationInner.java index ed05ac8cda76..eeef448df25c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationInner.java @@ -1,39 +1,34 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Tap configuration in a Network Interface. */ @Fluent -public final class NetworkInterfaceTapConfigurationInner extends SubResource { +public final class NetworkInterfaceTapConfigurationInner extends SubResourceModel { /* * Properties of the Virtual Network Tap configuration. */ private NetworkInterfaceTapConfigurationPropertiesFormatInner innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Sub Resource type. + * Resource type. */ private String type; @@ -52,28 +47,6 @@ private NetworkInterfaceTapConfigurationPropertiesFormatInner innerProperties() return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the NetworkInterfaceTapConfigurationInner object itself. - */ - public NetworkInterfaceTapConfigurationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -84,14 +57,24 @@ public String etag() { } /** - * Get the type property: Sub Resource type. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public NetworkInterfaceTapConfigurationInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -138,6 +121,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -151,8 +135,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -174,15 +158,15 @@ public static NetworkInterfaceTapConfigurationInner fromJson(JsonReader jsonRead if ("id".equals(fieldName)) { deserializedNetworkInterfaceTapConfigurationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedNetworkInterfaceTapConfigurationInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedNetworkInterfaceTapConfigurationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedNetworkInterfaceTapConfigurationInner.innerProperties = NetworkInterfaceTapConfigurationPropertiesFormatInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedNetworkInterfaceTapConfigurationInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedNetworkInterfaceTapConfigurationInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedNetworkInterfaceTapConfigurationInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationPropertiesFormatInner.java index 757abf114c53..4a6f380af42f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java index d220b7e649c9..8412a03f52b6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionInner.java index 3dd05515dc2f..d4f5f0920e00 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -34,17 +34,17 @@ public final class NetworkManagerConnectionInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -83,7 +83,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -93,7 +93,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -103,7 +103,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -195,7 +195,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkManagerConnectionInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkManagerConnectionInner. */ public static NetworkManagerConnectionInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionProperties.java index ad3e011f13ce..2b2eca86d6bc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java index 3634f3c603f9..356c127d8210 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * A list of Network Manager Deployment Status. */ -@Fluent +@Immutable public final class NetworkManagerDeploymentStatusListResultInner implements JsonSerializable { /* @@ -33,7 +33,7 @@ public final class NetworkManagerDeploymentStatusListResultInner /** * Creates an instance of NetworkManagerDeploymentStatusListResultInner class. */ - public NetworkManagerDeploymentStatusListResultInner() { + private NetworkManagerDeploymentStatusListResultInner() { } /** @@ -45,17 +45,6 @@ public List value() { return this.value; } - /** - * Set the value property: Gets a page of Network Manager Deployment Status. - * - * @param value the value value to set. - * @return the NetworkManagerDeploymentStatusListResultInner object itself. - */ - public NetworkManagerDeploymentStatusListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the * same query and scopes used in the current request) to retrieve the next page of data. @@ -66,18 +55,6 @@ public String skipToken() { return this.skipToken; } - /** - * Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the - * same query and scopes used in the current request) to retrieve the next page of data. - * - * @param skipToken the skipToken value to set. - * @return the NetworkManagerDeploymentStatusListResultInner object itself. - */ - public NetworkManagerDeploymentStatusListResultInner withSkipToken(String skipToken) { - this.skipToken = skipToken; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java index eb2b4fdb8f35..ce7f86225e39 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ * Result of the request to list networkManagerEffectiveConnectivityConfiguration. It contains a list of groups and a * skiptoken to get the next set of results. */ -@Fluent +@Immutable public final class NetworkManagerEffectiveConnectivityConfigurationListResultInner implements JsonSerializable { /* @@ -34,7 +34,7 @@ public final class NetworkManagerEffectiveConnectivityConfigurationListResultInn /** * Creates an instance of NetworkManagerEffectiveConnectivityConfigurationListResultInner class. */ - public NetworkManagerEffectiveConnectivityConfigurationListResultInner() { + private NetworkManagerEffectiveConnectivityConfigurationListResultInner() { } /** @@ -46,18 +46,6 @@ public List value() { return this.value; } - /** - * Set the value property: Gets a page of NetworkManagerEffectiveConnectivityConfiguration. - * - * @param value the value value to set. - * @return the NetworkManagerEffectiveConnectivityConfigurationListResultInner object itself. - */ - public NetworkManagerEffectiveConnectivityConfigurationListResultInner - withValue(List value) { - this.value = value; - return this; - } - /** * Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the * same query and scopes used in the current request) to retrieve the next page of data. @@ -68,18 +56,6 @@ public String skipToken() { return this.skipToken; } - /** - * Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the - * same query and scopes used in the current request) to retrieve the next page of data. - * - * @param skipToken the skipToken value to set. - * @return the NetworkManagerEffectiveConnectivityConfigurationListResultInner object itself. - */ - public NetworkManagerEffectiveConnectivityConfigurationListResultInner withSkipToken(String skipToken) { - this.skipToken = skipToken; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java index d78a940768da..acb391d3e4c1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ * Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken * to get the next set of results. */ -@Fluent +@Immutable public final class NetworkManagerEffectiveSecurityAdminRulesListResultInner implements JsonSerializable { /* @@ -34,7 +34,7 @@ public final class NetworkManagerEffectiveSecurityAdminRulesListResultInner /** * Creates an instance of NetworkManagerEffectiveSecurityAdminRulesListResultInner class. */ - public NetworkManagerEffectiveSecurityAdminRulesListResultInner() { + private NetworkManagerEffectiveSecurityAdminRulesListResultInner() { } /** @@ -46,18 +46,6 @@ public List value() { return this.value; } - /** - * Set the value property: Gets a page of NetworkManagerEffectiveSecurityAdminRules. - * - * @param value the value value to set. - * @return the NetworkManagerEffectiveSecurityAdminRulesListResultInner object itself. - */ - public NetworkManagerEffectiveSecurityAdminRulesListResultInner - withValue(List value) { - this.value = value; - return this; - } - /** * Get the skipToken property: When present, the value can be passed to a subsequent query call (together with the * same query and scopes used in the current request) to retrieve the next page of data. @@ -68,18 +56,6 @@ public String skipToken() { return this.skipToken; } - /** - * Set the skipToken property: When present, the value can be passed to a subsequent query call (together with the - * same query and scopes used in the current request) to retrieve the next page of data. - * - * @param skipToken the skipToken value to set. - * @return the NetworkManagerEffectiveSecurityAdminRulesListResultInner object itself. - */ - public NetworkManagerEffectiveSecurityAdminRulesListResultInner withSkipToken(String skipToken) { - this.skipToken = skipToken; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerInner.java index 252960317f30..c0186aa1d8a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java index 388b4bcce035..bc11a97abdea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationInner.java index 73a4d7cfadfa..17975863e006 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -35,17 +35,17 @@ public final class NetworkManagerRoutingConfigurationInner extends ChildResource private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -84,7 +84,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -94,7 +94,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -104,7 +104,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -207,7 +207,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkManagerRoutingConfigurationInner if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkManagerRoutingConfigurationInner. */ public static NetworkManagerRoutingConfigurationInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationPropertiesFormat.java index 72c85f0b602d..d4a8da6c306d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfileInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfileInner.java index ba9e1c36e987..eb08fc19f094 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfileInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfileInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfilePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfilePropertiesFormat.java index a63f0421685c..8648d0d479c2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfilePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfilePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupInner.java index 4bf234a1cf39..31de206f01c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java index 90027036ee5c..4b009c28e5b2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterInner.java index 2759338f70ff..7d4f29494d1c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterInner.java @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.NspProvisioningState; import com.azure.resourcemanager.network.models.SecurityPerimeterSystemData; +import com.azure.resourcemanager.network.models.SecurityPerimeterTrackedResource; import java.io.IOException; import java.util.Map; @@ -18,7 +19,7 @@ * The Network Security Perimeter resource. */ @Fluent -public final class NetworkSecurityPerimeterInner extends Resource { +public final class NetworkSecurityPerimeterInner extends SecurityPerimeterTrackedResource { /* * The network security perimeter properties */ @@ -30,17 +31,18 @@ public final class NetworkSecurityPerimeterInner extends Resource { private SecurityPerimeterSystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -64,12 +66,14 @@ private NetworkSecurityPerimeterProperties innerProperties() { * * @return the systemData value. */ + @Override public SecurityPerimeterSystemData systemData() { return this.systemData; } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -89,7 +93,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -102,8 +107,8 @@ public String id() { * {@inheritDoc} */ @Override - public NetworkSecurityPerimeterInner withLocation(String location) { - super.withLocation(location); + public NetworkSecurityPerimeterInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -111,8 +116,8 @@ public NetworkSecurityPerimeterInner withLocation(String location) { * {@inheritDoc} */ @Override - public NetworkSecurityPerimeterInner withTags(Map tags) { - super.withTags(tags); + public NetworkSecurityPerimeterInner withLocation(String location) { + super.withLocation(location); return this; } @@ -139,6 +144,7 @@ public String perimeterGuid() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -146,8 +152,15 @@ public void validate() { if (systemData() != null) { systemData().validate(); } + if (location() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property location in model NetworkSecurityPerimeterInner")); + } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkSecurityPerimeterInner.class); + /** * {@inheritDoc} */ @@ -177,22 +190,22 @@ public static NetworkSecurityPerimeterInner fromJson(JsonReader jsonReader) thro String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedNetworkSecurityPerimeterInner.withLocation(reader.getString()); + } else if ("id".equals(fieldName)) { deserializedNetworkSecurityPerimeterInner.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedNetworkSecurityPerimeterInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedNetworkSecurityPerimeterInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedNetworkSecurityPerimeterInner.withLocation(reader.getString()); + } else if ("systemData".equals(fieldName)) { + deserializedNetworkSecurityPerimeterInner.systemData = SecurityPerimeterSystemData.fromJson(reader); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNetworkSecurityPerimeterInner.withTags(tags); } else if ("properties".equals(fieldName)) { deserializedNetworkSecurityPerimeterInner.innerProperties = NetworkSecurityPerimeterProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedNetworkSecurityPerimeterInner.systemData = SecurityPerimeterSystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterProperties.java index f24642a86df8..baf7a7fcc72a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionInner.java index e9a16c0d24b0..2e78d376da17 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionProperties.java index cf7f82e8523a..28514e1f6f08 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java index 312bcfc5a9e3..67b5c01e3e75 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdInner.java index 4ed923794a1b..284987632a16 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The NetworkVirtualApplianceInstanceId model. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceInstanceIdInner implements JsonSerializable { /* @@ -25,7 +25,7 @@ public final class NetworkVirtualApplianceInstanceIdInner /** * Creates an instance of NetworkVirtualApplianceInstanceIdInner class. */ - public NetworkVirtualApplianceInstanceIdInner() { + private NetworkVirtualApplianceInstanceIdInner() { } /** @@ -38,18 +38,6 @@ public Integer instanceId() { return this.instanceId; } - /** - * Set the instanceId property: The network virtual appliance instance id for which boot diagnostic logs is being - * requested. - * - * @param instanceId the instanceId value to set. - * @return the NetworkVirtualApplianceInstanceIdInner object itself. - */ - public NetworkVirtualApplianceInstanceIdInner withInstanceId(Integer instanceId) { - this.instanceId = instanceId; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java index 63a86959a483..4b34625e40e4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java index 18adb581dfd1..e53c5c32332f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuInner.java index 3286bfa6332b..1e976c03b883 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -19,7 +19,7 @@ * * Definition of the NetworkVirtualApplianceSkus resource. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceSkuInner extends Resource { /* * NetworkVirtualApplianceSku properties. @@ -49,7 +49,7 @@ public final class NetworkVirtualApplianceSkuInner extends Resource { /** * Creates an instance of NetworkVirtualApplianceSkuInner class. */ - public NetworkVirtualApplianceSkuInner() { + private NetworkVirtualApplianceSkuInner() { } /** @@ -79,17 +79,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the NetworkVirtualApplianceSkuInner object itself. - */ - public NetworkVirtualApplianceSkuInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -110,24 +99,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public NetworkVirtualApplianceSkuInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public NetworkVirtualApplianceSkuInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the vendor property: Network Virtual Appliance Sku vendor. * @@ -155,21 +126,6 @@ public List availableScaleUnits() { return this.innerProperties() == null ? null : this.innerProperties().availableScaleUnits(); } - /** - * Set the availableScaleUnits property: The list of scale units available. - * - * @param availableScaleUnits the availableScaleUnits value to set. - * @return the NetworkVirtualApplianceSkuInner object itself. - */ - public NetworkVirtualApplianceSkuInner - withAvailableScaleUnits(List availableScaleUnits) { - if (this.innerProperties() == null) { - this.innerProperties = new NetworkVirtualApplianceSkuPropertiesFormat(); - } - this.innerProperties().withAvailableScaleUnits(availableScaleUnits); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuPropertiesFormat.java index 60e61f7f845e..fc5c801f7861 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -18,7 +18,7 @@ * * Properties specific to NetworkVirtualApplianceSkus. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceSkuPropertiesFormat implements JsonSerializable { /* @@ -39,7 +39,7 @@ public final class NetworkVirtualApplianceSkuPropertiesFormat /** * Creates an instance of NetworkVirtualApplianceSkuPropertiesFormat class. */ - public NetworkVirtualApplianceSkuPropertiesFormat() { + private NetworkVirtualApplianceSkuPropertiesFormat() { } /** @@ -69,18 +69,6 @@ public List availableScaleUnits() { return this.availableScaleUnits; } - /** - * Set the availableScaleUnits property: The list of scale units available. - * - * @param availableScaleUnits the availableScaleUnits value to set. - * @return the NetworkVirtualApplianceSkuPropertiesFormat object itself. - */ - public NetworkVirtualApplianceSkuPropertiesFormat - withAvailableScaleUnits(List availableScaleUnits) { - this.availableScaleUnits = availableScaleUnits; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherInner.java index 8292eefba90b..5ef1ab6c6e1e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -19,14 +19,14 @@ @Fluent public final class NetworkWatcherInner extends Resource { /* - * A unique read-only string that changes whenever the resource is updated. + * Properties of the network watcher. */ - private String etag; + private NetworkWatcherPropertiesFormat innerProperties; /* - * Properties of the network watcher. + * A unique read-only string that changes whenever the resource is updated. */ - private NetworkWatcherPropertiesFormat innerProperties; + private String etag; /* * Resource ID. @@ -50,21 +50,21 @@ public NetworkWatcherInner() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the innerProperties property: Properties of the network watcher. * - * @return the etag value. + * @return the innerProperties value. */ - public String etag() { - return this.etag; + private NetworkWatcherPropertiesFormat innerProperties() { + return this.innerProperties; } /** - * Get the innerProperties property: Properties of the network watcher. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @return the innerProperties value. + * @return the etag value. */ - private NetworkWatcherPropertiesFormat innerProperties() { - return this.innerProperties; + public String etag() { + return this.etag; } /** @@ -183,10 +183,10 @@ public static NetworkWatcherInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedNetworkWatcherInner.withTags(tags); - } else if ("etag".equals(fieldName)) { - deserializedNetworkWatcherInner.etag = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedNetworkWatcherInner.innerProperties = NetworkWatcherPropertiesFormat.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedNetworkWatcherInner.etag = reader.getString(); } else if ("id".equals(fieldName)) { deserializedNetworkWatcherInner.id = reader.getString(); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherPropertiesFormat.java index 83da05c9f2d1..6d748afe080a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java index 19c3aa1c7bb1..f8232eb09583 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The information about next hop from the specified VM. */ -@Fluent +@Immutable public final class NextHopResultInner implements JsonSerializable { /* * Next hop type. @@ -36,7 +36,7 @@ public final class NextHopResultInner implements JsonSerializable localInboundProfiles() { return this.innerProperties() == null ? null : this.innerProperties().localInboundProfiles(); } - /** - * Set the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed. Use ['*'] to - * allow inbound to all profiles. - * - * @param localInboundProfiles the localInboundProfiles value to set. - * @return the NspLinkReferenceInner object itself. - */ - public NspLinkReferenceInner withLocalInboundProfiles(List localInboundProfiles) { - if (this.innerProperties() == null) { - this.innerProperties = new NspLinkReferenceProperties(); - } - this.innerProperties().withLocalInboundProfiles(localInboundProfiles); - return this; - } - /** * Get the localOutboundProfiles property: Local Outbound profile names from which Outbound is allowed. In current * version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later @@ -214,21 +202,6 @@ public NspLinkStatus status() { return this.innerProperties() == null ? null : this.innerProperties().status(); } - /** - * Set the status property: The NSP linkReference state. It cannot be changed if link is created in auto-approval - * mode. - * - * @param status the status value to set. - * @return the NspLinkReferenceInner object itself. - */ - public NspLinkReferenceInner withStatus(NspLinkStatus status) { - if (this.innerProperties() == null) { - this.innerProperties = new NspLinkReferenceProperties(); - } - this.innerProperties().withStatus(status); - return this; - } - /** * Validates the instance. * @@ -260,7 +233,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspLinkReferenceInner if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspLinkReferenceInner. */ public static NspLinkReferenceInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceProperties.java index e5095c61eec3..3709372d713a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * Properties of NSP LinkReference resource. */ -@Fluent +@Immutable public final class NspLinkReferenceProperties implements JsonSerializable { /* * The provisioning state of the NSP LinkReference resource. @@ -78,7 +78,7 @@ public final class NspLinkReferenceProperties implements JsonSerializable localInboundProfiles() { return this.localInboundProfiles; } - /** - * Set the localInboundProfiles property: Local Inbound profile names to which Inbound is allowed. Use ['*'] to - * allow inbound to all profiles. - * - * @param localInboundProfiles the localInboundProfiles value to set. - * @return the NspLinkReferenceProperties object itself. - */ - public NspLinkReferenceProperties withLocalInboundProfiles(List localInboundProfiles) { - this.localInboundProfiles = localInboundProfiles; - return this; - } - /** * Get the localOutboundProfiles property: Local Outbound profile names from which Outbound is allowed. In current * version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later @@ -192,18 +180,6 @@ public NspLinkStatus status() { return this.status; } - /** - * Set the status property: The NSP linkReference state. It cannot be changed if link is created in auto-approval - * mode. - * - * @param status the status value to set. - * @return the NspLinkReferenceProperties object itself. - */ - public NspLinkReferenceProperties withStatus(NspLinkStatus status) { - this.status = status; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationInner.java index 52be22f6d5c8..a5b7bc97993b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -29,17 +29,18 @@ public final class NspLoggingConfigurationInner extends SecurityPerimeterProxyRe private SecurityPerimeterSystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -69,7 +70,8 @@ public SecurityPerimeterSystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -89,7 +91,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -175,7 +178,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspLoggingConfigurationInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspLoggingConfigurationInner. */ public static NspLoggingConfigurationInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationProperties.java index 5a6d2985b96c..1adda426f067 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileInner.java index f896c7955605..a73cad86d300 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -28,17 +28,18 @@ public final class NspProfileInner extends SecurityPerimeterProxyResource { private SecurityPerimeterSystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -68,7 +69,8 @@ public SecurityPerimeterSystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -88,7 +90,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -148,7 +151,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspProfileInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspProfileInner. */ public static NspProfileInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileProperties.java index 29b25b72d168..f5b480dba430 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspServiceTagsResourceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspServiceTagsResourceInner.java index df013097897e..93717ea2da85 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspServiceTagsResourceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NspServiceTagsResourceInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Resource containing list of NSP service tags. */ -@Fluent +@Immutable public final class NspServiceTagsResourceInner implements JsonSerializable { /* * NSP service tags. @@ -25,7 +25,7 @@ public final class NspServiceTagsResourceInner implements JsonSerializable serviceTags() { return this.serviceTags; } - /** - * Set the serviceTags property: NSP service tags. - * - * @param serviceTags the serviceTags value to set. - * @return the NspServiceTagsResourceInner object itself. - */ - public NspServiceTagsResourceInner withServiceTags(List serviceTags) { - this.serviceTags = serviceTags; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationInner.java index e57d5380f6e5..6120cf2114ce 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Network REST API operation definition. */ -@Fluent +@Immutable public final class OperationInner implements JsonSerializable { /* * Operation name: {provider}/{resource}/{operation}. @@ -41,7 +41,7 @@ public final class OperationInner implements JsonSerializable { /** * Creates an instance of OperationInner class. */ - public OperationInner() { + private OperationInner() { } /** @@ -53,17 +53,6 @@ public String name() { return this.name; } - /** - * Set the name property: Operation name: {provider}/{resource}/{operation}. - * - * @param name the name value to set. - * @return the OperationInner object itself. - */ - public OperationInner withName(String name) { - this.name = name; - return this; - } - /** * Get the display property: Display metadata associated with the operation. * @@ -73,17 +62,6 @@ public OperationDisplay display() { return this.display; } - /** - * Set the display property: Display metadata associated with the operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - /** * Get the origin property: Origin of the operation. * @@ -93,17 +71,6 @@ public String origin() { return this.origin; } - /** - * Set the origin property: Origin of the operation. - * - * @param origin the origin value to set. - * @return the OperationInner object itself. - */ - public OperationInner withOrigin(String origin) { - this.origin = origin; - return this; - } - /** * Get the innerProperties property: Operation properties format. * @@ -122,20 +89,6 @@ public OperationPropertiesFormatServiceSpecification serviceSpecification() { return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification(); } - /** - * Set the serviceSpecification property: Specification of the service. - * - * @param serviceSpecification the serviceSpecification value to set. - * @return the OperationInner object itself. - */ - public OperationInner withServiceSpecification(OperationPropertiesFormatServiceSpecification serviceSpecification) { - if (this.innerProperties() == null) { - this.innerProperties = new OperationPropertiesFormat(); - } - this.innerProperties().withServiceSpecification(serviceSpecification); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationPropertiesFormat.java index a2daf615ad30..a60f31e7ac9b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OperationPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Description of operation properties format. */ -@Fluent +@Immutable public final class OperationPropertiesFormat implements JsonSerializable { /* * Specification of the service. @@ -25,7 +25,7 @@ public final class OperationPropertiesFormat implements JsonSerializable { /* * Fully qualified ID for the async operation. */ private String id; - /* - * Fully qualified ID of the resource against which the original async operation was started. - */ - private String resourceId; - /* * Name of the async operation. */ @@ -45,7 +40,7 @@ public final class OperationStatusResultInner implements JsonSerializable operations() { return this.operations; } - /** - * Set the operations property: The operations list. - * - * @param operations the operations value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withOperations(List operations) { - this.operations = operations; - return this; - } - /** * Get the error property: If present, details of the operation error. * @@ -233,14 +146,13 @@ public ErrorDetail error() { } /** - * Set the error property: If present, details of the operation error. + * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was + * started. * - * @param error the error value to set. - * @return the OperationStatusResultInner object itself. + * @return the resourceId value. */ - public OperationStatusResultInner withError(ErrorDetail error) { - this.error = error; - return this; + public String resourceId() { + return this.resourceId; } /** @@ -303,12 +215,10 @@ public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws deserializedOperationStatusResultInner.status = reader.getString(); } else if ("id".equals(fieldName)) { deserializedOperationStatusResultInner.id = reader.getString(); - } else if ("resourceId".equals(fieldName)) { - deserializedOperationStatusResultInner.resourceId = reader.getString(); } else if ("name".equals(fieldName)) { deserializedOperationStatusResultInner.name = reader.getString(); } else if ("percentComplete".equals(fieldName)) { - deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getFloat); + deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getDouble); } else if ("startTime".equals(fieldName)) { deserializedOperationStatusResultInner.startTime = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); @@ -321,6 +231,8 @@ public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws deserializedOperationStatusResultInner.operations = operations; } else if ("error".equals(fieldName)) { deserializedOperationStatusResultInner.error = ErrorDetail.fromJson(reader); + } else if ("resourceId".equals(fieldName)) { + deserializedOperationStatusResultInner.resourceId = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java index 556e30283386..87f509dc7aea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.LoadBalancerOutboundRuleProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -18,25 +19,19 @@ * Outbound rule of the load balancer. */ @Fluent -public final class OutboundRuleInner extends SubResource { +public final class OutboundRuleInner extends SubResourceModel { /* * Properties of load balancer outbound rule. */ private OutboundRulePropertiesFormat innerProperties; - /* - * The name of the resource that is unique within the set of outbound rules used by the load balancer. This name can - * be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -55,28 +50,6 @@ private OutboundRulePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within the set of outbound rules used by the load - * balancer. This name can be used to access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within the set of outbound rules used by the load - * balancer. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the OutboundRuleInner object itself. - */ - public OutboundRuleInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -87,14 +60,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public OutboundRuleInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -260,6 +243,7 @@ public OutboundRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -273,8 +257,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -295,14 +279,14 @@ public static OutboundRuleInner fromJson(JsonReader jsonReader) throws IOExcepti if ("id".equals(fieldName)) { deserializedOutboundRuleInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedOutboundRuleInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedOutboundRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedOutboundRuleInner.innerProperties = OutboundRulePropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedOutboundRuleInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedOutboundRuleInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedOutboundRuleInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java index 8d162cada000..23bde9c7f917 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java index 6614bb5c96c4..6e474f4057ec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnConnectionHealthInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnConnectionHealthInner.java index 05e6b823ba8d..33ab6cb010d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnConnectionHealthInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnConnectionHealthInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * P2S Vpn connection detailed health written to sas url. */ -@Fluent +@Immutable public final class P2SVpnConnectionHealthInner implements JsonSerializable { /* * Returned sas url of the blob to which the p2s vpn connection detailed health will be written. @@ -24,7 +24,7 @@ public final class P2SVpnConnectionHealthInner implements JsonSerializable { /* @@ -56,7 +56,7 @@ public final class PacketCaptureQueryStatusResultInner /** * Creates an instance of PacketCaptureQueryStatusResultInner class. */ - public PacketCaptureQueryStatusResultInner() { + private PacketCaptureQueryStatusResultInner() { } /** @@ -68,17 +68,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the packet capture resource. - * - * @param name the name value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withName(String name) { - this.name = name; - return this; - } - /** * Get the id property: The ID of the packet capture resource. * @@ -88,17 +77,6 @@ public String id() { return this.id; } - /** - * Set the id property: The ID of the packet capture resource. - * - * @param id the id value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withId(String id) { - this.id = id; - return this; - } - /** * Get the captureStartTime property: The start time of the packet capture session. * @@ -108,17 +86,6 @@ public OffsetDateTime captureStartTime() { return this.captureStartTime; } - /** - * Set the captureStartTime property: The start time of the packet capture session. - * - * @param captureStartTime the captureStartTime value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withCaptureStartTime(OffsetDateTime captureStartTime) { - this.captureStartTime = captureStartTime; - return this; - } - /** * Get the packetCaptureStatus property: The status of the packet capture session. * @@ -128,17 +95,6 @@ public PcStatus packetCaptureStatus() { return this.packetCaptureStatus; } - /** - * Set the packetCaptureStatus property: The status of the packet capture session. - * - * @param packetCaptureStatus the packetCaptureStatus value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withPacketCaptureStatus(PcStatus packetCaptureStatus) { - this.packetCaptureStatus = packetCaptureStatus; - return this; - } - /** * Get the stopReason property: The reason the current packet capture session was stopped. * @@ -148,17 +104,6 @@ public String stopReason() { return this.stopReason; } - /** - * Set the stopReason property: The reason the current packet capture session was stopped. - * - * @param stopReason the stopReason value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withStopReason(String stopReason) { - this.stopReason = stopReason; - return this; - } - /** * Get the packetCaptureError property: List of errors of packet capture session. * @@ -168,17 +113,6 @@ public List packetCaptureError() { return this.packetCaptureError; } - /** - * Set the packetCaptureError property: List of errors of packet capture session. - * - * @param packetCaptureError the packetCaptureError value to set. - * @return the PacketCaptureQueryStatusResultInner object itself. - */ - public PacketCaptureQueryStatusResultInner withPacketCaptureError(List packetCaptureError) { - this.packetCaptureError = packetCaptureError; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java index 7ded2b86d54f..a5823c943c7e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java index 7b1cd19f87fb..c2820dae0f70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java index 5c2be7cbb04b..d398210d35cc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java @@ -1,47 +1,43 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.CircuitConnectionStatus; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. */ -@Fluent -public final class PeerExpressRouteCircuitConnectionInner extends SubResource { +@Immutable +public final class PeerExpressRouteCircuitConnectionInner extends SubResourceModel { /* * Properties of the peer express route circuit connection. */ private PeerExpressRouteCircuitConnectionPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; /** * Creates an instance of PeerExpressRouteCircuitConnectionInner class. */ - public PeerExpressRouteCircuitConnectionInner() { + private PeerExpressRouteCircuitConnectionInner() { } /** @@ -53,28 +49,6 @@ private PeerExpressRouteCircuitConnectionPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -85,23 +59,15 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public PeerExpressRouteCircuitConnectionInner withId(String id) { - super.withId(id); - return this; - } - /** * Get the expressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of the * circuit. @@ -112,22 +78,6 @@ public SubResource expressRouteCircuitPeering() { return this.innerProperties() == null ? null : this.innerProperties().expressRouteCircuitPeering(); } - /** - * Set the expressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of the - * circuit. - * - * @param expressRouteCircuitPeering the expressRouteCircuitPeering value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner - withExpressRouteCircuitPeering(SubResource expressRouteCircuitPeering) { - if (this.innerProperties() == null) { - this.innerProperties = new PeerExpressRouteCircuitConnectionPropertiesFormat(); - } - this.innerProperties().withExpressRouteCircuitPeering(expressRouteCircuitPeering); - return this; - } - /** * Get the peerExpressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of * the peered circuit. @@ -138,22 +88,6 @@ public SubResource peerExpressRouteCircuitPeering() { return this.innerProperties() == null ? null : this.innerProperties().peerExpressRouteCircuitPeering(); } - /** - * Set the peerExpressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of - * the peered circuit. - * - * @param peerExpressRouteCircuitPeering the peerExpressRouteCircuitPeering value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner - withPeerExpressRouteCircuitPeering(SubResource peerExpressRouteCircuitPeering) { - if (this.innerProperties() == null) { - this.innerProperties = new PeerExpressRouteCircuitConnectionPropertiesFormat(); - } - this.innerProperties().withPeerExpressRouteCircuitPeering(peerExpressRouteCircuitPeering); - return this; - } - /** * Get the addressPrefix property: /29 IP address space to carve out Customer addresses for tunnels. * @@ -163,20 +97,6 @@ public String addressPrefix() { return this.innerProperties() == null ? null : this.innerProperties().addressPrefix(); } - /** - * Set the addressPrefix property: /29 IP address space to carve out Customer addresses for tunnels. - * - * @param addressPrefix the addressPrefix value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner withAddressPrefix(String addressPrefix) { - if (this.innerProperties() == null) { - this.innerProperties = new PeerExpressRouteCircuitConnectionPropertiesFormat(); - } - this.innerProperties().withAddressPrefix(addressPrefix); - return this; - } - /** * Get the circuitConnectionStatus property: Express Route Circuit connection state. * @@ -195,20 +115,6 @@ public String connectionName() { return this.innerProperties() == null ? null : this.innerProperties().connectionName(); } - /** - * Set the connectionName property: The name of the express route circuit connection resource. - * - * @param connectionName the connectionName value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner withConnectionName(String connectionName) { - if (this.innerProperties() == null) { - this.innerProperties = new PeerExpressRouteCircuitConnectionPropertiesFormat(); - } - this.innerProperties().withConnectionName(connectionName); - return this; - } - /** * Get the authResourceGuid property: The resource guid of the authorization used for the express route circuit * connection. @@ -219,21 +125,6 @@ public String authResourceGuid() { return this.innerProperties() == null ? null : this.innerProperties().authResourceGuid(); } - /** - * Set the authResourceGuid property: The resource guid of the authorization used for the express route circuit - * connection. - * - * @param authResourceGuid the authResourceGuid value to set. - * @return the PeerExpressRouteCircuitConnectionInner object itself. - */ - public PeerExpressRouteCircuitConnectionInner withAuthResourceGuid(String authResourceGuid) { - if (this.innerProperties() == null) { - this.innerProperties = new PeerExpressRouteCircuitConnectionPropertiesFormat(); - } - this.innerProperties().withAuthResourceGuid(authResourceGuid); - return this; - } - /** * Get the provisioningState property: The provisioning state of the peer express route circuit connection resource. * @@ -248,6 +139,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -261,8 +153,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -284,15 +176,15 @@ public static PeerExpressRouteCircuitConnectionInner fromJson(JsonReader jsonRea if ("id".equals(fieldName)) { deserializedPeerExpressRouteCircuitConnectionInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedPeerExpressRouteCircuitConnectionInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedPeerExpressRouteCircuitConnectionInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedPeerExpressRouteCircuitConnectionInner.innerProperties = PeerExpressRouteCircuitConnectionPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedPeerExpressRouteCircuitConnectionInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedPeerExpressRouteCircuitConnectionInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedPeerExpressRouteCircuitConnectionInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java index bd91a9f8285d..82e2c8021f64 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * Properties of the peer express route circuit connection. */ -@Fluent +@Immutable public final class PeerExpressRouteCircuitConnectionPropertiesFormat implements JsonSerializable { /* @@ -58,7 +58,7 @@ public final class PeerExpressRouteCircuitConnectionPropertiesFormat /** * Creates an instance of PeerExpressRouteCircuitConnectionPropertiesFormat class. */ - public PeerExpressRouteCircuitConnectionPropertiesFormat() { + private PeerExpressRouteCircuitConnectionPropertiesFormat() { } /** @@ -71,19 +71,6 @@ public SubResource expressRouteCircuitPeering() { return this.expressRouteCircuitPeering; } - /** - * Set the expressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of the - * circuit. - * - * @param expressRouteCircuitPeering the expressRouteCircuitPeering value to set. - * @return the PeerExpressRouteCircuitConnectionPropertiesFormat object itself. - */ - public PeerExpressRouteCircuitConnectionPropertiesFormat - withExpressRouteCircuitPeering(SubResource expressRouteCircuitPeering) { - this.expressRouteCircuitPeering = expressRouteCircuitPeering; - return this; - } - /** * Get the peerExpressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of * the peered circuit. @@ -94,19 +81,6 @@ public SubResource peerExpressRouteCircuitPeering() { return this.peerExpressRouteCircuitPeering; } - /** - * Set the peerExpressRouteCircuitPeering property: Reference to Express Route Circuit Private Peering Resource of - * the peered circuit. - * - * @param peerExpressRouteCircuitPeering the peerExpressRouteCircuitPeering value to set. - * @return the PeerExpressRouteCircuitConnectionPropertiesFormat object itself. - */ - public PeerExpressRouteCircuitConnectionPropertiesFormat - withPeerExpressRouteCircuitPeering(SubResource peerExpressRouteCircuitPeering) { - this.peerExpressRouteCircuitPeering = peerExpressRouteCircuitPeering; - return this; - } - /** * Get the addressPrefix property: /29 IP address space to carve out Customer addresses for tunnels. * @@ -116,17 +90,6 @@ public String addressPrefix() { return this.addressPrefix; } - /** - * Set the addressPrefix property: /29 IP address space to carve out Customer addresses for tunnels. - * - * @param addressPrefix the addressPrefix value to set. - * @return the PeerExpressRouteCircuitConnectionPropertiesFormat object itself. - */ - public PeerExpressRouteCircuitConnectionPropertiesFormat withAddressPrefix(String addressPrefix) { - this.addressPrefix = addressPrefix; - return this; - } - /** * Get the circuitConnectionStatus property: Express Route Circuit connection state. * @@ -145,17 +108,6 @@ public String connectionName() { return this.connectionName; } - /** - * Set the connectionName property: The name of the express route circuit connection resource. - * - * @param connectionName the connectionName value to set. - * @return the PeerExpressRouteCircuitConnectionPropertiesFormat object itself. - */ - public PeerExpressRouteCircuitConnectionPropertiesFormat withConnectionName(String connectionName) { - this.connectionName = connectionName; - return this; - } - /** * Get the authResourceGuid property: The resource guid of the authorization used for the express route circuit * connection. @@ -166,18 +118,6 @@ public String authResourceGuid() { return this.authResourceGuid; } - /** - * Set the authResourceGuid property: The resource guid of the authorization used for the express route circuit - * connection. - * - * @param authResourceGuid the authResourceGuid value to set. - * @return the PeerExpressRouteCircuitConnectionPropertiesFormat object itself. - */ - public PeerExpressRouteCircuitConnectionPropertiesFormat withAuthResourceGuid(String authResourceGuid) { - this.authResourceGuid = authResourceGuid; - return this; - } - /** * Get the provisioningState property: The provisioning state of the peer express route circuit connection resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceInner.java index 84e5a0acd680..ced9586bbfb9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Resource that is onboarded to use network security perimeter. Also referred as perimeter associable resource. */ -@Fluent +@Immutable public final class PerimeterAssociableResourceInner implements JsonSerializable { /* * Properties of the perimeter associable resource. @@ -40,7 +40,7 @@ public final class PerimeterAssociableResourceInner implements JsonSerializable< /** * Creates an instance of PerimeterAssociableResourceInner class. */ - public PerimeterAssociableResourceInner() { + private PerimeterAssociableResourceInner() { } /** @@ -62,18 +62,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the PerimeterAssociableResourceInner object itself. - */ - public PerimeterAssociableResourceInner withName(String name) { - this.name = name; - return this; - } - /** * Get the id property: Identifier of the perimeter associable resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceProperties.java index 22a586d24282..3f3420e6d8c1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -36,7 +36,7 @@ public final class PerimeterAssociableResourceProperties /** * Creates an instance of PerimeterAssociableResourceProperties class. */ - public PerimeterAssociableResourceProperties() { + private PerimeterAssociableResourceProperties() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolAssociationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolAssociationInner.java index d59206d80f97..97816032366b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolAssociationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolAssociationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; @@ -18,7 +18,7 @@ /** * IpamPool association information. */ -@Fluent +@Immutable public final class PoolAssociationInner implements JsonSerializable { /* * Resource id of the associated Azure resource. @@ -48,12 +48,12 @@ public final class PoolAssociationInner implements JsonSerializable reservedPrefixes() { } /** - * Get the totalNumberOfIpAddresses property: Total number of assigned IP addresses of the association. + * Get the totalNumberOfIPAddresses property: Total number of assigned IP addresses of the association. * - * @return the totalNumberOfIpAddresses value. + * @return the totalNumberOfIPAddresses value. */ - public String totalNumberOfIpAddresses() { - return this.totalNumberOfIpAddresses; + public String totalNumberOfIPAddresses() { + return this.totalNumberOfIPAddresses; } /** - * Get the numberOfReservedIpAddresses property: Total number of reserved IP addresses of the association. + * Get the numberOfReservedIPAddresses property: Total number of reserved IP addresses of the association. * - * @return the numberOfReservedIpAddresses value. + * @return the numberOfReservedIPAddresses value. */ - public String numberOfReservedIpAddresses() { - return this.numberOfReservedIpAddresses; + public String numberOfReservedIPAddresses() { + return this.numberOfReservedIPAddresses; } /** @@ -243,9 +210,9 @@ public static PoolAssociationInner fromJson(JsonReader jsonReader) throws IOExce List reservedPrefixes = reader.readArray(reader1 -> reader1.getString()); deserializedPoolAssociationInner.reservedPrefixes = reservedPrefixes; } else if ("totalNumberOfIPAddresses".equals(fieldName)) { - deserializedPoolAssociationInner.totalNumberOfIpAddresses = reader.getString(); + deserializedPoolAssociationInner.totalNumberOfIPAddresses = reader.getString(); } else if ("numberOfReservedIPAddresses".equals(fieldName)) { - deserializedPoolAssociationInner.numberOfReservedIpAddresses = reader.getString(); + deserializedPoolAssociationInner.numberOfReservedIPAddresses = reader.getString(); } else if ("createdAt".equals(fieldName)) { deserializedPoolAssociationInner.createdAt = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolUsageInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolUsageInner.java index 2875d14c1b02..6dda5c30fcbb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolUsageInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PoolUsageInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -46,27 +46,27 @@ public final class PoolUsageInner implements JsonSerializable { /* * Total number of IP addresses managed in the IpamPool. */ - private String totalNumberOfIpAddresses; + private String totalNumberOfIPAddresses; /* * Total number of assigned IP addresses in the IpamPool. */ - private String numberOfAllocatedIpAddresses; + private String numberOfAllocatedIPAddresses; /* * Total number of reserved IP addresses in the IpamPool. */ - private String numberOfReservedIpAddresses; + private String numberOfReservedIPAddresses; /* * Total number of available IP addresses in the IpamPool. */ - private String numberOfAvailableIpAddresses; + private String numberOfAvailableIPAddresses; /** * Creates an instance of PoolUsageInner class. */ - public PoolUsageInner() { + private PoolUsageInner() { } /** @@ -116,39 +116,39 @@ public List availableAddressPrefixes() { } /** - * Get the totalNumberOfIpAddresses property: Total number of IP addresses managed in the IpamPool. + * Get the totalNumberOfIPAddresses property: Total number of IP addresses managed in the IpamPool. * - * @return the totalNumberOfIpAddresses value. + * @return the totalNumberOfIPAddresses value. */ - public String totalNumberOfIpAddresses() { - return this.totalNumberOfIpAddresses; + public String totalNumberOfIPAddresses() { + return this.totalNumberOfIPAddresses; } /** - * Get the numberOfAllocatedIpAddresses property: Total number of assigned IP addresses in the IpamPool. + * Get the numberOfAllocatedIPAddresses property: Total number of assigned IP addresses in the IpamPool. * - * @return the numberOfAllocatedIpAddresses value. + * @return the numberOfAllocatedIPAddresses value. */ - public String numberOfAllocatedIpAddresses() { - return this.numberOfAllocatedIpAddresses; + public String numberOfAllocatedIPAddresses() { + return this.numberOfAllocatedIPAddresses; } /** - * Get the numberOfReservedIpAddresses property: Total number of reserved IP addresses in the IpamPool. + * Get the numberOfReservedIPAddresses property: Total number of reserved IP addresses in the IpamPool. * - * @return the numberOfReservedIpAddresses value. + * @return the numberOfReservedIPAddresses value. */ - public String numberOfReservedIpAddresses() { - return this.numberOfReservedIpAddresses; + public String numberOfReservedIPAddresses() { + return this.numberOfReservedIPAddresses; } /** - * Get the numberOfAvailableIpAddresses property: Total number of available IP addresses in the IpamPool. + * Get the numberOfAvailableIPAddresses property: Total number of available IP addresses in the IpamPool. * - * @return the numberOfAvailableIpAddresses value. + * @return the numberOfAvailableIPAddresses value. */ - public String numberOfAvailableIpAddresses() { - return this.numberOfAvailableIpAddresses; + public String numberOfAvailableIPAddresses() { + return this.numberOfAvailableIPAddresses; } /** @@ -202,13 +202,13 @@ public static PoolUsageInner fromJson(JsonReader jsonReader) throws IOException List availableAddressPrefixes = reader.readArray(reader1 -> reader1.getString()); deserializedPoolUsageInner.availableAddressPrefixes = availableAddressPrefixes; } else if ("totalNumberOfIPAddresses".equals(fieldName)) { - deserializedPoolUsageInner.totalNumberOfIpAddresses = reader.getString(); + deserializedPoolUsageInner.totalNumberOfIPAddresses = reader.getString(); } else if ("numberOfAllocatedIPAddresses".equals(fieldName)) { - deserializedPoolUsageInner.numberOfAllocatedIpAddresses = reader.getString(); + deserializedPoolUsageInner.numberOfAllocatedIPAddresses = reader.getString(); } else if ("numberOfReservedIPAddresses".equals(fieldName)) { - deserializedPoolUsageInner.numberOfReservedIpAddresses = reader.getString(); + deserializedPoolUsageInner.numberOfReservedIPAddresses = reader.getString(); } else if ("numberOfAvailableIPAddresses".equals(fieldName)) { - deserializedPoolUsageInner.numberOfAvailableIpAddresses = reader.getString(); + deserializedPoolUsageInner.numberOfAvailableIPAddresses = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupInner.java index 70fcf3c251df..770e865af7fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupPropertiesFormat.java index e826ad3069b5..e8dc6934df5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java index d33db860a15c..49e56d6e8335 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java index 27216cb2d59c..9c1bfbdfb7dc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java @@ -1,43 +1,38 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * PrivateEndpointConnection resource. */ @Fluent -public final class PrivateEndpointConnectionInner extends SubResource { +public final class PrivateEndpointConnectionInner extends SubResourceModel { /* * Properties of the private end point connection. */ private PrivateEndpointConnectionPropertiesInner innerProperties; /* - * 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. */ - private String name; + private String etag; /* - * The resource type. + * Resource type. */ private String type; - /* - * A unique read-only string that changes whenever the resource is updated. - */ - private String etag; - /** * Creates an instance of PrivateEndpointConnectionInner class. */ @@ -54,43 +49,31 @@ private PrivateEndpointConnectionPropertiesInner innerProperties() { } /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @param name the name value to set. - * @return the PrivateEndpointConnectionInner object itself. + * @return the etag value. */ - public PrivateEndpointConnectionInner withName(String name) { - this.name = name; - return this; + public String etag() { + return this.etag; } /** - * Get the type property: The resource type. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. + * {@inheritDoc} */ - public String etag() { - return this.etag; + @Override + public PrivateEndpointConnectionInner withName(String name) { + super.withName(name); + return this; } /** @@ -169,6 +152,7 @@ public String privateEndpointLocation() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -182,8 +166,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -205,13 +189,13 @@ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) thr if ("id".equals(fieldName)) { deserializedPrivateEndpointConnectionInner.withId(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedPrivateEndpointConnectionInner.innerProperties - = PrivateEndpointConnectionPropertiesInner.fromJson(reader); } else if ("name".equals(fieldName)) { - deserializedPrivateEndpointConnectionInner.name = reader.getString(); + deserializedPrivateEndpointConnectionInner.withName(reader.getString()); } else if ("type".equals(fieldName)) { deserializedPrivateEndpointConnectionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.innerProperties + = PrivateEndpointConnectionPropertiesInner.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedPrivateEndpointConnectionInner.etag = reader.getString(); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java index 549320230d00..bc85d6bbbf24 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointInner.java index 2b0ea475330b..a1d830b6cd32 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,14 +25,14 @@ @Fluent public final class PrivateEndpointInner extends Resource { /* - * The extended location of the load balancer. + * Properties of the private endpoint. */ - private ExtendedLocation extendedLocation; + private PrivateEndpointPropertiesInner innerProperties; /* - * Properties of the private endpoint. + * The extended location of the load balancer. */ - private PrivateEndpointPropertiesInner innerProperties; + private ExtendedLocation extendedLocation; /* * A unique read-only string that changes whenever the resource is updated. @@ -60,6 +60,15 @@ public final class PrivateEndpointInner extends Resource { public PrivateEndpointInner() { } + /** + * Get the innerProperties property: Properties of the private endpoint. + * + * @return the innerProperties value. + */ + private PrivateEndpointPropertiesInner innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the load balancer. * @@ -80,15 +89,6 @@ public PrivateEndpointInner withExtendedLocation(ExtendedLocation extendedLocati return this; } - /** - * Get the innerProperties property: Properties of the private endpoint. - * - * @return the innerProperties value. - */ - private PrivateEndpointPropertiesInner innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -380,12 +380,12 @@ public PrivateEndpointInner withCustomNetworkInterfaceName(String customNetworkI * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (extendedLocation() != null) { - extendedLocation().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } } /** @@ -396,8 +396,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -427,10 +427,10 @@ public static PrivateEndpointInner fromJson(JsonReader jsonReader) throws IOExce } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedPrivateEndpointInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedPrivateEndpointInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedPrivateEndpointInner.innerProperties = PrivateEndpointPropertiesInner.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedPrivateEndpointInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedPrivateEndpointInner.etag = reader.getString(); } else if ("id".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointIpConfigurationProperties.java index 7b37c2c71c5e..0b80db0d9989 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointIpConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointIpConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java index 6ff3df95bab3..3c60c3251891 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java index 67a4fb68d951..6664684cd0f0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceInner.java index 55c404465d12..baf1c14119a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -24,14 +24,14 @@ @Fluent public final class PrivateLinkServiceInner extends Resource { /* - * The extended location of the load balancer. + * Properties of the private link service. */ - private ExtendedLocation extendedLocation; + private PrivateLinkServiceProperties innerProperties; /* - * Properties of the private link service. + * The extended location of the load balancer. */ - private PrivateLinkServiceProperties innerProperties; + private ExtendedLocation extendedLocation; /* * A unique read-only string that changes whenever the resource is updated. @@ -59,6 +59,15 @@ public final class PrivateLinkServiceInner extends Resource { public PrivateLinkServiceInner() { } + /** + * Get the innerProperties property: Properties of the private link service. + * + * @return the innerProperties value. + */ + private PrivateLinkServiceProperties innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the load balancer. * @@ -79,15 +88,6 @@ public PrivateLinkServiceInner withExtendedLocation(ExtendedLocation extendedLoc return this; } - /** - * Get the innerProperties property: Properties of the private link service. - * - * @return the innerProperties value. - */ - private PrivateLinkServiceProperties innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -385,12 +385,12 @@ public PrivateLinkServiceInner withEnableProxyProtocol(Boolean enableProxyProtoc * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (extendedLocation() != null) { - extendedLocation().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } } /** @@ -401,8 +401,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -432,10 +432,10 @@ public static PrivateLinkServiceInner fromJson(JsonReader jsonReader) throws IOE } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedPrivateLinkServiceInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedPrivateLinkServiceInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedPrivateLinkServiceInner.innerProperties = PrivateLinkServiceProperties.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedPrivateLinkServiceInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedPrivateLinkServiceInner.etag = reader.getString(); } else if ("id".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java index df80c889940c..e505053bbacf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java index 85f8c2906777..7da219d9c0a7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceProperties.java index 42f4cfb3a19d..97007bf36b86 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceVisibilityInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceVisibilityInner.java index 401d6aa40fa3..da72d867ae48 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceVisibilityInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceVisibilityInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Response for the CheckPrivateLinkServiceVisibility API service call. */ -@Fluent +@Immutable public final class PrivateLinkServiceVisibilityInner implements JsonSerializable { /* * Private Link Service Visibility (True/False). @@ -24,7 +24,7 @@ public final class PrivateLinkServiceVisibilityInner implements JsonSerializable /** * Creates an instance of PrivateLinkServiceVisibilityInner class. */ - public PrivateLinkServiceVisibilityInner() { + private PrivateLinkServiceVisibilityInner() { } /** @@ -36,17 +36,6 @@ public Boolean visible() { return this.visible; } - /** - * Set the visible property: Private Link Service Visibility (True/False). - * - * @param visible the visible value to set. - * @return the PrivateLinkServiceVisibilityInner object itself. - */ - public PrivateLinkServiceVisibilityInner withVisible(Boolean visible) { - this.visible = visible; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java index a2e0380e168c..6cb9f64ced90 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.ProbeNoHealthyBackendsBehavior; import com.azure.resourcemanager.network.models.ProbeProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -19,25 +20,19 @@ * A load balancer probe. */ @Fluent -public final class ProbeInner extends SubResource { +public final class ProbeInner extends SubResourceModel { /* * Properties of load balancer probe. */ private ProbePropertiesFormat innerProperties; - /* - * The name of the resource that is unique within the set of probes used by the load balancer. This name can be used - * to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Type of the resource. + * Resource type. */ private String type; @@ -56,28 +51,6 @@ private ProbePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within the set of probes used by the load - * balancer. This name can be used to access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within the set of probes used by the load - * balancer. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the ProbeInner object itself. - */ - public ProbeInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -88,14 +61,24 @@ public String etag() { } /** - * Get the type property: Type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public ProbeInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -311,6 +294,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -324,8 +308,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -346,14 +330,14 @@ public static ProbeInner fromJson(JsonReader jsonReader) throws IOException { if ("id".equals(fieldName)) { deserializedProbeInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedProbeInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedProbeInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedProbeInner.innerProperties = ProbePropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedProbeInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedProbeInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedProbeInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java index 5f85790f6bb4..2ab70594638b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java index 96aa5494fab4..03a4f851fe22 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -29,6 +29,11 @@ */ @Fluent public final class PublicIpAddressInner extends Resource { + /* + * Public IP address properties. + */ + private PublicIpAddressPropertiesFormatInner innerProperties; + /* * The extended location of the public ip address. */ @@ -39,11 +44,6 @@ public final class PublicIpAddressInner extends Resource { */ private PublicIpAddressSku sku; - /* - * Public IP address properties. - */ - private PublicIpAddressPropertiesFormatInner innerProperties; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -75,6 +75,15 @@ public final class PublicIpAddressInner extends Resource { public PublicIpAddressInner() { } + /** + * Get the innerProperties property: Public IP address properties. + * + * @return the innerProperties value. + */ + private PublicIpAddressPropertiesFormatInner innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the public ip address. * @@ -115,15 +124,6 @@ public PublicIpAddressInner withSku(PublicIpAddressSku sku) { return this; } - /** - * Get the innerProperties property: Public IP address properties. - * - * @return the innerProperties value. - */ - private PublicIpAddressPropertiesFormatInner innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -361,25 +361,25 @@ public PublicIpAddressInner withIpAddress(String ipAddress) { } /** - * Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from. + * Get the publicIPPrefix property: The Public IP Prefix this Public IP Address should be allocated from. * - * @return the publicIpPrefix value. + * @return the publicIPPrefix value. */ - public SubResource publicIpPrefix() { - return this.innerProperties() == null ? null : this.innerProperties().publicIpPrefix(); + public SubResource publicIPPrefix() { + return this.innerProperties() == null ? null : this.innerProperties().publicIPPrefix(); } /** - * Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from. + * Set the publicIPPrefix property: The Public IP Prefix this Public IP Address should be allocated from. * - * @param publicIpPrefix the publicIpPrefix value to set. + * @param publicIPPrefix the publicIPPrefix value to set. * @return the PublicIpAddressInner object itself. */ - public PublicIpAddressInner withPublicIpPrefix(SubResource publicIpPrefix) { + public PublicIpAddressInner withPublicIPPrefix(SubResource publicIPPrefix) { if (this.innerProperties() == null) { this.innerProperties = new PublicIpAddressPropertiesFormatInner(); } - this.innerProperties().withPublicIpPrefix(publicIpPrefix); + this.innerProperties().withPublicIPPrefix(publicIPPrefix); return this; } @@ -545,15 +545,15 @@ public PublicIpAddressInner withDeleteOption(DeleteOptions deleteOption) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } if (extendedLocation() != null) { extendedLocation().validate(); } if (sku() != null) { sku().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); - } } /** @@ -564,9 +564,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); @@ -597,13 +597,13 @@ public static PublicIpAddressInner fromJson(JsonReader jsonReader) throws IOExce } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedPublicIpAddressInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedPublicIpAddressInner.innerProperties + = PublicIpAddressPropertiesFormatInner.fromJson(reader); } else if ("extendedLocation".equals(fieldName)) { deserializedPublicIpAddressInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("sku".equals(fieldName)) { deserializedPublicIpAddressInner.sku = PublicIpAddressSku.fromJson(reader); - } else if ("properties".equals(fieldName)) { - deserializedPublicIpAddressInner.innerProperties - = PublicIpAddressPropertiesFormatInner.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedPublicIpAddressInner.etag = reader.getString(); } else if ("zones".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressPropertiesFormatInner.java index 128fc9f6cc95..cc78d4f5a190 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -65,7 +65,7 @@ public final class PublicIpAddressPropertiesFormatInner /* * The Public IP Prefix this Public IP Address should be allocated from. */ - private SubResource publicIpPrefix; + private SubResource publicIPPrefix; /* * The idle timeout of the public IP address. @@ -244,22 +244,22 @@ public PublicIpAddressPropertiesFormatInner withIpAddress(String ipAddress) { } /** - * Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from. + * Get the publicIPPrefix property: The Public IP Prefix this Public IP Address should be allocated from. * - * @return the publicIpPrefix value. + * @return the publicIPPrefix value. */ - public SubResource publicIpPrefix() { - return this.publicIpPrefix; + public SubResource publicIPPrefix() { + return this.publicIPPrefix; } /** - * Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from. + * Set the publicIPPrefix property: The Public IP Prefix this Public IP Address should be allocated from. * - * @param publicIpPrefix the publicIpPrefix value to set. + * @param publicIPPrefix the publicIPPrefix value to set. * @return the PublicIpAddressPropertiesFormatInner object itself. */ - public PublicIpAddressPropertiesFormatInner withPublicIpPrefix(SubResource publicIpPrefix) { - this.publicIpPrefix = publicIpPrefix; + public PublicIpAddressPropertiesFormatInner withPublicIPPrefix(SubResource publicIPPrefix) { + this.publicIPPrefix = publicIPPrefix; return this; } @@ -445,7 +445,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("ddosSettings", this.ddosSettings); jsonWriter.writeArrayField("ipTags", this.ipTags, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("ipAddress", this.ipAddress); - jsonWriter.writeJsonField("publicIPPrefix", this.publicIpPrefix); + jsonWriter.writeJsonField("publicIPPrefix", this.publicIPPrefix); jsonWriter.writeNumberField("idleTimeoutInMinutes", this.idleTimeoutInMinutes); jsonWriter.writeJsonField("servicePublicIPAddress", this.servicePublicIpAddress); jsonWriter.writeJsonField("natGateway", this.natGateway); @@ -492,7 +492,7 @@ public static PublicIpAddressPropertiesFormatInner fromJson(JsonReader jsonReade } else if ("ipAddress".equals(fieldName)) { deserializedPublicIpAddressPropertiesFormatInner.ipAddress = reader.getString(); } else if ("publicIPPrefix".equals(fieldName)) { - deserializedPublicIpAddressPropertiesFormatInner.publicIpPrefix = SubResource.fromJson(reader); + deserializedPublicIpAddressPropertiesFormatInner.publicIPPrefix = SubResource.fromJson(reader); } else if ("idleTimeoutInMinutes".equals(fieldName)) { deserializedPublicIpAddressPropertiesFormatInner.idleTimeoutInMinutes = reader.getNullable(JsonReader::getInt); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java index d53ac963cb96..67d372ed1510 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Response for GetPublicIpAddressDdosProtectionStatusOperation API service call. */ -@Fluent +@Immutable public final class PublicIpDdosProtectionStatusResultInner implements JsonSerializable { /* @@ -41,7 +41,7 @@ public final class PublicIpDdosProtectionStatusResultInner /** * Creates an instance of PublicIpDdosProtectionStatusResultInner class. */ - public PublicIpDdosProtectionStatusResultInner() { + private PublicIpDdosProtectionStatusResultInner() { } /** @@ -53,17 +53,6 @@ public String publicIpAddressId() { return this.publicIpAddressId; } - /** - * Set the publicIpAddressId property: Public IP ARM resource ID. - * - * @param publicIpAddressId the publicIpAddressId value to set. - * @return the PublicIpDdosProtectionStatusResultInner object itself. - */ - public PublicIpDdosProtectionStatusResultInner withPublicIpAddressId(String publicIpAddressId) { - this.publicIpAddressId = publicIpAddressId; - return this; - } - /** * Get the publicIpAddress property: IP Address of the Public IP Resource. * @@ -73,17 +62,6 @@ public String publicIpAddress() { return this.publicIpAddress; } - /** - * Set the publicIpAddress property: IP Address of the Public IP Resource. - * - * @param publicIpAddress the publicIpAddress value to set. - * @return the PublicIpDdosProtectionStatusResultInner object itself. - */ - public PublicIpDdosProtectionStatusResultInner withPublicIpAddress(String publicIpAddress) { - this.publicIpAddress = publicIpAddress; - return this; - } - /** * Get the isWorkloadProtected property: Value indicating whether the IP address is DDoS workload protected or not. * @@ -93,17 +71,6 @@ public IsWorkloadProtected isWorkloadProtected() { return this.isWorkloadProtected; } - /** - * Set the isWorkloadProtected property: Value indicating whether the IP address is DDoS workload protected or not. - * - * @param isWorkloadProtected the isWorkloadProtected value to set. - * @return the PublicIpDdosProtectionStatusResultInner object itself. - */ - public PublicIpDdosProtectionStatusResultInner withIsWorkloadProtected(IsWorkloadProtected isWorkloadProtected) { - this.isWorkloadProtected = isWorkloadProtected; - return this; - } - /** * Get the ddosProtectionPlanId property: DDoS protection plan Resource Id of a if IP address is protected through a * plan. @@ -114,18 +81,6 @@ public String ddosProtectionPlanId() { return this.ddosProtectionPlanId; } - /** - * Set the ddosProtectionPlanId property: DDoS protection plan Resource Id of a if IP address is protected through a - * plan. - * - * @param ddosProtectionPlanId the ddosProtectionPlanId value to set. - * @return the PublicIpDdosProtectionStatusResultInner object itself. - */ - public PublicIpDdosProtectionStatusResultInner withDdosProtectionPlanId(String ddosProtectionPlanId) { - this.ddosProtectionPlanId = ddosProtectionPlanId; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixInner.java index 8197cecd0202..ca38573f371b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,6 +25,11 @@ */ @Fluent public final class PublicIpPrefixInner extends Resource { + /* + * Public IP prefix properties. + */ + private PublicIpPrefixPropertiesFormatInner innerProperties; + /* * The extended location of the public ip address. */ @@ -35,11 +40,6 @@ public final class PublicIpPrefixInner extends Resource { */ private PublicIpPrefixSku sku; - /* - * Public IP prefix properties. - */ - private PublicIpPrefixPropertiesFormatInner innerProperties; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -71,6 +71,15 @@ public final class PublicIpPrefixInner extends Resource { public PublicIpPrefixInner() { } + /** + * Get the innerProperties property: Public IP prefix properties. + * + * @return the innerProperties value. + */ + private PublicIpPrefixPropertiesFormatInner innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the public ip address. * @@ -111,15 +120,6 @@ public PublicIpPrefixInner withSku(PublicIpPrefixSku sku) { return this; } - /** - * Get the innerProperties property: Public IP prefix properties. - * - * @return the innerProperties value. - */ - private PublicIpPrefixPropertiesFormatInner innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -307,25 +307,25 @@ public SubResource loadBalancerFrontendIpConfiguration() { } /** - * Get the customIpPrefix property: The customIpPrefix that this prefix is associated with. + * Get the customIPPrefix property: The customIpPrefix that this prefix is associated with. * - * @return the customIpPrefix value. + * @return the customIPPrefix value. */ - public SubResource customIpPrefix() { - return this.innerProperties() == null ? null : this.innerProperties().customIpPrefix(); + public SubResource customIPPrefix() { + return this.innerProperties() == null ? null : this.innerProperties().customIPPrefix(); } /** - * Set the customIpPrefix property: The customIpPrefix that this prefix is associated with. + * Set the customIPPrefix property: The customIpPrefix that this prefix is associated with. * - * @param customIpPrefix the customIpPrefix value to set. + * @param customIPPrefix the customIPPrefix value to set. * @return the PublicIpPrefixInner object itself. */ - public PublicIpPrefixInner withCustomIpPrefix(SubResource customIpPrefix) { + public PublicIpPrefixInner withCustomIPPrefix(SubResource customIPPrefix) { if (this.innerProperties() == null) { this.innerProperties = new PublicIpPrefixPropertiesFormatInner(); } - this.innerProperties().withCustomIpPrefix(customIpPrefix); + this.innerProperties().withCustomIPPrefix(customIPPrefix); return this; } @@ -376,15 +376,15 @@ public PublicIpPrefixInner withNatGateway(NatGatewayInner natGateway) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } if (extendedLocation() != null) { extendedLocation().validate(); } if (sku() != null) { sku().validate(); } - if (innerProperties() != null) { - innerProperties().validate(); - } } /** @@ -395,9 +395,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); @@ -428,13 +428,13 @@ public static PublicIpPrefixInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedPublicIpPrefixInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedPublicIpPrefixInner.innerProperties + = PublicIpPrefixPropertiesFormatInner.fromJson(reader); } else if ("extendedLocation".equals(fieldName)) { deserializedPublicIpPrefixInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("sku".equals(fieldName)) { deserializedPublicIpPrefixInner.sku = PublicIpPrefixSku.fromJson(reader); - } else if ("properties".equals(fieldName)) { - deserializedPublicIpPrefixInner.innerProperties - = PublicIpPrefixPropertiesFormatInner.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedPublicIpPrefixInner.etag = reader.getString(); } else if ("zones".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixPropertiesFormatInner.java index e4c80ca5fed3..83585b73fc83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -56,7 +56,7 @@ public final class PublicIpPrefixPropertiesFormatInner /* * The customIpPrefix that this prefix is associated with. */ - private SubResource customIpPrefix; + private SubResource customIPPrefix; /* * The resource GUID property of the public IP prefix resource. @@ -168,22 +168,22 @@ public SubResource loadBalancerFrontendIpConfiguration() { } /** - * Get the customIpPrefix property: The customIpPrefix that this prefix is associated with. + * Get the customIPPrefix property: The customIpPrefix that this prefix is associated with. * - * @return the customIpPrefix value. + * @return the customIPPrefix value. */ - public SubResource customIpPrefix() { - return this.customIpPrefix; + public SubResource customIPPrefix() { + return this.customIPPrefix; } /** - * Set the customIpPrefix property: The customIpPrefix that this prefix is associated with. + * Set the customIPPrefix property: The customIpPrefix that this prefix is associated with. * - * @param customIpPrefix the customIpPrefix value to set. + * @param customIPPrefix the customIPPrefix value to set. * @return the PublicIpPrefixPropertiesFormatInner object itself. */ - public PublicIpPrefixPropertiesFormatInner withCustomIpPrefix(SubResource customIpPrefix) { - this.customIpPrefix = customIpPrefix; + public PublicIpPrefixPropertiesFormatInner withCustomIPPrefix(SubResource customIPPrefix) { + this.customIPPrefix = customIPPrefix; return this; } @@ -252,7 +252,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.publicIpAddressVersion == null ? null : this.publicIpAddressVersion.toString()); jsonWriter.writeArrayField("ipTags", this.ipTags, (writer, element) -> writer.writeJson(element)); jsonWriter.writeNumberField("prefixLength", this.prefixLength); - jsonWriter.writeJsonField("customIPPrefix", this.customIpPrefix); + jsonWriter.writeJsonField("customIPPrefix", this.customIPPrefix); jsonWriter.writeJsonField("natGateway", this.natGateway); return jsonWriter.writeEndObject(); } @@ -292,7 +292,7 @@ public static PublicIpPrefixPropertiesFormatInner fromJson(JsonReader jsonReader deserializedPublicIpPrefixPropertiesFormatInner.loadBalancerFrontendIpConfiguration = SubResource.fromJson(reader); } else if ("customIPPrefix".equals(fieldName)) { - deserializedPublicIpPrefixPropertiesFormatInner.customIpPrefix = SubResource.fromJson(reader); + deserializedPublicIpPrefixPropertiesFormatInner.customIPPrefix = SubResource.fromJson(reader); } else if ("resourceGuid".equals(fieldName)) { deserializedPublicIpPrefixPropertiesFormatInner.resourceGuid = reader.getString(); } else if ("provisioningState".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/QueryResultsInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/QueryResultsInner.java index 6bcf97258854..e2e7ecfa7f5c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/QueryResultsInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/QueryResultsInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Query result. */ -@Fluent +@Immutable public final class QueryResultsInner implements JsonSerializable { /* * Number of total records matching the query. @@ -31,7 +31,7 @@ public final class QueryResultsInner implements JsonSerializable signatures() { return this.signatures; } - /** - * Set the signatures property: Array containing the results of the query. - * - * @param signatures the signatures value to set. - * @return the QueryResultsInner object itself. - */ - public QueryResultsInner withSignatures(List signatures) { - this.signatures = signatures; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RadiusAuthServerListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RadiusAuthServerListResultInner.java index a4f596492ce3..e7e256b0c107 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RadiusAuthServerListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RadiusAuthServerListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of Radius servers with respective radius secrets. */ -@Fluent +@Immutable public final class RadiusAuthServerListResultInner implements JsonSerializable { /* - * List of Radius servers with respective radius secrets. + * The RadiusAuthServer items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RadiusAuthServerListResultInner class. */ - public RadiusAuthServerListResultInner() { + private RadiusAuthServerListResultInner() { } /** - * Get the value property: List of Radius servers with respective radius secrets. + * Get the value property: The RadiusAuthServer items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Radius servers with respective radius secrets. - * - * @param value the value value to set. - * @return the RadiusAuthServerListResultInner object itself. - */ - public RadiusAuthServerListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the RadiusAuthServerListResultInner object itself. - */ - public RadiusAuthServerListResultInner withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model RadiusAuthServerListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RadiusAuthServerListResultInner.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RadiusAuthServerListResultInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RadiusAuthServerListResultInner. */ public static RadiusAuthServerListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisIntentInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisIntentInner.java index d967d807311f..084b5a06cdb6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisIntentInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisIntentInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,22 +25,23 @@ public final class ReachabilityAnalysisIntentInner extends CommonProxyResource { private ReachabilityAnalysisIntentProperties properties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * The system metadata related to this resource. */ private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -71,7 +72,7 @@ public ReachabilityAnalysisIntentInner withProperties(ReachabilityAnalysisIntent } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the systemData property: The system metadata related to this resource. * * @return the systemData value. */ @@ -81,7 +82,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -101,7 +103,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -161,11 +164,11 @@ public static ReachabilityAnalysisIntentInner fromJson(JsonReader jsonReader) th deserializedReachabilityAnalysisIntentInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedReachabilityAnalysisIntentInner.type = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedReachabilityAnalysisIntentInner.systemData = SystemData.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedReachabilityAnalysisIntentInner.properties = ReachabilityAnalysisIntentProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedReachabilityAnalysisIntentInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisRunInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisRunInner.java index 3dc0b4ee25dc..769316a5aa70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisRunInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisRunInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -25,22 +25,23 @@ public final class ReachabilityAnalysisRunInner extends CommonProxyResource { private ReachabilityAnalysisRunProperties properties; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * The system metadata related to this resource. */ private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -71,7 +72,7 @@ public ReachabilityAnalysisRunInner withProperties(ReachabilityAnalysisRunProper } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the systemData property: The system metadata related to this resource. * * @return the systemData value. */ @@ -81,7 +82,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -101,7 +103,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -160,11 +163,11 @@ public static ReachabilityAnalysisRunInner fromJson(JsonReader jsonReader) throw deserializedReachabilityAnalysisRunInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedReachabilityAnalysisRunInner.type = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedReachabilityAnalysisRunInner.systemData = SystemData.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedReachabilityAnalysisRunInner.properties = ReachabilityAnalysisRunProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedReachabilityAnalysisRunInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinkFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinkFormat.java index d1eed6e5a588..338725871343 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinkFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinkFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Properties of ResourceNavigationLink. */ -@Fluent +@Immutable public final class ResourceNavigationLinkFormat implements JsonSerializable { /* * Resource type of the linked resource. @@ -35,7 +35,7 @@ public final class ResourceNavigationLinkFormat implements JsonSerializable { /* - * The resource navigation links in a subnet. + * The ResourceNavigationLink items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ResourceNavigationLinksListResultInner class. */ - public ResourceNavigationLinksListResultInner() { + private ResourceNavigationLinksListResultInner() { } /** - * Get the value property: The resource navigation links in a subnet. + * Get the value property: The ResourceNavigationLink items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The resource navigation links in a subnet. - * - * @param value the value value to set. - * @return the ResourceNavigationLinksListResultInner object itself. - */ - public ResourceNavigationLinksListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ResourceNavigationLinksListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ResourceNavigationLinksListResultInner.class); + /** * {@inheritDoc} */ @@ -91,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ResourceNavigationLinksListResultInner if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ResourceNavigationLinksListResultInner. */ public static ResourceNavigationLinksListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterInner.java index 4fafba86cf99..a04722951fae 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterPropertiesFormat.java index f7b91dab503c..1fd4856aca06 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRuleInner.java index 02a2f75a8b45..aca4d517c31f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java index 35f8fdd7e4c9..4c490e8818da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteInner.java index 3e4ae78735ba..98782147ac19 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteInner.java @@ -1,40 +1,35 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.RouteNextHopType; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Route resource. */ @Fluent -public final class RouteInner extends SubResource { +public final class RouteInner extends SubResourceModel { /* * Properties of the route. */ private RoutePropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * The type of the resource. + * Resource type. */ private String type; @@ -53,28 +48,6 @@ private RoutePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the RouteInner object itself. - */ - public RouteInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -85,22 +58,21 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: The type of the resource. - * - * @param type the type value to set. - * @return the RouteInner object itself. + * {@inheritDoc} */ - public RouteInner withType(String type) { - this.type = type; + @Override + public RouteInner withName(String name) { + super.withName(name); return this; } @@ -208,6 +180,7 @@ public Boolean hasBgpOverride() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -221,9 +194,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -244,14 +216,14 @@ public static RouteInner fromJson(JsonReader jsonReader) throws IOException { if ("id".equals(fieldName)) { deserializedRouteInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedRouteInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedRouteInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedRouteInner.innerProperties = RoutePropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedRouteInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedRouteInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedRouteInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java index 610f2a5cc77d..9d40449e0424 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.ReadOnlySubResourceModel; import com.azure.resourcemanager.network.models.RouteMapRule; import java.io.IOException; import java.util.List; @@ -18,27 +18,32 @@ * The RouteMap child resource of a Virtual hub. */ @Fluent -public final class RouteMapInner extends SubResource { +public final class RouteMapInner extends ReadOnlySubResourceModel { /* * Properties of the RouteMap resource. */ private RouteMapProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Resource type. + * Type of the resource. */ private String type; + /* + * Name of the resource. + */ + private String name; + + /* + * Resource ID. + */ + private String id; + /** * Creates an instance of RouteMapInner class. */ @@ -54,16 +59,6 @@ private RouteMapProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -74,21 +69,33 @@ public String etag() { } /** - * Get the type property: Resource type. + * Get the type property: Type of the resource. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * {@inheritDoc} + * Get the name property: Name of the resource. + * + * @return the name value. */ @Override - public RouteMapInner withId(String id) { - super.withId(id); - return this; + public String name() { + return this.name; + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; } /** @@ -178,6 +185,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -190,7 +198,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("id", id()); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -211,15 +218,15 @@ public static RouteMapInner fromJson(JsonReader jsonReader) throws IOException { reader.nextToken(); if ("id".equals(fieldName)) { - deserializedRouteMapInner.withId(reader.getString()); - } else if ("properties".equals(fieldName)) { - deserializedRouteMapInner.innerProperties = RouteMapProperties.fromJson(reader); + deserializedRouteMapInner.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedRouteMapInner.name = reader.getString(); - } else if ("etag".equals(fieldName)) { - deserializedRouteMapInner.etag = reader.getString(); } else if ("type".equals(fieldName)) { deserializedRouteMapInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedRouteMapInner.innerProperties = RouteMapProperties.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedRouteMapInner.etag = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java index 8845a8605604..c437018c7c5c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java index b177bca4c894..b018388d388d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTableInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTableInner.java index 4d457fac825b..e71dec09614e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTableInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTableInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTablePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTablePropertiesFormat.java index ceb7b6011d89..c78ac6391b62 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTablePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTablePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java index 05f3f7fa16ab..a7a43882fa10 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -26,7 +26,7 @@ public final class RouteTargetAddressPropertiesFormatInner /* * The private IPv4 or IPv6 address of the service gateway route target address. */ - private String privateIpAddress; + private String privateIPAddress; /* * The Private IP allocation method. @@ -60,22 +60,22 @@ public RouteTargetAddressPropertiesFormatInner withSubnet(SubnetInner subnet) { } /** - * Get the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address. + * Get the privateIPAddress property: The private IPv4 or IPv6 address of the service gateway route target address. * - * @return the privateIpAddress value. + * @return the privateIPAddress value. */ - public String privateIpAddress() { - return this.privateIpAddress; + public String privateIPAddress() { + return this.privateIPAddress; } /** - * Set the privateIpAddress property: The private IPv4 or IPv6 address of the service gateway route target address. + * Set the privateIPAddress property: The private IPv4 or IPv6 address of the service gateway route target address. * - * @param privateIpAddress the privateIpAddress value to set. + * @param privateIPAddress the privateIPAddress value to set. * @return the RouteTargetAddressPropertiesFormatInner object itself. */ - public RouteTargetAddressPropertiesFormatInner withPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; + public RouteTargetAddressPropertiesFormatInner withPrivateIPAddress(String privateIPAddress) { + this.privateIPAddress = privateIPAddress; return this; } @@ -118,7 +118,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("subnet", this.subnet); - jsonWriter.writeStringField("privateIPAddress", this.privateIpAddress); + jsonWriter.writeStringField("privateIPAddress", this.privateIPAddress); jsonWriter.writeStringField("privateIPAllocationMethod", this.privateIpAllocationMethod == null ? null : this.privateIpAllocationMethod.toString()); return jsonWriter.writeEndObject(); @@ -143,7 +143,7 @@ public static RouteTargetAddressPropertiesFormatInner fromJson(JsonReader jsonRe if ("subnet".equals(fieldName)) { deserializedRouteTargetAddressPropertiesFormatInner.subnet = SubnetInner.fromJson(reader); } else if ("privateIPAddress".equals(fieldName)) { - deserializedRouteTargetAddressPropertiesFormatInner.privateIpAddress = reader.getString(); + deserializedRouteTargetAddressPropertiesFormatInner.privateIPAddress = reader.getString(); } else if ("privateIPAllocationMethod".equals(fieldName)) { deserializedRouteTargetAddressPropertiesFormatInner.privateIpAllocationMethod = IpAllocationMethod.fromString(reader.getString()); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentInner.java index a39e37fb30c8..381e16c42483 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentInner.java @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.RoutingPolicy; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -18,17 +18,12 @@ * The routing intent child resource of a Virtual hub. */ @Fluent -public final class RoutingIntentInner extends SubResource { +public final class RoutingIntentInner extends SubResourceModel { /* * Properties of the RoutingIntent resource. */ private RoutingIntentProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -54,28 +49,6 @@ private RoutingIntentProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the RoutingIntentInner object itself. - */ - public RoutingIntentInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -90,10 +63,20 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public RoutingIntentInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -140,6 +123,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -153,8 +137,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -175,14 +159,14 @@ public static RoutingIntentInner fromJson(JsonReader jsonReader) throws IOExcept if ("id".equals(fieldName)) { deserializedRoutingIntentInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedRoutingIntentInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedRoutingIntentInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedRoutingIntentInner.innerProperties = RoutingIntentProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedRoutingIntentInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedRoutingIntentInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedRoutingIntentInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentProperties.java index 0a7897708e0b..d79a3827a547 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionInner.java index c2c80916b1ff..3c65899292e5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -37,17 +37,17 @@ public final class RoutingRuleCollectionInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -86,7 +86,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -96,7 +96,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -106,7 +106,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -233,7 +233,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RoutingRuleCollectionInner if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RoutingRuleCollectionInner. */ public static RoutingRuleCollectionInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionPropertiesFormat.java index bfcea1aaec48..6809a3120629 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleInner.java index 46bdaf5ba595..f37bfe064bad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -36,17 +36,17 @@ public final class RoutingRuleInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -85,7 +85,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -95,7 +95,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -105,7 +105,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -229,7 +229,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RoutingRuleInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RoutingRuleInner. */ public static RoutingRuleInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRulePropertiesFormat.java index 42db1ab03a24..755a50407fe8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionInner.java index bbb501d73f78..8b9adf4898f7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -24,27 +24,27 @@ public final class ScopeConnectionInner extends ChildResource { private ScopeConnectionProperties innerProperties; /* - * The system metadata related to this resource. + * A unique read-only string that changes whenever the resource is updated. */ - private SystemData systemData; + private String etag; /* - * A unique read-only string that changes whenever the resource is updated. + * The system metadata related to this resource. */ - private String etag; + private SystemData systemData; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -63,15 +63,6 @@ private ScopeConnectionProperties innerProperties() { return this.innerProperties; } - /** - * Get the systemData property: The system metadata related to this resource. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -83,7 +74,16 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the systemData property: The system metadata related to this resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: Resource type. * * @return the type value. */ @@ -93,7 +93,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -103,7 +103,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -218,7 +218,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ScopeConnectionInner if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ScopeConnectionInner. */ public static ScopeConnectionInner fromJson(JsonReader jsonReader) throws IOException { @@ -234,10 +233,10 @@ public static ScopeConnectionInner fromJson(JsonReader jsonReader) throws IOExce deserializedScopeConnectionInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedScopeConnectionInner.type = reader.getString(); - } else if ("etag".equals(fieldName)) { - deserializedScopeConnectionInner.etag = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedScopeConnectionInner.innerProperties = ScopeConnectionProperties.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedScopeConnectionInner.etag = reader.getString(); } else if ("systemData".equals(fieldName)) { deserializedScopeConnectionInner.systemData = SystemData.fromJson(reader); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionProperties.java index 44a20c323d69..02b357a4dffd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationInner.java index 27018202b70a..aa8fcd193684 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -37,17 +37,17 @@ public final class SecurityAdminConfigurationInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -86,7 +86,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -96,7 +96,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -106,7 +106,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -236,7 +236,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityAdminConfigurationInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityAdminConfigurationInner. */ public static SecurityAdminConfigurationInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationPropertiesFormat.java index ece5db749b0b..2c1f7c3255d3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityGroupViewResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityGroupViewResultInner.java index ed0fb5b2673b..db73dcb535f9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityGroupViewResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityGroupViewResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * The information about security rules applied to the specified VM. */ -@Fluent +@Immutable public final class SecurityGroupViewResultInner implements JsonSerializable { /* * List of network interfaces on the specified VM. @@ -26,7 +26,7 @@ public final class SecurityGroupViewResultInner implements JsonSerializable networkInterfaces() { return this.networkInterfaces; } - /** - * Set the networkInterfaces property: List of network interfaces on the specified VM. - * - * @param networkInterfaces the networkInterfaces value to set. - * @return the SecurityGroupViewResultInner object itself. - */ - public SecurityGroupViewResultInner withNetworkInterfaces(List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderInner.java index bcf23dbf73b2..1801771f34cd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderPropertiesFormat.java index c23ed0af0a04..ced301ac1121 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java index 9262c1e7ed7a..504b9c537638 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -13,6 +12,7 @@ import com.azure.resourcemanager.network.models.SecurityRuleAccess; import com.azure.resourcemanager.network.models.SecurityRuleDirection; import com.azure.resourcemanager.network.models.SecurityRuleProtocol; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -20,24 +20,19 @@ * Network security rule. */ @Fluent -public final class SecurityRuleInner extends SubResource { +public final class SecurityRuleInner extends SubResourceModel { /* * Properties of the security rule. */ private SecurityRulePropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * The type of the resource. + * Resource type. */ private String type; @@ -56,28 +51,6 @@ private SecurityRulePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the SecurityRuleInner object itself. - */ - public SecurityRuleInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -88,22 +61,21 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: The type of the resource. - * - * @param type the type value to set. - * @return the SecurityRuleInner object itself. + * {@inheritDoc} */ - public SecurityRuleInner withType(String type) { - this.type = type; + @Override + public SecurityRuleInner withName(String name) { + super.withName(name); return this; } @@ -495,6 +467,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -508,9 +481,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -531,14 +503,14 @@ public static SecurityRuleInner fromJson(JsonReader jsonReader) throws IOExcepti if ("id".equals(fieldName)) { deserializedSecurityRuleInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedSecurityRuleInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedSecurityRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedSecurityRuleInner.innerProperties = SecurityRulePropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedSecurityRuleInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedSecurityRuleInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedSecurityRuleInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java index b11d60fdd84c..f7d0304f37ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationInner.java index eb47e3280ef4..64230a5b5f36 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -34,17 +34,17 @@ public final class SecurityUserConfigurationInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -83,7 +83,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -93,7 +93,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -103,7 +103,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -181,7 +181,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserConfigurationInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserConfigurationInner. */ public static SecurityUserConfigurationInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationPropertiesFormat.java index c71432bd731b..5ffbd822dfb4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionInner.java index c2c8954f6beb..67c8bd3121b3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -36,17 +36,17 @@ public final class SecurityUserRuleCollectionInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -85,7 +85,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -95,7 +95,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -105,7 +105,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -206,7 +206,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserRuleCollectionInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserRuleCollectionInner. */ public static SecurityUserRuleCollectionInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionPropertiesFormat.java index f3996f9732a6..8933a016203c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleInner.java index e5c636b98eb2..b2c35249d4c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -38,17 +38,17 @@ public final class SecurityUserRuleInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -87,7 +87,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -97,7 +97,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -107,7 +107,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -323,7 +323,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserRuleInner if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserRuleInner. */ public static SecurityUserRuleInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRulePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRulePropertiesFormat.java index b8ef7bf6a67f..42f2b77c1a23 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRulePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRulePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinkPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinkPropertiesFormat.java index af9cc8f05849..49271a95f57e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinkPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinkPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties of ServiceAssociationLink. */ -@Fluent +@Immutable public final class ServiceAssociationLinkPropertiesFormat implements JsonSerializable { /* @@ -47,7 +47,7 @@ public final class ServiceAssociationLinkPropertiesFormat /** * Creates an instance of ServiceAssociationLinkPropertiesFormat class. */ - public ServiceAssociationLinkPropertiesFormat() { + private ServiceAssociationLinkPropertiesFormat() { } /** @@ -59,17 +59,6 @@ public String linkedResourceType() { return this.linkedResourceType; } - /** - * Set the linkedResourceType property: Resource type of the linked resource. - * - * @param linkedResourceType the linkedResourceType value to set. - * @return the ServiceAssociationLinkPropertiesFormat object itself. - */ - public ServiceAssociationLinkPropertiesFormat withLinkedResourceType(String linkedResourceType) { - this.linkedResourceType = linkedResourceType; - return this; - } - /** * Get the link property: Link to the external resource. * @@ -79,17 +68,6 @@ public String link() { return this.link; } - /** - * Set the link property: Link to the external resource. - * - * @param link the link value to set. - * @return the ServiceAssociationLinkPropertiesFormat object itself. - */ - public ServiceAssociationLinkPropertiesFormat withLink(String link) { - this.link = link; - return this; - } - /** * Get the provisioningState property: The provisioning state of the service association link resource. * @@ -108,17 +86,6 @@ public Boolean allowDelete() { return this.allowDelete; } - /** - * Set the allowDelete property: If true, the resource can be deleted. - * - * @param allowDelete the allowDelete value to set. - * @return the ServiceAssociationLinkPropertiesFormat object itself. - */ - public ServiceAssociationLinkPropertiesFormat withAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - return this; - } - /** * Get the locations property: A list of locations. * @@ -128,17 +95,6 @@ public List locations() { return this.locations; } - /** - * Set the locations property: A list of locations. - * - * @param locations the locations value to set. - * @return the ServiceAssociationLinkPropertiesFormat object itself. - */ - public ServiceAssociationLinkPropertiesFormat withLocations(List locations) { - this.locations = locations; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinksListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinksListResultInner.java index a85bc0c3f61e..064da1d2bbd8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinksListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinksListResultInner.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ServiceAssociationLinks_List operation. + * Paged collection of ServiceAssociationLink items. */ -@Fluent +@Immutable public final class ServiceAssociationLinksListResultInner implements JsonSerializable { /* - * The service association links in a subnet. + * The ServiceAssociationLink items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ServiceAssociationLinksListResultInner class. */ - public ServiceAssociationLinksListResultInner() { + private ServiceAssociationLinksListResultInner() { } /** - * Get the value property: The service association links in a subnet. + * Get the value property: The ServiceAssociationLink items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The service association links in a subnet. - * - * @param value the value value to set. - * @return the ServiceAssociationLinksListResultInner object itself. - */ - public ServiceAssociationLinksListResultInner withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ServiceAssociationLinksListResultInner")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceAssociationLinksListResultInner.class); + /** * {@inheritDoc} */ @@ -91,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServiceAssociationLinksListResultInner if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ServiceAssociationLinksListResultInner. */ public static ServiceAssociationLinksListResultInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceDelegationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceDelegationPropertiesFormat.java index a8e6706f3dfe..36bedd0e2d6f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceDelegationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceDelegationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionInner.java index 024c43c04ddd..7bd380dac224 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionInner.java @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; import java.util.List; @@ -17,24 +17,19 @@ * Service Endpoint policy definitions. */ @Fluent -public final class ServiceEndpointPolicyDefinitionInner extends SubResource { +public final class ServiceEndpointPolicyDefinitionInner extends SubResourceModel { /* * Properties of the service endpoint policy definition. */ private ServiceEndpointPolicyDefinitionPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * The type of the resource. + * Resource type. */ private String type; @@ -53,28 +48,6 @@ private ServiceEndpointPolicyDefinitionPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ServiceEndpointPolicyDefinitionInner object itself. - */ - public ServiceEndpointPolicyDefinitionInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -85,22 +58,21 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: The type of the resource. - * - * @param type the type value to set. - * @return the ServiceEndpointPolicyDefinitionInner object itself. + * {@inheritDoc} */ - public ServiceEndpointPolicyDefinitionInner withType(String type) { - this.type = type; + @Override + public ServiceEndpointPolicyDefinitionInner withName(String name) { + super.withName(name); return this; } @@ -196,6 +168,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -209,9 +182,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -233,15 +205,15 @@ public static ServiceEndpointPolicyDefinitionInner fromJson(JsonReader jsonReade if ("id".equals(fieldName)) { deserializedServiceEndpointPolicyDefinitionInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedServiceEndpointPolicyDefinitionInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedServiceEndpointPolicyDefinitionInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedServiceEndpointPolicyDefinitionInner.innerProperties = ServiceEndpointPolicyDefinitionPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedServiceEndpointPolicyDefinitionInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedServiceEndpointPolicyDefinitionInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedServiceEndpointPolicyDefinitionInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionPropertiesFormat.java index d905ac6217c2..c2156554c08f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyInner.java index db7d3cc11eee..2a0f128fb772 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyPropertiesFormat.java index da0760263944..56cdf9f74684 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java index a168f41e374c..98f808e7dcf4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Properties of the service gateway address location. */ -@Fluent +@Immutable public final class ServiceGatewayAddressLocationResponseInner implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class ServiceGatewayAddressLocationResponseInner /** * Creates an instance of ServiceGatewayAddressLocationResponseInner class. */ - public ServiceGatewayAddressLocationResponseInner() { + private ServiceGatewayAddressLocationResponseInner() { } /** @@ -44,17 +44,6 @@ public String addressLocation() { return this.addressLocation; } - /** - * Set the addressLocation property: Location to update. - * - * @param addressLocation the addressLocation value to set. - * @return the ServiceGatewayAddressLocationResponseInner object itself. - */ - public ServiceGatewayAddressLocationResponseInner withAddressLocation(String addressLocation) { - this.addressLocation = addressLocation; - return this; - } - /** * Get the addresses property: An array of addresses to create or update in locations. * @@ -64,17 +53,6 @@ public List addresses() { return this.addresses; } - /** - * Set the addresses property: An array of addresses to create or update in locations. - * - * @param addresses the addresses value to set. - * @return the ServiceGatewayAddressLocationResponseInner object itself. - */ - public ServiceGatewayAddressLocationResponseInner withAddresses(List addresses) { - this.addresses = addresses; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java index 9e557dc0bf40..1fe279ec9db3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.SecurityPerimeterSystemData; +import com.azure.resourcemanager.network.models.SecurityPerimeterTrackedResource; import com.azure.resourcemanager.network.models.ServiceGatewaySku; import java.io.IOException; import java.util.List; @@ -20,7 +21,7 @@ * ServiceGateway resource. */ @Fluent -public final class ServiceGatewayInner extends Resource { +public final class ServiceGatewayInner extends SecurityPerimeterTrackedResource { /* * Properties of service gateway. */ @@ -49,17 +50,18 @@ public final class ServiceGatewayInner extends Resource { private SecurityPerimeterSystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -138,12 +140,14 @@ public ServiceGatewayInner withZones(List zones) { * * @return the systemData value. */ + @Override public SecurityPerimeterSystemData systemData() { return this.systemData; } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -163,7 +167,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -176,8 +181,8 @@ public String id() { * {@inheritDoc} */ @Override - public ServiceGatewayInner withLocation(String location) { - super.withLocation(location); + public ServiceGatewayInner withTags(Map tags) { + super.withTags(tags); return this; } @@ -185,8 +190,8 @@ public ServiceGatewayInner withLocation(String location) { * {@inheritDoc} */ @Override - public ServiceGatewayInner withTags(Map tags) { - super.withTags(tags); + public ServiceGatewayInner withLocation(String location) { + super.withLocation(location); return this; } @@ -282,6 +287,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -292,8 +298,14 @@ public void validate() { if (systemData() != null) { systemData().validate(); } + if (location() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property location in model ServiceGatewayInner")); + } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceGatewayInner.class); + /** * {@inheritDoc} */ @@ -324,14 +336,16 @@ public static ServiceGatewayInner fromJson(JsonReader jsonReader) throws IOExcep String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { + if ("location".equals(fieldName)) { + deserializedServiceGatewayInner.withLocation(reader.getString()); + } else if ("id".equals(fieldName)) { deserializedServiceGatewayInner.id = reader.getString(); } else if ("name".equals(fieldName)) { deserializedServiceGatewayInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedServiceGatewayInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedServiceGatewayInner.withLocation(reader.getString()); + } else if ("systemData".equals(fieldName)) { + deserializedServiceGatewayInner.systemData = SecurityPerimeterSystemData.fromJson(reader); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedServiceGatewayInner.withTags(tags); @@ -345,8 +359,6 @@ public static ServiceGatewayInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("zones".equals(fieldName)) { List zones = reader.readArray(reader1 -> reader1.getString()); deserializedServiceGatewayInner.zones = zones; - } else if ("systemData".equals(fieldName)) { - deserializedServiceGatewayInner.systemData = SecurityPerimeterSystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java index 57f6bd41e727..f7690f52c2d1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java index 4fae0f6692d7..b40d7185d58e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java index 34a23c97fa92..da72da088f33 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java index a0a9767b8d4f..ef0686b52c9e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagInformationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagInformationInner.java index 211eb22ef5cf..eee62c2cfc67 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagInformationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagInformationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -40,7 +40,7 @@ public final class ServiceTagInformationInner implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class SignatureOverridesFilterValuesResponseInner /** * Creates an instance of SignatureOverridesFilterValuesResponseInner class. */ - public SignatureOverridesFilterValuesResponseInner() { + private SignatureOverridesFilterValuesResponseInner() { } /** @@ -38,17 +38,6 @@ public List filterValues() { return this.filterValues; } - /** - * Set the filterValues property: Describes the possible values. - * - * @param filterValues the filterValues value to set. - * @return the SignatureOverridesFilterValuesResponseInner object itself. - */ - public SignatureOverridesFilterValuesResponseInner withFilterValues(List filterValues) { - this.filterValues = filterValues; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesInner.java index a07aff2dc87c..ff235dafbfd3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesInner.java @@ -1,37 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.SignaturesOverridesProperties; +import com.azure.resourcemanager.network.models.WritableResource; import java.io.IOException; /** * Contains all specific policy signatures overrides for the IDPS. */ @Fluent -public final class SignaturesOverridesInner extends ProxyResource { - /* - * Contains the name of the resource (default) - */ - private String name; - - /* - * Will contain the resource id of the signature override resource - */ - private String id; - - /* - * Will contain the type of the resource: Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides - */ - private String type; - +public final class SignaturesOverridesInner extends WritableResource { /* * Will contain the properties of the resource (the actual signature overrides) */ @@ -44,84 +29,49 @@ public SignaturesOverridesInner() { } /** - * Get the name property: Contains the name of the resource (default). + * Get the properties property: Will contain the properties of the resource (the actual signature overrides). * - * @return the name value. + * @return the properties value. */ - public String name() { - return this.name; + public SignaturesOverridesProperties properties() { + return this.properties; } /** - * Set the name property: Contains the name of the resource (default). + * Set the properties property: Will contain the properties of the resource (the actual signature overrides). * - * @param name the name value to set. + * @param properties the properties value to set. * @return the SignaturesOverridesInner object itself. */ - public SignaturesOverridesInner withName(String name) { - this.name = name; + public SignaturesOverridesInner withProperties(SignaturesOverridesProperties properties) { + this.properties = properties; return this; } /** - * Get the id property: Will contain the resource id of the signature override resource. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: Will contain the resource id of the signature override resource. - * - * @param id the id value to set. - * @return the SignaturesOverridesInner object itself. + * {@inheritDoc} */ + @Override public SignaturesOverridesInner withId(String id) { - this.id = id; + super.withId(id); return this; } /** - * Get the type property: Will contain the type of the resource: - * Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Set the type property: Will contain the type of the resource: - * Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides. - * - * @param type the type value to set. - * @return the SignaturesOverridesInner object itself. + * {@inheritDoc} */ - public SignaturesOverridesInner withType(String type) { - this.type = type; + @Override + public SignaturesOverridesInner withName(String name) { + super.withName(name); return this; } /** - * Get the properties property: Will contain the properties of the resource (the actual signature overrides). - * - * @return the properties value. - */ - public SignaturesOverridesProperties properties() { - return this.properties; - } - - /** - * Set the properties property: Will contain the properties of the resource (the actual signature overrides). - * - * @param properties the properties value to set. - * @return the SignaturesOverridesInner object itself. + * {@inheritDoc} */ - public SignaturesOverridesInner withProperties(SignaturesOverridesProperties properties) { - this.properties = properties; + @Override + public SignaturesOverridesInner withType(String type) { + super.withType(type); return this; } @@ -130,6 +80,7 @@ public SignaturesOverridesInner withProperties(SignaturesOverridesProperties pro * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (properties() != null) { properties().validate(); @@ -142,9 +93,9 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("id", this.id); - jsonWriter.writeStringField("type", this.type); + jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); + jsonWriter.writeStringField("type", type()); jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } @@ -155,7 +106,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SignaturesOverridesInner if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SignaturesOverridesInner. */ public static SignaturesOverridesInner fromJson(JsonReader jsonReader) throws IOException { @@ -165,12 +115,12 @@ public static SignaturesOverridesInner fromJson(JsonReader jsonReader) throws IO String fieldName = reader.getFieldName(); reader.nextToken(); - if ("name".equals(fieldName)) { - deserializedSignaturesOverridesInner.name = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedSignaturesOverridesInner.id = reader.getString(); + if ("id".equals(fieldName)) { + deserializedSignaturesOverridesInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedSignaturesOverridesInner.withName(reader.getString()); } else if ("type".equals(fieldName)) { - deserializedSignaturesOverridesInner.type = reader.getString(); + deserializedSignaturesOverridesInner.withType(reader.getString()); } else if ("properties".equals(fieldName)) { deserializedSignaturesOverridesInner.properties = SignaturesOverridesProperties.fromJson(reader); } else { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesListInner.java index e160f6970230..28862cc28be3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Describes an object containing an array with a single item. */ -@Fluent +@Immutable public final class SignaturesOverridesListInner implements JsonSerializable { /* * Describes a list consisting exactly one item describing the policy's signature override status @@ -25,7 +25,7 @@ public final class SignaturesOverridesListInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: Describes a list consisting exactly one item describing the policy's signature override - * status. - * - * @param value the value value to set. - * @return the SignaturesOverridesListInner object itself. - */ - public SignaturesOverridesListInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticCidrInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticCidrInner.java index efd102240d2f..eefaece3ebb8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticCidrInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticCidrInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -29,17 +29,18 @@ public final class StaticCidrInner extends CommonProxyResource { private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -80,7 +81,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -100,7 +102,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -137,7 +140,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of StaticCidrInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the StaticCidrInner. */ public static StaticCidrInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberInner.java index 1045d7f3e495..a60534689867 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -34,17 +34,17 @@ public final class StaticMemberInner extends ChildResource { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -83,7 +83,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -93,7 +93,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -103,7 +103,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -181,7 +181,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of StaticMemberInner if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the StaticMemberInner. */ public static StaticMemberInner fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberProperties.java index 9b0bc1f79e0a..4eea5c9aacf1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java index 9e21fa761a3f..a75c76048f1d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -16,6 +16,7 @@ import com.azure.resourcemanager.network.models.ServiceAssociationLink; import com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat; import com.azure.resourcemanager.network.models.SharingScope; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VirtualNetworkPrivateEndpointNetworkPolicies; import com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies; import java.io.IOException; @@ -25,17 +26,12 @@ * Subnet in a virtual network resource. */ @Fluent -public final class SubnetInner extends SubResource { +public final class SubnetInner extends SubResourceModel { /* * Properties of the subnet. */ private SubnetPropertiesFormatInner innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -61,28 +57,6 @@ private SubnetPropertiesFormatInner innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the SubnetInner object itself. - */ - public SubnetInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -97,18 +71,17 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: Resource type. - * - * @param type the type value to set. - * @return the SubnetInner object itself. + * {@inheritDoc} */ - public SubnetInner withType(String type) { - this.type = type; + @Override + public SubnetInner withName(String name) { + super.withName(name); return this; } @@ -446,28 +419,28 @@ public SubnetInner withPrivateLinkServiceNetworkPolicies( } /** - * Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network + * Get the applicationGatewayIPConfigurations property: Application gateway IP configurations of virtual network * resource. * - * @return the applicationGatewayIpConfigurations value. + * @return the applicationGatewayIPConfigurations value. */ - public List applicationGatewayIpConfigurations() { - return this.innerProperties() == null ? null : this.innerProperties().applicationGatewayIpConfigurations(); + public List applicationGatewayIPConfigurations() { + return this.innerProperties() == null ? null : this.innerProperties().applicationGatewayIPConfigurations(); } /** - * Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network + * Set the applicationGatewayIPConfigurations property: Application gateway IP configurations of virtual network * resource. * - * @param applicationGatewayIpConfigurations the applicationGatewayIpConfigurations value to set. + * @param applicationGatewayIPConfigurations the applicationGatewayIPConfigurations value to set. * @return the SubnetInner object itself. */ - public SubnetInner withApplicationGatewayIpConfigurations( - List applicationGatewayIpConfigurations) { + public SubnetInner withApplicationGatewayIPConfigurations( + List applicationGatewayIPConfigurations) { if (this.innerProperties() == null) { this.innerProperties = new SubnetPropertiesFormatInner(); } - this.innerProperties().withApplicationGatewayIpConfigurations(applicationGatewayIpConfigurations); + this.innerProperties().withApplicationGatewayIPConfigurations(applicationGatewayIPConfigurations); return this; } @@ -574,6 +547,7 @@ public SubnetInner withServiceGateway(SubResource serviceGateway) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -587,9 +561,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -610,14 +583,14 @@ public static SubnetInner fromJson(JsonReader jsonReader) throws IOException { if ("id".equals(fieldName)) { deserializedSubnetInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedSubnetInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedSubnetInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedSubnetInner.innerProperties = SubnetPropertiesFormatInner.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedSubnetInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedSubnetInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedSubnetInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java index 3947dab720e2..73d614fa7bde 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -121,7 +121,7 @@ public final class SubnetPropertiesFormatInner implements JsonSerializable applicationGatewayIpConfigurations; + private List applicationGatewayIPConfigurations; /* * Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property @@ -443,25 +443,25 @@ public SubnetPropertiesFormatInner withPrivateLinkServiceNetworkPolicies( } /** - * Get the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network + * Get the applicationGatewayIPConfigurations property: Application gateway IP configurations of virtual network * resource. * - * @return the applicationGatewayIpConfigurations value. + * @return the applicationGatewayIPConfigurations value. */ - public List applicationGatewayIpConfigurations() { - return this.applicationGatewayIpConfigurations; + public List applicationGatewayIPConfigurations() { + return this.applicationGatewayIPConfigurations; } /** - * Set the applicationGatewayIpConfigurations property: Application gateway IP configurations of virtual network + * Set the applicationGatewayIPConfigurations property: Application gateway IP configurations of virtual network * resource. * - * @param applicationGatewayIpConfigurations the applicationGatewayIpConfigurations value to set. + * @param applicationGatewayIPConfigurations the applicationGatewayIPConfigurations value to set. * @return the SubnetPropertiesFormatInner object itself. */ - public SubnetPropertiesFormatInner withApplicationGatewayIpConfigurations( - List applicationGatewayIpConfigurations) { - this.applicationGatewayIpConfigurations = applicationGatewayIpConfigurations; + public SubnetPropertiesFormatInner withApplicationGatewayIPConfigurations( + List applicationGatewayIPConfigurations) { + this.applicationGatewayIPConfigurations = applicationGatewayIPConfigurations; return this; } @@ -588,8 +588,8 @@ public void validate() { if (delegations() != null) { delegations().forEach(e -> e.validate()); } - if (applicationGatewayIpConfigurations() != null) { - applicationGatewayIpConfigurations().forEach(e -> e.validate()); + if (applicationGatewayIPConfigurations() != null) { + applicationGatewayIPConfigurations().forEach(e -> e.validate()); } if (ipamPoolPrefixAllocations() != null) { ipamPoolPrefixAllocations().forEach(e -> e.validate()); @@ -618,7 +618,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.privateEndpointNetworkPolicies == null ? null : this.privateEndpointNetworkPolicies.toString()); jsonWriter.writeStringField("privateLinkServiceNetworkPolicies", this.privateLinkServiceNetworkPolicies == null ? null : this.privateLinkServiceNetworkPolicies.toString()); - jsonWriter.writeArrayField("applicationGatewayIPConfigurations", this.applicationGatewayIpConfigurations, + jsonWriter.writeArrayField("applicationGatewayIPConfigurations", this.applicationGatewayIPConfigurations, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("sharingScope", this.sharingScope == null ? null : this.sharingScope.toString()); jsonWriter.writeBooleanField("defaultOutboundAccess", this.defaultOutboundAccess); @@ -701,10 +701,10 @@ public static SubnetPropertiesFormatInner fromJson(JsonReader jsonReader) throws deserializedSubnetPropertiesFormatInner.privateLinkServiceNetworkPolicies = VirtualNetworkPrivateLinkServiceNetworkPolicies.fromString(reader.getString()); } else if ("applicationGatewayIPConfigurations".equals(fieldName)) { - List applicationGatewayIpConfigurations + List applicationGatewayIPConfigurations = reader.readArray(reader1 -> ApplicationGatewayIpConfigurationInner.fromJson(reader1)); - deserializedSubnetPropertiesFormatInner.applicationGatewayIpConfigurations - = applicationGatewayIpConfigurations; + deserializedSubnetPropertiesFormatInner.applicationGatewayIPConfigurations + = applicationGatewayIPConfigurations; } else if ("sharingScope".equals(fieldName)) { deserializedSubnetPropertiesFormatInner.sharingScope = SharingScope.fromString(reader.getString()); } else if ("defaultOutboundAccess".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceInner.java index d8b6fca06246..9d91876362bf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceInner.java @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.network.models.ProxyResourceWithReadOnlyID; import com.azure.resourcemanager.network.models.SwapResourceProperties; import java.io.IOException; @@ -16,26 +16,26 @@ * SwapResource to represent slot type on the specified cloud service. */ @Fluent -public final class SwapResourceInner implements JsonSerializable { +public final class SwapResourceInner extends ProxyResourceWithReadOnlyID { /* - * Resource Id. + * Swap resource properties */ - private String id; + private SwapResourceProperties properties; /* - * Resource name. + * Resource type. */ - private String name; + private String type; /* - * Resource type. + * Resource name. */ - private String type; + private String name; /* - * Swap resource properties + * Resource ID. */ - private SwapResourceProperties properties; + private String id; /** * Creates an instance of SwapResourceInner class. @@ -44,21 +44,23 @@ public SwapResourceInner() { } /** - * Get the id property: Resource Id. + * Get the properties property: Swap resource properties. * - * @return the id value. + * @return the properties value. */ - public String id() { - return this.id; + public SwapResourceProperties properties() { + return this.properties; } /** - * Get the name property: Resource name. + * Set the properties property: Swap resource properties. * - * @return the name value. + * @param properties the properties value to set. + * @return the SwapResourceInner object itself. */ - public String name() { - return this.name; + public SwapResourceInner withProperties(SwapResourceProperties properties) { + this.properties = properties; + return this; } /** @@ -66,28 +68,29 @@ public String name() { * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Get the properties property: Swap resource properties. + * Get the name property: Resource name. * - * @return the properties value. + * @return the name value. */ - public SwapResourceProperties properties() { - return this.properties; + @Override + public String name() { + return this.name; } /** - * Set the properties property: Swap resource properties. + * Get the id property: Resource ID. * - * @param properties the properties value to set. - * @return the SwapResourceInner object itself. + * @return the id value. */ - public SwapResourceInner withProperties(SwapResourceProperties properties) { - this.properties = properties; - return this; + @Override + public String id() { + return this.id; } /** @@ -95,6 +98,7 @@ public SwapResourceInner withProperties(SwapResourceProperties properties) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (properties() != null) { properties().validate(); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceListResultInner.java index 2961944708ad..c9978a4beca0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * SwapResource List with single entry to represent slot type on the specified cloud service. */ -@Fluent +@Immutable public final class SwapResourceListResultInner implements JsonSerializable { /* * The value property. @@ -25,7 +25,7 @@ public final class SwapResourceListResultInner implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The value property. - * - * @param value the value value to set. - * @return the SwapResourceListResultInner object itself. - */ - public SwapResourceListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TopologyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TopologyInner.java index 1cd686f04fc1..496381ecd8fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TopologyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TopologyInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * Topology of the specified resource group. */ -@Fluent +@Immutable public final class TopologyInner implements JsonSerializable { /* * GUID representing the operation id. @@ -43,7 +43,7 @@ public final class TopologyInner implements JsonSerializable { /** * Creates an instance of TopologyInner class. */ - public TopologyInner() { + private TopologyInner() { } /** @@ -82,17 +82,6 @@ public List resources() { return this.resources; } - /** - * Set the resources property: A list of topology resources. - * - * @param resources the resources value to set. - * @return the TopologyInner object itself. - */ - public TopologyInner withResources(List resources) { - this.resources = resources; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java index 7cd2c909b33d..9b0752a70ef3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingResultInner.java index 2e2487c9ea48..2b718aa36f6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -19,7 +19,7 @@ /** * Troubleshooting information gained from specified resource. */ -@Fluent +@Immutable public final class TroubleshootingResultInner implements JsonSerializable { /* * The start time of the troubleshooting. @@ -44,7 +44,7 @@ public final class TroubleshootingResultInner implements JsonSerializable results() { return this.results; } - /** - * Set the results property: Information from troubleshooting. - * - * @param results the results value to set. - * @return the TroubleshootingResultInner object itself. - */ - public TroubleshootingResultInner withResults(List results) { - this.results = results; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java index 683b2a131411..fc40878a1bf2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The network resource usage. */ -@Fluent +@Immutable public final class UsageInner implements JsonSerializable { /* * Resource identifier. @@ -47,7 +47,7 @@ public final class UsageInner implements JsonSerializable { /** * Creates an instance of UsageInner class. */ - public UsageInner() { + private UsageInner() { } /** @@ -68,17 +68,6 @@ public UsageUnit unit() { return this.unit; } - /** - * Set the unit property: An enum describing the unit of measurement. - * - * @param unit the unit value to set. - * @return the UsageInner object itself. - */ - public UsageInner withUnit(UsageUnit unit) { - this.unit = unit; - return this; - } - /** * Get the currentValue property: The current value of the usage. * @@ -88,17 +77,6 @@ public long currentValue() { return this.currentValue; } - /** - * Set the currentValue property: The current value of the usage. - * - * @param currentValue the currentValue value to set. - * @return the UsageInner object itself. - */ - public UsageInner withCurrentValue(long currentValue) { - this.currentValue = currentValue; - return this; - } - /** * Get the limit property: The limit of usage. * @@ -108,17 +86,6 @@ public long limit() { return this.limit; } - /** - * Set the limit property: The limit of usage. - * - * @param limit the limit value to set. - * @return the UsageInner object itself. - */ - public UsageInner withLimit(long limit) { - this.limit = limit; - return this; - } - /** * Get the name property: The name of the type of usage. * @@ -128,17 +95,6 @@ public UsageName name() { return this.name; } - /** - * Set the name property: The name of the type of usage. - * - * @param name the name value to set. - * @return the UsageInner object itself. - */ - public UsageInner withName(UsageName name) { - this.name = name; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VerificationIpFlowResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VerificationIpFlowResultInner.java index fe288c8e7c2e..426e8d408e91 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VerificationIpFlowResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VerificationIpFlowResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Results of IP flow verification on the target resource. */ -@Fluent +@Immutable public final class VerificationIpFlowResultInner implements JsonSerializable { /* * Indicates whether the traffic is allowed or denied. @@ -30,7 +30,7 @@ public final class VerificationIpFlowResultInner implements JsonSerializable tags = reader.readMap(reader1 -> reader1.getString()); deserializedVerifierWorkspaceInner.withTags(tags); @@ -207,6 +208,8 @@ public static VerifierWorkspaceInner fromJson(JsonReader jsonReader) throws IOEx deserializedVerifierWorkspaceInner.properties = VerifierWorkspaceProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedVerifierWorkspaceInner.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedVerifierWorkspaceInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteInner.java index 82a82c38fa7e..436e66390838 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteInner.java @@ -1,40 +1,35 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.Office365PolicyProperties; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import java.io.IOException; /** * Virtual Appliance Site resource. */ @Fluent -public final class VirtualApplianceSiteInner extends SubResource { +public final class VirtualApplianceSiteInner extends SubResourceModel { /* * The properties of the Virtual Appliance Sites. */ private VirtualApplianceSiteProperties innerProperties; - /* - * Name of the virtual appliance site. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ private String etag; /* - * Site type. + * Resource type. */ private String type; @@ -53,26 +48,6 @@ private VirtualApplianceSiteProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: Name of the virtual appliance site. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Name of the virtual appliance site. - * - * @param name the name value to set. - * @return the VirtualApplianceSiteInner object itself. - */ - public VirtualApplianceSiteInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -83,14 +58,24 @@ public String etag() { } /** - * Get the type property: Site type. + * Get the type property: Resource type. * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public VirtualApplianceSiteInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -160,6 +145,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -173,8 +159,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -195,15 +181,15 @@ public static VirtualApplianceSiteInner fromJson(JsonReader jsonReader) throws I if ("id".equals(fieldName)) { deserializedVirtualApplianceSiteInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVirtualApplianceSiteInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVirtualApplianceSiteInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVirtualApplianceSiteInner.innerProperties = VirtualApplianceSiteProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedVirtualApplianceSiteInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedVirtualApplianceSiteInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVirtualApplianceSiteInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteProperties.java index ce4b5e59d32d..d9d4adfface6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubEffectiveRouteListInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubEffectiveRouteListInner.java index 2b569ef0bff7..20b19f789a0a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubEffectiveRouteListInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubEffectiveRouteListInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * EffectiveRoutes List. */ -@Fluent +@Immutable public final class VirtualHubEffectiveRouteListInner implements JsonSerializable { /* * The list of effective routes configured on the virtual hub or the specified resource. @@ -26,7 +26,7 @@ public final class VirtualHubEffectiveRouteListInner implements JsonSerializable /** * Creates an instance of VirtualHubEffectiveRouteListInner class. */ - public VirtualHubEffectiveRouteListInner() { + private VirtualHubEffectiveRouteListInner() { } /** @@ -38,17 +38,6 @@ public List value() { return this.value; } - /** - * Set the value property: The list of effective routes configured on the virtual hub or the specified resource. - * - * @param value the value value to set. - * @return the VirtualHubEffectiveRouteListInner object itself. - */ - public VirtualHubEffectiveRouteListInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubInner.java index dd14a9193dbf..473747169a5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -364,27 +364,27 @@ public VirtualHubInner withSecurityProviderName(String securityProviderName) { } /** - * Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this + * Get the virtualHubRouteTableV2s property: List of all virtual hub route table v2s associated with this * VirtualHub. * - * @return the virtualHubRouteTableV2S value. + * @return the virtualHubRouteTableV2s value. */ - public List virtualHubRouteTableV2S() { - return this.innerProperties() == null ? null : this.innerProperties().virtualHubRouteTableV2S(); + public List virtualHubRouteTableV2s() { + return this.innerProperties() == null ? null : this.innerProperties().virtualHubRouteTableV2s(); } /** - * Set the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this + * Set the virtualHubRouteTableV2s property: List of all virtual hub route table v2s associated with this * VirtualHub. * - * @param virtualHubRouteTableV2S the virtualHubRouteTableV2S value to set. + * @param virtualHubRouteTableV2s the virtualHubRouteTableV2s value to set. * @return the VirtualHubInner object itself. */ - public VirtualHubInner withVirtualHubRouteTableV2S(List virtualHubRouteTableV2S) { + public VirtualHubInner withVirtualHubRouteTableV2s(List virtualHubRouteTableV2s) { if (this.innerProperties() == null) { this.innerProperties = new VirtualHubProperties(); } - this.innerProperties().withVirtualHubRouteTableV2S(virtualHubRouteTableV2S); + this.innerProperties().withVirtualHubRouteTableV2s(virtualHubRouteTableV2s); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubProperties.java index a3b66989fb4a..6c9561139b38 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -77,7 +77,7 @@ public final class VirtualHubProperties implements JsonSerializable virtualHubRouteTableV2S; + private List virtualHubRouteTableV2s; /* * The sku of this VirtualHub. @@ -330,24 +330,24 @@ public VirtualHubProperties withSecurityProviderName(String securityProviderName } /** - * Get the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this + * Get the virtualHubRouteTableV2s property: List of all virtual hub route table v2s associated with this * VirtualHub. * - * @return the virtualHubRouteTableV2S value. + * @return the virtualHubRouteTableV2s value. */ - public List virtualHubRouteTableV2S() { - return this.virtualHubRouteTableV2S; + public List virtualHubRouteTableV2s() { + return this.virtualHubRouteTableV2s; } /** - * Set the virtualHubRouteTableV2S property: List of all virtual hub route table v2s associated with this + * Set the virtualHubRouteTableV2s property: List of all virtual hub route table v2s associated with this * VirtualHub. * - * @param virtualHubRouteTableV2S the virtualHubRouteTableV2S value to set. + * @param virtualHubRouteTableV2s the virtualHubRouteTableV2s value to set. * @return the VirtualHubProperties object itself. */ - public VirtualHubProperties withVirtualHubRouteTableV2S(List virtualHubRouteTableV2S) { - this.virtualHubRouteTableV2S = virtualHubRouteTableV2S; + public VirtualHubProperties withVirtualHubRouteTableV2s(List virtualHubRouteTableV2s) { + this.virtualHubRouteTableV2s = virtualHubRouteTableV2s; return this; } @@ -537,8 +537,8 @@ public void validate() { if (routeTable() != null) { routeTable().validate(); } - if (virtualHubRouteTableV2S() != null) { - virtualHubRouteTableV2S().forEach(e -> e.validate()); + if (virtualHubRouteTableV2s() != null) { + virtualHubRouteTableV2s().forEach(e -> e.validate()); } if (virtualRouterAutoScaleConfiguration() != null) { virtualRouterAutoScaleConfiguration().validate(); @@ -560,7 +560,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("addressPrefix", this.addressPrefix); jsonWriter.writeJsonField("routeTable", this.routeTable); jsonWriter.writeStringField("securityProviderName", this.securityProviderName); - jsonWriter.writeArrayField("virtualHubRouteTableV2s", this.virtualHubRouteTableV2S, + jsonWriter.writeArrayField("virtualHubRouteTableV2s", this.virtualHubRouteTableV2s, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("sku", this.sku); jsonWriter.writeNumberField("virtualRouterAsn", this.virtualRouterAsn); @@ -612,9 +612,9 @@ public static VirtualHubProperties fromJson(JsonReader jsonReader) throws IOExce } else if ("securityProviderName".equals(fieldName)) { deserializedVirtualHubProperties.securityProviderName = reader.getString(); } else if ("virtualHubRouteTableV2s".equals(fieldName)) { - List virtualHubRouteTableV2S + List virtualHubRouteTableV2s = reader.readArray(reader1 -> VirtualHubRouteTableV2Inner.fromJson(reader1)); - deserializedVirtualHubProperties.virtualHubRouteTableV2S = virtualHubRouteTableV2S; + deserializedVirtualHubProperties.virtualHubRouteTableV2s = virtualHubRouteTableV2s; } else if ("sku".equals(fieldName)) { deserializedVirtualHubProperties.sku = reader.getString(); } else if ("routingState".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Inner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Inner.java index 4a2d90d3ae63..627a2bbc408a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Inner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Inner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Properties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Properties.java index 7b259743d358..a4f762b12588 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Properties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Properties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java index 76567d24024a..e0cc613c4547 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java index f2ae189d40e2..60392e236957 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * Properties of virtual network appliance IP configuration. */ -@Fluent +@Immutable public final class VirtualNetworkApplianceIpConfigurationProperties implements JsonSerializable { /* @@ -48,7 +48,7 @@ public final class VirtualNetworkApplianceIpConfigurationProperties /** * Creates an instance of VirtualNetworkApplianceIpConfigurationProperties class. */ - public VirtualNetworkApplianceIpConfigurationProperties() { + private VirtualNetworkApplianceIpConfigurationProperties() { } /** @@ -60,17 +60,6 @@ public String privateIpAddress() { return this.privateIpAddress; } - /** - * Set the privateIpAddress property: The private IP address of the IP configuration. - * - * @param privateIpAddress the privateIpAddress value to set. - * @return the VirtualNetworkApplianceIpConfigurationProperties object itself. - */ - public VirtualNetworkApplianceIpConfigurationProperties withPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - return this; - } - /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -80,18 +69,6 @@ public IpAllocationMethod privateIpAllocationMethod() { return this.privateIpAllocationMethod; } - /** - * Set the privateIpAllocationMethod property: The private IP address allocation method. - * - * @param privateIpAllocationMethod the privateIpAllocationMethod value to set. - * @return the VirtualNetworkApplianceIpConfigurationProperties object itself. - */ - public VirtualNetworkApplianceIpConfigurationProperties - withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) { - this.privateIpAllocationMethod = privateIpAllocationMethod; - return this; - } - /** * Get the primary property: Whether the ip configuration is primary or not. * @@ -101,17 +78,6 @@ public Boolean primary() { return this.primary; } - /** - * Set the primary property: Whether the ip configuration is primary or not. - * - * @param primary the primary value to set. - * @return the VirtualNetworkApplianceIpConfigurationProperties object itself. - */ - public VirtualNetworkApplianceIpConfigurationProperties withPrimary(Boolean primary) { - this.primary = primary; - return this; - } - /** * Get the provisioningState property: The provisioning state of the private link service IP configuration resource. * @@ -130,18 +96,6 @@ public IpVersion privateIpAddressVersion() { return this.privateIpAddressVersion; } - /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. - * - * @param privateIpAddressVersion the privateIpAddressVersion value to set. - * @return the VirtualNetworkApplianceIpConfigurationProperties object itself. - */ - public VirtualNetworkApplianceIpConfigurationProperties - withPrivateIpAddressVersion(IpVersion privateIpAddressVersion) { - this.privateIpAddressVersion = privateIpAddressVersion; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java index 4000fa975d34..ff3db7af03c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java index b5f030623a4f..afb4f7bddfbe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java index d52e15f6ab16..4331614bf17c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; @@ -28,13 +28,12 @@ /** * A common class for general resource information. */ -@Fluent +@Immutable public final class VirtualNetworkGatewayConnectionListEntityInner extends Resource { /* * Properties of the virtual network gateway connection. */ - private VirtualNetworkGatewayConnectionListEntityPropertiesFormat innerProperties - = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); + private VirtualNetworkGatewayConnectionListEntityPropertiesFormat innerProperties; /* * A unique read-only string that changes whenever the resource is updated. @@ -59,7 +58,7 @@ public final class VirtualNetworkGatewayConnectionListEntityInner extends Resour /** * Creates an instance of VirtualNetworkGatewayConnectionListEntityInner class. */ - public VirtualNetworkGatewayConnectionListEntityInner() { + private VirtualNetworkGatewayConnectionListEntityInner() { } /** @@ -89,17 +88,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -120,24 +108,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public VirtualNetworkGatewayConnectionListEntityInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public VirtualNetworkGatewayConnectionListEntityInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the authorizationKey property: The authorizationKey. * @@ -147,20 +117,6 @@ public String authorizationKey() { return this.innerProperties() == null ? null : this.innerProperties().authorizationKey(); } - /** - * Set the authorizationKey property: The authorizationKey. - * - * @param authorizationKey the authorizationKey value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withAuthorizationKey(String authorizationKey) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withAuthorizationKey(authorizationKey); - return this; - } - /** * Get the virtualNetworkGateway1 property: The reference to virtual network gateway resource. * @@ -170,21 +126,6 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway1() { return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkGateway1(); } - /** - * Set the virtualNetworkGateway1 property: The reference to virtual network gateway resource. - * - * @param virtualNetworkGateway1 the virtualNetworkGateway1 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withVirtualNetworkGateway1(VirtualNetworkConnectionGatewayReference virtualNetworkGateway1) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withVirtualNetworkGateway1(virtualNetworkGateway1); - return this; - } - /** * Get the virtualNetworkGateway2 property: The reference to virtual network gateway resource. * @@ -194,21 +135,6 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway2() { return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkGateway2(); } - /** - * Set the virtualNetworkGateway2 property: The reference to virtual network gateway resource. - * - * @param virtualNetworkGateway2 the virtualNetworkGateway2 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withVirtualNetworkGateway2(VirtualNetworkConnectionGatewayReference virtualNetworkGateway2) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withVirtualNetworkGateway2(virtualNetworkGateway2); - return this; - } - /** * Get the localNetworkGateway2 property: The reference to local network gateway resource. * @@ -218,21 +144,6 @@ public VirtualNetworkConnectionGatewayReference localNetworkGateway2() { return this.innerProperties() == null ? null : this.innerProperties().localNetworkGateway2(); } - /** - * Set the localNetworkGateway2 property: The reference to local network gateway resource. - * - * @param localNetworkGateway2 the localNetworkGateway2 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withLocalNetworkGateway2(VirtualNetworkConnectionGatewayReference localNetworkGateway2) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withLocalNetworkGateway2(localNetworkGateway2); - return this; - } - /** * Get the connectionType property: Gateway connection type. * @@ -242,21 +153,6 @@ public VirtualNetworkGatewayConnectionType connectionType() { return this.innerProperties() == null ? null : this.innerProperties().connectionType(); } - /** - * Set the connectionType property: Gateway connection type. - * - * @param connectionType the connectionType value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withConnectionType(VirtualNetworkGatewayConnectionType connectionType) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withConnectionType(connectionType); - return this; - } - /** * Get the connectionProtocol property: Connection protocol used for this connection. * @@ -266,21 +162,6 @@ public VirtualNetworkGatewayConnectionProtocol connectionProtocol() { return this.innerProperties() == null ? null : this.innerProperties().connectionProtocol(); } - /** - * Set the connectionProtocol property: Connection protocol used for this connection. - * - * @param connectionProtocol the connectionProtocol value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol connectionProtocol) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withConnectionProtocol(connectionProtocol); - return this; - } - /** * Get the routingWeight property: The routing weight. * @@ -290,20 +171,6 @@ public Integer routingWeight() { return this.innerProperties() == null ? null : this.innerProperties().routingWeight(); } - /** - * Set the routingWeight property: The routing weight. - * - * @param routingWeight the routingWeight value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withRoutingWeight(Integer routingWeight) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withRoutingWeight(routingWeight); - return this; - } - /** * Get the connectionMode property: The connection mode for this connection. * @@ -313,21 +180,6 @@ public VirtualNetworkGatewayConnectionMode connectionMode() { return this.innerProperties() == null ? null : this.innerProperties().connectionMode(); } - /** - * Set the connectionMode property: The connection mode for this connection. - * - * @param connectionMode the connectionMode value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withConnectionMode(VirtualNetworkGatewayConnectionMode connectionMode) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withConnectionMode(connectionMode); - return this; - } - /** * Get the sharedKey property: The IPSec shared key. We will no longer return sharedKey in * VirtualNetworkGatewayConnection Create/Update/Get/List/UpdateTags APIs response. Please use @@ -339,22 +191,6 @@ public String sharedKey() { return this.innerProperties() == null ? null : this.innerProperties().sharedKey(); } - /** - * Set the sharedKey property: The IPSec shared key. We will no longer return sharedKey in - * VirtualNetworkGatewayConnection Create/Update/Get/List/UpdateTags APIs response. Please use - * VirtualNetworkGatewayConnection GetSharedKey API to fetch connection sharedKey. - * - * @param sharedKey the sharedKey value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withSharedKey(String sharedKey) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withSharedKey(sharedKey); - return this; - } - /** * Get the connectionStatus property: Virtual Network Gateway connection status. * @@ -400,20 +236,6 @@ public SubResource peer() { return this.innerProperties() == null ? null : this.innerProperties().peer(); } - /** - * Set the peer property: The reference to peerings resource. - * - * @param peer the peer value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withPeer(SubResource peer) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withPeer(peer); - return this; - } - /** * Get the enableBgp property: EnableBgp flag. * @@ -423,20 +245,6 @@ public Boolean enableBgp() { return this.innerProperties() == null ? null : this.innerProperties().enableBgp(); } - /** - * Set the enableBgp property: EnableBgp flag. - * - * @param enableBgp the enableBgp value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withEnableBgp(Boolean enableBgp) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withEnableBgp(enableBgp); - return this; - } - /** * Get the gatewayCustomBgpIpAddresses property: GatewayCustomBgpIpAddresses to be used for virtual network gateway * Connection. @@ -447,22 +255,6 @@ public List gatewayCustomBgpIpAddresse return this.innerProperties() == null ? null : this.innerProperties().gatewayCustomBgpIpAddresses(); } - /** - * Set the gatewayCustomBgpIpAddresses property: GatewayCustomBgpIpAddresses to be used for virtual network gateway - * Connection. - * - * @param gatewayCustomBgpIpAddresses the gatewayCustomBgpIpAddresses value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withGatewayCustomBgpIpAddresses(List gatewayCustomBgpIpAddresses) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withGatewayCustomBgpIpAddresses(gatewayCustomBgpIpAddresses); - return this; - } - /** * Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors. * @@ -472,21 +264,6 @@ public Boolean usePolicyBasedTrafficSelectors() { return this.innerProperties() == null ? null : this.innerProperties().usePolicyBasedTrafficSelectors(); } - /** - * Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors. - * - * @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withUsePolicyBasedTrafficSelectors(usePolicyBasedTrafficSelectors); - return this; - } - /** * Get the ipsecPolicies property: The IPSec Policies to be considered by this connection. * @@ -496,20 +273,6 @@ public List ipsecPolicies() { return this.innerProperties() == null ? null : this.innerProperties().ipsecPolicies(); } - /** - * Set the ipsecPolicies property: The IPSec Policies to be considered by this connection. - * - * @param ipsecPolicies the ipsecPolicies value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner withIpsecPolicies(List ipsecPolicies) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withIpsecPolicies(ipsecPolicies); - return this; - } - /** * Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection. * @@ -519,21 +282,6 @@ public List trafficSelectorPolicies() { return this.innerProperties() == null ? null : this.innerProperties().trafficSelectorPolicies(); } - /** - * Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection. - * - * @param trafficSelectorPolicies the trafficSelectorPolicies value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withTrafficSelectorPolicies(List trafficSelectorPolicies) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withTrafficSelectorPolicies(trafficSelectorPolicies); - return this; - } - /** * Get the resourceGuid property: The resource GUID property of the virtual network gateway connection resource. * @@ -561,21 +309,6 @@ public Boolean expressRouteGatewayBypass() { return this.innerProperties() == null ? null : this.innerProperties().expressRouteGatewayBypass(); } - /** - * Set the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding. - * - * @param expressRouteGatewayBypass the expressRouteGatewayBypass value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withExpressRouteGatewayBypass(Boolean expressRouteGatewayBypass) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withExpressRouteGatewayBypass(expressRouteGatewayBypass); - return this; - } - /** * Get the enablePrivateLinkFastPath property: Bypass the ExpressRoute gateway when accessing private-links. * ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. @@ -586,22 +319,6 @@ public Boolean enablePrivateLinkFastPath() { return this.innerProperties() == null ? null : this.innerProperties().enablePrivateLinkFastPath(); } - /** - * Set the enablePrivateLinkFastPath property: Bypass the ExpressRoute gateway when accessing private-links. - * ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. - * - * @param enablePrivateLinkFastPath the enablePrivateLinkFastPath value to set. - * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. - */ - public VirtualNetworkGatewayConnectionListEntityInner - withEnablePrivateLinkFastPath(Boolean enablePrivateLinkFastPath) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkGatewayConnectionListEntityPropertiesFormat(); - } - this.innerProperties().withEnablePrivateLinkFastPath(enablePrivateLinkFastPath); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java index ac181775f417..f4890881c7eb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; @@ -27,7 +27,7 @@ /** * VirtualNetworkGatewayConnection properties. */ -@Fluent +@Immutable public final class VirtualNetworkGatewayConnectionListEntityPropertiesFormat implements JsonSerializable { /* @@ -151,7 +151,7 @@ public final class VirtualNetworkGatewayConnectionListEntityPropertiesFormat /** * Creates an instance of VirtualNetworkGatewayConnectionListEntityPropertiesFormat class. */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat() { + private VirtualNetworkGatewayConnectionListEntityPropertiesFormat() { } /** @@ -163,17 +163,6 @@ public String authorizationKey() { return this.authorizationKey; } - /** - * Set the authorizationKey property: The authorizationKey. - * - * @param authorizationKey the authorizationKey value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat withAuthorizationKey(String authorizationKey) { - this.authorizationKey = authorizationKey; - return this; - } - /** * Get the virtualNetworkGateway1 property: The reference to virtual network gateway resource. * @@ -183,18 +172,6 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway1() { return this.virtualNetworkGateway1; } - /** - * Set the virtualNetworkGateway1 property: The reference to virtual network gateway resource. - * - * @param virtualNetworkGateway1 the virtualNetworkGateway1 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withVirtualNetworkGateway1(VirtualNetworkConnectionGatewayReference virtualNetworkGateway1) { - this.virtualNetworkGateway1 = virtualNetworkGateway1; - return this; - } - /** * Get the virtualNetworkGateway2 property: The reference to virtual network gateway resource. * @@ -204,18 +181,6 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway2() { return this.virtualNetworkGateway2; } - /** - * Set the virtualNetworkGateway2 property: The reference to virtual network gateway resource. - * - * @param virtualNetworkGateway2 the virtualNetworkGateway2 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withVirtualNetworkGateway2(VirtualNetworkConnectionGatewayReference virtualNetworkGateway2) { - this.virtualNetworkGateway2 = virtualNetworkGateway2; - return this; - } - /** * Get the localNetworkGateway2 property: The reference to local network gateway resource. * @@ -225,18 +190,6 @@ public VirtualNetworkConnectionGatewayReference localNetworkGateway2() { return this.localNetworkGateway2; } - /** - * Set the localNetworkGateway2 property: The reference to local network gateway resource. - * - * @param localNetworkGateway2 the localNetworkGateway2 value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withLocalNetworkGateway2(VirtualNetworkConnectionGatewayReference localNetworkGateway2) { - this.localNetworkGateway2 = localNetworkGateway2; - return this; - } - /** * Get the connectionType property: Gateway connection type. * @@ -246,18 +199,6 @@ public VirtualNetworkGatewayConnectionType connectionType() { return this.connectionType; } - /** - * Set the connectionType property: Gateway connection type. - * - * @param connectionType the connectionType value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withConnectionType(VirtualNetworkGatewayConnectionType connectionType) { - this.connectionType = connectionType; - return this; - } - /** * Get the connectionProtocol property: Connection protocol used for this connection. * @@ -267,18 +208,6 @@ public VirtualNetworkGatewayConnectionProtocol connectionProtocol() { return this.connectionProtocol; } - /** - * Set the connectionProtocol property: Connection protocol used for this connection. - * - * @param connectionProtocol the connectionProtocol value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol connectionProtocol) { - this.connectionProtocol = connectionProtocol; - return this; - } - /** * Get the routingWeight property: The routing weight. * @@ -288,17 +217,6 @@ public Integer routingWeight() { return this.routingWeight; } - /** - * Set the routingWeight property: The routing weight. - * - * @param routingWeight the routingWeight value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat withRoutingWeight(Integer routingWeight) { - this.routingWeight = routingWeight; - return this; - } - /** * Get the connectionMode property: The connection mode for this connection. * @@ -308,18 +226,6 @@ public VirtualNetworkGatewayConnectionMode connectionMode() { return this.connectionMode; } - /** - * Set the connectionMode property: The connection mode for this connection. - * - * @param connectionMode the connectionMode value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withConnectionMode(VirtualNetworkGatewayConnectionMode connectionMode) { - this.connectionMode = connectionMode; - return this; - } - /** * Get the sharedKey property: The IPSec shared key. We will no longer return sharedKey in * VirtualNetworkGatewayConnection Create/Update/Get/List/UpdateTags APIs response. Please use @@ -331,19 +237,6 @@ public String sharedKey() { return this.sharedKey; } - /** - * Set the sharedKey property: The IPSec shared key. We will no longer return sharedKey in - * VirtualNetworkGatewayConnection Create/Update/Get/List/UpdateTags APIs response. Please use - * VirtualNetworkGatewayConnection GetSharedKey API to fetch connection sharedKey. - * - * @param sharedKey the sharedKey value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat withSharedKey(String sharedKey) { - this.sharedKey = sharedKey; - return this; - } - /** * Get the connectionStatus property: Virtual Network Gateway connection status. * @@ -389,17 +282,6 @@ public SubResource peer() { return this.peer; } - /** - * Set the peer property: The reference to peerings resource. - * - * @param peer the peer value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat withPeer(SubResource peer) { - this.peer = peer; - return this; - } - /** * Get the enableBgp property: EnableBgp flag. * @@ -409,17 +291,6 @@ public Boolean enableBgp() { return this.enableBgp; } - /** - * Set the enableBgp property: EnableBgp flag. - * - * @param enableBgp the enableBgp value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat withEnableBgp(Boolean enableBgp) { - this.enableBgp = enableBgp; - return this; - } - /** * Get the gatewayCustomBgpIpAddresses property: GatewayCustomBgpIpAddresses to be used for virtual network gateway * Connection. @@ -430,19 +301,6 @@ public List gatewayCustomBgpIpAddresse return this.gatewayCustomBgpIpAddresses; } - /** - * Set the gatewayCustomBgpIpAddresses property: GatewayCustomBgpIpAddresses to be used for virtual network gateway - * Connection. - * - * @param gatewayCustomBgpIpAddresses the gatewayCustomBgpIpAddresses value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withGatewayCustomBgpIpAddresses(List gatewayCustomBgpIpAddresses) { - this.gatewayCustomBgpIpAddresses = gatewayCustomBgpIpAddresses; - return this; - } - /** * Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors. * @@ -452,18 +310,6 @@ public Boolean usePolicyBasedTrafficSelectors() { return this.usePolicyBasedTrafficSelectors; } - /** - * Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors. - * - * @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) { - this.usePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors; - return this; - } - /** * Get the ipsecPolicies property: The IPSec Policies to be considered by this connection. * @@ -473,18 +319,6 @@ public List ipsecPolicies() { return this.ipsecPolicies; } - /** - * Set the ipsecPolicies property: The IPSec Policies to be considered by this connection. - * - * @param ipsecPolicies the ipsecPolicies value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withIpsecPolicies(List ipsecPolicies) { - this.ipsecPolicies = ipsecPolicies; - return this; - } - /** * Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection. * @@ -494,18 +328,6 @@ public List trafficSelectorPolicies() { return this.trafficSelectorPolicies; } - /** - * Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection. - * - * @param trafficSelectorPolicies the trafficSelectorPolicies value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withTrafficSelectorPolicies(List trafficSelectorPolicies) { - this.trafficSelectorPolicies = trafficSelectorPolicies; - return this; - } - /** * Get the resourceGuid property: The resource GUID property of the virtual network gateway connection resource. * @@ -533,18 +355,6 @@ public Boolean expressRouteGatewayBypass() { return this.expressRouteGatewayBypass; } - /** - * Set the expressRouteGatewayBypass property: Bypass ExpressRoute Gateway for data forwarding. - * - * @param expressRouteGatewayBypass the expressRouteGatewayBypass value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withExpressRouteGatewayBypass(Boolean expressRouteGatewayBypass) { - this.expressRouteGatewayBypass = expressRouteGatewayBypass; - return this; - } - /** * Get the enablePrivateLinkFastPath property: Bypass the ExpressRoute gateway when accessing private-links. * ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. @@ -555,19 +365,6 @@ public Boolean enablePrivateLinkFastPath() { return this.enablePrivateLinkFastPath; } - /** - * Set the enablePrivateLinkFastPath property: Bypass the ExpressRoute gateway when accessing private-links. - * ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. - * - * @param enablePrivateLinkFastPath the enablePrivateLinkFastPath value to set. - * @return the VirtualNetworkGatewayConnectionListEntityPropertiesFormat object itself. - */ - public VirtualNetworkGatewayConnectionListEntityPropertiesFormat - withEnablePrivateLinkFastPath(Boolean enablePrivateLinkFastPath) { - this.enablePrivateLinkFastPath = enablePrivateLinkFastPath; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java index 3298a7efcff6..ae46f531452e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java index 06c118f1a3a3..650884e8ad45 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -432,25 +432,25 @@ public VirtualNetworkGatewayInner withEnableHighBandwidthVpnGateway(Boolean enab } /** - * Get the disableIpSecReplayProtection property: disableIPSecReplayProtection flag. + * Get the disableIPSecReplayProtection property: disableIPSecReplayProtection flag. * - * @return the disableIpSecReplayProtection value. + * @return the disableIPSecReplayProtection value. */ - public Boolean disableIpSecReplayProtection() { - return this.innerProperties() == null ? null : this.innerProperties().disableIpSecReplayProtection(); + public Boolean disableIPSecReplayProtection() { + return this.innerProperties() == null ? null : this.innerProperties().disableIPSecReplayProtection(); } /** - * Set the disableIpSecReplayProtection property: disableIPSecReplayProtection flag. + * Set the disableIPSecReplayProtection property: disableIPSecReplayProtection flag. * - * @param disableIpSecReplayProtection the disableIpSecReplayProtection value to set. + * @param disableIPSecReplayProtection the disableIPSecReplayProtection value to set. * @return the VirtualNetworkGatewayInner object itself. */ - public VirtualNetworkGatewayInner withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection) { + public VirtualNetworkGatewayInner withDisableIPSecReplayProtection(Boolean disableIPSecReplayProtection) { if (this.innerProperties() == null) { this.innerProperties = new VirtualNetworkGatewayPropertiesFormat(); } - this.innerProperties().withDisableIpSecReplayProtection(disableIpSecReplayProtection); + this.innerProperties().withDisableIPSecReplayProtection(disableIPSecReplayProtection); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationInner.java index 6a42c35a0d61..19679668aac4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationPropertiesFormat.java index 205235ce3660..0b8fec05bdf4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleInner.java index f444c146b679..17757ba92f6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleInner.java @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VpnNatRuleMapping; import com.azure.resourcemanager.network.models.VpnNatRuleMode; import com.azure.resourcemanager.network.models.VpnNatRuleType; @@ -20,17 +20,12 @@ * VirtualNetworkGatewayNatRule Resource. */ @Fluent -public final class VirtualNetworkGatewayNatRuleInner extends SubResource { +public final class VirtualNetworkGatewayNatRuleInner extends SubResourceModel { /* * Properties of the Virtual Network Gateway NAT rule. */ private VirtualNetworkGatewayNatRuleProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -56,28 +51,6 @@ private VirtualNetworkGatewayNatRuleProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VirtualNetworkGatewayNatRuleInner object itself. - */ - public VirtualNetworkGatewayNatRuleInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -92,10 +65,20 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public VirtualNetworkGatewayNatRuleInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -234,6 +217,7 @@ public VirtualNetworkGatewayNatRuleInner withIpConfigurationId(String ipConfigur * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -247,8 +231,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -270,15 +254,15 @@ public static VirtualNetworkGatewayNatRuleInner fromJson(JsonReader jsonReader) if ("id".equals(fieldName)) { deserializedVirtualNetworkGatewayNatRuleInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVirtualNetworkGatewayNatRuleInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVirtualNetworkGatewayNatRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVirtualNetworkGatewayNatRuleInner.innerProperties = VirtualNetworkGatewayNatRuleProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedVirtualNetworkGatewayNatRuleInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedVirtualNetworkGatewayNatRuleInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVirtualNetworkGatewayNatRuleInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleProperties.java index 5a09285c3660..07649dc226c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java index 6edbaa796ad3..3a8561f3a016 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java index b6afbaed910e..c721a788854b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -85,7 +85,7 @@ public final class VirtualNetworkGatewayPropertiesFormat /* * disableIPSecReplayProtection flag. */ - private Boolean disableIpSecReplayProtection; + private Boolean disableIPSecReplayProtection; /* * The reference to the LocalNetworkGateway resource which represents local network site having default routes. @@ -395,23 +395,23 @@ public Boolean enableHighBandwidthVpnGateway() { } /** - * Get the disableIpSecReplayProtection property: disableIPSecReplayProtection flag. + * Get the disableIPSecReplayProtection property: disableIPSecReplayProtection flag. * - * @return the disableIpSecReplayProtection value. + * @return the disableIPSecReplayProtection value. */ - public Boolean disableIpSecReplayProtection() { - return this.disableIpSecReplayProtection; + public Boolean disableIPSecReplayProtection() { + return this.disableIPSecReplayProtection; } /** - * Set the disableIpSecReplayProtection property: disableIPSecReplayProtection flag. + * Set the disableIPSecReplayProtection property: disableIPSecReplayProtection flag. * - * @param disableIpSecReplayProtection the disableIpSecReplayProtection value to set. + * @param disableIPSecReplayProtection the disableIPSecReplayProtection value to set. * @return the VirtualNetworkGatewayPropertiesFormat object itself. */ public VirtualNetworkGatewayPropertiesFormat - withDisableIpSecReplayProtection(Boolean disableIpSecReplayProtection) { - this.disableIpSecReplayProtection = disableIpSecReplayProtection; + withDisableIPSecReplayProtection(Boolean disableIPSecReplayProtection) { + this.disableIPSecReplayProtection = disableIPSecReplayProtection; return this; } @@ -800,7 +800,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("virtualNetworkGatewayMigrationStatus", this.virtualNetworkGatewayMigrationStatus); jsonWriter.writeBooleanField("activeActive", this.active); jsonWriter.writeBooleanField("enableHighBandwidthVpnGateway", this.enableHighBandwidthVpnGateway); - jsonWriter.writeBooleanField("disableIPSecReplayProtection", this.disableIpSecReplayProtection); + jsonWriter.writeBooleanField("disableIPSecReplayProtection", this.disableIPSecReplayProtection); jsonWriter.writeJsonField("gatewayDefaultSite", this.gatewayDefaultSite); jsonWriter.writeJsonField("sku", this.sku); jsonWriter.writeJsonField("vpnClientConfiguration", this.vpnClientConfiguration); @@ -867,7 +867,7 @@ public static VirtualNetworkGatewayPropertiesFormat fromJson(JsonReader jsonRead deserializedVirtualNetworkGatewayPropertiesFormat.enableHighBandwidthVpnGateway = reader.getNullable(JsonReader::getBoolean); } else if ("disableIPSecReplayProtection".equals(fieldName)) { - deserializedVirtualNetworkGatewayPropertiesFormat.disableIpSecReplayProtection + deserializedVirtualNetworkGatewayPropertiesFormat.disableIPSecReplayProtection = reader.getNullable(JsonReader::getBoolean); } else if ("gatewayDefaultSite".equals(fieldName)) { deserializedVirtualNetworkGatewayPropertiesFormat.gatewayDefaultSite = SubResource.fromJson(reader); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java index 93a21f418365..f2a07f546ca2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -27,14 +27,14 @@ @Fluent public final class VirtualNetworkInner extends Resource { /* - * The extended location of the virtual network. + * Properties of the virtual network. */ - private ExtendedLocation extendedLocation; + private VirtualNetworkPropertiesFormat innerProperties; /* - * Properties of the virtual network. + * The extended location of the virtual network. */ - private VirtualNetworkPropertiesFormat innerProperties; + private ExtendedLocation extendedLocation; /* * A unique read-only string that changes whenever the resource is updated. @@ -62,6 +62,15 @@ public final class VirtualNetworkInner extends Resource { public VirtualNetworkInner() { } + /** + * Get the innerProperties property: Properties of the virtual network. + * + * @return the innerProperties value. + */ + private VirtualNetworkPropertiesFormat innerProperties() { + return this.innerProperties; + } + /** * Get the extendedLocation property: The extended location of the virtual network. * @@ -82,15 +91,6 @@ public VirtualNetworkInner withExtendedLocation(ExtendedLocation extendedLocatio return this; } - /** - * Get the innerProperties property: Properties of the virtual network. - * - * @return the innerProperties value. - */ - private VirtualNetworkPropertiesFormat innerProperties() { - return this.innerProperties; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -490,12 +490,12 @@ public SubResource defaultPublicNatGateway() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (extendedLocation() != null) { - extendedLocation().validate(); - } if (innerProperties() != null) { innerProperties().validate(); } + if (extendedLocation() != null) { + extendedLocation().validate(); + } } /** @@ -506,8 +506,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -537,10 +537,10 @@ public static VirtualNetworkInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedVirtualNetworkInner.withTags(tags); - } else if ("extendedLocation".equals(fieldName)) { - deserializedVirtualNetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedVirtualNetworkInner.innerProperties = VirtualNetworkPropertiesFormat.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedVirtualNetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedVirtualNetworkInner.etag = reader.getString(); } else if ("id".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java index 7a438dbf2ab8..5a9dd80458f4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.AddressSpace; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VirtualNetworkBgpCommunities; import com.azure.resourcemanager.network.models.VirtualNetworkEncryption; import com.azure.resourcemanager.network.models.VirtualNetworkPeeringLevel; @@ -22,17 +23,12 @@ * Peerings in a virtual network resource. */ @Fluent -public final class VirtualNetworkPeeringInner extends SubResource { +public final class VirtualNetworkPeeringInner extends SubResourceModel { /* * Properties of the virtual network peering. */ private VirtualNetworkPeeringPropertiesFormat innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -58,28 +54,6 @@ private VirtualNetworkPeeringPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VirtualNetworkPeeringInner object itself. - */ - public VirtualNetworkPeeringInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -94,18 +68,17 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } /** - * Set the type property: Resource type. - * - * @param type the type value to set. - * @return the VirtualNetworkPeeringInner object itself. + * {@inheritDoc} */ - public VirtualNetworkPeeringInner withType(String type) { - this.type = type; + @Override + public VirtualNetworkPeeringInner withName(String name) { + super.withName(name); return this; } @@ -565,6 +538,7 @@ public VirtualNetworkPeeringInner withRemoteSubnetNames(List remoteSubne * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -578,9 +552,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("type", this.type); return jsonWriter.writeEndObject(); } @@ -601,15 +574,15 @@ public static VirtualNetworkPeeringInner fromJson(JsonReader jsonReader) throws if ("id".equals(fieldName)) { deserializedVirtualNetworkPeeringInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVirtualNetworkPeeringInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVirtualNetworkPeeringInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVirtualNetworkPeeringInner.innerProperties = VirtualNetworkPeeringPropertiesFormat.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedVirtualNetworkPeeringInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedVirtualNetworkPeeringInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVirtualNetworkPeeringInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java index 468bd0eeb4e5..4af5a4559e2c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java index 665ca5692b72..b3e6d12738ca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java index 56774d96b7bc..75d752e8a4f6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -155,61 +155,61 @@ public ProvisioningState provisioningState() { } /** - * Get the destinationNetworkInterfaceIpConfiguration property: The reference to the private IP Address of the + * Get the destinationNetworkInterfaceIPConfiguration property: The reference to the private IP Address of the * collector nic that will receive the tap. * - * @return the destinationNetworkInterfaceIpConfiguration value. + * @return the destinationNetworkInterfaceIPConfiguration value. */ - public NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration() { + public NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIPConfiguration() { return this.innerProperties() == null ? null - : this.innerProperties().destinationNetworkInterfaceIpConfiguration(); + : this.innerProperties().destinationNetworkInterfaceIPConfiguration(); } /** - * Set the destinationNetworkInterfaceIpConfiguration property: The reference to the private IP Address of the + * Set the destinationNetworkInterfaceIPConfiguration property: The reference to the private IP Address of the * collector nic that will receive the tap. * - * @param destinationNetworkInterfaceIpConfiguration the destinationNetworkInterfaceIpConfiguration value to set. + * @param destinationNetworkInterfaceIPConfiguration the destinationNetworkInterfaceIPConfiguration value to set. * @return the VirtualNetworkTapInner object itself. */ - public VirtualNetworkTapInner withDestinationNetworkInterfaceIpConfiguration( - NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration) { + public VirtualNetworkTapInner withDestinationNetworkInterfaceIPConfiguration( + NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIPConfiguration) { if (this.innerProperties() == null) { this.innerProperties = new VirtualNetworkTapPropertiesFormatInner(); } this.innerProperties() - .withDestinationNetworkInterfaceIpConfiguration(destinationNetworkInterfaceIpConfiguration); + .withDestinationNetworkInterfaceIPConfiguration(destinationNetworkInterfaceIPConfiguration); return this; } /** - * Get the destinationLoadBalancerFrontEndIpConfiguration property: The reference to the private IP address on the + * Get the destinationLoadBalancerFrontEndIPConfiguration property: The reference to the private IP address on the * internal Load Balancer that will receive the tap. * - * @return the destinationLoadBalancerFrontEndIpConfiguration value. + * @return the destinationLoadBalancerFrontEndIPConfiguration value. */ - public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration() { + public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIPConfiguration() { return this.innerProperties() == null ? null - : this.innerProperties().destinationLoadBalancerFrontEndIpConfiguration(); + : this.innerProperties().destinationLoadBalancerFrontEndIPConfiguration(); } /** - * Set the destinationLoadBalancerFrontEndIpConfiguration property: The reference to the private IP address on the + * Set the destinationLoadBalancerFrontEndIPConfiguration property: The reference to the private IP address on the * internal Load Balancer that will receive the tap. * - * @param destinationLoadBalancerFrontEndIpConfiguration the destinationLoadBalancerFrontEndIpConfiguration value to + * @param destinationLoadBalancerFrontEndIPConfiguration the destinationLoadBalancerFrontEndIPConfiguration value to * set. * @return the VirtualNetworkTapInner object itself. */ - public VirtualNetworkTapInner withDestinationLoadBalancerFrontEndIpConfiguration( - FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration) { + public VirtualNetworkTapInner withDestinationLoadBalancerFrontEndIPConfiguration( + FrontendIpConfigurationInner destinationLoadBalancerFrontEndIPConfiguration) { if (this.innerProperties() == null) { this.innerProperties = new VirtualNetworkTapPropertiesFormatInner(); } this.innerProperties() - .withDestinationLoadBalancerFrontEndIpConfiguration(destinationLoadBalancerFrontEndIpConfiguration); + .withDestinationLoadBalancerFrontEndIPConfiguration(destinationLoadBalancerFrontEndIPConfiguration); return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java index 782bdefe8e4f..4f1e291c96a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -37,12 +37,12 @@ public final class VirtualNetworkTapPropertiesFormatInner /* * The reference to the private IP Address of the collector nic that will receive the tap. */ - private NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration; + private NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIPConfiguration; /* * The reference to the private IP address on the internal Load Balancer that will receive the tap. */ - private FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration; + private FrontendIpConfigurationInner destinationLoadBalancerFrontEndIPConfiguration; /* * The VXLAN destination port that will receive the tapped traffic. @@ -84,49 +84,49 @@ public ProvisioningState provisioningState() { } /** - * Get the destinationNetworkInterfaceIpConfiguration property: The reference to the private IP Address of the + * Get the destinationNetworkInterfaceIPConfiguration property: The reference to the private IP Address of the * collector nic that will receive the tap. * - * @return the destinationNetworkInterfaceIpConfiguration value. + * @return the destinationNetworkInterfaceIPConfiguration value. */ - public NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration() { - return this.destinationNetworkInterfaceIpConfiguration; + public NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIPConfiguration() { + return this.destinationNetworkInterfaceIPConfiguration; } /** - * Set the destinationNetworkInterfaceIpConfiguration property: The reference to the private IP Address of the + * Set the destinationNetworkInterfaceIPConfiguration property: The reference to the private IP Address of the * collector nic that will receive the tap. * - * @param destinationNetworkInterfaceIpConfiguration the destinationNetworkInterfaceIpConfiguration value to set. + * @param destinationNetworkInterfaceIPConfiguration the destinationNetworkInterfaceIPConfiguration value to set. * @return the VirtualNetworkTapPropertiesFormatInner object itself. */ - public VirtualNetworkTapPropertiesFormatInner withDestinationNetworkInterfaceIpConfiguration( - NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration) { - this.destinationNetworkInterfaceIpConfiguration = destinationNetworkInterfaceIpConfiguration; + public VirtualNetworkTapPropertiesFormatInner withDestinationNetworkInterfaceIPConfiguration( + NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIPConfiguration) { + this.destinationNetworkInterfaceIPConfiguration = destinationNetworkInterfaceIPConfiguration; return this; } /** - * Get the destinationLoadBalancerFrontEndIpConfiguration property: The reference to the private IP address on the + * Get the destinationLoadBalancerFrontEndIPConfiguration property: The reference to the private IP address on the * internal Load Balancer that will receive the tap. * - * @return the destinationLoadBalancerFrontEndIpConfiguration value. + * @return the destinationLoadBalancerFrontEndIPConfiguration value. */ - public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration() { - return this.destinationLoadBalancerFrontEndIpConfiguration; + public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIPConfiguration() { + return this.destinationLoadBalancerFrontEndIPConfiguration; } /** - * Set the destinationLoadBalancerFrontEndIpConfiguration property: The reference to the private IP address on the + * Set the destinationLoadBalancerFrontEndIPConfiguration property: The reference to the private IP address on the * internal Load Balancer that will receive the tap. * - * @param destinationLoadBalancerFrontEndIpConfiguration the destinationLoadBalancerFrontEndIpConfiguration value to + * @param destinationLoadBalancerFrontEndIPConfiguration the destinationLoadBalancerFrontEndIPConfiguration value to * set. * @return the VirtualNetworkTapPropertiesFormatInner object itself. */ - public VirtualNetworkTapPropertiesFormatInner withDestinationLoadBalancerFrontEndIpConfiguration( - FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration) { - this.destinationLoadBalancerFrontEndIpConfiguration = destinationLoadBalancerFrontEndIpConfiguration; + public VirtualNetworkTapPropertiesFormatInner withDestinationLoadBalancerFrontEndIPConfiguration( + FrontendIpConfigurationInner destinationLoadBalancerFrontEndIPConfiguration) { + this.destinationLoadBalancerFrontEndIPConfiguration = destinationLoadBalancerFrontEndIPConfiguration; return this; } @@ -159,11 +159,11 @@ public void validate() { if (networkInterfaceTapConfigurations() != null) { networkInterfaceTapConfigurations().forEach(e -> e.validate()); } - if (destinationNetworkInterfaceIpConfiguration() != null) { - destinationNetworkInterfaceIpConfiguration().validate(); + if (destinationNetworkInterfaceIPConfiguration() != null) { + destinationNetworkInterfaceIPConfiguration().validate(); } - if (destinationLoadBalancerFrontEndIpConfiguration() != null) { - destinationLoadBalancerFrontEndIpConfiguration().validate(); + if (destinationLoadBalancerFrontEndIPConfiguration() != null) { + destinationLoadBalancerFrontEndIPConfiguration().validate(); } } @@ -174,9 +174,9 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("destinationNetworkInterfaceIPConfiguration", - this.destinationNetworkInterfaceIpConfiguration); + this.destinationNetworkInterfaceIPConfiguration); jsonWriter.writeJsonField("destinationLoadBalancerFrontEndIPConfiguration", - this.destinationLoadBalancerFrontEndIpConfiguration); + this.destinationLoadBalancerFrontEndIPConfiguration); jsonWriter.writeNumberField("destinationPort", this.destinationPort); return jsonWriter.writeEndObject(); } @@ -208,10 +208,10 @@ public static VirtualNetworkTapPropertiesFormatInner fromJson(JsonReader jsonRea deserializedVirtualNetworkTapPropertiesFormatInner.provisioningState = ProvisioningState.fromString(reader.getString()); } else if ("destinationNetworkInterfaceIPConfiguration".equals(fieldName)) { - deserializedVirtualNetworkTapPropertiesFormatInner.destinationNetworkInterfaceIpConfiguration + deserializedVirtualNetworkTapPropertiesFormatInner.destinationNetworkInterfaceIPConfiguration = NetworkInterfaceIpConfigurationInner.fromJson(reader); } else if ("destinationLoadBalancerFrontEndIPConfiguration".equals(fieldName)) { - deserializedVirtualNetworkTapPropertiesFormatInner.destinationLoadBalancerFrontEndIpConfiguration + deserializedVirtualNetworkTapPropertiesFormatInner.destinationLoadBalancerFrontEndIPConfiguration = FrontendIpConfigurationInner.fromJson(reader); } else if ("destinationPort".equals(fieldName)) { deserializedVirtualNetworkTapPropertiesFormatInner.destinationPort diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkUsageInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkUsageInner.java index 94fc759ea20f..805a3b15a3ff 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkUsageInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkUsageInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -45,7 +45,7 @@ public final class VirtualNetworkUsageInner implements JsonSerializable { /* * List of VirtualWAN security providers. @@ -26,7 +26,7 @@ public final class VirtualWanSecurityProvidersInner implements JsonSerializable< /** * Creates an instance of VirtualWanSecurityProvidersInner class. */ - public VirtualWanSecurityProvidersInner() { + private VirtualWanSecurityProvidersInner() { } /** @@ -38,18 +38,6 @@ public List supportedProviders() { return this.supportedProviders; } - /** - * Set the supportedProviders property: List of VirtualWAN security providers. - * - * @param supportedProviders the supportedProviders value to set. - * @return the VirtualWanSecurityProvidersInner object itself. - */ - public VirtualWanSecurityProvidersInner - withSupportedProviders(List supportedProviders) { - this.supportedProviders = supportedProviders; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java index 8ffc0af17a29..4ff7ec4ab84e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientConnectionHealthDetailListResultInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientConnectionHealthDetailListResultInner.java index 800759b84d76..9594560f0134 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientConnectionHealthDetailListResultInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientConnectionHealthDetailListResultInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * List of virtual network gateway vpn client connection health. */ -@Fluent +@Immutable public final class VpnClientConnectionHealthDetailListResultInner implements JsonSerializable { /* @@ -27,7 +27,7 @@ public final class VpnClientConnectionHealthDetailListResultInner /** * Creates an instance of VpnClientConnectionHealthDetailListResultInner class. */ - public VpnClientConnectionHealthDetailListResultInner() { + private VpnClientConnectionHealthDetailListResultInner() { } /** @@ -39,17 +39,6 @@ public List value() { return this.value; } - /** - * Set the value property: List of vpn client connection health. - * - * @param value the value value to set. - * @return the VpnClientConnectionHealthDetailListResultInner object itself. - */ - public VpnClientConnectionHealthDetailListResultInner withValue(List value) { - this.value = value; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java index b65827868c6e..03c3ec37ab65 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRevokedCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRevokedCertificatePropertiesFormat.java index 74f5a0bd44f1..4fcbfb6f47c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRevokedCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRevokedCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java index e0d8871a0d63..290618996c24 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionInner.java index f37ddd9d27e7..721a8fcd2ffd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java index 1358c4c2bab4..07ec75638e94 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayInner.java index 309b575c7605..50acf3441bc7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleInner.java index b74f051132b7..bd0503acdeec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VpnNatRuleMapping; import com.azure.resourcemanager.network.models.VpnNatRuleMode; import com.azure.resourcemanager.network.models.VpnNatRuleType; @@ -20,17 +21,12 @@ * VpnGatewayNatRule Resource. */ @Fluent -public final class VpnGatewayNatRuleInner extends SubResource { +public final class VpnGatewayNatRuleInner extends SubResourceModel { /* * Properties of the VpnGateway NAT rule. */ private VpnGatewayNatRuleProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -56,28 +52,6 @@ private VpnGatewayNatRuleProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VpnGatewayNatRuleInner object itself. - */ - public VpnGatewayNatRuleInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -92,10 +66,20 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public VpnGatewayNatRuleInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -252,6 +236,7 @@ public List ingressVpnSiteLinkConnections() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -265,8 +250,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -287,14 +272,14 @@ public static VpnGatewayNatRuleInner fromJson(JsonReader jsonReader) throws IOEx if ("id".equals(fieldName)) { deserializedVpnGatewayNatRuleInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVpnGatewayNatRuleInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVpnGatewayNatRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVpnGatewayNatRuleInner.innerProperties = VpnGatewayNatRuleProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedVpnGatewayNatRuleInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedVpnGatewayNatRuleInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVpnGatewayNatRuleInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleProperties.java index 481e84f2ef57..68f907356e1f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayProperties.java index 2b204cc287f9..74547c164795 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnProfileResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnProfileResponseInner.java index 12716e2f2c5d..806dcbf0aa39 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnProfileResponseInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnProfileResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Vpn Profile Response for package generation. */ -@Fluent +@Immutable public final class VpnProfileResponseInner implements JsonSerializable { /* * URL to the VPN profile. @@ -24,7 +24,7 @@ public final class VpnProfileResponseInner implements JsonSerializable writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("id", this.id); return jsonWriter.writeEndObject(); } @@ -505,7 +485,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VpnServerConfigurationInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VpnServerConfigurationInner. */ public static VpnServerConfigurationInner fromJson(JsonReader jsonReader) throws IOException { @@ -515,8 +494,10 @@ public static VpnServerConfigurationInner fromJson(JsonReader jsonReader) throws String fieldName = reader.getFieldName(); reader.nextToken(); - if ("name".equals(fieldName)) { - deserializedVpnServerConfigurationInner.name = reader.getString(); + if ("id".equals(fieldName)) { + deserializedVpnServerConfigurationInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVpnServerConfigurationInner.withName(reader.getString()); } else if ("type".equals(fieldName)) { deserializedVpnServerConfigurationInner.type = reader.getString(); } else if ("location".equals(fieldName)) { @@ -529,8 +510,6 @@ public static VpnServerConfigurationInner fromJson(JsonReader jsonReader) throws = VpnServerConfigurationProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedVpnServerConfigurationInner.etag = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedVpnServerConfigurationInner.id = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupInner.java index 7fe494f697bc..76f3581dc491 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VpnServerConfigurationPolicyGroupMember; import java.io.IOException; import java.util.List; @@ -18,7 +19,7 @@ * VpnServerConfigurationPolicyGroup Resource. */ @Fluent -public final class VpnServerConfigurationPolicyGroupInner extends SubResource { +public final class VpnServerConfigurationPolicyGroupInner extends SubResourceModel { /* * Properties of the VpnServerConfigurationPolicyGroup. */ @@ -29,11 +30,6 @@ public final class VpnServerConfigurationPolicyGroupInner extends SubResource { */ private String etag; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * Resource type. */ @@ -64,36 +60,24 @@ public String etag() { } /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the type property: Resource type. * - * @return the name value. + * @return the type value. */ - public String name() { - return this.name; + @Override + public String type() { + return this.type; } /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VpnServerConfigurationPolicyGroupInner object itself. + * {@inheritDoc} */ + @Override public VpnServerConfigurationPolicyGroupInner withName(String name) { - this.name = name; + super.withName(name); return this; } - /** - * Get the type property: Resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - /** * {@inheritDoc} */ @@ -196,6 +180,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -209,8 +194,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -232,15 +217,15 @@ public static VpnServerConfigurationPolicyGroupInner fromJson(JsonReader jsonRea if ("id".equals(fieldName)) { deserializedVpnServerConfigurationPolicyGroupInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVpnServerConfigurationPolicyGroupInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVpnServerConfigurationPolicyGroupInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVpnServerConfigurationPolicyGroupInner.innerProperties = VpnServerConfigurationPolicyGroupProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedVpnServerConfigurationPolicyGroupInner.etag = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedVpnServerConfigurationPolicyGroupInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVpnServerConfigurationPolicyGroupInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupProperties.java index bf620e2ebbc5..7d6af5641807 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java index 08071035136d..2819265f779f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationsResponseInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationsResponseInner.java index 96d469c2ec86..82565246b118 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationsResponseInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationsResponseInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * VpnServerConfigurations list associated with VirtualWan Response. */ -@Fluent +@Immutable public final class VpnServerConfigurationsResponseInner implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class VpnServerConfigurationsResponseInner /** * Creates an instance of VpnServerConfigurationsResponseInner class. */ - public VpnServerConfigurationsResponseInner() { + private VpnServerConfigurationsResponseInner() { } /** @@ -38,18 +38,6 @@ public List vpnServerConfigurationResourceIds() { return this.vpnServerConfigurationResourceIds; } - /** - * Set the vpnServerConfigurationResourceIds property: List of VpnServerConfigurations associated with VirtualWan. - * - * @param vpnServerConfigurationResourceIds the vpnServerConfigurationResourceIds value to set. - * @return the VpnServerConfigurationsResponseInner object itself. - */ - public VpnServerConfigurationsResponseInner - withVpnServerConfigurationResourceIds(List vpnServerConfigurationResourceIds) { - this.vpnServerConfigurationResourceIds = vpnServerConfigurationResourceIds; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java index 0da7ea6986f3..088de37d1672 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java index 8972252e91c6..fb2db8b88bda 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.GatewayCustomBgpIpAddressIpConfiguration; import com.azure.resourcemanager.network.models.IpsecPolicy; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionProtocol; import com.azure.resourcemanager.network.models.VpnConnectionStatus; import com.azure.resourcemanager.network.models.VpnLinkConnectionMode; @@ -22,17 +23,12 @@ * VpnSiteLinkConnection Resource. */ @Fluent -public final class VpnSiteLinkConnectionInner extends SubResource { +public final class VpnSiteLinkConnectionInner extends SubResourceModel { /* * Properties of the VPN site link connection. */ private VpnSiteLinkConnectionProperties innerProperties; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -58,28 +54,6 @@ private VpnSiteLinkConnectionProperties innerProperties() { return this.innerProperties; } - /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VpnSiteLinkConnectionInner object itself. - */ - public VpnSiteLinkConnectionInner withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -94,10 +68,20 @@ public String etag() { * * @return the type value. */ + @Override public String type() { return this.type; } + /** + * {@inheritDoc} + */ + @Override + public VpnSiteLinkConnectionInner withName(String name) { + super.withName(name); + return this; + } + /** * {@inheritDoc} */ @@ -499,6 +483,7 @@ public VpnSiteLinkConnectionInner withDpdTimeoutSeconds(Integer dpdTimeoutSecond * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -512,8 +497,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -534,15 +519,15 @@ public static VpnSiteLinkConnectionInner fromJson(JsonReader jsonReader) throws if ("id".equals(fieldName)) { deserializedVpnSiteLinkConnectionInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVpnSiteLinkConnectionInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVpnSiteLinkConnectionInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVpnSiteLinkConnectionInner.innerProperties = VpnSiteLinkConnectionProperties.fromJson(reader); - } else if ("name".equals(fieldName)) { - deserializedVpnSiteLinkConnectionInner.name = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedVpnSiteLinkConnectionInner.etag = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVpnSiteLinkConnectionInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java index 835ac2105b76..aca3a22786b1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkInner.java index b91a3e42ba79..e316847a7903 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkInner.java @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.models.ProvisioningState; +import com.azure.resourcemanager.network.models.SubResourceModel; import com.azure.resourcemanager.network.models.VpnLinkBgpSettings; import com.azure.resourcemanager.network.models.VpnLinkProviderProperties; import java.io.IOException; @@ -18,7 +18,7 @@ * VpnSiteLink Resource. */ @Fluent -public final class VpnSiteLinkInner extends SubResource { +public final class VpnSiteLinkInner extends SubResourceModel { /* * Properties of the VPN site link. */ @@ -29,11 +29,6 @@ public final class VpnSiteLinkInner extends SubResource { */ private String etag; - /* - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - */ - private String name; - /* * Resource type. */ @@ -64,36 +59,24 @@ public String etag() { } /** - * Get the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the type property: Resource type. * - * @return the name value. + * @return the type value. */ - public String name() { - return this.name; + @Override + public String type() { + return this.type; } /** - * Set the name property: The name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the VpnSiteLinkInner object itself. + * {@inheritDoc} */ + @Override public VpnSiteLinkInner withName(String name) { - this.name = name; + super.withName(name); return this; } - /** - * Get the type property: Resource type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - /** * {@inheritDoc} */ @@ -209,6 +192,7 @@ public ProvisioningState provisioningState() { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { if (innerProperties() != null) { innerProperties().validate(); @@ -222,8 +206,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", name()); jsonWriter.writeJsonField("properties", this.innerProperties); - jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -244,14 +228,14 @@ public static VpnSiteLinkInner fromJson(JsonReader jsonReader) throws IOExceptio if ("id".equals(fieldName)) { deserializedVpnSiteLinkInner.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedVpnSiteLinkInner.withName(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedVpnSiteLinkInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedVpnSiteLinkInner.innerProperties = VpnSiteLinkProperties.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedVpnSiteLinkInner.etag = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedVpnSiteLinkInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedVpnSiteLinkInner.type = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java index ca6c9117e929..eb75bde07a2f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteProperties.java index 568c2345ee84..348332b3f86b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyInner.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyInner.java index e70d8e935163..93583071fbe1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyInner.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java index 16668c6e5f06..4cf669551c9d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/package-info.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/package-info.java index dfcdb99178bd..509fd535d720 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/package-info.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the inner data models for NetworkManagementClient. - * Network Client. + * Package containing the inner data models for Network. + * APIs to manage web application firewall rules. */ package com.azure.resourcemanager.network.fluent.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/package-info.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/package-info.java index 6a646095a005..0379e5cc1274 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/package-info.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the service clients for NetworkManagementClient. - * Network Client. + * Package containing the service clients for Network. + * APIs to manage web application firewall rules. */ package com.azure.resourcemanager.network.fluent; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java index a3a557174eed..50df62071094 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.AdminRuleCollectionsClient; import com.azure.resourcemanager.network.fluent.models.AdminRuleCollectionInner; -import com.azure.resourcemanager.network.models.AdminRuleCollectionListResult; +import com.azure.resourcemanager.network.implementation.models.AdminRuleCollectionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,25 +67,14 @@ public final class AdminRuleCollectionsClientImpl implements AdminRuleCollection * The interface defining all the services for NetworkManagementClientAdminRuleCollections to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAdminRuleCollections") public interface AdminRuleCollectionsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -93,259 +82,54 @@ Mono> get(@HostParam("$host") String endpoint @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, - @BodyParam("application/json") AdminRuleCollectionInner ruleCollection, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") AdminRuleCollectionInner ruleCollection, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, - skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); - } - - /** - * Lists all the rule collections in a security admin configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); - } - /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -393,7 +177,7 @@ public Mono> getWithResponseAsync(String reso /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -441,7 +225,7 @@ private Mono> getWithResponseAsync(String res /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -460,7 +244,7 @@ public Mono getAsync(String resourceGroupName, String /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -480,7 +264,7 @@ public Response getWithResponse(String resourceGroupNa /** * Gets a network manager security admin configuration rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -499,7 +283,7 @@ public AdminRuleCollectionInner get(String resourceGroupName, String networkMana /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -543,18 +327,19 @@ public Mono> createOrUpdateWithResponseAsync( ruleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleCollection, accept, context)) + ruleCollectionName, contentType, accept, ruleCollection, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -599,17 +384,18 @@ private Mono> createOrUpdateWithResponseAsync ruleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleCollection, accept, - context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, contentType, accept, + ruleCollection, context); } /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -629,7 +415,7 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -651,7 +437,7 @@ public Response createOrUpdateWithResponse(String reso /** * Creates or updates an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -671,7 +457,7 @@ public AdminRuleCollectionInner createOrUpdate(String resourceGroupName, String /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -710,18 +496,17 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, force, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -762,16 +547,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, force, context); } /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -794,7 +578,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -816,7 +600,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -841,7 +625,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -862,7 +646,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -886,7 +670,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -908,7 +692,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -929,7 +713,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -951,7 +735,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -969,7 +753,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Deletes an admin rule collection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -987,6 +771,219 @@ public void delete(String resourceGroupName, String networkManagerName, String c .block(); } + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, + skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a AdminRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -994,7 +991,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result along with {@link PagedResponse} on successful + * @return the response of a AdminRuleCollection list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1021,7 +1018,7 @@ private Mono> listNextSinglePageAsync(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security admin configuration rule collection list result along with {@link PagedResponse} on successful + * @return the response of a AdminRuleCollection list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java index 380605f2189c..123cbfc758ba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.AdminRulesClient; import com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner; -import com.azure.resourcemanager.network.models.AdminRuleListResult; +import com.azure.resourcemanager.network.implementation.models.AdminRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,26 +67,14 @@ public final class AdminRulesClientImpl implements AdminRulesClient { * The interface defining all the services for NetworkManagementClientAdminRules to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAdminRules") public interface AdminRulesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -94,272 +82,54 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @BodyParam("application/json") BaseAdminRuleInner adminRule, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BaseAdminRuleInner adminRule, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @QueryParam("force") Boolean force, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, + @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, - context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); - } - - /** - * List all network manager security configuration admin rules. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context)); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -412,7 +182,7 @@ public Mono> getWithResponseAsync(String resourceGr /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -464,7 +234,7 @@ private Mono> getWithResponseAsync(String resourceG /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -484,7 +254,7 @@ public Mono getAsync(String resourceGroupName, String networ /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -505,7 +275,7 @@ public Response getWithResponse(String resourceGroupName, St /** * Gets a network manager security configuration admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -525,7 +295,7 @@ public BaseAdminRuleInner get(String resourceGroupName, String networkManagerNam /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -573,18 +343,19 @@ public Mono> createOrUpdateWithResponseAsync(String adminRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, adminRule, accept, context)) + ruleCollectionName, ruleName, contentType, accept, adminRule, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -633,17 +404,18 @@ private Mono> createOrUpdateWithResponseAsync(Strin adminRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, adminRule, accept, - context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, contentType, accept, + adminRule, context); } /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -664,7 +436,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -687,7 +459,7 @@ public Response createOrUpdateWithResponse(String resourceGr /** * Creates or updates an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -708,7 +480,7 @@ public BaseAdminRuleInner createOrUpdate(String resourceGroupName, String networ /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -751,18 +523,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, force, accept, context)) + ruleCollectionName, ruleName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -807,16 +578,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, ruleName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, ruleName, force, context); } /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -840,7 +610,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -863,7 +633,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -889,7 +659,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -912,7 +682,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -937,7 +707,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -959,7 +729,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -980,7 +750,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -1003,7 +773,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -1023,7 +793,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Deletes an admin rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param ruleCollectionName The name of the network manager security Configuration rule collection. @@ -1042,6 +812,235 @@ public void delete(String resourceGroupName, String networkManagerName, String c context).block(); } + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); + } + + /** + * List all network manager security configuration admin rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of BaseAdminRule items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -1049,8 +1048,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return paged collection of BaseAdminRule items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1076,8 +1075,8 @@ private Mono> listNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security configuration admin rule list result along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return paged collection of BaseAdminRule items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java index 66f6af8cca8c..207ab6e1f4ed 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ApplicationGatewayPrivateEndpointConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPrivateEndpointConnectionInner; -import com.azure.resourcemanager.network.models.ApplicationGatewayPrivateEndpointConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.ApplicationGatewayPrivateEndpointConnectionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -69,78 +69,84 @@ public final class ApplicationGatewayPrivateEndpointConnectionsClientImpl * The interface defining all the services for NetworkManagementClientApplicationGatewayPrivateEndpointConnections * to be used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientApplicationGatewayPrivateEndpointConnections") public interface ApplicationGatewayPrivateEndpointConnectionsService { @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationGatewayName") String applicationGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationGatewayName") String applicationGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("connectionName") String connectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ApplicationGatewayPrivateEndpointConnectionInner parameters, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationGatewayName") String applicationGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("applicationGatewayName") String applicationGatewayName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private endpoint connection on application gateway along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationGatewayName, String connectionName) { + public Mono> + getWithResponseAsync(String resourceGroupName, String applicationGatewayName, String connectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -152,37 +158,38 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private endpoint connection on application gateway along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationGatewayName, String connectionName, Context context) { + private Mono> getWithResponseAsync( + String resourceGroupName, String applicationGatewayName, String connectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -194,169 +201,73 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, - String connectionName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, connectionName, accept, context); } /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, - String connectionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - String connectionName) { - return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName).getSyncPoller(); - } - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - String connectionName, Context context) { - return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the specified private endpoint connection on application gateway on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName) { - return beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono getAsync(String resourceGroupName, + String applicationGatewayName, String connectionName) { + return getWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName, - Context context) { - return beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified private endpoint connection on application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified private endpoint connection on application gateway along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationGatewayName, String connectionName) { - deleteAsync(resourceGroupName, applicationGatewayName, connectionName).block(); + public Response getWithResponse(String resourceGroupName, + String applicationGatewayName, String connectionName, Context context) { + return getWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName, context).block(); } /** - * Deletes the specified private endpoint connection on application gateway. + * Gets the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. - * @param context The context to associate with this operation. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified private endpoint connection on application gateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationGatewayName, String connectionName, - Context context) { - deleteAsync(resourceGroupName, applicationGatewayName, connectionName, context).block(); + public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroupName, String applicationGatewayName, + String connectionName) { + return getWithResponse(resourceGroupName, applicationGatewayName, connectionName, Context.NONE).getValue(); } /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -372,6 +283,10 @@ public Mono>> updateWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -383,29 +298,27 @@ public Mono>> updateWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - connectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, connectionName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -422,6 +335,10 @@ private Mono>> updateWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -433,28 +350,25 @@ private Mono>> updateWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, connectionName, contentType, accept, parameters, context); } /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,9 +391,9 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,9 +418,9 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -525,9 +439,9 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -547,9 +461,9 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -567,9 +481,9 @@ public Mono updateAsync(String /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -588,9 +502,9 @@ private Mono updateAsync(Strin /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -607,9 +521,9 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr /** * Updates the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param parameters Parameters supplied to update application gateway private endpoint connection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -625,24 +539,27 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr } /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway along with {@link Response} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getWithResponseAsync(String resourceGroupName, String applicationGatewayName, String connectionName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationGatewayName, String connectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -654,38 +571,36 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway along with {@link Response} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String applicationGatewayName, String connectionName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationGatewayName, String connectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -697,80 +612,167 @@ private Mono> getWith if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, connectionName, context); } /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, + String connectionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, + String connectionName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + String connectionName) { + return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName).getSyncPoller(); + } + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + String connectionName, Context context) { + return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, - String applicationGatewayName, String connectionName) { - return getWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName) { + return beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String applicationGatewayName, String connectionName, Context context) { - return getWithResponseAsync(resourceGroupName, applicationGatewayName, connectionName, context).block(); + private Mono deleteAsync(String resourceGroupName, String applicationGatewayName, String connectionName, + Context context) { + return beginDeleteAsync(resourceGroupName, applicationGatewayName, connectionName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified private endpoint connection on application gateway. + * Deletes the specified private endpoint connection on application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. - * @param connectionName The name of the application gateway private endpoint connection. + * @param connectionName Name of the private endpoint connection on an application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection on application gateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroupName, String applicationGatewayName, - String connectionName) { - return getWithResponse(resourceGroupName, applicationGatewayName, connectionName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String applicationGatewayName, String connectionName) { + deleteAsync(resourceGroupName, applicationGatewayName, connectionName).block(); + } + + /** + * Deletes the specified private endpoint connection on application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param connectionName Name of the private endpoint connection on an application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String applicationGatewayName, String connectionName, + Context context) { + deleteAsync(resourceGroupName, applicationGatewayName, connectionName, context).block(); } /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call along with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -780,6 +782,10 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -788,15 +794,11 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -806,13 +808,13 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call along with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -822,6 +824,10 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -830,16 +836,12 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -847,12 +849,12 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -865,13 +867,13 @@ public PagedFlux listAsync(Str /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -884,12 +886,12 @@ private PagedFlux listAsync(St /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -901,13 +903,13 @@ public PagedIterable list(Stri /** * Lists all private endpoint connections on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -923,7 +925,7 @@ public PagedIterable list(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call along with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -952,7 +954,7 @@ public PagedIterable list(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateEndpointConnection API service call along with + * @return the response of a ApplicationGatewayPrivateEndpointConnection list operation along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java index ea64d21eab6c..e5acc6e6f4db 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ApplicationGatewayPrivateLinkResourcesClient; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPrivateLinkResourceInner; -import com.azure.resourcemanager.network.models.ApplicationGatewayPrivateLinkResourceListResult; +import com.azure.resourcemanager.network.implementation.models.ApplicationGatewayPrivateLinkResourceListResult; import reactor.core.publisher.Mono; /** @@ -61,37 +61,37 @@ public final class ApplicationGatewayPrivateLinkResourcesClientImpl * The interface defining all the services for NetworkManagementClientApplicationGatewayPrivateLinkResources to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientApplicationGatewayPrivateLinkResources") public interface ApplicationGatewayPrivateLinkResourcesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateLinkResources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call along with {@link PagedResponse} + * @return the response of a ApplicationGatewayPrivateLinkResource list operation along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -101,6 +101,10 @@ Mono> listNext( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -109,15 +113,11 @@ Mono> listNext( return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -127,13 +127,13 @@ Mono> listNext( /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call along with {@link PagedResponse} + * @return the response of a ApplicationGatewayPrivateLinkResource list operation along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -143,6 +143,10 @@ Mono> listNext( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -151,16 +155,12 @@ Mono> listNext( return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -168,12 +168,12 @@ Mono> listNext( /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -186,13 +186,13 @@ public PagedFlux listAsync(String re /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -205,12 +205,12 @@ private PagedFlux listAsync(String r /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -222,13 +222,13 @@ public PagedIterable list(String res /** * Lists all private link resources on an application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call as paginated response with + * @return the response of a ApplicationGatewayPrivateLinkResource list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -244,7 +244,7 @@ public PagedIterable list(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call along with {@link PagedResponse} + * @return the response of a ApplicationGatewayPrivateLinkResource list operation along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -272,7 +272,7 @@ private Mono> listNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGatewayPrivateLinkResources API service call along with {@link PagedResponse} + * @return the response of a ApplicationGatewayPrivateLinkResource list operation along with {@link PagedResponse} * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java index d5f0aed43676..067fb12fa969 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ApplicationGatewayWafDynamicManifestsClient; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayWafDynamicManifestResultInner; -import com.azure.resourcemanager.network.models.ApplicationGatewayWafDynamicManifestResultList; +import com.azure.resourcemanager.network.implementation.models.ApplicationGatewayWafDynamicManifestResultList; import reactor.core.publisher.Mono; /** @@ -61,30 +61,30 @@ public final class ApplicationGatewayWafDynamicManifestsClientImpl * The interface defining all the services for NetworkManagementClientApplicationGatewayWafDynamicManifests to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientApplicationGatewayWafDynamicManifests") public interface ApplicationGatewayWafDynamicManifestsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -97,18 +97,18 @@ private Mono> get return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -118,7 +118,7 @@ private Mono> get /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -133,18 +133,18 @@ private Mono> get return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .get(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, context) + .get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -152,7 +152,7 @@ private Mono> get /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -166,7 +166,7 @@ public PagedFlux getAsync(Strin /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -182,7 +182,7 @@ private PagedFlux getAsync(Stri /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -196,7 +196,7 @@ public PagedIterable get(String /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java index e85191d78dd2..969c2288d051 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -56,22 +56,22 @@ public final class ApplicationGatewayWafDynamicManifestsDefaultsClientImpl * The interface defining all the services for NetworkManagementClientApplicationGatewayWafDynamicManifestsDefaults * to be used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientApplicationGatewayWafDynamicManifestsDefaults") public interface ApplicationGatewayWafDynamicManifestsDefaultsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests/dafault") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); } /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -84,25 +84,25 @@ public Mono> getWithRe return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -117,24 +117,24 @@ private Mono> getWithR return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context); } /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -148,7 +148,7 @@ public Mono getAsync(String loc /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -163,7 +163,7 @@ public Response getWithResponse /** * Gets the regional application gateway waf manifest. * - * @param location The region where the nrp are located at. + * @param location The location for which the WAF dynamic manifest is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java index a5fb0055af5d..a092e74e785a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -40,8 +40,8 @@ import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayBackendHealthOnDemandInner; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayInner; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewaySslPredefinedPolicyInner; -import com.azure.resourcemanager.network.models.ApplicationGatewayAvailableSslPredefinedPolicies; -import com.azure.resourcemanager.network.models.ApplicationGatewayListResult; +import com.azure.resourcemanager.network.implementation.models.ApplicationGatewayAvailableSslPredefinedPolicies; +import com.azure.resourcemanager.network.implementation.models.ApplicationGatewayListResult; import com.azure.resourcemanager.network.models.ApplicationGatewayOnDemandProbe; import com.azure.resourcemanager.network.models.ErrorException; import com.azure.resourcemanager.network.models.TagsObject; @@ -83,114 +83,134 @@ public final class ApplicationGatewaysClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationGatewayName") String applicationGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ApplicationGatewayInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ApplicationGatewayInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationGatewayName") String applicationGatewayName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono>> start(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono>> stop(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> backendHealth(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono>> backendHealth(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/getBackendHealthOnDemand") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> backendHealthOnDemand(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationGatewayName") String applicationGatewayName, + Mono>> backendHealthOnDemand(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, - @BodyParam("application/json") ApplicationGatewayOnDemandProbe probeRequest, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationGatewayName") String applicationGatewayName, @QueryParam("$expand") String expand, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ApplicationGatewayOnDemandProbe probeRequest, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAvailableSslOptions( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAvailableSslPredefinedPolicies( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getSslPredefinedPolicy( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("predefinedPolicyName") String predefinedPolicyName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> listAvailableServerVariables(@HostParam("$host") String endpoint, + Mono>> listAvailableServerVariables(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -198,7 +218,7 @@ Mono>> listAvailableServerVariables(@HostParam("$host") St @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> listAvailableRequestHeaders(@HostParam("$host") String endpoint, + Mono>> listAvailableRequestHeaders(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -206,7 +226,7 @@ Mono>> listAvailableRequestHeaders(@HostParam("$host") Str @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> listAvailableResponseHeaders(@HostParam("$host") String endpoint, + Mono>> listAvailableResponseHeaders(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -215,41 +235,15 @@ Mono>> listAvailableResponseHeaders(@HostParam("$host") St @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAvailableWafRuleSets( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAvailableSslOptions( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAvailableSslPredefinedPolicies( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSslPredefinedPolicy( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("predefinedPolicyName") String predefinedPolicyName, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -257,7 +251,7 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -265,234 +259,31 @@ Mono> listAllNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAvailableSslPredefinedPoliciesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified application gateway. + * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified application gateway along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String applicationGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (applicationGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationGatewayName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (applicationGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String applicationGatewayName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, applicationGatewayName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName) { - return this.beginDeleteAsync(resourceGroupName, applicationGatewayName).getSyncPoller(); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, context).getSyncPoller(); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String applicationGatewayName) { - return beginDeleteAsync(resourceGroupName, applicationGatewayName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String applicationGatewayName, Context context) { - return beginDeleteAsync(resourceGroupName, applicationGatewayName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationGatewayName) { - deleteAsync(resourceGroupName, applicationGatewayName).block(); - } - - /** - * Deletes the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationGatewayName, Context context) { - deleteAsync(resourceGroupName, applicationGatewayName, context).block(); - } - - /** - * Gets the specified application gateway. - * - * @param resourceGroupName The name of the resource group. - * @param applicationGatewayName The name of the application gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified application gateway along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String applicationGatewayName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -501,22 +292,18 @@ public Mono> getByResourceGroupWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - applicationGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -531,6 +318,10 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -539,21 +330,17 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, accept, context); } /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -570,7 +357,7 @@ public Mono getByResourceGroupAsync(String resourceGrou /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -587,7 +374,7 @@ public Response getByResourceGroupWithResponse(String r /** * Gets the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -602,7 +389,7 @@ public ApplicationGatewayInner getByResourceGroup(String resourceGroupName, Stri /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -617,6 +404,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -625,27 +416,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - applicationGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -661,6 +450,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -669,26 +462,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, contentType, accept, parameters, context); } /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,7 +499,7 @@ public PollerFlux, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -731,7 +521,7 @@ private PollerFlux, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -748,7 +538,7 @@ public SyncPoller, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -767,7 +557,7 @@ public SyncPoller, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -785,7 +575,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -804,7 +594,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -821,7 +611,7 @@ public ApplicationGatewayInner createOrUpdate(String resourceGroupName, String a /** * Creates or updates the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. * @param context The context to associate with this operation. @@ -839,7 +629,7 @@ public ApplicationGatewayInner createOrUpdate(String resourceGroupName, String a /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -854,6 +644,10 @@ public Mono> updateTagsWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -862,27 +656,25 @@ public Mono> updateTagsWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - applicationGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @param context The context to associate with this operation. @@ -898,6 +690,10 @@ private Mono> updateTagsWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -906,26 +702,23 @@ private Mono> updateTagsWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, contentType, accept, parameters, context); } /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -943,7 +736,7 @@ public Mono updateTagsAsync(String resourceGroupName, S /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @param context The context to associate with this operation. @@ -961,7 +754,7 @@ public Response updateTagsWithResponse(String resourceG /** * Updates the specified application gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -976,34 +769,239 @@ public ApplicationGatewayInner updateTags(String resourceGroupName, String appli } /** - * Lists all application gateways in a resource group. + * Deletes the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationGatewayName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (applicationGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationGatewayName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (applicationGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, context); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String applicationGatewayName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, applicationGatewayName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String applicationGatewayName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, applicationGatewayName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName) { + return this.beginDeleteAsync(resourceGroupName, applicationGatewayName).getSyncPoller(); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationGatewayName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, applicationGatewayName, context).getSyncPoller(); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String applicationGatewayName) { + return beginDeleteAsync(resourceGroupName, applicationGatewayName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String applicationGatewayName, Context context) { + return beginDeleteAsync(resourceGroupName, applicationGatewayName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String applicationGatewayName) { + deleteAsync(resourceGroupName, applicationGatewayName).block(); + } + + /** + * Deletes the specified application gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationGatewayName The name of the application gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String applicationGatewayName, Context context) { + deleteAsync(resourceGroupName, applicationGatewayName, context).block(); + } + + /** + * Lists all application gateways in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ApplicationGateway list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1012,12 +1010,12 @@ private Mono> listByResourceGroupSinglePa /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call along with {@link PagedResponse} on successful + * @return the response of a ApplicationGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1027,20 +1025,20 @@ private Mono> listByResourceGroupSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1048,11 +1046,11 @@ private Mono> listByResourceGroupSinglePa /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedFlux}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1063,12 +1061,12 @@ public PagedFlux listByResourceGroupAsync(String resour /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedFlux}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1079,11 +1077,11 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedIterable}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -1093,12 +1091,12 @@ public PagedIterable listByResourceGroup(String resourc /** * Lists all application gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call as paginated response with {@link PagedIterable}. + * @return the response of a ApplicationGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -1217,7 +1215,7 @@ public PagedIterable list(Context context) { /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1231,6 +1229,10 @@ public Mono>> startWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1239,22 +1241,17 @@ public Mono>> startWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1269,29 +1266,28 @@ private Mono>> startWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (applicationGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, context); } /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1308,7 +1304,7 @@ public PollerFlux, Void> beginStartAsync(String resourceGroupNa /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1329,7 +1325,7 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1344,7 +1340,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1361,7 +1357,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1377,7 +1373,7 @@ public Mono startAsync(String resourceGroupName, String applicationGateway /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1394,7 +1390,7 @@ private Mono startAsync(String resourceGroupName, String applicationGatewa /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1408,7 +1404,7 @@ public void start(String resourceGroupName, String applicationGatewayName) { /** * Starts the specified application gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1423,7 +1419,7 @@ public void start(String resourceGroupName, String applicationGatewayName, Conte /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1437,6 +1433,10 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1445,22 +1445,17 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1475,6 +1470,10 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1483,21 +1482,16 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationGatewayName, context); } /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1514,7 +1508,7 @@ public PollerFlux, Void> beginStopAsync(String resourceGroupNam /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1535,7 +1529,7 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1550,7 +1544,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1567,7 +1561,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1583,7 +1577,7 @@ public Mono stopAsync(String resourceGroupName, String applicationGatewayN /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1600,7 +1594,7 @@ private Mono stopAsync(String resourceGroupName, String applicationGateway /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1614,7 +1608,7 @@ public void stop(String resourceGroupName, String applicationGatewayName) { /** * Stops the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1629,7 +1623,7 @@ public void stop(String resourceGroupName, String applicationGatewayName, Contex /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1645,6 +1639,10 @@ public Mono>> backendHealthWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1653,22 +1651,18 @@ public Mono>> backendHealthWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.backendHealth(this.client.getEndpoint(), resourceGroupName, - applicationGatewayName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.backendHealth(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -1685,6 +1679,10 @@ private Mono>> backendHealthWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1693,21 +1691,17 @@ private Mono>> backendHealthWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.backendHealth(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.backendHealth(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, expand, accept, context); } /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1729,7 +1723,7 @@ private Mono>> backendHealthWithResponseAsync(String r /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1751,7 +1745,7 @@ private Mono>> backendHealthWithResponseAsync(String r /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -1776,7 +1770,7 @@ private Mono>> backendHealthWithResponseAsync(String r /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1794,7 +1788,7 @@ private Mono>> backendHealthWithResponseAsync(String r /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -1813,7 +1807,7 @@ private Mono>> backendHealthWithResponseAsync(String r /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1832,7 +1826,7 @@ public Mono backendHealthAsync(String reso /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1851,7 +1845,7 @@ public Mono backendHealthAsync(String reso /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -1871,7 +1865,7 @@ private Mono backendHealthAsync(String res /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1887,7 +1881,7 @@ public ApplicationGatewayBackendHealthInner backendHealth(String resourceGroupNa /** * Gets the backend health of the specified application gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. * @param context The context to associate with this operation. @@ -1906,7 +1900,7 @@ public ApplicationGatewayBackendHealthInner backendHealth(String resourceGroupNa * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1923,6 +1917,10 @@ public Mono>> backendHealthOnDemandWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1931,21 +1929,18 @@ public Mono>> backendHealthOnDemandWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (probeRequest == null) { return Mono.error(new IllegalArgumentException("Parameter probeRequest is required and cannot be null.")); } else { probeRequest.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName, - applicationGatewayName, apiVersion, this.client.getSubscriptionId(), expand, probeRequest, accept, - context)) + .withContext(context -> service.backendHealthOnDemand(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationGatewayName, expand, contentType, accept, + probeRequest, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1953,7 +1948,7 @@ public Mono>> backendHealthOnDemandWithResponseAsync(S * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1971,6 +1966,10 @@ private Mono>> backendHealthOnDemandWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1979,27 +1978,24 @@ private Mono>> backendHealthOnDemandWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter applicationGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (probeRequest == null) { return Mono.error(new IllegalArgumentException("Parameter probeRequest is required and cannot be null.")); } else { probeRequest.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, - apiVersion, this.client.getSubscriptionId(), expand, probeRequest, accept, context); + return service.backendHealthOnDemand(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationGatewayName, expand, contentType, accept, probeRequest, context); } /** * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2026,7 +2022,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2053,7 +2049,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2082,7 +2078,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2105,7 +2101,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2130,7 +2126,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2151,7 +2147,7 @@ public Mono backendHealthOnDemandA * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2172,7 +2168,7 @@ public Mono backendHealthOnDemandA * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2195,7 +2191,7 @@ private Mono backendHealthOnDemand * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2215,7 +2211,7 @@ public ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String * Gets the backend health for given combination of backend pool and http setting of the specified application * gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -2234,15 +2230,15 @@ public ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String } /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call along with {@link Response} on + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listAvailableServerVariablesWithResponseAsync() { + public Mono> listAvailableSslOptionsWithResponseAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2254,23 +2250,24 @@ public Mono>> listAvailableServerVariablesWithResponseAsyn final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call along with {@link Response} on + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listAvailableServerVariablesWithResponseAsync(Context context) { + private Mono> + listAvailableSslOptionsWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2282,59 +2279,60 @@ private Mono>> listAvailableServerVariablesWithResponseAsy final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context); } /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call on successful completion of + * @return response for ApplicationGatewayAvailableSslOptions API service call on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAvailableServerVariablesAsync() { - return listAvailableServerVariablesWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono listAvailableSslOptionsAsync() { + return listAvailableSslOptionsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call along with {@link Response}. + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response> listAvailableServerVariablesWithResponse(Context context) { - return listAvailableServerVariablesWithResponseAsync(context).block(); + public Response listAvailableSslOptionsWithResponse(Context context) { + return listAvailableSslOptionsWithResponseAsync(context).block(); } /** - * Lists all available server variables. + * Lists available Ssl options for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableServerVariables API service call. + * @return response for ApplicationGatewayAvailableSslOptions API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) - public List listAvailableServerVariables() { - return listAvailableServerVariablesWithResponse(Context.NONE).getValue(); + public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { + return listAvailableSslOptionsWithResponse(Context.NONE).getValue(); } /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response} on + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listAvailableRequestHeadersWithResponseAsync() { + private Mono> + listAvailableSslPredefinedPoliciesSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2346,23 +2344,27 @@ public Mono>> listAvailableRequestHeadersWithResponseAsync final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response} on + * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listAvailableRequestHeadersWithResponseAsync(Context context) { + private Mono> + listAvailableSslPredefinedPoliciesSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2374,59 +2376,86 @@ private Mono>> listAvailableRequestHeadersWithResponseAsyn final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), accept, context); + return service + .listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call on successful completion of - * {@link Mono}. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAvailableRequestHeadersAsync() { - return listAvailableRequestHeadersWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAvailableSslPredefinedPoliciesAsync() { + return new PagedFlux<>(() -> listAvailableSslPredefinedPoliciesSinglePageAsync(), + nextLink -> listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextLink)); } /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response}. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response> listAvailableRequestHeadersWithResponse(Context context) { - return listAvailableRequestHeadersWithResponseAsync(context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux + listAvailableSslPredefinedPoliciesAsync(Context context) { + return new PagedFlux<>(() -> listAvailableSslPredefinedPoliciesSinglePageAsync(context), + nextLink -> listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextLink, context)); } /** - * Lists all available request headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableRequestHeaders API service call. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public List listAvailableRequestHeaders() { - return listAvailableRequestHeadersWithResponse(Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAvailableSslPredefinedPolicies() { + return new PagedIterable<>(listAvailableSslPredefinedPoliciesAsync()); } /** - * Lists all available response headers. + * Lists all SSL predefined policies for configuring Ssl policy. * - * @throws ErrorException thrown if the request is rejected by server. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + listAvailableSslPredefinedPolicies(Context context) { + return new PagedIterable<>(listAvailableSslPredefinedPoliciesAsync(context)); + } + + /** + * Gets Ssl predefined policy with the specified policy name. + * + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listAvailableResponseHeadersWithResponseAsync() { + public Mono> + getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2435,26 +2464,32 @@ public Mono>> listAvailableResponseHeadersWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (predefinedPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), predefinedPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * + * @param predefinedPolicyName The name of the ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listAvailableResponseHeadersWithResponseAsync(Context context) { + private Mono> + getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2463,63 +2498,71 @@ private Mono>> listAvailableResponseHeadersWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (predefinedPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + predefinedPolicyName, accept, context); } /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * - * @throws ErrorException thrown if the request is rejected by server. + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call on successful completion of - * {@link Mono}. + * @return ssl predefined policy with the specified policy name on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAvailableResponseHeadersAsync() { - return listAvailableResponseHeadersWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono getSslPredefinedPolicyAsync(String predefinedPolicyName) { + return getSslPredefinedPolicyWithResponseAsync(predefinedPolicyName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * + * @param predefinedPolicyName The name of the ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response}. + * @return ssl predefined policy with the specified policy name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response> listAvailableResponseHeadersWithResponse(Context context) { - return listAvailableResponseHeadersWithResponseAsync(context).block(); + public Response + getSslPredefinedPolicyWithResponse(String predefinedPolicyName, Context context) { + return getSslPredefinedPolicyWithResponseAsync(predefinedPolicyName, context).block(); } /** - * Lists all available response headers. + * Gets Ssl predefined policy with the specified policy name. * - * @throws ErrorException thrown if the request is rejected by server. + * @param predefinedPolicyName The name of the ssl predefined policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableResponseHeaders API service call. + * @return ssl predefined policy with the specified policy name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public List listAvailableResponseHeaders() { - return listAvailableResponseHeadersWithResponse(Context.NONE).getValue(); + public ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String predefinedPolicyName) { + return getSslPredefinedPolicyWithResponse(predefinedPolicyName, Context.NONE).getValue(); } /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - listAvailableWafRuleSetsWithResponseAsync() { + public Mono>> listAvailableServerVariablesWithResponseAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2531,24 +2574,22 @@ public List listAvailableResponseHeaders() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listAvailableWafRuleSetsWithResponseAsync(Context context) { + private Mono>> listAvailableServerVariablesWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2560,60 +2601,57 @@ public List listAvailableResponseHeaders() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context); + return service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), accept, context); } /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listAvailableWafRuleSetsAsync() { - return listAvailableWafRuleSetsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono> listAvailableServerVariablesAsync() { + return listAvailableServerVariablesWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response - listAvailableWafRuleSetsWithResponse(Context context) { - return listAvailableWafRuleSetsWithResponseAsync(context).block(); + public Response> listAvailableServerVariablesWithResponse(Context context) { + return listAvailableServerVariablesWithResponseAsync(context).block(); } /** - * Lists all available web application firewall rule sets. + * Lists all available server variables. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableWafRuleSets API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSets() { - return listAvailableWafRuleSetsWithResponse(Context.NONE).getValue(); + public List listAvailableServerVariables() { + return listAvailableServerVariablesWithResponse(Context.NONE).getValue(); } /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAvailableSslOptionsWithResponseAsync() { + public Mono>> listAvailableRequestHeadersWithResponseAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2625,24 +2663,22 @@ public Mono> listAvailableS final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listAvailableSslOptionsWithResponseAsync(Context context) { + private Mono>> listAvailableRequestHeadersWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2654,60 +2690,57 @@ public Mono> listAvailableS final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context); + return service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), accept, context); } /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listAvailableSslOptionsAsync() { - return listAvailableSslOptionsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono> listAvailableRequestHeadersAsync() { + return listAvailableRequestHeadersWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listAvailableSslOptionsWithResponse(Context context) { - return listAvailableSslOptionsWithResponseAsync(context).block(); + public Response> listAvailableRequestHeadersWithResponse(Context context) { + return listAvailableRequestHeadersWithResponseAsync(context).block(); } /** - * Lists available Ssl options for configuring Ssl policy. + * Lists all available request headers. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { - return listAvailableSslOptionsWithResponse(Context.NONE).getValue(); + public List listAvailableRequestHeaders() { + return listAvailableRequestHeadersWithResponse(Context.NONE).getValue(); } /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listAvailableSslPredefinedPoliciesSinglePageAsync() { + public Mono>> listAvailableResponseHeadersWithResponseAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2719,27 +2752,22 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion, + .withContext(context -> service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map( - res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listAvailableSslPredefinedPoliciesSinglePageAsync(Context context) { + private Mono>> listAvailableResponseHeadersWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2751,86 +2779,59 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), accept, context); } /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedFlux}. + * @return the response body on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAvailableSslPredefinedPoliciesAsync() { - return new PagedFlux<>(() -> listAvailableSslPredefinedPoliciesSinglePageAsync(), - nextLink -> listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAvailableResponseHeadersAsync() { + return listAvailableResponseHeadersWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux - listAvailableSslPredefinedPoliciesAsync(Context context) { - return new PagedFlux<>(() -> listAvailableSslPredefinedPoliciesSinglePageAsync(context), - nextLink -> listAvailableSslPredefinedPoliciesNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all SSL predefined policies for configuring Ssl policy. - * - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedIterable}. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAvailableSslPredefinedPolicies() { - return new PagedIterable<>(listAvailableSslPredefinedPoliciesAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response> listAvailableResponseHeadersWithResponse(Context context) { + return listAvailableResponseHeadersWithResponseAsync(context).block(); } /** - * Lists all SSL predefined policies for configuring Ssl policy. + * Lists all available response headers. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. + * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ApplicationGatewayAvailableSslOptions API service call as paginated response with - * {@link PagedIterable}. + * @return the response. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable - listAvailableSslPredefinedPolicies(Context context) { - return new PagedIterable<>(listAvailableSslPredefinedPoliciesAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public List listAvailableResponseHeaders() { + return listAvailableResponseHeadersWithResponse(Context.NONE).getValue(); } /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion - * of {@link Mono}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName) { + public Mono> + listAvailableWafRuleSetsWithResponseAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2839,32 +2840,27 @@ public PagedIterable listAvailableSs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (predefinedPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), predefinedPolicyName, accept, context)) + .withContext(context -> service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name along with {@link Response} on successful completion - * of {@link Mono}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getSslPredefinedPolicyWithResponseAsync(String predefinedPolicyName, Context context) { + private Mono> + listAvailableWafRuleSetsWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2873,60 +2869,51 @@ public PagedIterable listAvailableSs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (predefinedPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - predefinedPolicyName, accept, context); + return service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context); } /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name on successful completion of {@link Mono}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSslPredefinedPolicyAsync(String predefinedPolicyName) { - return getSslPredefinedPolicyWithResponseAsync(predefinedPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono listAvailableWafRuleSetsAsync() { + return listAvailableWafRuleSetsWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name along with {@link Response}. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response - getSslPredefinedPolicyWithResponse(String predefinedPolicyName, Context context) { - return getSslPredefinedPolicyWithResponseAsync(predefinedPolicyName, context).block(); + public Response + listAvailableWafRuleSetsWithResponse(Context context) { + return listAvailableWafRuleSetsWithResponseAsync(context).block(); } /** - * Gets Ssl predefined policy with the specified policy name. + * Lists all available web application firewall rule sets. * - * @param predefinedPolicyName Name of Ssl predefined policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return ssl predefined policy with the specified policy name. + * @return response for ApplicationGatewayAvailableWafRuleSets API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String predefinedPolicyName) { - return getSslPredefinedPolicyWithResponse(predefinedPolicyName, Context.NONE).getValue(); + public ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSets() { + return listAvailableWafRuleSetsWithResponse(Context.NONE).getValue(); } /** @@ -2936,7 +2923,7 @@ public ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call along with {@link PagedResponse} on successful + * @return the response of a ApplicationGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2963,7 +2950,7 @@ private Mono> listNextSinglePageAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListApplicationGateways API service call along with {@link PagedResponse} on successful + * @return the response of a ApplicationGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java index 031ea29fc60a..2b9f1a4db18d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ApplicationSecurityGroupsClient; import com.azure.resourcemanager.network.fluent.models.ApplicationSecurityGroupInner; -import com.azure.resourcemanager.network.models.ApplicationSecurityGroupListResult; +import com.azure.resourcemanager.network.implementation.models.ApplicationSecurityGroupListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,297 +73,86 @@ public final class ApplicationSecurityGroupsClientImpl implements InnerSupportsG * The interface defining all the services for NetworkManagementClientApplicationSecurityGroups to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientApplicationSecurityGroups") public interface ApplicationSecurityGroupsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("applicationSecurityGroupName") String applicationSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationSecurityGroupName") String applicationSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationSecurityGroupName") String applicationSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ApplicationSecurityGroupInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ApplicationSecurityGroupInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("applicationSecurityGroupName") String applicationSecurityGroupName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("applicationSecurityGroupName") String applicationSecurityGroupName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationSecurityGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (applicationSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - applicationSecurityGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String applicationSecurityGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (applicationSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String applicationSecurityGroupName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, applicationSecurityGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String applicationSecurityGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, applicationSecurityGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, - String applicationSecurityGroupName) { - return this.beginDeleteAsync(resourceGroupName, applicationSecurityGroupName).getSyncPoller(); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, applicationSecurityGroupName, context).getSyncPoller(); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName) { - return beginDeleteAsync(resourceGroupName, applicationSecurityGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, applicationSecurityGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationSecurityGroupName) { - deleteAsync(resourceGroupName, applicationSecurityGroupName).block(); - } - - /** - * Deletes the specified application security group. - * - * @param resourceGroupName The name of the resource group. - * @param applicationSecurityGroupName The name of the application security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String applicationSecurityGroupName, Context context) { - deleteAsync(resourceGroupName, applicationSecurityGroupName, context).block(); - } - /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -378,6 +167,10 @@ public Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -386,22 +179,18 @@ public Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - applicationSecurityGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationSecurityGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -417,6 +206,10 @@ private Mono> getByResourceGroupWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -425,21 +218,17 @@ private Mono> getByResourceGroupWithResp return Mono.error( new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationSecurityGroupName, accept, context); } /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -456,7 +245,7 @@ public Mono getByResourceGroupAsync(String resour /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -473,7 +262,7 @@ public Response getByResourceGroupWithResponse(St /** * Gets information about the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -489,7 +278,7 @@ public ApplicationSecurityGroupInner getByResourceGroup(String resourceGroupName /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -505,6 +294,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -513,27 +306,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - applicationSecurityGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationSecurityGroupName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -550,6 +341,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -558,26 +353,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationSecurityGroupName, contentType, accept, parameters, context); } /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -599,7 +391,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -623,7 +415,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -641,7 +433,7 @@ public SyncPoller, ApplicationSecurity /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -661,7 +453,7 @@ public SyncPoller, ApplicationSecurity /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -679,7 +471,7 @@ public Mono createOrUpdateAsync(String resourceGr /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -698,7 +490,7 @@ private Mono createOrUpdateAsync(String resourceG /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -715,7 +507,7 @@ public ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, St /** * Creates or updates an application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. * @param context The context to associate with this operation. @@ -733,7 +525,7 @@ public ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, St /** * Updates an application security group's tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -749,6 +541,10 @@ public Mono> updateTagsWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -757,132 +553,341 @@ public Mono> updateTagsWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationSecurityGroupName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates an application security group's tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an application security group in a resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String applicationSecurityGroupName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (applicationSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, applicationSecurityGroupName, contentType, accept, parameters, context); + } + + /** + * Updates an application security group's tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an application security group in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, + String applicationSecurityGroupName, TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, applicationSecurityGroupName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates an application security group's tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an application security group in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String applicationSecurityGroupName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, applicationSecurityGroupName, parameters, context) + .block(); + } + + /** + * Updates an application security group's tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an application security group in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applicationSecurityGroupName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, applicationSecurityGroupName, parameters, Context.NONE) + .getValue(); + } + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationSecurityGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (applicationSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - applicationSecurityGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, applicationSecurityGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates an application security group's tags. + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String applicationSecurityGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (applicationSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + applicationSecurityGroupName, context); + } + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String applicationSecurityGroupName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, applicationSecurityGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String applicationSecurityGroupName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, applicationSecurityGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, + String applicationSecurityGroupName) { + return this.beginDeleteAsync(resourceGroupName, applicationSecurityGroupName).getSyncPoller(); + } + + /** + * Deletes the specified application security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. - * @param parameters Parameters supplied to update application security group tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an application security group in a resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String applicationSecurityGroupName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (applicationSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter applicationSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String applicationSecurityGroupName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, applicationSecurityGroupName, context).getSyncPoller(); } /** - * Updates an application security group's tags. + * Deletes the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. - * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an application security group in a resource group on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, - String applicationSecurityGroupName, TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, applicationSecurityGroupName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName) { + return beginDeleteAsync(resourceGroupName, applicationSecurityGroupName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates an application security group's tags. + * Deletes the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. - * @param parameters Parameters supplied to update application security group tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an application security group in a resource group along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String applicationSecurityGroupName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, applicationSecurityGroupName, parameters, context) - .block(); + private Mono deleteAsync(String resourceGroupName, String applicationSecurityGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, applicationSecurityGroupName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates an application security group's tags. + * Deletes the specified application security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationSecurityGroupName The name of the application security group. - * @param parameters Parameters supplied to update application security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an application security group in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApplicationSecurityGroupInner updateTags(String resourceGroupName, String applicationSecurityGroupName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, applicationSecurityGroupName, parameters, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String applicationSecurityGroupName) { + deleteAsync(resourceGroupName, applicationSecurityGroupName).block(); } /** - * Gets all application security groups in a subscription. + * Deletes the specified application security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationSecurityGroupName The name of the application security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription along with {@link PagedResponse} on successful + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String applicationSecurityGroupName, Context context) { + deleteAsync(resourceGroupName, applicationSecurityGroupName, context).block(); + } + + /** + * Gets all the application security groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the application security groups in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -891,28 +896,34 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all application security groups in a subscription. + * Gets all the application security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription along with {@link PagedResponse} on successful + * @return all the application security groups in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -921,88 +932,95 @@ private Mono> listSinglePageAsync(C return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all application security groups in a subscription. + * Gets all the application security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. + * @return all the application security groups in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all application security groups in a subscription. + * Gets all the application security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. + * @return all the application security groups in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all application security groups in a subscription. + * Gets all the application security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + * @return all the application security groups in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all application security groups in a subscription. + * Gets all the application security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. + * @return all the application security groups in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group along with {@link PagedResponse} on successful + * @return all application security groups in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1010,35 +1028,29 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group along with {@link PagedResponse} on successful + * @return all application security groups in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1046,72 +1058,62 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group as paginated response with {@link PagedFlux}. + * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group as paginated response with {@link PagedFlux}. + * @return all application security groups in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group as paginated response with {@link PagedIterable}. + * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all the application security groups in a resource group. + * Gets all application security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group as paginated response with {@link PagedIterable}. + * @return all application security groups in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1121,11 +1123,11 @@ public PagedIterable listByResourceGroup(String r * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription along with {@link PagedResponse} on successful + * @return all the application security groups in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1134,8 +1136,7 @@ private Mono> listAllNextSinglePage new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1149,11 +1150,11 @@ private Mono> listAllNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all application security groups in a subscription along with {@link PagedResponse} on successful + * @return all the application security groups in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1164,7 +1165,7 @@ private Mono> listAllNextSinglePage } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1176,11 +1177,11 @@ private Mono> listAllNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group along with {@link PagedResponse} on successful + * @return all application security groups in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1189,7 +1190,8 @@ private Mono> listNextSinglePageAsy new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1203,11 +1205,11 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the application security groups in a resource group along with {@link PagedResponse} on successful + * @return all application security groups in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1218,7 +1220,7 @@ private Mono> listNextSinglePageAsy } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java index 3edb61a0b015..53bc506e2d26 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AvailableDelegationsClient; import com.azure.resourcemanager.network.fluent.models.AvailableDelegationInner; -import com.azure.resourcemanager.network.models.AvailableDelegationsResult; +import com.azure.resourcemanager.network.implementation.models.AvailableDelegationsResult; import reactor.core.publisher.Mono; /** @@ -59,30 +59,30 @@ public final class AvailableDelegationsClientImpl implements AvailableDelegation * The interface defining all the services for NetworkManagementClientAvailableDelegations to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAvailableDelegations") public interface AvailableDelegationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -95,18 +95,18 @@ private Mono> listSinglePageAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -115,7 +115,7 @@ private Mono> listSinglePageAsync(String /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -129,18 +129,18 @@ private Mono> listSinglePageAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(String /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -163,7 +163,7 @@ public PagedFlux listAsync(String location) { /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -180,7 +180,7 @@ private PagedFlux listAsync(String location, Context c /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -195,7 +195,7 @@ public PagedIterable list(String location) { /** * Gets all of the available subnet delegations for this subscription in this region. * - * @param location The location of the subnet. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java index d72646b9d332..321a317bf7f3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AvailableEndpointServicesClient; import com.azure.resourcemanager.network.fluent.models.EndpointServiceResultInner; -import com.azure.resourcemanager.network.models.EndpointServicesListResult; +import com.azure.resourcemanager.network.implementation.models.EndpointServicesListResult; import reactor.core.publisher.Mono; /** @@ -59,35 +59,35 @@ public final class AvailableEndpointServicesClientImpl implements AvailableEndpo * The interface defining all the services for NetworkManagementClientAvailableEndpointServices to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAvailableEndpointServices") public interface AvailableEndpointServicesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of EndpointServiceResult items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location) { @@ -95,18 +95,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -115,13 +115,13 @@ private Mono> listSinglePageAsync(Stri /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of EndpointServiceResult items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, Context context) { @@ -129,18 +129,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -148,12 +148,11 @@ private Mono> listSinglePageAsync(Stri /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String location) { @@ -163,13 +162,12 @@ public PagedFlux listAsync(String location) { /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String location, Context context) { @@ -180,12 +178,11 @@ private PagedFlux listAsync(String location, Context /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location) { @@ -195,13 +192,12 @@ public PagedIterable list(String location) { /** * List what values of endpoint services are available for use. * - * @param location The location to check available endpoint services. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of EndpointServiceResult items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location, Context context) { @@ -215,8 +211,8 @@ public PagedIterable list(String location, Context c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of EndpointServiceResult items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -242,8 +238,8 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListAvailableEndpointServices API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of EndpointServiceResult items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java index 36724d086fa9..247129ae4080 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AvailablePrivateEndpointTypesClient; import com.azure.resourcemanager.network.fluent.models.AvailablePrivateEndpointTypeInner; -import com.azure.resourcemanager.network.models.AvailablePrivateEndpointTypesResult; +import com.azure.resourcemanager.network.implementation.models.AvailablePrivateEndpointTypesResult; import reactor.core.publisher.Mono; /** @@ -59,24 +59,24 @@ public final class AvailablePrivateEndpointTypesClientImpl implements AvailableP * The interface defining all the services for NetworkManagementClientAvailablePrivateEndpointTypes to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAvailablePrivateEndpointTypes") public interface AvailablePrivateEndpointTypesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("location") String location, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -84,7 +84,7 @@ Mono> listByResourceGroup(@HostPar @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -92,14 +92,14 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -108,22 +108,14 @@ Mono> listByResourceGroupNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -132,7 +124,7 @@ private Mono> listSinglePageAsy /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -143,22 +135,14 @@ private Mono> listSinglePageAsy @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -166,7 +150,7 @@ private Mono> listSinglePageAsy /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -180,7 +164,7 @@ public PagedFlux listAsync(String location) { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -196,7 +180,7 @@ private PagedFlux listAsync(String location, /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -210,7 +194,7 @@ public PagedIterable list(String location) { /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -225,8 +209,8 @@ public PagedIterable list(String location, Co /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -236,10 +220,6 @@ public PagedIterable list(String location, Co @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String location, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -247,15 +227,11 @@ private Mono> listByResourceGro return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), location, resourceGroupName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -264,8 +240,8 @@ private Mono> listByResourceGro /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -276,10 +252,6 @@ private Mono> listByResourceGro @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String location, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -287,16 +259,12 @@ private Mono> listByResourceGro return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), location, resourceGroupName, - this.client.getSubscriptionId(), apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -304,8 +272,8 @@ private Mono> listByResourceGro /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -321,8 +289,8 @@ public PagedFlux listByResourceGroupAsync(Str /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -339,8 +307,8 @@ private PagedFlux listByResourceGroupAsync(St /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -355,8 +323,8 @@ public PagedIterable listByResourceGroup(Stri /** * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -384,10 +352,6 @@ private Mono> listNextSinglePag if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -412,10 +376,6 @@ private Mono> listNextSinglePag if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service.listNext(nextLink, this.client.getEndpoint(), accept, context) @@ -439,10 +399,6 @@ private Mono> listNextSinglePag if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -469,10 +425,6 @@ private Mono> listNextSinglePag if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java index 590bc0b5ba91..6abf52c15bb8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AvailableResourceGroupDelegationsClient; import com.azure.resourcemanager.network.fluent.models.AvailableDelegationInner; -import com.azure.resourcemanager.network.models.AvailableDelegationsResult; +import com.azure.resourcemanager.network.implementation.models.AvailableDelegationsResult; import reactor.core.publisher.Mono; /** @@ -59,16 +59,16 @@ public final class AvailableResourceGroupDelegationsClientImpl implements Availa * The interface defining all the services for NetworkManagementClientAvailableResourceGroupDelegations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAvailableResourceGroupDelegations") public interface AvailableResourceGroupDelegationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -76,15 +76,15 @@ Mono> list(@HostParam("$host") String endpo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -94,10 +94,6 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -105,15 +101,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, resourceGroupName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -122,8 +114,8 @@ private Mono> listSinglePageAsync(String /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -134,10 +126,6 @@ private Mono> listSinglePageAsync(String @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -145,15 +133,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, resourceGroupName, this.client.getSubscriptionId(), apiVersion, + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -162,8 +146,8 @@ private Mono> listSinglePageAsync(String /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -179,8 +163,8 @@ public PagedFlux listAsync(String location, String res /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -197,8 +181,8 @@ private PagedFlux listAsync(String location, String re /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -213,8 +197,8 @@ public PagedIterable list(String location, String reso /** * Gets all of the available subnet delegations for this resource group in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -242,10 +226,6 @@ private Mono> listNextSinglePageAsync(St if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -269,10 +249,6 @@ private Mono> listNextSinglePageAsync(St if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service.listNext(nextLink, this.client.getEndpoint(), accept, context) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java index becb3c04f82a..10a58b77481a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AvailableServiceAliasesClient; import com.azure.resourcemanager.network.fluent.models.AvailableServiceAliasInner; -import com.azure.resourcemanager.network.models.AvailableServiceAliasesResult; +import com.azure.resourcemanager.network.implementation.models.AvailableServiceAliasesResult; import reactor.core.publisher.Mono; /** @@ -59,24 +59,24 @@ public final class AvailableServiceAliasesClientImpl implements AvailableService * The interface defining all the services for NetworkManagementClientAvailableServiceAliases to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAvailableServiceAliases") public interface AvailableServiceAliasesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableServiceAliases") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableServiceAliases") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -84,7 +84,7 @@ Mono> listByResourceGroup(@HostParam("$h @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -92,14 +92,14 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -112,18 +112,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, this.client.getSubscriptionId(), - apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -132,7 +132,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -146,18 +146,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, this.client.getSubscriptionId(), apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -165,7 +165,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -180,7 +180,7 @@ public PagedFlux listAsync(String location) { /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -197,7 +197,7 @@ private PagedFlux listAsync(String location, Context /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -212,7 +212,7 @@ public PagedIterable list(String location) { /** * Gets all available service aliases for this subscription in this region. * - * @param location The location. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -228,8 +228,8 @@ public PagedIterable list(String location, Context c /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -243,6 +243,10 @@ private Mono> listByResourceGroupSingl return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -250,15 +254,11 @@ private Mono> listByResourceGroupSingl if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, location, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -267,8 +267,8 @@ private Mono> listByResourceGroupSingl /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -283,6 +283,10 @@ private Mono> listByResourceGroupSingl return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -290,16 +294,12 @@ private Mono> listByResourceGroupSingl if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, location, - this.client.getSubscriptionId(), apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -307,8 +307,8 @@ private Mono> listByResourceGroupSingl /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -324,8 +324,8 @@ public PagedFlux listByResourceGroupAsync(String res /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -343,8 +343,8 @@ private PagedFlux listByResourceGroupAsync(String re /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -359,8 +359,8 @@ public PagedIterable listByResourceGroup(String reso /** * Gets all available service aliases for this resource group in this region. * - * @param resourceGroupName The name of the resource group. - * @param location The location. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java index 48b01faaf102..d8c5ca399bc3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.AzureFirewallFqdnTagsClient; import com.azure.resourcemanager.network.fluent.models.AzureFirewallFqdnTagInner; -import com.azure.resourcemanager.network.models.AzureFirewallFqdnTagListResult; +import com.azure.resourcemanager.network.implementation.models.AzureFirewallFqdnTagListResult; import reactor.core.publisher.Mono; /** @@ -59,14 +59,14 @@ public final class AzureFirewallFqdnTagsClientImpl implements AzureFirewallFqdnT * The interface defining all the services for NetworkManagementClientAzureFirewallFqdnTags to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientAzureFirewallFqdnTags") public interface AzureFirewallFqdnTagsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -75,7 +75,7 @@ Mono> list(@HostParam("$host") String e @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java index 4af9862df4ef..3dfcb616eccf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.network.fluent.models.AzureFirewallInner; import com.azure.resourcemanager.network.fluent.models.AzureFirewallPacketCaptureResponseInner; import com.azure.resourcemanager.network.fluent.models.IpPrefixesListInner; -import com.azure.resourcemanager.network.models.AzureFirewallListResult; +import com.azure.resourcemanager.network.implementation.models.AzureFirewallListResult; import com.azure.resourcemanager.network.models.FirewallPacketCaptureParameters; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -77,61 +77,62 @@ public final class AzureFirewallsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") AzureFirewallInner parameters, @HeaderParam("Accept") String accept, + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") AzureFirewallInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("azureFirewallName") String azureFirewallName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -139,66 +140,69 @@ Mono> list(@HostParam("$host") String endpoint @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/learnedIPPrefixes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listLearnedPrefixes(@HostParam("$host") String endpoint, + Mono>> listLearnedPrefixes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> packetCapture(@HostParam("$host") String endpoint, + Mono>> packetCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FirewallPacketCaptureParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") FirewallPacketCaptureParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCaptureOperation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> packetCaptureOperation(@HostParam("$host") String endpoint, + Mono>> packetCaptureOperation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("azureFirewallName") String azureFirewallName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FirewallPacketCaptureParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("azureFirewallName") String azureFirewallName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallPacketCaptureParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified Azure Firewall. + * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Azure Firewall along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String azureFirewallName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -207,36 +211,36 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, azureFirewallName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified Azure Firewall. + * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Azure Firewall along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String azureFirewallName, - Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String azureFirewallName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -245,288 +249,321 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, accept, context); } /** - * Deletes the specified Azure Firewall. + * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified Azure Firewall on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, azureFirewallName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String azureFirewallName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, azureFirewallName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified Azure Firewall. + * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified Azure Firewall along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, azureFirewallName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String azureFirewallName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, azureFirewallName, context).block(); } /** - * Deletes the specified Azure Firewall. + * Gets the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified Azure Firewall. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName) { - return this.beginDeleteAsync(resourceGroupName, azureFirewallName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public AzureFirewallInner getByResourceGroup(String resourceGroupName, String azureFirewallName) { + return getByResourceGroupWithResponse(resourceGroupName, azureFirewallName, Context.NONE).getValue(); } /** - * Deletes the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, azureFirewallName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String azureFirewallName, AzureFirewallInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (azureFirewallName == null) { + return Mono + .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, azureFirewallName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String azureFirewallName) { - return beginDeleteAsync(resourceGroupName, azureFirewallName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String azureFirewallName, AzureFirewallInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (azureFirewallName == null) { + return Mono + .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, accept, parameters, context); } /** - * Deletes the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of azure Firewall resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String azureFirewallName, Context context) { - return beginDeleteAsync(resourceGroupName, azureFirewallName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AzureFirewallInner> + beginCreateOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, azureFirewallName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AzureFirewallInner.class, AzureFirewallInner.class, this.client.getContext()); } /** - * Deletes the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of azure Firewall resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String azureFirewallName) { - deleteAsync(resourceGroupName, azureFirewallName).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AzureFirewallInner> beginCreateOrUpdateAsync( + String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, azureFirewallName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AzureFirewallInner.class, AzureFirewallInner.class, context); } /** - * Deletes the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of azure Firewall resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String azureFirewallName, Context context) { - deleteAsync(resourceGroupName, azureFirewallName, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AzureFirewallInner> beginCreateOrUpdate(String resourceGroupName, + String azureFirewallName, AzureFirewallInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).getSyncPoller(); } /** - * Gets the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Firewall along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of azure Firewall resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String azureFirewallName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (azureFirewallName == null) { - return Mono - .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - azureFirewallName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AzureFirewallInner> beginCreateOrUpdate(String resourceGroupName, + String azureFirewallName, AzureFirewallInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).getSyncPoller(); } /** - * Gets the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Firewall along with {@link Response} on successful completion of {@link Mono}. + * @return azure Firewall resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String azureFirewallName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (azureFirewallName == null) { - return Mono - .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), accept, context); + public Mono createOrUpdateAsync(String resourceGroupName, String azureFirewallName, + AzureFirewallInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Firewall on successful completion of {@link Mono}. + * @return azure Firewall resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String azureFirewallName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, azureFirewallName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String azureFirewallName, + AzureFirewallInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Firewall along with {@link Response}. + * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String azureFirewallName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, azureFirewallName, context).block(); + public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewallName, + AzureFirewallInner parameters) { + return createOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).block(); } /** - * Gets the specified Azure Firewall. + * Creates or updates the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. + * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Azure Firewall. + * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureFirewallInner getByResourceGroup(String resourceGroupName, String azureFirewallName) { - return getByResourceGroupWithResponse(resourceGroupName, azureFirewallName, Context.NONE).getValue(); + public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewallName, + AzureFirewallInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).block(); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String azureFirewallName, AzureFirewallInner parameters) { + public Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String azureFirewallName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -535,29 +572,27 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - azureFirewallName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -565,12 +600,16 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String azureFirewallName, AzureFirewallInner parameters, Context context) { + private Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String azureFirewallName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -579,48 +618,45 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, accept, parameters, context); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of azure Firewall resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, AzureFirewallInner> - beginCreateOrUpdateAsync(String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters) { + public PollerFlux, AzureFirewallInner> beginUpdateTagsAsync(String resourceGroupName, + String azureFirewallName, TagsObject parameters) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, azureFirewallName, parameters); + = updateTagsWithResponseAsync(resourceGroupName, azureFirewallName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AzureFirewallInner.class, AzureFirewallInner.class, this.client.getContext()); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -628,38 +664,38 @@ private Mono>> createOrUpdateWithResponseAsync(String * @return the {@link PollerFlux} for polling of azure Firewall resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AzureFirewallInner> beginCreateOrUpdateAsync( - String resourceGroupName, String azureFirewallName, AzureFirewallInner parameters, Context context) { + private PollerFlux, AzureFirewallInner> beginUpdateTagsAsync( + String resourceGroupName, String azureFirewallName, TagsObject parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, azureFirewallName, parameters, context); + = updateTagsWithResponseAsync(resourceGroupName, azureFirewallName, parameters, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AzureFirewallInner.class, AzureFirewallInner.class, context); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of azure Firewall resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureFirewallInner> beginCreateOrUpdate(String resourceGroupName, - String azureFirewallName, AzureFirewallInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).getSyncPoller(); + public SyncPoller, AzureFirewallInner> beginUpdateTags(String resourceGroupName, + String azureFirewallName, TagsObject parameters) { + return this.beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters).getSyncPoller(); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -667,35 +703,35 @@ public SyncPoller, AzureFirewallInner> beginCreat * @return the {@link SyncPoller} for polling of azure Firewall resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureFirewallInner> beginCreateOrUpdate(String resourceGroupName, - String azureFirewallName, AzureFirewallInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).getSyncPoller(); + public SyncPoller, AzureFirewallInner> beginUpdateTags(String resourceGroupName, + String azureFirewallName, TagsObject parameters, Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).getSyncPoller(); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return azure Firewall resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String azureFirewallName, - AzureFirewallInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).last() + public Mono updateTagsAsync(String resourceGroupName, String azureFirewallName, + TagsObject parameters) { + return beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -703,35 +739,34 @@ public Mono createOrUpdateAsync(String resourceGroupName, St * @return azure Firewall resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String azureFirewallName, - AzureFirewallInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).last() + private Mono updateTagsAsync(String resourceGroupName, String azureFirewallName, + TagsObject parameters, Context context) { + return beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewallName, - AzureFirewallInner parameters) { - return createOrUpdateAsync(resourceGroupName, azureFirewallName, parameters).block(); + public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, TagsObject parameters) { + return updateTagsAsync(resourceGroupName, azureFirewallName, parameters).block(); } /** - * Creates or updates the specified Azure Firewall. + * Updates tags of an Azure Firewall resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to the create or update Azure Firewall operation. + * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -739,29 +774,32 @@ public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureF * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureFirewallName, - AzureFirewallInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, azureFirewallName, parameters, context).block(); + public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, TagsObject parameters, + Context context) { + return updateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).block(); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String azureFirewallName, TagsObject parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String azureFirewallName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -770,42 +808,35 @@ public Mono>> updateTagsWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, azureFirewallName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String azureFirewallName, TagsObject parameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String azureFirewallName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -814,179 +845,152 @@ private Mono>> updateTagsWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + azureFirewallName, context); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of azure Firewall resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, AzureFirewallInner> beginUpdateTagsAsync(String resourceGroupName, - String azureFirewallName, TagsObject parameters) { - Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, azureFirewallName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - AzureFirewallInner.class, AzureFirewallInner.class, this.client.getContext()); + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, azureFirewallName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of azure Firewall resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AzureFirewallInner> beginUpdateTagsAsync( - String resourceGroupName, String azureFirewallName, TagsObject parameters, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String azureFirewallName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, azureFirewallName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - AzureFirewallInner.class, AzureFirewallInner.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, azureFirewallName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Firewall resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureFirewallInner> beginUpdateTags(String resourceGroupName, - String azureFirewallName, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName) { + return this.beginDeleteAsync(resourceGroupName, azureFirewallName).getSyncPoller(); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of azure Firewall resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AzureFirewallInner> beginUpdateTags(String resourceGroupName, - String azureFirewallName, TagsObject parameters, Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String azureFirewallName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, azureFirewallName, context).getSyncPoller(); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String azureFirewallName, - TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters).last() + public Mono deleteAsync(String resourceGroupName, String azureFirewallName) { + return beginDeleteAsync(resourceGroupName, azureFirewallName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, String azureFirewallName, - TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).last() + private Mono deleteAsync(String resourceGroupName, String azureFirewallName, Context context) { + return beginDeleteAsync(resourceGroupName, azureFirewallName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, azureFirewallName, parameters).block(); + public void delete(String resourceGroupName, String azureFirewallName) { + deleteAsync(resourceGroupName, azureFirewallName).block(); } /** - * Updates tags of an Azure Firewall resource. + * Deletes the specified Azure Firewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to update azure firewall tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Firewall resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, TagsObject parameters, - Context context) { - return updateTagsAsync(resourceGroupName, azureFirewallName, parameters, context).block(); + public void delete(String resourceGroupName, String azureFirewallName, Context context) { + deleteAsync(resourceGroupName, azureFirewallName, context).block(); } /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a AzureFirewall list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -994,19 +998,19 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1015,13 +1019,13 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a AzureFirewall list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -1030,20 +1034,20 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1051,11 +1055,11 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedFlux}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1066,12 +1070,12 @@ public PagedFlux listByResourceGroupAsync(String resourceGro /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedFlux}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1082,11 +1086,11 @@ private PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedIterable}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -1096,12 +1100,12 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Lists all Azure Firewalls in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call as paginated response with {@link PagedIterable}. + * @return the response of a AzureFirewall list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -1220,13 +1224,12 @@ public PagedIterable list(Context context) { /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listLearnedPrefixesWithResponseAsync(String resourceGroupName, @@ -1235,6 +1238,10 @@ public Mono>> listLearnedPrefixesWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1243,29 +1250,24 @@ public Mono>> listLearnedPrefixesWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName, - azureFirewallName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listLearnedPrefixes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, azureFirewallName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listLearnedPrefixesWithResponseAsync(String resourceGroupName, @@ -1274,6 +1276,10 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1282,26 +1288,22 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.listLearnedPrefixes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, accept, context); } /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, IpPrefixesListInner> @@ -1315,13 +1317,13 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IpPrefixesListInner> @@ -1336,12 +1338,12 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpPrefixesListInner> @@ -1352,13 +1354,13 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpPrefixesListInner> @@ -1369,12 +1371,12 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listLearnedPrefixesAsync(String resourceGroupName, String azureFirewallName) { @@ -1385,13 +1387,13 @@ public Mono listLearnedPrefixesAsync(String resourceGroupNa /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listLearnedPrefixesAsync(String resourceGroupName, String azureFirewallName, @@ -1403,12 +1405,12 @@ private Mono listLearnedPrefixesAsync(String resourceGroupN /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String azureFirewallName) { @@ -1418,13 +1420,13 @@ public IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String /** * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SNAT IP Prefixes learnt by firewall to not SNAT. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String azureFirewallName, @@ -1435,7 +1437,7 @@ public IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1450,6 +1452,10 @@ public Mono>> packetCaptureWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1458,27 +1464,24 @@ public Mono>> packetCaptureWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.packetCapture(this.client.getEndpoint(), resourceGroupName, - azureFirewallName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.packetCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -1494,6 +1497,10 @@ private Mono>> packetCaptureWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1502,26 +1509,22 @@ private Mono>> packetCaptureWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.packetCapture(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.packetCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, parameters, context); } /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1541,7 +1544,7 @@ public PollerFlux, Void> beginPacketCaptureAsync(String resourc /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -1563,7 +1566,7 @@ private PollerFlux, Void> beginPacketCaptureAsync(String resour /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1580,7 +1583,7 @@ public SyncPoller, Void> beginPacketCapture(String resourceGrou /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -1598,7 +1601,7 @@ public SyncPoller, Void> beginPacketCapture(String resourceGrou /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1616,7 +1619,7 @@ public Mono packetCaptureAsync(String resourceGroupName, String azureFirew /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -1635,7 +1638,7 @@ private Mono packetCaptureAsync(String resourceGroupName, String azureFire /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1651,7 +1654,7 @@ public void packetCapture(String resourceGroupName, String azureFirewallName, /** * Runs a packet capture on AzureFirewall. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. @@ -1668,14 +1671,13 @@ public void packetCapture(String resourceGroupName, String azureFirewallName, /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> packetCaptureOperationWithResponseAsync(String resourceGroupName, @@ -1684,6 +1686,10 @@ public Mono>> packetCaptureOperationWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1692,35 +1698,32 @@ public Mono>> packetCaptureOperationWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.packetCaptureOperation(this.client.getEndpoint(), resourceGroupName, - azureFirewallName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.packetCaptureOperation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, azureFirewallName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> packetCaptureOperationWithResponseAsync(String resourceGroupName, @@ -1729,6 +1732,10 @@ private Mono>> packetCaptureOperationWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1737,32 +1744,29 @@ private Mono>> packetCaptureOperationWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.packetCaptureOperation(this.client.getEndpoint(), resourceGroupName, azureFirewallName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.packetCaptureOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, azureFirewallName, contentType, accept, parameters, context); } /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, AzureFirewallPacketCaptureResponseInner> @@ -1779,14 +1783,14 @@ private Mono>> packetCaptureOperationWithResponseAsync /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AzureFirewallPacketCaptureResponseInner> @@ -1804,13 +1808,13 @@ private Mono>> packetCaptureOperationWithResponseAsync /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureFirewallPacketCaptureResponseInner> @@ -1822,14 +1826,14 @@ private Mono>> packetCaptureOperationWithResponseAsync /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response of an Azure Firewall Packet Capture Operation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureFirewallPacketCaptureResponseInner> @@ -1842,13 +1846,13 @@ private Mono>> packetCaptureOperationWithResponseAsync /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono packetCaptureOperationAsync(String resourceGroupName, @@ -1860,14 +1864,14 @@ public Mono packetCaptureOperationAsync /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono packetCaptureOperationAsync(String resourceGroupName, @@ -1879,13 +1883,13 @@ private Mono packetCaptureOperationAsyn /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String resourceGroupName, @@ -1896,14 +1900,14 @@ public AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String res /** * Runs a packet capture operation on AzureFirewall. * - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the azure firewall. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of an Azure Firewall Packet Capture Operation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String resourceGroupName, @@ -1918,8 +1922,8 @@ public AzureFirewallPacketCaptureResponseInner packetCaptureOperation(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a AzureFirewall list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1945,8 +1949,8 @@ private Mono> listNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListAzureFirewalls API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a AzureFirewall list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java index 7d88034858ba..c08af6e52a49 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.BastionHostsClient; import com.azure.resourcemanager.network.fluent.models.BastionHostInner; -import com.azure.resourcemanager.network.models.BastionHostListResult; +import com.azure.resourcemanager.network.implementation.models.BastionHostListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,327 +73,123 @@ public final class BastionHostsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BastionHostInner parameters, @HeaderParam("Accept") String accept, + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") BastionHostInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("bastionHostName") String bastionHostName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostname) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (bastionHostname == null) { - return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified Bastion Host. + * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Bastion Host along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostname, - Context context) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String bastionHostName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (bastionHostname == null) { - return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostname) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, bastionHostname); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostname, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, bastionHostname, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostname) { - return this.beginDeleteAsync(resourceGroupName, bastionHostname).getSyncPoller(); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostname, - Context context) { - return this.beginDeleteAsync(resourceGroupName, bastionHostname, context).getSyncPoller(); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String bastionHostname) { - return beginDeleteAsync(resourceGroupName, bastionHostname).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String bastionHostname, Context context) { - return beginDeleteAsync(resourceGroupName, bastionHostname, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String bastionHostname) { - deleteAsync(resourceGroupName, bastionHostname).block(); - } - - /** - * Deletes the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String bastionHostname, Context context) { - deleteAsync(resourceGroupName, bastionHostname, context).block(); - } - - /** - * Gets the specified Bastion Host. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Bastion Host along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String bastionHostname) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, bastionHostName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -402,51 +198,51 @@ public Mono> getByResourceGroupWithResponseAsync(Stri */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String bastionHostname, Context context) { + String bastionHostName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, bastionHostName, accept, context); } /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Bastion Host on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String bastionHostname) { - return getByResourceGroupWithResponseAsync(resourceGroupName, bastionHostname) + public Mono getByResourceGroupAsync(String resourceGroupName, String bastionHostName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, bastionHostName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -454,31 +250,31 @@ public Mono getByResourceGroupAsync(String resourceGroupName, * @return the specified Bastion Host along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String bastionHostname, + public Response getByResourceGroupWithResponse(String resourceGroupName, String bastionHostName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, bastionHostname, context).block(); + return getByResourceGroupWithResponseAsync(resourceGroupName, bastionHostName, context).block(); } /** * Gets the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified Bastion Host. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BastionHostInner getByResourceGroup(String resourceGroupName, String bastionHostname) { - return getByResourceGroupWithResponse(resourceGroupName, bastionHostname, Context.NONE).getValue(); + public BastionHostInner getByResourceGroup(String resourceGroupName, String bastionHostName) { + return getByResourceGroupWithResponse(resourceGroupName, bastionHostName, Context.NONE).getValue(); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -487,22 +283,22 @@ public BastionHostInner getByResourceGroup(String resourceGroupName, String bast */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionHostInner parameters) { + String bastionHostName, BastionHostInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -510,18 +306,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, bastionHostName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -531,22 +329,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionHostInner parameters, Context context) { + String bastionHostName, BastionHostInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -554,17 +352,18 @@ private Mono>> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, bastionHostName, contentType, accept, parameters, context); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -573,9 +372,9 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, BastionHostInner> beginCreateOrUpdateAsync(String resourceGroupName, - String bastionHostname, BastionHostInner parameters) { + String bastionHostName, BastionHostInner parameters) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, bastionHostname, parameters); + = createOrUpdateWithResponseAsync(resourceGroupName, bastionHostName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), BastionHostInner.class, BastionHostInner.class, this.client.getContext()); } @@ -583,8 +382,8 @@ public PollerFlux, BastionHostInner> beginCreateOrU /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -594,10 +393,10 @@ public PollerFlux, BastionHostInner> beginCreateOrU */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BastionHostInner> beginCreateOrUpdateAsync( - String resourceGroupName, String bastionHostname, BastionHostInner parameters, Context context) { + String resourceGroupName, String bastionHostName, BastionHostInner parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, bastionHostname, parameters, context); + = createOrUpdateWithResponseAsync(resourceGroupName, bastionHostName, parameters, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), BastionHostInner.class, BastionHostInner.class, context); } @@ -605,8 +404,8 @@ private PollerFlux, BastionHostInner> beginCreateOr /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -615,15 +414,15 @@ private PollerFlux, BastionHostInner> beginCreateOr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, - String bastionHostname, BastionHostInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, bastionHostname, parameters).getSyncPoller(); + String bastionHostName, BastionHostInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, bastionHostName, parameters).getSyncPoller(); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -633,15 +432,15 @@ public SyncPoller, BastionHostInner> beginCreateOrU */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BastionHostInner> beginCreateOrUpdate(String resourceGroupName, - String bastionHostname, BastionHostInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, bastionHostname, parameters, context).getSyncPoller(); + String bastionHostName, BastionHostInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, bastionHostName, parameters, context).getSyncPoller(); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -649,17 +448,17 @@ public SyncPoller, BastionHostInner> beginCreateOrU * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String bastionHostname, + public Mono createOrUpdateAsync(String resourceGroupName, String bastionHostName, BastionHostInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, bastionHostname, parameters).last() + return beginCreateOrUpdateAsync(resourceGroupName, bastionHostName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -668,17 +467,17 @@ public Mono createOrUpdateAsync(String resourceGroupName, Stri * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String bastionHostname, + private Mono createOrUpdateAsync(String resourceGroupName, String bastionHostName, BastionHostInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, bastionHostname, parameters, context).last() + return beginCreateOrUpdateAsync(resourceGroupName, bastionHostName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -686,16 +485,16 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, + public BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostName, BastionHostInner parameters) { - return createOrUpdateAsync(resourceGroupName, bastionHostname, parameters).block(); + return createOrUpdateAsync(resourceGroupName, bastionHostName, parameters).block(); } /** * Creates or updates the specified Bastion Host. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,16 +503,16 @@ public BastionHostInner createOrUpdate(String resourceGroupName, String bastionH * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostname, + public BastionHostInner createOrUpdate(String resourceGroupName, String bastionHostName, BastionHostInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, bastionHostname, parameters, context).block(); + return createOrUpdateAsync(resourceGroupName, bastionHostName, parameters, context).block(); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -722,7 +521,7 @@ public BastionHostInner createOrUpdate(String resourceGroupName, String bastionH */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String bastionHostname, TagsObject parameters) { + String bastionHostName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -735,9 +534,9 @@ public Mono>> updateTagsWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -745,18 +544,20 @@ public Mono>> updateTagsWithResponseAsync(String resou parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, bastionHostname, apiVersion, parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, bastionHostName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -766,7 +567,7 @@ public Mono>> updateTagsWithResponseAsync(String resou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String bastionHostname, TagsObject parameters, Context context) { + String bastionHostName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -779,9 +580,9 @@ private Mono>> updateTagsWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -789,17 +590,18 @@ private Mono>> updateTagsWithResponseAsync(String reso parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - bastionHostname, apiVersion, parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, bastionHostName, contentType, accept, parameters, context); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -808,9 +610,9 @@ private Mono>> updateTagsWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, BastionHostInner> beginUpdateTagsAsync(String resourceGroupName, - String bastionHostname, TagsObject parameters) { + String bastionHostName, TagsObject parameters) { Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, bastionHostname, parameters); + = updateTagsWithResponseAsync(resourceGroupName, bastionHostName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), BastionHostInner.class, BastionHostInner.class, this.client.getContext()); } @@ -818,8 +620,8 @@ public PollerFlux, BastionHostInner> beginUpdateTag /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -829,10 +631,10 @@ public PollerFlux, BastionHostInner> beginUpdateTag */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BastionHostInner> beginUpdateTagsAsync(String resourceGroupName, - String bastionHostname, TagsObject parameters, Context context) { + String bastionHostName, TagsObject parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, bastionHostname, parameters, context); + = updateTagsWithResponseAsync(resourceGroupName, bastionHostName, parameters, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), BastionHostInner.class, BastionHostInner.class, context); } @@ -840,8 +642,8 @@ private PollerFlux, BastionHostInner> beginUpdateTa /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -850,15 +652,15 @@ private PollerFlux, BastionHostInner> beginUpdateTa */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BastionHostInner> beginUpdateTags(String resourceGroupName, - String bastionHostname, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, bastionHostname, parameters).getSyncPoller(); + String bastionHostName, TagsObject parameters) { + return this.beginUpdateTagsAsync(resourceGroupName, bastionHostName, parameters).getSyncPoller(); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -868,15 +670,15 @@ public SyncPoller, BastionHostInner> beginUpdateTag */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BastionHostInner> beginUpdateTags(String resourceGroupName, - String bastionHostname, TagsObject parameters, Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, bastionHostname, parameters, context).getSyncPoller(); + String bastionHostName, TagsObject parameters, Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, bastionHostName, parameters, context).getSyncPoller(); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -884,17 +686,17 @@ public SyncPoller, BastionHostInner> beginUpdateTag * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String bastionHostname, + public Mono updateTagsAsync(String resourceGroupName, String bastionHostName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, bastionHostname, parameters).last() + return beginUpdateTagsAsync(resourceGroupName, bastionHostName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -903,17 +705,17 @@ public Mono updateTagsAsync(String resourceGroupName, String b * @return bastion Host resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, String bastionHostname, + private Mono updateTagsAsync(String resourceGroupName, String bastionHostName, TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, bastionHostname, parameters, context).last() + return beginUpdateTagsAsync(resourceGroupName, bastionHostName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -921,15 +723,15 @@ private Mono updateTagsAsync(String resourceGroupName, String * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, bastionHostname, parameters).block(); + public BastionHostInner updateTags(String resourceGroupName, String bastionHostName, TagsObject parameters) { + return updateTagsAsync(resourceGroupName, bastionHostName, parameters).block(); } /** * Updates Tags for BastionHost resource. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -938,21 +740,23 @@ public BastionHostInner updateTags(String resourceGroupName, String bastionHostn * @return bastion Host resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BastionHostInner updateTags(String resourceGroupName, String bastionHostname, TagsObject parameters, + public BastionHostInner updateTags(String resourceGroupName, String bastionHostName, TagsObject parameters, Context context) { - return updateTagsAsync(resourceGroupName, bastionHostname, parameters, context).block(); + return updateTagsAsync(resourceGroupName, bastionHostName, parameters, context).block(); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -961,28 +765,35 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (bastionHostName == null) { + return Mono + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, bastionHostName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String bastionHostName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -991,76 +802,160 @@ private Mono> listSinglePageAsync(Context contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (bastionHostName == null) { + return Mono + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + bastionHostName, context); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, bastionHostName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bastionHostName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, bastionHostName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostName) { + return this.beginDeleteAsync(resourceGroupName, bastionHostName).getSyncPoller(); } /** - * Lists all Bastion Hosts in a subscription. + * Deletes the specified Bastion Host. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String bastionHostName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, bastionHostName, context).getSyncPoller(); + } + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String bastionHostName) { + return beginDeleteAsync(resourceGroupName, bastionHostName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String bastionHostName, Context context) { + return beginDeleteAsync(resourceGroupName, bastionHostName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String bastionHostName) { + deleteAsync(resourceGroupName, bastionHostName).block(); + } + + /** + * Deletes the specified Bastion Host. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String bastionHostName, Context context) { + deleteAsync(resourceGroupName, bastionHostName, context).block(); } /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -1068,19 +963,19 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1089,13 +984,13 @@ private Mono> listByResourceGroupSinglePageAsync /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -1104,20 +999,20 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1125,11 +1020,11 @@ private Mono> listByResourceGroupSinglePageAsync /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1140,12 +1035,12 @@ public PagedFlux listByResourceGroupAsync(String resourceGroup /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1156,11 +1051,11 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -1170,18 +1065,127 @@ public PagedIterable listByResourceGroup(String resourceGroupN /** * Lists all Bastion Hosts in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } + /** + * Lists all Bastion Hosts in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all Bastion Hosts in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all Bastion Hosts in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all Bastion Hosts in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all Bastion Hosts in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Lists all Bastion Hosts in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a BastionHost list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -1189,11 +1193,11 @@ public PagedIterable listByResourceGroup(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1202,7 +1206,9 @@ private Mono> listNextSinglePageAsync(String nex new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1216,11 +1222,12 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1230,7 +1237,7 @@ private Mono> listNextSinglePageAsync(String nex } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1242,11 +1249,11 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1255,9 +1262,7 @@ private Mono> listByResourceGroupNextSinglePageA new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1271,12 +1276,11 @@ private Mono> listByResourceGroupNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a BastionHost list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1286,7 +1290,7 @@ private Mono> listByResourceGroupNextSinglePageA } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java index 6eef9008032b..3cfa56595278 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.BgpServiceCommunitiesClient; import com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityInner; -import com.azure.resourcemanager.network.models.BgpServiceCommunityListResult; +import com.azure.resourcemanager.network.implementation.models.BgpServiceCommunityListResult; import reactor.core.publisher.Mono; /** @@ -59,14 +59,14 @@ public final class BgpServiceCommunitiesClientImpl implements BgpServiceCommunit * The interface defining all the services for NetworkManagementClientBgpServiceCommunities to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientBgpServiceCommunities") public interface BgpServiceCommunitiesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -75,7 +75,7 @@ Mono> list(@HostParam("$host") String en @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java index 87b7516aeda1..3b7623a46df3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ConfigurationPolicyGroupsClient; import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationPolicyGroupInner; -import com.azure.resourcemanager.network.models.ListVpnServerConfigurationPolicyGroupsResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnServerConfigurationPolicyGroupsResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,69 +67,221 @@ public final class ConfigurationPolicyGroupsClientImpl implements ConfigurationP * The interface defining all the services for NetworkManagementClientConfigurationPolicyGroups to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientConfigurationPolicyGroups") public interface ConfigurationPolicyGroupsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, @PathParam("configurationPolicyGroupName") String configurationPolicyGroupName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VpnServerConfigurationPolicyGroupInner vpnServerConfigurationPolicyGroupParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") - @ExpectedResponses({ 200, 202, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, @PathParam("configurationPolicyGroupName") String configurationPolicyGroupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnServerConfigurationPolicyGroupInner vpnServerConfigurationPolicyGroupParameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @PathParam("configurationPolicyGroupName") String configurationPolicyGroupName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("configurationPolicyGroupName") String configurationPolicyGroupName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnServerConfiguration( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnServerConfigurationNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (vpnServerConfigurationName == null) { + return Mono.error( + new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); + } + if (configurationPolicyGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (vpnServerConfigurationName == null) { + return Mono.error( + new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); + } + if (configurationPolicyGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnServerConfigurationName, configurationPolicyGroupName, accept, context); + } + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName) { + return getWithResponseAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String vpnServerConfigurationName, String configurationPolicyGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, + context).block(); + } + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return vpnServerConfigurationPolicyGroup Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, String vpnServerConfigurationName, + String configurationPolicyGroupName) { + return getWithResponse(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, + Context.NONE).getValue(); + } + /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -169,20 +321,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r vpnServerConfigurationPolicyGroupParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, - vpnServerConfigurationPolicyGroupParameters, accept, context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, + configurationPolicyGroupName, contentType, accept, vpnServerConfigurationPolicyGroupParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -223,19 +377,22 @@ private Mono>> createOrUpdateWithResponseAsync(String vpnServerConfigurationPolicyGroupParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, - vpnServerConfigurationPolicyGroupParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, contentType, accept, + vpnServerConfigurationPolicyGroupParameters, context); } /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,9 +415,11 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -286,9 +445,11 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -310,9 +471,11 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -335,9 +498,11 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -356,9 +521,11 @@ public Mono createOrUpdateAsync(String r /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -378,9 +545,11 @@ private Mono createOrUpdateAsync(String /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,9 +568,11 @@ public VpnServerConfigurationPolicyGroupInner createOrUpdate(String resourceGrou /** * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a * VpnServerConfiguration PolicyGroup. * @param context The context to associate with this operation. @@ -421,9 +592,11 @@ public VpnServerConfigurationPolicyGroupInner createOrUpdate(String resourceGrou /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -453,20 +626,21 @@ public Mono>> deleteWithResponseAsync(String resourceG new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, accept, context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,18 +671,19 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnServerConfigurationName, configurationPolicyGroupName, context); } /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -526,9 +701,11 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -548,9 +725,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -566,9 +745,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -586,9 +767,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -604,9 +787,11 @@ public Mono deleteAsync(String resourceGroupName, String vpnServerConfigur /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -624,9 +809,11 @@ private Mono deleteAsync(String resourceGroupName, String vpnServerConfigu /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -640,9 +827,11 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, /** * Deletes a ConfigurationPolicyGroup. * - * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @param configurationPolicyGroupName The name of the resource that is unique within a resource group. This name + * can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -654,153 +843,12 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, deleteAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, context).block(); } - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vpnServerConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); - } - if (configurationPolicyGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vpnServerConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); - } - if (configurationPolicyGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, configurationPolicyGroupName, apiVersion, accept, context); - } - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName) { - return getWithResponseAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String vpnServerConfigurationName, String configurationPolicyGroupName, Context context) { - return getWithResponseAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, - context).block(); - } - - /** - * Retrieves the details of a ConfigurationPolicyGroup. - * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. - * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurationPolicyGroup Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, String vpnServerConfigurationName, - String configurationPolicyGroupName) { - return getWithResponse(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, - Context.NONE).getValue(); - } - /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -829,9 +877,8 @@ public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, Stri final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByVpnServerConfiguration(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, apiVersion, accept, - context)) + .withContext(context -> service.listByVpnServerConfiguration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -840,8 +887,9 @@ public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, Stri /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -872,8 +920,8 @@ private Mono> listByVpnSer final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVpnServerConfiguration(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, apiVersion, accept, context) + .listByVpnServerConfiguration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -881,8 +929,9 @@ private Mono> listByVpnSer /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -900,8 +949,9 @@ public PagedFlux listByVpnServerConfigur /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -920,8 +970,9 @@ private PagedFlux listByVpnServerConfigu /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -937,8 +988,9 @@ public PagedIterable listByVpnServerConf /** * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java index 92d31f13cfa1..25f97dd22526 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.network.fluent.ConnectionMonitorsClient; import com.azure.resourcemanager.network.fluent.models.ConnectionMonitorInner; import com.azure.resourcemanager.network.fluent.models.ConnectionMonitorResultInner; -import com.azure.resourcemanager.network.models.ConnectionMonitorListResult; +import com.azure.resourcemanager.network.implementation.models.ConnectionMonitorListResult; import com.azure.resourcemanager.network.models.TagsObject; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -71,81 +71,223 @@ public final class ConnectionMonitorsClientImpl implements ConnectionMonitorsCli * The interface defining all the services for NetworkManagementClientConnectionMonitors to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientConnectionMonitors") public interface ConnectionMonitorsService { @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkWatcherName") String networkWatcherName, + @PathParam("connectionMonitorName") String connectionMonitorName, @HeaderParam("Accept") String accept, + Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("connectionMonitorName") String connectionMonitorName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("migrate") String migrate, @BodyParam("application/json") ConnectionMonitorInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionMonitorName") String connectionMonitorName, @QueryParam("migrate") String migrate, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionMonitorInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, @PathParam("connectionMonitorName") String connectionMonitorName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("connectionMonitorName") String connectionMonitorName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionMonitorName") String connectionMonitorName, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("connectionMonitorName") String connectionMonitorName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop(@HostParam("$host") String endpoint, + Mono>> stop(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("connectionMonitorName") String connectionMonitorName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionMonitorName") String connectionMonitorName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors") + @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + if (connectionMonitorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, connectionMonitorName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + if (connectionMonitorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, connectionMonitorName, accept, context); + } + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkWatcherName, + String connectionMonitorName) { + return getWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, Context context) { + return getWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, context).block(); + } + + /** + * Gets a connection monitor by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param connectionMonitorName The name of the connection monitor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a connection monitor by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionMonitorResultInner get(String resourceGroupName, String networkWatcherName, + String connectionMonitorName) { + return getWithResponse(resourceGroupName, networkWatcherName, connectionMonitorName, Context.NONE).getValue(); } /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -162,6 +304,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -174,29 +320,26 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, connectionMonitorName, apiVersion, this.client.getSubscriptionId(), migrate, - parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, connectionMonitorName, migrate, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -215,6 +358,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -227,27 +374,25 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), migrate, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, connectionMonitorName, migrate, contentType, accept, parameters, + context); } /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -270,8 +415,8 @@ public PollerFlux, ConnectionMonitorRes /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,8 +439,8 @@ public PollerFlux, ConnectionMonitorRes /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -320,8 +465,8 @@ private PollerFlux, ConnectionMonitorRe /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,8 +487,8 @@ public SyncPoller, ConnectionMonitorRes /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -366,8 +511,8 @@ public SyncPoller, ConnectionMonitorRes /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -386,8 +531,8 @@ public Mono createOrUpdateAsync(String resourceGro /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -406,8 +551,8 @@ public Mono createOrUpdateAsync(String resourceGro /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -427,8 +572,8 @@ private Mono createOrUpdateAsync(String resourceGr /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -447,8 +592,8 @@ public ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, Str /** * Create or update a connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param parameters Parameters that define the operation to create a connection monitor. * @param migrate Value indicating whether connection monitor V1 should be migrated to V2 format. @@ -466,23 +611,29 @@ public ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, Str } /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + * @return information about the connection monitor along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -495,37 +646,46 @@ public Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, connectionMonitorName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name along with {@link Response} on successful completion of {@link Mono}. + * @return information about the connection monitor along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkWatcherName, String connectionMonitorName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -538,75 +698,82 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, connectionMonitorName, contentType, accept, parameters, context); } /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name on successful completion of {@link Mono}. + * @return information about the connection monitor on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkWatcherName, - String connectionMonitorName) { - return getWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName) + public Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name along with {@link Response}. + * @return information about the connection monitor along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, Context context) { - return getWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, + String networkWatcherName, String connectionMonitorName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, + context).block(); } /** - * Gets a connection monitor by name. + * Update tags of the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. + * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a connection monitor by name. + * @return information about the connection monitor. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionMonitorResultInner get(String resourceGroupName, String networkWatcherName, - String connectionMonitorName) { - return getWithResponse(resourceGroupName, networkWatcherName, connectionMonitorName, Context.NONE).getValue(); + public ConnectionMonitorResultInner updateTags(String resourceGroupName, String networkWatcherName, + String connectionMonitorName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, + Context.NONE).getValue(); } /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -620,6 +787,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -629,26 +800,21 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } if (connectionMonitorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, connectionMonitorName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -663,6 +829,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -675,22 +845,17 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, connectionMonitorName, context); } /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -709,8 +874,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -731,8 +896,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -748,8 +913,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -767,8 +932,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -784,8 +949,8 @@ public Mono deleteAsync(String resourceGroupName, String networkWatcherNam /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -803,8 +968,8 @@ private Mono deleteAsync(String resourceGroupName, String networkWatcherNa /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -818,8 +983,8 @@ public void delete(String resourceGroupName, String networkWatcherName, String c /** * Deletes the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -833,25 +998,26 @@ public void delete(String resourceGroupName, String networkWatcherName, String c } /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor along with {@link Response} on successful completion of - * {@link Mono}. + * @return list of connection monitors along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName, TagsObject parameters) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkWatcherName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -860,48 +1026,38 @@ public Mono> updateTagsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (connectionMonitorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor along with {@link Response} on successful completion of - * {@link Mono}. + * @return list of connection monitors along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkWatcherName, String connectionMonitorName, TagsObject parameters, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkWatcherName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -910,89 +1066,87 @@ private Mono> updateTagsWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (connectionMonitorName == null) { - return Mono - .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor on successful completion of {@link Mono}. + * @return list of connection monitors as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkWatcherName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor along with {@link Response}. + * @return list of connection monitors as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String networkWatcherName, String connectionMonitorName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, - context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkWatcherName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Update tags of the specified connection monitor. + * Lists all connection monitors for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param connectionMonitorName The name of the connection monitor. - * @param parameters Parameters supplied to update connection monitor tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the connection monitor. + * @return list of connection monitors as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionMonitorResultInner updateTags(String resourceGroupName, String networkWatcherName, - String connectionMonitorName, TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, - Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkWatcherName) { + return new PagedIterable<>(listAsync(resourceGroupName, networkWatcherName)); + } + + /** + * Lists all connection monitors for the specified Network Watcher. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of connection monitors as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkWatcherName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkWatcherName, context)); } /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1006,6 +1160,10 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1018,23 +1176,18 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - connectionMonitorName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, connectionMonitorName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1049,6 +1202,10 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1061,22 +1218,17 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, connectionMonitorName, context); } /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1095,8 +1247,8 @@ public PollerFlux, Void> beginStopAsync(String resourceGroupNam /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1117,8 +1269,8 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1134,8 +1286,8 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1153,8 +1305,8 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1170,8 +1322,8 @@ public Mono stopAsync(String resourceGroupName, String networkWatcherName, /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1189,8 +1341,8 @@ private Mono stopAsync(String resourceGroupName, String networkWatcherName /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1204,8 +1356,8 @@ public void stop(String resourceGroupName, String networkWatcherName, String con /** * Stops the specified connection monitor. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param connectionMonitorName The name of the connection monitor. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1219,49 +1371,34 @@ public void stop(String resourceGroupName, String networkWatcherName, String con } /** - * Lists all connection monitors for the specified Network Watcher. + * Get the next page of items. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of connection monitors along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkWatcherName) { + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all connection monitors for the specified Network Watcher. + * Get the next page of items. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1269,95 +1406,19 @@ private Mono> listSinglePageAsync(St * @return list of connection monitors along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkWatcherName, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); - } - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkWatcherName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName)); - } - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkWatcherName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName, context)); - } - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkWatcherName) { - return new PagedIterable<>(listAsync(resourceGroupName, networkWatcherName)); - } - - /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of connection monitors as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkWatcherName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkWatcherName, context)); + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java index 1072ef2129bc..27a533d62142 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ConnectivityConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.ConnectivityConfigurationInner; -import com.azure.resourcemanager.network.models.ConnectivityConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.ConnectivityConfigurationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,48 +67,47 @@ public final class ConnectivityConfigurationsClientImpl implements ConnectivityC * The interface defining all the services for NetworkManagementClientConnectivityConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientConnectivityConfigurations") public interface ConnectivityConfigurationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @BodyParam("application/json") ConnectivityConfigurationInner connectivityConfiguration, - @HeaderParam("Accept") String accept, Context context); + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectivityConfigurationInner connectivityConfiguration, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, @@ -119,7 +118,7 @@ Mono> list(@HostParam("$host") Str @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -127,7 +126,7 @@ Mono> listNext( * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,7 +170,7 @@ public Mono> getWithResponseAsync(Strin * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param context The context to associate with this operation. @@ -215,7 +214,7 @@ private Mono> getWithResponseAsync(Stri * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -235,7 +234,7 @@ public Mono getAsync(String resourceGroupName, S * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param context The context to associate with this operation. @@ -255,7 +254,7 @@ public Response getWithResponse(String resourceG * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and * connectivity Configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +272,7 @@ public ConnectivityConfigurationInner get(String resourceGroupName, String netwo /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -314,18 +313,19 @@ public Mono> createOrUpdateWithResponse connectivityConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - connectivityConfiguration, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, contentType, + accept, connectivityConfiguration, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -368,16 +368,18 @@ private Mono> createOrUpdateWithRespons connectivityConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, connectivityConfiguration, accept, context); + resourceGroupName, networkManagerName, configurationName, contentType, accept, connectivityConfiguration, + context); } /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -397,7 +399,7 @@ public Mono createOrUpdateAsync(String resourceG /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -419,7 +421,7 @@ public Response createOrUpdateWithResponse(Strin /** * Creates/Updates a new network manager connectivity configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity @@ -440,7 +442,7 @@ public ConnectivityConfigurationInner createOrUpdate(String resourceGroupName, S * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -474,11 +476,10 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, force, accept, context)) + resourceGroupName, networkManagerName, configurationName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -486,7 +487,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -521,17 +522,16 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, force, accept, context); + networkManagerName, configurationName, force, context); } /** * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -554,7 +554,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -576,7 +576,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -601,7 +601,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -620,7 +620,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -642,7 +642,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -663,7 +663,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -682,7 +682,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -704,7 +704,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -721,7 +721,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c * Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and * connectivity configuration name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -740,7 +740,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -750,8 +750,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ConnectivityConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -785,7 +785,7 @@ private Mono> listSinglePageAsync( /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -796,8 +796,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ConnectivityConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -831,7 +831,7 @@ private Mono> listSinglePageAsync( /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -841,8 +841,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with - * {@link PagedFlux}. + * @return the response of a ConnectivityConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -854,13 +853,12 @@ public PagedFlux listAsync(String resourceGroupN /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with - * {@link PagedFlux}. + * @return the response of a ConnectivityConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { @@ -873,7 +871,7 @@ public PagedFlux listAsync(String resourceGroupN /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -884,8 +882,7 @@ public PagedFlux listAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with - * {@link PagedFlux}. + * @return the response of a ConnectivityConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -898,12 +895,12 @@ private PagedFlux listAsync(String resourceGroup /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with + * @return the response of a ConnectivityConfiguration list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -916,7 +913,7 @@ public PagedIterable list(String resourceGroupNa /** * Lists all the network manager connectivity configuration in a specified network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -927,7 +924,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations as paginated response with + * @return the response of a ConnectivityConfiguration list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -943,8 +940,8 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ConnectivityConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -970,8 +967,8 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list network manager connectivity configurations along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ConnectivityConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java index a2d49be7a53c..b066fe62da4c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.CustomIpPrefixesClient; import com.azure.resourcemanager.network.fluent.models.CustomIpPrefixInner; -import com.azure.resourcemanager.network.models.CustomIpPrefixListResult; +import com.azure.resourcemanager.network.implementation.models.CustomIpPrefixListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,71 +73,63 @@ public final class CustomIpPrefixesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customIpPrefixName") String customIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customIpPrefixName") String customIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("customIpPrefixName") String customIpPrefixName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customIpPrefixName") String customIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") CustomIpPrefixInner parameters, @HeaderParam("Accept") String accept, + @PathParam("customIpPrefixName") String customIpPrefixName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CustomIpPrefixInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customIpPrefixName") String customIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("customIpPrefixName") String customIpPrefixName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customIpPrefixName") String customIpPrefixName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -145,219 +137,22 @@ Mono> listAllNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String customIpPrefixName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (customIpPrefixName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String customIpPrefixName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (customIpPrefixName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, customIpPrefixName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, customIpPrefixName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName) { - return this.beginDeleteAsync(resourceGroupName, customIpPrefixName).getSyncPoller(); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, customIpPrefixName, context).getSyncPoller(); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String customIpPrefixName) { - return beginDeleteAsync(resourceGroupName, customIpPrefixName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String customIpPrefixName, Context context) { - return beginDeleteAsync(resourceGroupName, customIpPrefixName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String customIpPrefixName) { - deleteAsync(resourceGroupName, customIpPrefixName).block(); - } - /** - * Deletes the specified custom IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param customIpPrefixName The name of the CustomIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String customIpPrefixName, Context context) { - deleteAsync(resourceGroupName, customIpPrefixName, context).block(); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,6 +168,10 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -381,22 +180,18 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - customIpPrefixName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, customIpPrefixName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -413,6 +208,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -421,21 +220,17 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, customIpPrefixName, expand, accept, context); } /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -452,7 +247,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -470,7 +265,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets the specified custom IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -486,7 +281,7 @@ public CustomIpPrefixInner getByResourceGroup(String resourceGroupName, String c /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -501,6 +296,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -509,27 +308,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - customIpPrefixName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, customIpPrefixName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -545,6 +342,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -553,26 +354,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, customIpPrefixName, contentType, accept, parameters, context); } /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -592,7 +390,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -614,7 +412,7 @@ private PollerFlux, CustomIpPrefixInner> beginCr /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -631,7 +429,7 @@ private PollerFlux, CustomIpPrefixInner> beginCr /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -650,7 +448,7 @@ public SyncPoller, CustomIpPrefixInner> beginCre /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -668,7 +466,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -687,7 +485,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,7 +502,7 @@ public CustomIpPrefixInner createOrUpdate(String resourceGroupName, String custo /** * Creates or updates a custom IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. * @param context The context to associate with this operation. @@ -722,7 +520,7 @@ public CustomIpPrefixInner createOrUpdate(String resourceGroupName, String custo /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -737,6 +535,10 @@ public Mono> updateTagsWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -745,27 +547,25 @@ public Mono> updateTagsWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, customIpPrefixName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @param context The context to associate with this operation. @@ -781,6 +581,10 @@ private Mono> updateTagsWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -789,26 +593,23 @@ private Mono> updateTagsWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, customIpPrefixName, contentType, accept, parameters, context); } /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -826,7 +627,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @param context The context to associate with this operation. @@ -844,7 +645,7 @@ public Response updateTagsWithResponse(String resourceGroup /** * Updates custom IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -858,15 +659,18 @@ public CustomIpPrefixInner updateTags(String resourceGroupName, String customIpP } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String customIpPrefixName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -875,28 +679,35 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customIpPrefixName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, customIpPrefixName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customIpPrefixName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -905,71 +716,155 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customIpPrefixName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customIpPrefixName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + customIpPrefixName, context); } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, customIpPrefixName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customIpPrefixName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, customIpPrefixName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName) { + return this.beginDeleteAsync(resourceGroupName, customIpPrefixName).getSyncPoller(); } /** - * Gets all the custom IP prefixes in a subscription. + * Deletes the specified custom IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customIpPrefixName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, customIpPrefixName, context).getSyncPoller(); + } + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String customIpPrefixName) { + return beginDeleteAsync(resourceGroupName, customIpPrefixName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customIpPrefixName, Context context) { + return beginDeleteAsync(resourceGroupName, customIpPrefixName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customIpPrefixName) { + deleteAsync(resourceGroupName, customIpPrefixName).block(); + } + + /** + * Deletes the specified custom IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customIpPrefixName The name of the custom IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customIpPrefixName, Context context) { + deleteAsync(resourceGroupName, customIpPrefixName, context).block(); } /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -982,19 +877,19 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1003,7 +898,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1018,20 +913,20 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1039,7 +934,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1054,7 +949,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1070,7 +965,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1084,7 +979,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets all custom IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1096,6 +991,115 @@ public PagedIterable listByResourceGroup(String resourceGro return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } + /** + * Gets all the custom IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the custom IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the custom IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -1103,11 +1107,11 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * @return all custom IP prefixes in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1116,8 +1120,7 @@ private Mono> listAllNextSinglePageAsync(Stri new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1131,11 +1134,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * @return all custom IP prefixes in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1145,7 +1148,7 @@ private Mono> listAllNextSinglePageAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1157,11 +1160,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all custom IP prefixes in a resource group along with {@link PagedResponse} on successful completion of + * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1170,7 +1173,8 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1184,11 +1188,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all custom IP prefixes in a resource group along with {@link PagedResponse} on successful completion of + * @return all the custom IP prefixes in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1198,7 +1202,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java index 50662cb832fa..5cf7401a79a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -67,262 +67,53 @@ public final class DdosCustomPoliciesClientImpl * The interface defining all the services for NetworkManagementClientDdosCustomPolicies to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientDdosCustomPolicies") public interface DdosCustomPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") DdosCustomPolicyInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DdosCustomPolicyInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String ddosCustomPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ddosCustomPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String ddosCustomPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ddosCustomPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, ddosCustomPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, ddosCustomPolicyName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName) { - return this.beginDeleteAsync(resourceGroupName, ddosCustomPolicyName).getSyncPoller(); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, ddosCustomPolicyName, context).getSyncPoller(); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName) { - return beginDeleteAsync(resourceGroupName, ddosCustomPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName, Context context) { - return beginDeleteAsync(resourceGroupName, ddosCustomPolicyName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ddosCustomPolicyName) { - deleteAsync(resourceGroupName, ddosCustomPolicyName).block(); - } - - /** - * Deletes the specified DDoS custom policy. - * - * @param resourceGroupName The name of the resource group. - * @param ddosCustomPolicyName The name of the DDoS custom policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ddosCustomPolicyName, Context context) { - deleteAsync(resourceGroupName, ddosCustomPolicyName, context).block(); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("ddosCustomPolicyName") String ddosCustomPolicyName, Context context); } /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -337,6 +128,10 @@ public Mono> getByResourceGroupWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -345,22 +140,18 @@ public Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - ddosCustomPolicyName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosCustomPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -376,6 +167,10 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -384,21 +179,17 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosCustomPolicyName, accept, context); } /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -414,7 +205,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,7 +222,7 @@ public Response getByResourceGroupWithResponse(String res /** * Gets information about the specified DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -446,7 +237,7 @@ public DdosCustomPolicyInner getByResourceGroup(String resourceGroupName, String /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -462,6 +253,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -470,27 +265,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - ddosCustomPolicyName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosCustomPolicyName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -507,6 +300,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -515,26 +312,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosCustomPolicyName, contentType, accept, parameters, context); } /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -555,7 +349,7 @@ public PollerFlux, DdosCustomPolicyInner> begi /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -577,7 +371,7 @@ private PollerFlux, DdosCustomPolicyInner> beg /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -594,7 +388,7 @@ private PollerFlux, DdosCustomPolicyInner> beg /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -613,7 +407,7 @@ public SyncPoller, DdosCustomPolicyInner> begi /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -631,7 +425,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -650,7 +444,7 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -667,7 +461,7 @@ public DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddo /** * Creates or updates a DDoS custom policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -685,7 +479,7 @@ public DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddo /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -701,6 +495,10 @@ public Mono> updateTagsWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -709,27 +507,25 @@ public Mono> updateTagsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - ddosCustomPolicyName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosCustomPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @param context The context to associate with this operation. @@ -746,6 +542,10 @@ private Mono> updateTagsWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -754,26 +554,23 @@ private Mono> updateTagsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosCustomPolicyName, contentType, accept, parameters, context); } /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -791,7 +588,7 @@ public Mono updateTagsAsync(String resourceGroupName, Str /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @param context The context to associate with this operation. @@ -809,7 +606,7 @@ public Response updateTagsWithResponse(String resourceGro /** * Update a DDoS custom policy tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -822,4 +619,208 @@ public DdosCustomPolicyInner updateTags(String resourceGroupName, String ddosCus TagsObject parameters) { return updateTagsWithResponse(resourceGroupName, ddosCustomPolicyName, parameters, Context.NONE).getValue(); } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String ddosCustomPolicyName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ddosCustomPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosCustomPolicyName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String ddosCustomPolicyName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ddosCustomPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ddosCustomPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + ddosCustomPolicyName, context); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, ddosCustomPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosCustomPolicyName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, ddosCustomPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName) { + return this.beginDeleteAsync(resourceGroupName, ddosCustomPolicyName).getSyncPoller(); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosCustomPolicyName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, ddosCustomPolicyName, context).getSyncPoller(); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName) { + return beginDeleteAsync(resourceGroupName, ddosCustomPolicyName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyName, Context context) { + return beginDeleteAsync(resourceGroupName, ddosCustomPolicyName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String ddosCustomPolicyName) { + deleteAsync(resourceGroupName, ddosCustomPolicyName).block(); + } + + /** + * Deletes the specified DDoS custom policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String ddosCustomPolicyName, Context context) { + deleteAsync(resourceGroupName, ddosCustomPolicyName, context).block(); + } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java index 3f2bd9e3c534..160b5375f7eb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.DdosProtectionPlansClient; import com.azure.resourcemanager.network.fluent.models.DdosProtectionPlanInner; -import com.azure.resourcemanager.network.models.DdosProtectionPlanListResult; +import com.azure.resourcemanager.network.implementation.models.DdosProtectionPlanListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,139 +73,104 @@ public final class DdosProtectionPlansClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") DdosProtectionPlanInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DdosProtectionPlanInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("ddosProtectionPlanName") String ddosProtectionPlanName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified DDoS protection plan. + * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return information about the specified DDoS protection plan along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String ddosProtectionPlanName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ddosProtectionPlanName == null) { - return Mono.error( - new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String ddosProtectionPlanName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -214,192 +179,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String ddosProtectionPlanName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, ddosProtectionPlanName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosProtectionPlanName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, ddosProtectionPlanName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName) { - return this.beginDeleteAsync(resourceGroupName, ddosProtectionPlanName).getSyncPoller(); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, ddosProtectionPlanName, context).getSyncPoller(); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName) { - return beginDeleteAsync(resourceGroupName, ddosProtectionPlanName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName, Context context) { - return beginDeleteAsync(resourceGroupName, ddosProtectionPlanName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ddosProtectionPlanName) { - deleteAsync(resourceGroupName, ddosProtectionPlanName).block(); - } - - /** - * Deletes the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ddosProtectionPlanName, Context context) { - deleteAsync(resourceGroupName, ddosProtectionPlanName, context).block(); - } - - /** - * Gets information about the specified DDoS protection plan. - * - * @param resourceGroupName The name of the resource group. - * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified DDoS protection plan along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String ddosProtectionPlanName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ddosProtectionPlanName == null) { - return Mono.error( - new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - ddosProtectionPlanName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosProtectionPlanName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -415,6 +206,10 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -423,21 +218,17 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosProtectionPlanName, accept, context); } /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -454,7 +245,7 @@ public Mono getByResourceGroupAsync(String resourceGrou /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,7 +262,7 @@ public Response getByResourceGroupWithResponse(String r /** * Gets information about the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -486,7 +277,7 @@ public DdosProtectionPlanInner getByResourceGroup(String resourceGroupName, Stri /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -502,6 +293,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -510,27 +305,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - ddosProtectionPlanName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosProtectionPlanName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -547,6 +340,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -555,26 +352,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosProtectionPlanName, contentType, accept, parameters, context); } /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -595,7 +389,7 @@ public PollerFlux, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -617,7 +411,7 @@ private PollerFlux, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,7 +428,7 @@ public SyncPoller, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -653,7 +447,7 @@ public SyncPoller, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -671,7 +465,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -690,7 +484,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -707,7 +501,7 @@ public DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String d /** * Creates or updates a DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. * @param context The context to associate with this operation. @@ -725,7 +519,7 @@ public DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String d /** * Update a DDoS protection plan tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -741,6 +535,10 @@ public Mono> updateTagsWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -749,130 +547,336 @@ public Mono> updateTagsWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosProtectionPlanName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a DDoS protection plan tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param parameters Parameters supplied to the update DDoS protection plan resource tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DDoS protection plan in a resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String ddosProtectionPlanName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ddosProtectionPlanName == null) { + return Mono.error( + new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ddosProtectionPlanName, contentType, accept, parameters, context); + } + + /** + * Update a DDoS protection plan tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param parameters Parameters supplied to the update DDoS protection plan resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DDoS protection plan in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String ddosProtectionPlanName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, ddosProtectionPlanName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update a DDoS protection plan tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param parameters Parameters supplied to the update DDoS protection plan resource tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DDoS protection plan in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String ddosProtectionPlanName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, ddosProtectionPlanName, parameters, context).block(); + } + + /** + * Update a DDoS protection plan tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param parameters Parameters supplied to the update DDoS protection plan resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DDoS protection plan in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DdosProtectionPlanInner updateTags(String resourceGroupName, String ddosProtectionPlanName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, ddosProtectionPlanName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String ddosProtectionPlanName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ddosProtectionPlanName == null) { + return Mono.error( + new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - ddosProtectionPlanName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ddosProtectionPlanName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a DDoS protection plan tags. + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String ddosProtectionPlanName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ddosProtectionPlanName == null) { + return Mono.error( + new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + ddosProtectionPlanName, context); + } + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String ddosProtectionPlanName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, ddosProtectionPlanName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ddosProtectionPlanName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, ddosProtectionPlanName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified DDoS protection plan. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName) { + return this.beginDeleteAsync(resourceGroupName, ddosProtectionPlanName).getSyncPoller(); + } + + /** + * Deletes the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DDoS protection plan in a resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String ddosProtectionPlanName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ddosProtectionPlanName == null) { - return Mono.error( - new IllegalArgumentException("Parameter ddosProtectionPlanName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ddosProtectionPlanName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, ddosProtectionPlanName, context).getSyncPoller(); } /** - * Update a DDoS protection plan tags. + * Deletes the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DDoS protection plan in a resource group on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String ddosProtectionPlanName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, ddosProtectionPlanName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName) { + return beginDeleteAsync(resourceGroupName, ddosProtectionPlanName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Update a DDoS protection plan tags. + * Deletes the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DDoS protection plan in a resource group along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String ddosProtectionPlanName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, ddosProtectionPlanName, parameters, context).block(); + private Mono deleteAsync(String resourceGroupName, String ddosProtectionPlanName, Context context) { + return beginDeleteAsync(resourceGroupName, ddosProtectionPlanName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Update a DDoS protection plan tags. + * Deletes the specified DDoS protection plan. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ddosProtectionPlanName The name of the DDoS protection plan. - * @param parameters Parameters supplied to the update DDoS protection plan resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DDoS protection plan in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DdosProtectionPlanInner updateTags(String resourceGroupName, String ddosProtectionPlanName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, ddosProtectionPlanName, parameters, Context.NONE).getValue(); + public void delete(String resourceGroupName, String ddosProtectionPlanName) { + deleteAsync(resourceGroupName, ddosProtectionPlanName).block(); } /** - * Gets all DDoS protection plans in a subscription. + * Deletes the specified DDoS protection plan. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ddosProtectionPlanName The name of the DDoS protection plan. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public void delete(String resourceGroupName, String ddosProtectionPlanName, Context context) { + deleteAsync(resourceGroupName, ddosProtectionPlanName, context).block(); + } + + /** + * Gets all the DDoS protection plans in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -881,28 +885,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all DDoS protection plans in a subscription. + * Gets all the DDoS protection plans in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -911,87 +921,94 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all DDoS protection plans in a subscription. + * Gets all the DDoS protection plans in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. + * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Gets all DDoS protection plans in a subscription. + * Gets all the DDoS protection plans in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. + * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** - * Gets all DDoS protection plans in a subscription. + * Gets all the DDoS protection plans in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all DDoS protection plans in a subscription. + * Gets all the DDoS protection plans in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. + * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -999,35 +1016,29 @@ private Mono> listByResourceGroupSinglePa final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1035,71 +1046,62 @@ private Mono> listByResourceGroupSinglePa final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedFlux}. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedFlux}. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedIterable}. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all the DDoS protection plans in a resource group. + * Gets all DDoS protection plans in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group as paginated response with {@link PagedIterable}. + * @return all DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1109,11 +1111,11 @@ public PagedIterable listByResourceGroup(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1122,7 +1124,9 @@ private Mono> listNextSinglePageAsync(Str new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1136,11 +1140,12 @@ private Mono> listNextSinglePageAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1150,7 +1155,7 @@ private Mono> listNextSinglePageAsync(Str } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1162,11 +1167,11 @@ private Mono> listNextSinglePageAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1175,9 +1180,7 @@ private Mono> listByResourceGroupNextSing new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1191,12 +1194,11 @@ private Mono> listByResourceGroupNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the DDoS protection plans in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return all DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1206,7 +1208,7 @@ private Mono> listByResourceGroupNextSing } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java index d5ba9c65029a..01f9939d0599 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.DefaultSecurityRulesClient; import com.azure.resourcemanager.network.fluent.models.SecurityRuleInner; -import com.azure.resourcemanager.network.models.SecurityRuleListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityRuleListResult; import reactor.core.publisher.Mono; /** @@ -59,28 +59,28 @@ public final class DefaultSecurityRulesClientImpl implements DefaultSecurityRule * The interface defining all the services for NetworkManagementClientDefaultSecurityRules to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientDefaultSecurityRules") public interface DefaultSecurityRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("defaultSecurityRuleName") String defaultSecurityRuleName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @PathParam("defaultSecurityRuleName") String defaultSecurityRuleName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -88,27 +88,32 @@ Mono> get(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the specified default network security rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkSecurityGroupName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, String defaultSecurityRuleName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -117,39 +122,42 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (defaultSecurityRuleName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defaultSecurityRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the specified default network security rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkSecurityGroupName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, String defaultSecurityRuleName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -158,105 +166,94 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (defaultSecurityRuleName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defaultSecurityRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, defaultSecurityRuleName, accept, context); } /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. + * @return the specified default network security rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkSecurityGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName) { + return getWithResponseAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. + * @return the specified default network security rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkSecurityGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName, Context context) { + return getWithResponseAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, context) + .block(); } /** - * Gets all default security rules in a network security group. + * Get the specified default network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. + * @return the specified default network security rule. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkSecurityGroupName) { - return new PagedIterable<>(listAsync(resourceGroupName, networkSecurityGroupName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, + String defaultSecurityRuleName) { + return getWithResponse(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, Context.NONE) + .getValue(); } /** * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkSecurityGroupName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkSecurityGroupName, context)); - } - - /** - * Get the specified default network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return all default security rules in a network security group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, String defaultSecurityRuleName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkSecurityGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -265,42 +262,39 @@ public Mono> getWithResponseAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (defaultSecurityRuleName == null) { - return Mono.error( - new IllegalArgumentException("Parameter defaultSecurityRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - defaultSecurityRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return all default security rules in a network security group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, String defaultSecurityRuleName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkSecurityGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -309,74 +303,80 @@ private Mono> getWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (defaultSecurityRuleName == null) { - return Mono.error( - new IllegalArgumentException("Parameter defaultSecurityRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - defaultSecurityRuleName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule on successful completion of {@link Mono}. + * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName) { - return getWithResponseAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkSecurityGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule along with {@link Response}. + * @return all default security rules in a network security group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName, Context context) { - return getWithResponseAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, context) - .block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkSecurityGroupName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkSecurityGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Get the specified default network security rule. + * Gets all default security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param defaultSecurityRuleName The name of the default security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified default network security rule. + * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, - String defaultSecurityRuleName) { - return getWithResponse(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, Context.NONE) - .getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkSecurityGroupName) { + return new PagedIterable<>(listAsync(resourceGroupName, networkSecurityGroupName)); + } + + /** + * Gets all default security rules in a network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all default security rules in a network security group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkSecurityGroupName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkSecurityGroupName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java index 6db88ca8797f..39de94bda0a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.DscpConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.DscpConfigurationInner; -import com.azure.resourcemanager.network.models.DscpConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.DscpConfigurationListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -71,53 +71,52 @@ public final class DscpConfigurationsClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("dscpConfigurationName") String dscpConfigurationName, @HeaderParam("Accept") String accept, + Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dscpConfigurationName") String dscpConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") DscpConfigurationInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DscpConfigurationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("dscpConfigurationName") String dscpConfigurationName, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("dscpConfigurationName") String dscpConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("dscpConfigurationName") String dscpConfigurationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dscpConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -126,7 +125,7 @@ Mono> list(@HostParam("$host") String endp @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -134,16 +133,139 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String dscpConfigurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (dscpConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, dscpConfigurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String dscpConfigurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (dscpConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, dscpConfigurationName, accept, context); + } + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String dscpConfigurationName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, dscpConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String dscpConfigurationName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, dscpConfigurationName, context).block(); + } + + /** + * Gets a DSCP Configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dscpConfigurationName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DSCP Configuration. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DscpConfigurationInner getByResourceGroup(String resourceGroupName, String dscpConfigurationName) { + return getByResourceGroupWithResponse(resourceGroupName, dscpConfigurationName, Context.NONE).getValue(); + } + /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -157,6 +279,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -165,29 +291,27 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - dscpConfigurationName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, dscpConfigurationName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -202,6 +326,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -210,28 +338,25 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, dscpConfigurationName, contentType, accept, parameters, context); } /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -251,9 +376,9 @@ public PollerFlux, DscpConfigurationInner> be /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -274,9 +399,9 @@ private PollerFlux, DscpConfigurationInner> b /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -292,9 +417,9 @@ private PollerFlux, DscpConfigurationInner> b /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -312,9 +437,9 @@ public SyncPoller, DscpConfigurationInner> be /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -331,9 +456,9 @@ public Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -351,9 +476,9 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -368,9 +493,9 @@ public DscpConfigurationInner createOrUpdate(String resourceGroupName, String ds /** * Creates or updates a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. - * @param parameters Parameters supplied to the create or update dscp configuration operation. + * @param parameters Parameters supplied to the create or update DscpConfiguration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -386,7 +511,7 @@ public DscpConfigurationInner createOrUpdate(String resourceGroupName, String ds /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -400,6 +525,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -408,22 +537,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, dscpConfigurationName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -438,6 +562,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -446,21 +574,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + dscpConfigurationName, context); } /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,7 +600,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -498,7 +621,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -513,7 +636,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -530,7 +653,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -546,7 +669,7 @@ public Mono deleteAsync(String resourceGroupName, String dscpConfiguration /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -563,7 +686,7 @@ private Mono deleteAsync(String resourceGroupName, String dscpConfiguratio /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -577,7 +700,7 @@ public void delete(String resourceGroupName, String dscpConfigurationName) { /** * Deletes a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dscpConfigurationName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -592,154 +715,31 @@ public void delete(String resourceGroupName, String dscpConfigurationName, Conte /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. + * @return a DSCP Configuration along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String dscpConfigurationName) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (dscpConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - dscpConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String dscpConfigurationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dscpConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter dscpConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String dscpConfigurationName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, dscpConfigurationName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String dscpConfigurationName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, dscpConfigurationName, context).block(); - } - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @param dscpConfigurationName The name of the resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DscpConfigurationInner getByResourceGroup(String resourceGroupName, String dscpConfigurationName) { - return getByResourceGroupWithResponse(resourceGroupName, dscpConfigurationName, Context.NONE).getValue(); - } - - /** - * Gets a DSCP Configuration. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a DSCP Configuration along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -748,7 +748,7 @@ private Mono> listByResourceGroupSinglePag /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -762,20 +762,20 @@ private Mono> listByResourceGroupSinglePag return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -783,7 +783,7 @@ private Mono> listByResourceGroupSinglePag /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -798,7 +798,7 @@ public PagedFlux listByResourceGroupAsync(String resourc /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -814,7 +814,7 @@ private PagedFlux listByResourceGroupAsync(String resour /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -828,7 +828,7 @@ public PagedIterable listByResourceGroup(String resource /** * Gets a DSCP Configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java index 85c3c135ab3a..39cc8f0d4893 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitAuthorizationsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner; -import com.azure.resourcemanager.network.models.AuthorizationListResult; +import com.azure.resourcemanager.network.implementation.models.AuthorizationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,45 +67,46 @@ public final class ExpressRouteCircuitAuthorizationsClientImpl implements Expres * The interface defining all the services for NetworkManagementClientExpressRouteCircuitAuthorizations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteCircuitAuthorizations") public interface ExpressRouteCircuitAuthorizationsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("authorizationName") String authorizationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ExpressRouteCircuitAuthorizationInner authorizationParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @PathParam("authorizationName") String authorizationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -113,240 +114,14 @@ Mono> list(@HostParam("$host") String endpoint @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String authorizationName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (authorizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, - authorizationName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String authorizationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (authorizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String authorizationName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, circuitName, authorizationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String authorizationName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, circuitName, authorizationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String authorizationName) { - return this.beginDeleteAsync(resourceGroupName, circuitName, authorizationName).getSyncPoller(); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String authorizationName, Context context) { - return this.beginDeleteAsync(resourceGroupName, circuitName, authorizationName, context).getSyncPoller(); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName) { - return beginDeleteAsync(resourceGroupName, circuitName, authorizationName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName, - Context context) { - return beginDeleteAsync(resourceGroupName, circuitName, authorizationName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String authorizationName) { - deleteAsync(resourceGroupName, circuitName, authorizationName).block(); - } - - /** - * Deletes the specified authorization from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String authorizationName, Context context) { - deleteAsync(resourceGroupName, circuitName, authorizationName, context).block(); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -361,6 +136,10 @@ public Mono> getWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -372,23 +151,19 @@ public Mono> getWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, - authorizationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, authorizationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -404,6 +179,10 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -415,22 +194,18 @@ private Mono> getWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, authorizationName, accept, context); } /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -448,8 +223,8 @@ public Mono getAsync(String resourceGroup /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -466,8 +241,8 @@ public Response getWithResponse(String re /** * Gets the specified authorization from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -483,8 +258,8 @@ public ExpressRouteCircuitAuthorizationInner get(String resourceGroupName, Strin /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -501,6 +276,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -512,10 +291,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (authorizationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null.")); @@ -523,19 +298,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r authorizationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, - authorizationName, apiVersion, this.client.getSubscriptionId(), authorizationParameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, authorizationName, contentType, accept, + authorizationParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -554,6 +330,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -565,10 +345,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (authorizationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null.")); @@ -576,17 +352,18 @@ private Mono>> createOrUpdateWithResponseAsync(String authorizationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, - apiVersion, this.client.getSubscriptionId(), authorizationParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, authorizationName, contentType, accept, authorizationParameters, context); } /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -609,8 +386,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -635,8 +412,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -656,8 +433,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -680,8 +457,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -701,8 +478,8 @@ public Mono createOrUpdateAsync(String re /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -723,8 +500,8 @@ private Mono createOrUpdateAsync(String r /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -742,8 +519,8 @@ public ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroup /** * Creates or updates an authorization in the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route circuit authorization * operation. @@ -760,11 +537,235 @@ public ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroup .block(); } + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String authorizationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (authorizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, authorizationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String authorizationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (authorizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, authorizationName, context); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String authorizationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, circuitName, authorizationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String authorizationName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, circuitName, authorizationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String authorizationName) { + return this.beginDeleteAsync(resourceGroupName, circuitName, authorizationName).getSyncPoller(); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String authorizationName, Context context) { + return this.beginDeleteAsync(resourceGroupName, circuitName, authorizationName, context).getSyncPoller(); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName) { + return beginDeleteAsync(resourceGroupName, circuitName, authorizationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String circuitName, String authorizationName, + Context context) { + return beginDeleteAsync(resourceGroupName, circuitName, authorizationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String authorizationName) { + deleteAsync(resourceGroupName, circuitName, authorizationName).block(); + } + + /** + * Deletes the specified authorization from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String authorizationName, Context context) { + deleteAsync(resourceGroupName, circuitName, authorizationName, context).block(); + } + /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -778,6 +779,10 @@ private Mono> listSinglePag return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -785,15 +790,11 @@ private Mono> listSinglePag if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -802,8 +803,8 @@ private Mono> listSinglePag /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -818,6 +819,10 @@ private Mono> listSinglePag return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -825,16 +830,12 @@ private Mono> listSinglePag if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -842,8 +843,8 @@ private Mono> listSinglePag /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -858,8 +859,8 @@ public PagedFlux listAsync(String resourc /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -876,8 +877,8 @@ private PagedFlux listAsync(String resour /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -891,8 +892,8 @@ public PagedIterable list(String resource /** * Gets all authorizations in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java index e716f40fcffe..e9efc7c2136e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitConnectionInner; -import com.azure.resourcemanager.network.models.ExpressRouteCircuitConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteCircuitConnectionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,306 +67,63 @@ public final class ExpressRouteCircuitConnectionsClientImpl implements ExpressRo * The interface defining all the services for NetworkManagementClientExpressRouteCircuitConnections to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteCircuitConnections") public interface ExpressRouteCircuitConnectionsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @PathParam("peeringName") String peeringName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @PathParam("peeringName") String peeringName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @PathParam("peeringName") String peeringName, @PathParam("connectionName") String connectionName, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("peeringName") String peeringName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (connectionName == null) { - return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (connectionName == null) { - return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, connectionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName, String connectionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, connectionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String peeringName, String connectionName) { - return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName).getSyncPoller(); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String peeringName, String connectionName, Context context) { - return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, - String connectionName) { - return beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, - String connectionName, Context context) { - return beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName) { - deleteAsync(resourceGroupName, circuitName, peeringName, connectionName).block(); - } - - /** - * Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param connectionName The name of the express route circuit connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName, - Context context) { - deleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context).block(); - } - /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -382,6 +139,10 @@ public Mono> getWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -395,23 +156,19 @@ public Mono> getWithResponseAsync(S if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param context The context to associate with this operation. @@ -428,6 +185,10 @@ private Mono> getWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -441,22 +202,18 @@ private Mono> getWithResponseAsync( if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, connectionName, accept, context); } /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -475,8 +232,8 @@ public Mono getAsync(String resourceGroupNam /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param context The context to associate with this operation. @@ -495,8 +252,8 @@ public Response getWithResponse(String resou /** * Gets the specified Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -513,8 +270,8 @@ public ExpressRouteCircuitConnectionInner get(String resourceGroupName, String c /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -533,6 +290,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -546,10 +307,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (expressRouteCircuitConnectionParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter expressRouteCircuitConnectionParameters is required and cannot be null.")); @@ -557,19 +314,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r expressRouteCircuitConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, connectionName, apiVersion, this.client.getSubscriptionId(), - expressRouteCircuitConnectionParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, connectionName, + contentType, accept, expressRouteCircuitConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -589,6 +347,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -602,10 +364,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (expressRouteCircuitConnectionParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter expressRouteCircuitConnectionParameters is required and cannot be null.")); @@ -613,18 +371,19 @@ private Mono>> createOrUpdateWithResponseAsync(String expressRouteCircuitConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - connectionName, apiVersion, this.client.getSubscriptionId(), expressRouteCircuitConnectionParameters, - accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, connectionName, contentType, accept, + expressRouteCircuitConnectionParameters, context); } /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -649,8 +408,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -678,8 +437,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -703,8 +462,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -729,8 +488,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -752,8 +511,8 @@ public Mono createOrUpdateAsync(String resou /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -776,8 +535,8 @@ private Mono createOrUpdateAsync(String reso /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -798,8 +557,8 @@ public ExpressRouteCircuitConnectionInner createOrUpdate(String resourceGroupNam /** * Creates or updates a Express Route Circuit Connection in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param connectionName The name of the express route circuit connection. * @param expressRouteCircuitConnectionParameters Parameters supplied to the create or update express route circuit @@ -818,11 +577,252 @@ public ExpressRouteCircuitConnectionInner createOrUpdate(String resourceGroupNam expressRouteCircuitConnectionParameters, context).block(); } + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (connectionName == null) { + return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, connectionName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (connectionName == null) { + return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, connectionName, context); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, connectionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName, String connectionName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, connectionName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String peeringName, String connectionName) { + return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName).getSyncPoller(); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String peeringName, String connectionName, Context context) { + return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, + String connectionName) { + return beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, + String connectionName, Context context) { + return beginDeleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName) { + deleteAsync(resourceGroupName, circuitName, peeringName, connectionName).block(); + } + + /** + * Deletes the specified Express Route Circuit Connection from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param connectionName The name of the express route circuit connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String peeringName, String connectionName, + Context context) { + deleteAsync(resourceGroupName, circuitName, peeringName, connectionName, context).block(); + } + /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -837,6 +837,10 @@ private Mono> listSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -847,15 +851,11 @@ private Mono> listSinglePageAs if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -864,8 +864,8 @@ private Mono> listSinglePageAs /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -881,6 +881,10 @@ private Mono> listSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -891,16 +895,12 @@ private Mono> listSinglePageAs if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -908,8 +908,8 @@ private Mono> listSinglePageAs /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -927,8 +927,8 @@ public PagedFlux listAsync(String resourceGr /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -947,8 +947,8 @@ private PagedFlux listAsync(String resourceG /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -965,8 +965,8 @@ public PagedIterable list(String resourceGro /** * Gets all global reach connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java index 850867a4d788..ed6babce52e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitPeeringsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitPeeringInner; -import com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteCircuitPeeringListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,45 +67,44 @@ public final class ExpressRouteCircuitPeeringsClientImpl implements ExpressRoute * The interface defining all the services for NetworkManagementClientExpressRouteCircuitPeerings to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteCircuitPeerings") public interface ExpressRouteCircuitPeeringsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("peeringName") String peeringName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteCircuitPeeringInner peeringParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("peeringName") String peeringName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteCircuitPeeringInner peeringParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @PathParam("peeringName") String peeringName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -113,237 +112,15 @@ Mono> list(@HostParam("$host") St @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - String peeringName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String peeringName) { - return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName).getSyncPoller(); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - String peeringName, Context context) { - return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, context).getSyncPoller(); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName) { - return beginDeleteAsync(resourceGroupName, circuitName, peeringName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, Context context) { - return beginDeleteAsync(resourceGroupName, circuitName, peeringName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String peeringName) { - deleteAsync(resourceGroupName, circuitName, peeringName).block(); - } - - /** - * Deletes the specified peering from the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, String peeringName, Context context) { - deleteAsync(resourceGroupName, circuitName, peeringName, context).block(); - } - /** * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -358,6 +135,10 @@ public Mono> getWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -368,23 +149,19 @@ public Mono> getWithResponseAsync(Stri if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -400,6 +177,10 @@ private Mono> getWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -410,22 +191,18 @@ private Mono> getWithResponseAsync(Str if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, accept, context); } /** * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -442,8 +219,8 @@ public Mono getAsync(String resourceGroupName, /** * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -460,8 +237,8 @@ public Response getWithResponse(String resource /** * Gets the specified peering for the express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -476,8 +253,8 @@ public ExpressRouteCircuitPeeringInner get(String resourceGroupName, String circ /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -493,6 +270,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -503,10 +284,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (peeringParameters == null) { return Mono .error(new IllegalArgumentException("Parameter peeringParameters is required and cannot be null.")); @@ -514,18 +291,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r peeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, apiVersion, this.client.getSubscriptionId(), peeringParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, contentType, accept, + peeringParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. @@ -542,6 +321,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -552,10 +335,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (peeringParameters == null) { return Mono .error(new IllegalArgumentException("Parameter peeringParameters is required and cannot be null.")); @@ -563,17 +342,18 @@ private Mono>> createOrUpdateWithResponseAsync(String peeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - apiVersion, this.client.getSubscriptionId(), peeringParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, contentType, accept, peeringParameters, context); } /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -595,8 +375,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. @@ -620,8 +400,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -640,8 +420,8 @@ public SyncPoller, ExpressRouteCircu /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. @@ -661,8 +441,8 @@ public SyncPoller, ExpressRouteCircu /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -680,8 +460,8 @@ public Mono createOrUpdateAsync(String resource /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. @@ -700,8 +480,8 @@ private Mono createOrUpdateAsync(String resourc /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -718,8 +498,8 @@ public ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, /** * Creates or updates a peering in the specified express route circuits. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update express route circuit peering operation. * @param context The context to associate with this operation. @@ -734,11 +514,231 @@ public ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, return createOrUpdateAsync(resourceGroupName, circuitName, peeringName, peeringParameters, context).block(); } + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, context); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + String peeringName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, circuitName, peeringName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String peeringName) { + return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName).getSyncPoller(); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + String peeringName, Context context) { + return this.beginDeleteAsync(resourceGroupName, circuitName, peeringName, context).getSyncPoller(); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName) { + return beginDeleteAsync(resourceGroupName, circuitName, peeringName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String circuitName, String peeringName, Context context) { + return beginDeleteAsync(resourceGroupName, circuitName, peeringName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String peeringName) { + deleteAsync(resourceGroupName, circuitName, peeringName).block(); + } + + /** + * Deletes the specified peering from the specified express route circuit. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String circuitName, String peeringName, Context context) { + deleteAsync(resourceGroupName, circuitName, peeringName, context).block(); + } + /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -752,6 +752,10 @@ private Mono> listSinglePageAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -759,15 +763,11 @@ private Mono> listSinglePageAsync if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -776,8 +776,8 @@ private Mono> listSinglePageAsync /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -792,6 +792,10 @@ private Mono> listSinglePageAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -799,16 +803,12 @@ private Mono> listSinglePageAsync if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -816,8 +816,8 @@ private Mono> listSinglePageAsync /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -832,8 +832,8 @@ public PagedFlux listAsync(String resourceGroup /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -850,8 +850,8 @@ private PagedFlux listAsync(String resourceGrou /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -865,8 +865,8 @@ public PagedIterable list(String resourceGroupN /** * Gets all peerings in a specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java index 1971d909aa6e..48100dd89dc2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -39,7 +39,7 @@ import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitsArpTableListResultInner; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitsRoutesTableListResultInner; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitsRoutesTableSummaryListResultInner; -import com.azure.resourcemanager.network.models.ExpressRouteCircuitListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteCircuitListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -78,117 +78,116 @@ public final class ExpressRouteCircuitsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteCircuitInner parameters, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteCircuitInner parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listArpTable(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @PathParam("devicePath") String devicePath, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listRoutesTable(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @PathParam("devicePath") String devicePath, + Mono> getStats(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listRoutesTableSummary(@HostParam("$host") String endpoint, + Mono>> listArpTable(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @PathParam("peeringName") String peeringName, @PathParam("devicePath") String devicePath, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getStats(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + Mono>> listRoutesTable(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @PathParam("peeringName") String peeringName, @PathParam("devicePath") String devicePath, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPeeringStats(@HostParam("$host") String endpoint, + Mono>> listRoutesTableSummary(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("peeringName") String peeringName, @PathParam("devicePath") String devicePath, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getPeeringStats(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, + @PathParam("peeringName") String peeringName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -196,26 +195,32 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified express route circuit. + * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return information about the specified express route circuit along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String circuitName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -223,36 +228,37 @@ public Mono>> deleteWithResponseAsync(String resourceG if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified express route circuit. + * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return information about the specified express route circuit along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, - Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String circuitName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -260,165 +266,83 @@ private Mono>> deleteWithResponseAsync(String resource if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName) { - return this.beginDeleteAsync(resourceGroupName, circuitName).getSyncPoller(); - } - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, circuitName, context).getSyncPoller(); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, accept, context); } /** - * Deletes the specified express route circuit. + * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return information about the specified express route circuit on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String circuitName) { - return beginDeleteAsync(resourceGroupName, circuitName).last().flatMap(this.client::getLroFinalResultOrError); + public Mono getByResourceGroupAsync(String resourceGroupName, String circuitName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, circuitName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified express route circuit. + * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String circuitName, Context context) { - return beginDeleteAsync(resourceGroupName, circuitName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified express route circuit along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName) { - deleteAsync(resourceGroupName, circuitName).block(); + public Response getByResourceGroupWithResponse(String resourceGroupName, + String circuitName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, circuitName, context).block(); } /** - * Deletes the specified express route circuit. + * Gets information about the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about the specified express route circuit. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String circuitName, Context context) { - deleteAsync(resourceGroupName, circuitName, context).block(); + public ExpressRouteCircuitInner getByResourceGroup(String resourceGroupName, String circuitName) { + return getByResourceGroupWithResponse(resourceGroupName, circuitName, Context.NONE).getValue(); } /** - * Gets information about the specified express route circuit. + * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. + * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified express route circuit along with {@link Response} on successful - * completion of {@link Mono}. + * @return expressRouteCircuit resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String circuitName) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String circuitName, ExpressRouteCircuitInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -426,37 +350,42 @@ public Mono> getByResourceGroupWithResponseAs if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - circuitName, apiVersion, this.client.getSubscriptionId(), accept, context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about the specified express route circuit. + * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. + * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified express route circuit along with {@link Response} on successful - * completion of {@link Mono}. + * @return expressRouteCircuit resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String circuitName, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String circuitName, ExpressRouteCircuitInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -464,159 +393,29 @@ private Mono> getByResourceGroupWithResponseA if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, contentType, accept, parameters, context); } /** - * Gets information about the specified express route circuit. + * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param circuitName The name of express route circuit. + * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified express route circuit on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String circuitName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, circuitName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets information about the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of express route circuit. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified express route circuit along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String circuitName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, circuitName, context).block(); - } - - /** - * Gets information about the specified express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of express route circuit. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified express route circuit. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitInner getByResourceGroup(String resourceGroupName, String circuitName) { - return getByResourceGroupWithResponse(resourceGroupName, circuitName, Context.NONE).getValue(); - } - - /** - * Creates or updates an express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. - * @param parameters Parameters supplied to the create or update express route circuit operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCircuit resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String circuitName, ExpressRouteCircuitInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates or updates an express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. - * @param parameters Parameters supplied to the create or update express route circuit operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCircuit resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String circuitName, ExpressRouteCircuitInner parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); - } - - /** - * Creates or updates an express route circuit. - * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. - * @param parameters Parameters supplied to the create or update express route circuit operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of expressRouteCircuit resource. + * @return the {@link PollerFlux} for polling of expressRouteCircuit resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ExpressRouteCircuitInner> @@ -631,8 +430,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -653,8 +452,8 @@ private PollerFlux, ExpressRouteCircuitInne /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -670,8 +469,8 @@ private PollerFlux, ExpressRouteCircuitInne /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -688,8 +487,8 @@ public SyncPoller, ExpressRouteCircuitInner /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -706,8 +505,8 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -725,8 +524,8 @@ private Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -742,8 +541,8 @@ public ExpressRouteCircuitInner createOrUpdate(String resourceGroupName, String /** * Creates or updates an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to the create or update express route circuit operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -760,8 +559,8 @@ public ExpressRouteCircuitInner createOrUpdate(String resourceGroupName, String /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -775,6 +574,10 @@ public Mono> updateTagsWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -782,28 +585,26 @@ public Mono> updateTagsWithResponseAsync(Stri if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, circuitName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -818,6 +619,10 @@ private Mono> updateTagsWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -825,27 +630,24 @@ private Mono> updateTagsWithResponseAsync(Str if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, contentType, accept, parameters, context); } /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -862,8 +664,8 @@ public Mono updateTagsAsync(String resourceGroupName, /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -880,8 +682,8 @@ public Response updateTagsWithResponse(String resource /** * Updates an express route circuit tags. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param parameters Parameters supplied to update express route circuit tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -894,25 +696,25 @@ public ExpressRouteCircuitInner updateTags(String resourceGroupName, String circ } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group along - * with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listArpTableWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, String devicePath) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -920,45 +722,35 @@ public Mono>> listArpTableWithResponseAsync(String res if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (devicePath == null) { - return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listArpTable(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group along - * with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listArpTableWithResponseAsync(String resourceGroupName, String circuitName, - String peeringName, String devicePath, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String circuitName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -966,481 +758,527 @@ private Mono>> listArpTableWithResponseAsync(String re if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (devicePath == null) { - return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listArpTable(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, devicePath, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, context); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised ARP table associated with the express - * route circuit in a resource group. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - PollerFlux, ExpressRouteCircuitsArpTableListResultInner> - beginListArpTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath) { - Mono>> mono - = listArpTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsArpTableListResultInner.class, - ExpressRouteCircuitsArpTableListResultInner.class, this.client.getContext()); + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised ARP table associated with the express - * route circuit in a resource group. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private - PollerFlux, ExpressRouteCircuitsArpTableListResultInner> - beginListArpTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String circuitName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono - = listArpTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsArpTableListResultInner.class, - ExpressRouteCircuitsArpTableListResultInner.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, circuitName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised ARP table associated with the express - * route circuit in a resource group. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - SyncPoller, ExpressRouteCircuitsArpTableListResultInner> - beginListArpTable(String resourceGroupName, String circuitName, String peeringName, String devicePath) { - return this.beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName) { + return this.beginDeleteAsync(resourceGroupName, circuitName).getSyncPoller(); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised ARP table associated with the express - * route circuit in a resource group. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - SyncPoller, ExpressRouteCircuitsArpTableListResultInner> - beginListArpTable(String resourceGroupName, String circuitName, String peeringName, String devicePath, - Context context) { - return this.beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String circuitName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, circuitName, context).getSyncPoller(); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group on - * successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listArpTableAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath) { - return beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono deleteAsync(String resourceGroupName, String circuitName) { + return beginDeleteAsync(resourceGroupName, circuitName).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group on - * successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listArpTableAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath, Context context) { - return beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() + private Mono deleteAsync(String resourceGroupName, String circuitName, Context context) { + return beginDeleteAsync(resourceGroupName, circuitName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupName, String circuitName, - String peeringName, String devicePath) { - return listArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); + public void delete(String resourceGroupName, String circuitName) { + deleteAsync(resourceGroupName, circuitName).block(); } /** - * Gets the currently advertised ARP table associated with the express route circuit in a resource group. + * Deletes the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised ARP table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupName, String circuitName, - String peeringName, String devicePath, Context context) { - return listArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); + public void delete(String resourceGroupName, String circuitName, Context context) { + deleteAsync(resourceGroupName, circuitName, context).block(); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group along - * with {@link Response} on successful completion of {@link Mono}. + * @return all the express route circuits in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listRoutesTableWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (devicePath == null) { - return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group along - * with {@link Response} on successful completion of {@link Mono}. + * @return all the express route circuits in a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listRoutesTableWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (devicePath == null) { - return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - devicePath, apiVersion, this.client.getSubscriptionId(), accept, context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised routes table associated with the express - * route circuit in a resource group. + * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - PollerFlux, ExpressRouteCircuitsRoutesTableListResultInner> - beginListRoutesTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath) { - Mono>> mono - = listRoutesTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableListResultInner.class, - ExpressRouteCircuitsRoutesTableListResultInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised routes table associated with the express - * route circuit in a resource group. + * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private - PollerFlux, ExpressRouteCircuitsRoutesTableListResultInner> - beginListRoutesTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = listRoutesTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); - return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableListResultInner.class, - ExpressRouteCircuitsRoutesTableListResultInner.class, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised routes table associated with the express - * route circuit in a resource group. + * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - SyncPoller, ExpressRouteCircuitsRoutesTableListResultInner> - beginListRoutesTable(String resourceGroupName, String circuitName, String peeringName, String devicePath) { - return this.beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised routes table associated with the express - * route circuit in a resource group. + * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public - SyncPoller, ExpressRouteCircuitsRoutesTableListResultInner> - beginListRoutesTable(String resourceGroupName, String circuitName, String peeringName, String devicePath, - Context context) { - return this.beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group on - * successful completion of {@link Mono}. + * @return all the express route circuits in a subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listRoutesTableAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath) { - return beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group on - * successful completion of {@link Mono}. + * @return all the express route circuits in a subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listRoutesTableAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath, Context context) { - return beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group. + * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGroupName, String circuitName, - String peeringName, String devicePath) { - return listRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets the currently advertised routes table associated with the express route circuit in a resource group. + * Gets all the express route circuits in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. - * @param peeringName The name of the peering. - * @param devicePath The path of the device. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table associated with the express route circuit in a resource group. + * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the express route circuits in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the express route circuits in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGroupName, String circuitName, - String peeringName, String devicePath, Context context) { - return listRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); + public Mono> getStatsWithResponseAsync(String resourceGroupName, + String circuitName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getStats(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getStatsWithResponseAsync(String resourceGroupName, + String circuitName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getStats(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, accept, context); + } + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getStatsAsync(String resourceGroupName, String circuitName) { + return getStatsWithResponseAsync(resourceGroupName, circuitName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getStatsWithResponse(String resourceGroupName, String circuitName, + Context context) { + return getStatsWithResponseAsync(resourceGroupName, circuitName, context).block(); + } + + /** + * Gets all the stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the stats from an express route circuit in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCircuitStatsInner getStats(String resourceGroupName, String circuitName) { + return getStatsWithResponse(resourceGroupName, circuitName, Context.NONE).getValue(); + } + + /** + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group along with {@link Response} on successful completion of {@link Mono}. + * @return the currently advertised ARP table associated with the express route circuit in a resource group along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listRoutesTableSummaryWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath) { + public Mono>> listArpTableWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, String devicePath) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1454,39 +1292,40 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, - circuitName, peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.listArpTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, devicePath, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group along with {@link Response} on successful completion of {@link Mono}. + * @return the currently advertised ARP table associated with the express route circuit in a resource group along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listRoutesTableSummaryWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName, String devicePath, Context context) { + private Mono>> listArpTableWithResponseAsync(String resourceGroupName, String circuitName, + String peeringName, String devicePath, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1500,214 +1339,211 @@ private Mono>> listRoutesTableSummaryWithResponseAsync if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - devicePath, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listArpTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, devicePath, accept, context); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised routes table summary associated with the - * express route circuit in a resource group. + * @return the {@link PollerFlux} for polling of the currently advertised ARP table associated with the express + * route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public - PollerFlux, ExpressRouteCircuitsRoutesTableSummaryListResultInner> - beginListRoutesTableSummaryAsync(String resourceGroupName, String circuitName, String peeringName, - String devicePath) { + PollerFlux, ExpressRouteCircuitsArpTableListResultInner> + beginListArpTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath) { Mono>> mono - = listRoutesTableSummaryWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); + = listArpTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, - ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, this.client.getContext()); + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsArpTableListResultInner.class, + ExpressRouteCircuitsArpTableListResultInner.class, this.client.getContext()); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the currently advertised routes table summary associated with the - * express route circuit in a resource group. + * @return the {@link PollerFlux} for polling of the currently advertised ARP table associated with the express + * route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private - PollerFlux, ExpressRouteCircuitsRoutesTableSummaryListResultInner> - beginListRoutesTableSummaryAsync(String resourceGroupName, String circuitName, String peeringName, - String devicePath, Context context) { + PollerFlux, ExpressRouteCircuitsArpTableListResultInner> + beginListArpTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath, + Context context) { context = this.client.mergeContext(context); Mono>> mono - = listRoutesTableSummaryWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); + = listArpTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); return this.client - .getLroResult( - mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, - ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, context); + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsArpTableListResultInner.class, + ExpressRouteCircuitsArpTableListResultInner.class, context); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised routes table summary associated with the - * express route circuit in a resource group. + * @return the {@link SyncPoller} for polling of the currently advertised ARP table associated with the express + * route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public - SyncPoller, ExpressRouteCircuitsRoutesTableSummaryListResultInner> - beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, - String devicePath) { - return this.beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath) - .getSyncPoller(); + SyncPoller, ExpressRouteCircuitsArpTableListResultInner> + beginListArpTable(String resourceGroupName, String circuitName, String peeringName, String devicePath) { + return this.beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).getSyncPoller(); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the currently advertised routes table summary associated with the - * express route circuit in a resource group. + * @return the {@link SyncPoller} for polling of the currently advertised ARP table associated with the express + * route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public - SyncPoller, ExpressRouteCircuitsRoutesTableSummaryListResultInner> - beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, String devicePath, + SyncPoller, ExpressRouteCircuitsArpTableListResultInner> + beginListArpTable(String resourceGroupName, String circuitName, String peeringName, String devicePath, Context context) { - return this.beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context) + return this.beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context) .getSyncPoller(); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group on successful completion of {@link Mono}. - */ + * @return the currently advertised ARP table associated with the express route circuit in a resource group on + * successful completion of {@link Mono}. + */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listRoutesTableSummaryAsync( - String resourceGroupName, String circuitName, String peeringName, String devicePath) { - return beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath).last() + public Mono listArpTableAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath) { + return beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group on successful completion of {@link Mono}. + * @return the currently advertised ARP table associated with the express route circuit in a resource group on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listRoutesTableSummaryAsync( - String resourceGroupName, String circuitName, String peeringName, String devicePath, Context context) { - return beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() + private Mono listArpTableAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath, Context context) { + return beginListArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group. + * @return the currently advertised ARP table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, - String circuitName, String peeringName, String devicePath) { - return listRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); + public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupName, String circuitName, + String peeringName, String devicePath) { + return listArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); } /** - * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * Gets the currently advertised ARP table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param devicePath The path of the device. + * @param devicePath The name of the arpTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the currently advertised routes table summary associated with the express route circuit in a resource - * group. + * @return the currently advertised ARP table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, - String circuitName, String peeringName, String devicePath, Context context) { - return listRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); + public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceGroupName, String circuitName, + String peeringName, String devicePath, Context context) { + return listArpTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); } /** - * Gets all the stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the currently advertised routes table associated with the express route circuit in a resource group along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getStatsWithResponseAsync(String resourceGroupName, - String circuitName) { + public Mono>> listRoutesTableWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1715,37 +1551,44 @@ public Mono> getStatsWithResponseAsync(S if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (devicePath == null) { + return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getStats(this.client.getEndpoint(), resourceGroupName, circuitName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + return FluxUtil.withContext(context -> service.listRoutesTable(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, devicePath, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the currently advertised routes table associated with the express route circuit in a resource group along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getStatsWithResponseAsync(String resourceGroupName, - String circuitName, Context context) { + private Mono>> listRoutesTableWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1753,340 +1596,476 @@ private Mono> getStatsWithResponseAsync( if (circuitName == null) { return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (devicePath == null) { + return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getStats(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.listRoutesTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, devicePath, accept, context); } /** - * Gets all the stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the currently advertised routes table associated with the express + * route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getStatsAsync(String resourceGroupName, String circuitName) { - return getStatsWithResponseAsync(resourceGroupName, circuitName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + PollerFlux, ExpressRouteCircuitsRoutesTableListResultInner> + beginListRoutesTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath) { + Mono>> mono + = listRoutesTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); + return this.client + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableListResultInner.class, + ExpressRouteCircuitsRoutesTableListResultInner.class, this.client.getContext()); } /** - * Gets all the stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group along with {@link Response}. + * @return the {@link PollerFlux} for polling of the currently advertised routes table associated with the express + * route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getStatsWithResponse(String resourceGroupName, String circuitName, - Context context) { - return getStatsWithResponseAsync(resourceGroupName, circuitName, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private + PollerFlux, ExpressRouteCircuitsRoutesTableListResultInner> + beginListRoutesTableAsync(String resourceGroupName, String circuitName, String peeringName, String devicePath, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = listRoutesTableWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); + return this.client + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableListResultInner.class, + ExpressRouteCircuitsRoutesTableListResultInner.class, context); } /** - * Gets all the stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the stats from an express route circuit in a resource group. + * @return the {@link SyncPoller} for polling of the currently advertised routes table associated with the express + * route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitStatsInner getStats(String resourceGroupName, String circuitName) { - return getStatsWithResponse(resourceGroupName, circuitName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ExpressRouteCircuitsRoutesTableListResultInner> + beginListRoutesTable(String resourceGroupName, String circuitName, String peeringName, String devicePath) { + return this.beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).getSyncPoller(); } /** - * Gets all stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all stats from an express route circuit in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the currently advertised routes table associated with the express + * route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getPeeringStatsWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getPeeringStats(this.client.getEndpoint(), resourceGroupName, circuitName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ExpressRouteCircuitsRoutesTableListResultInner> + beginListRoutesTable(String resourceGroupName, String circuitName, String peeringName, String devicePath, + Context context) { + return this.beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context) + .getSyncPoller(); } /** - * Gets all stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all stats from an express route circuit in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the currently advertised routes table associated with the express route circuit in a resource group on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getPeeringStatsWithResponseAsync(String resourceGroupName, - String circuitName, String peeringName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (circuitName == null) { - return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getPeeringStats(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - apiVersion, this.client.getSubscriptionId(), accept, context); + public Mono listRoutesTableAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath) { + return beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets all stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all stats from an express route circuit in a resource group on successful completion of {@link Mono}. + * @return the currently advertised routes table associated with the express route circuit in a resource group on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getPeeringStatsAsync(String resourceGroupName, String circuitName, - String peeringName) { - return getPeeringStatsWithResponseAsync(resourceGroupName, circuitName, peeringName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono listRoutesTableAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath, Context context) { + return beginListRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets all stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. - * @param context The context to associate with this operation. + * @param devicePath The name of the routeTables. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all stats from an express route circuit in a resource group along with {@link Response}. + * @return the currently advertised routes table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPeeringStatsWithResponse(String resourceGroupName, - String circuitName, String peeringName, Context context) { - return getPeeringStatsWithResponseAsync(resourceGroupName, circuitName, peeringName, context).block(); + public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGroupName, String circuitName, + String peeringName, String devicePath) { + return listRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); } /** - * Gets all stats from an express route circuit in a resource group. + * Gets the currently advertised routes table associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. * @param peeringName The name of the peering. + * @param devicePath The name of the routeTables. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all stats from an express route circuit in a resource group. + * @return the currently advertised routes table associated with the express route circuit in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCircuitStatsInner getPeeringStats(String resourceGroupName, String circuitName, - String peeringName) { - return getPeeringStatsWithResponse(resourceGroupName, circuitName, peeringName, Context.NONE).getValue(); + public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String resourceGroupName, String circuitName, + String peeringName, String devicePath, Context context) { + return listRoutesTableAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> listRoutesTableSummaryWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (devicePath == null) { + return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + return FluxUtil.withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, devicePath, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono>> listRoutesTableSummaryWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName, String devicePath, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + if (devicePath == null) { + return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.listRoutesTableSummary(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, devicePath, accept, context); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of the currently advertised routes table summary associated with the + * express route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + PollerFlux, ExpressRouteCircuitsRoutesTableSummaryListResultInner> + beginListRoutesTableSummaryAsync(String resourceGroupName, String circuitName, String peeringName, + String devicePath) { + Mono>> mono + = listRoutesTableSummaryWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath); + return this.client + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, + ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, this.client.getContext()); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of the currently advertised routes table summary associated with the + * express route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private + PollerFlux, ExpressRouteCircuitsRoutesTableSummaryListResultInner> + beginListRoutesTableSummaryAsync(String resourceGroupName, String circuitName, String peeringName, + String devicePath, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = listRoutesTableSummaryWithResponseAsync(resourceGroupName, circuitName, peeringName, devicePath, context); + return this.client + .getLroResult( + mono, this.client.getHttpPipeline(), ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, + ExpressRouteCircuitsRoutesTableSummaryListResultInner.class, context); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of the currently advertised routes table summary associated with the + * express route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ExpressRouteCircuitsRoutesTableSummaryListResultInner> + beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, + String devicePath) { + return this.beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath) + .getSyncPoller(); } /** - * Gets all the express route circuits in a resource group. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a resource group as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of the currently advertised routes table summary associated with the + * express route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ExpressRouteCircuitsRoutesTableSummaryListResultInner> + beginListRoutesTableSummary(String resourceGroupName, String circuitName, String peeringName, String devicePath, + Context context) { + return this.beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context) + .getSyncPoller(); } /** - * Gets all the express route circuits in a subscription. + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription along with {@link PagedResponse} on successful + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listRoutesTableSummaryAsync( + String resourceGroupName, String circuitName, String peeringName, String devicePath) { + return beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono listRoutesTableSummaryAsync( + String resourceGroupName, String circuitName, String peeringName, String devicePath, Context context) { + return beginListRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, + String circuitName, String peeringName, String devicePath) { + return listRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath).block(); + } + + /** + * Gets the currently advertised routes table summary associated with the express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of the express route port. + * @param peeringName The name of the peering. + * @param devicePath The name of the routeTablesSummary. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the currently advertised routes table summary associated with the express route circuit in a resource + * group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(String resourceGroupName, + String circuitName, String peeringName, String devicePath, Context context) { + return listRoutesTableSummaryAsync(resourceGroupName, circuitName, peeringName, devicePath, context).block(); + } + + /** + * Gets all stats from an express route circuit in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all stats from an express route circuit in a resource group along with {@link Response} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono> getPeeringStatsWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2095,28 +2074,40 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getPeeringStats(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, circuitName, peeringName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the express route circuits in a subscription. + * Gets all stats from an express route circuit in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription along with {@link PagedResponse} on successful + * @return all stats from an express route circuit in a resource group along with {@link Response} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> getPeeringStatsWithResponseAsync(String resourceGroupName, + String circuitName, String peeringName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2125,65 +2116,74 @@ private Mono> listSinglePageAsync(Contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (circuitName == null) { + return Mono.error(new IllegalArgumentException("Parameter circuitName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.getPeeringStats(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, accept, context); } /** - * Gets all the express route circuits in a subscription. + * Gets all stats from an express route circuit in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. + * @return all stats from an express route circuit in a resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPeeringStatsAsync(String resourceGroupName, String circuitName, + String peeringName) { + return getPeeringStatsWithResponseAsync(resourceGroupName, circuitName, peeringName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the express route circuits in a subscription. + * Gets all stats from an express route circuit in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all the express route circuits in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + * @return all stats from an express route circuit in a resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getPeeringStatsWithResponse(String resourceGroupName, + String circuitName, String peeringName, Context context) { + return getPeeringStatsWithResponseAsync(resourceGroupName, circuitName, peeringName, context).block(); } /** - * Gets all the express route circuits in a subscription. + * Gets all stats from an express route circuit in a resource group. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. + * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the express route circuits in a subscription as paginated response with {@link PagedIterable}. + * @return all stats from an express route circuit in a resource group. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCircuitStatsInner getPeeringStats(String resourceGroupName, String circuitName, + String peeringName) { + return getPeeringStatsWithResponse(resourceGroupName, circuitName, peeringName, Context.NONE).getValue(); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java index 5edde51e1540..c5510f4d815d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -63,58 +63,58 @@ public final class ExpressRouteConnectionsClientImpl implements ExpressRouteConn * The interface defining all the services for NetworkManagementClientExpressRouteConnections to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteConnections") public interface ExpressRouteConnectionsService { - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRouteGatewayName") String expressRouteGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("connectionName") String connectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ExpressRouteConnectionInner putExpressRouteConnectionParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRouteGatewayName") String expressRouteGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRouteGatewayName") String expressRouteGatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRouteGatewayName") String expressRouteGatewayName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRouteGatewayName") String expressRouteGatewayName, @HeaderParam("Accept") String accept, + Context context); } /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -129,6 +129,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -140,10 +144,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (putExpressRouteConnectionParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter putExpressRouteConnectionParameters is required and cannot be null.")); @@ -151,20 +151,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r putExpressRouteConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - expressRouteGatewayName, connectionName, apiVersion, this.client.getSubscriptionId(), - putExpressRouteConnectionParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, connectionName, + contentType, accept, putExpressRouteConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -180,6 +181,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -191,10 +196,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (putExpressRouteConnectionParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter putExpressRouteConnectionParameters is required and cannot be null.")); @@ -202,19 +203,20 @@ private Mono>> createOrUpdateWithResponseAsync(String putExpressRouteConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, - connectionName, apiVersion, this.client.getSubscriptionId(), putExpressRouteConnectionParameters, accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, connectionName, contentType, accept, + putExpressRouteConnectionParameters, context); } /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -235,9 +237,9 @@ public PollerFlux, ExpressRouteConnectio /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,9 +262,9 @@ private PollerFlux, ExpressRouteConnecti /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -282,9 +284,9 @@ public SyncPoller, ExpressRouteConnectio /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,9 +307,9 @@ public SyncPoller, ExpressRouteConnectio /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -325,9 +327,9 @@ public Mono createOrUpdateAsync(String resourceGrou /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -346,9 +348,9 @@ private Mono createOrUpdateAsync(String resourceGro /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -365,9 +367,9 @@ public ExpressRouteConnectionInner createOrUpdate(String resourceGroupName, Stri /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param putExpressRouteConnectionParameters Parameters required in an ExpressRouteConnection PUT operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -385,9 +387,9 @@ public ExpressRouteConnectionInner createOrUpdate(String resourceGroupName, Stri /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -401,6 +403,10 @@ public Mono> getWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -412,24 +418,20 @@ public Mono> getWithResponseAsync(String r if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -444,6 +446,10 @@ private Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -455,23 +461,19 @@ private Mono> getWithResponseAsync(String if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRouteGatewayName, connectionName, accept, context); } /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -487,9 +489,9 @@ public Mono getAsync(String resourceGroupName, Stri /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -505,9 +507,9 @@ public Response getWithResponse(String resourceGrou /** * Gets the specified ExpressRouteConnection. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the ExpressRoute connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -522,9 +524,9 @@ public ExpressRouteConnectionInner get(String resourceGroupName, String expressR /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -537,6 +539,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -548,24 +554,19 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - expressRouteGatewayName, connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -579,6 +580,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -590,23 +595,18 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRouteGatewayName, connectionName, context); } /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -624,9 +624,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -646,9 +646,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -663,9 +663,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -682,9 +682,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -699,9 +699,9 @@ public Mono deleteAsync(String resourceGroupName, String expressRouteGatew /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -718,9 +718,9 @@ private Mono deleteAsync(String resourceGroupName, String expressRouteGate /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -733,9 +733,9 @@ public void delete(String resourceGroupName, String expressRouteGatewayName, Str /** * Deletes a connection to a ExpressRoute circuit. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param connectionName The name of the connection subresource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the express route gateway. + * @param connectionName The name of the express route connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -750,7 +750,7 @@ public void delete(String resourceGroupName, String expressRouteGatewayName, Str /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -764,6 +764,10 @@ public Mono> listWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -772,22 +776,18 @@ public Mono> listWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -802,6 +802,10 @@ private Mono> listWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -810,21 +814,17 @@ private Mono> listWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRouteGatewayName, accept, context); } /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -840,7 +840,7 @@ public Mono listAsync(String resourceGroupName, /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -857,7 +857,7 @@ public Response listWithResponse(String resourc /** * Lists ExpressRouteConnections. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java index fe6f6f432b5a..f753dc110d4c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ExpressRouteCrossConnectionPeeringsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionPeeringInner; -import com.azure.resourcemanager.network.models.ExpressRouteCrossConnectionPeeringList; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteCrossConnectionPeeringList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,63 +67,63 @@ public final class ExpressRouteCrossConnectionPeeringsClientImpl implements Expr * The interface defining all the services for NetworkManagementClientExpressRouteCrossConnectionPeerings to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteCrossConnectionPeerings") public interface ExpressRouteCrossConnectionPeeringsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("crossConnectionName") String crossConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("crossConnectionName") String crossConnectionName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteCrossConnectionPeeringInner peeringParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteCrossConnectionPeeringInner peeringParameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -137,6 +137,10 @@ private Mono> listSingleP return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -145,15 +149,11 @@ private Mono> listSingleP return Mono .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -163,8 +163,8 @@ private Mono> listSingleP /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -179,6 +179,10 @@ private Mono> listSingleP return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -187,16 +191,12 @@ private Mono> listSingleP return Mono .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + crossConnectionName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -204,8 +204,8 @@ private Mono> listSingleP /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -221,8 +221,8 @@ public PagedFlux listAsync(String resou /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -239,8 +239,8 @@ private PagedFlux listAsync(String reso /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -255,8 +255,8 @@ public PagedIterable list(String resour /** * Gets all peerings in a specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -272,8 +272,8 @@ public PagedIterable list(String resour /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -287,6 +287,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -298,23 +302,18 @@ public Mono>> deleteWithResponseAsync(String resourceG if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, peeringName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -329,6 +328,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -340,22 +343,17 @@ private Mono>> deleteWithResponseAsync(String resource if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + crossConnectionName, peeringName, context); } /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -374,8 +372,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -396,8 +394,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -413,8 +411,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,8 +429,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -448,8 +446,8 @@ public Mono deleteAsync(String resourceGroupName, String crossConnectionNa /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -467,8 +465,8 @@ private Mono deleteAsync(String resourceGroupName, String crossConnectionN /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -482,8 +480,8 @@ public void delete(String resourceGroupName, String crossConnectionName, String /** * Deletes the specified peering from the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -498,8 +496,8 @@ public void delete(String resourceGroupName, String crossConnectionName, String /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -514,6 +512,10 @@ public Mono> getWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -525,23 +527,19 @@ public Mono> getWithResponseAs if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -557,6 +555,10 @@ private Mono> getWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -568,22 +570,18 @@ private Mono> getWithResponseA if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + crossConnectionName, peeringName, accept, context); } /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -600,8 +598,8 @@ public Mono getAsync(String resourceGro /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -618,8 +616,8 @@ public Response getWithResponse(String /** * Gets the specified peering for the ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -635,8 +633,8 @@ public ExpressRouteCrossConnectionPeeringInner get(String resourceGroupName, Str /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -653,6 +651,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -664,10 +666,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (peeringParameters == null) { return Mono .error(new IllegalArgumentException("Parameter peeringParameters is required and cannot be null.")); @@ -675,19 +673,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r peeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, apiVersion, this.client.getSubscriptionId(), peeringParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, peeringName, contentType, + accept, peeringParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -706,6 +705,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -717,10 +720,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (peeringParameters == null) { return Mono .error(new IllegalArgumentException("Parameter peeringParameters is required and cannot be null.")); @@ -728,17 +727,18 @@ private Mono>> createOrUpdateWithResponseAsync(String peeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, - apiVersion, this.client.getSubscriptionId(), peeringParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, contentType, accept, peeringParameters, context); } /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -762,8 +762,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -789,8 +789,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -810,8 +810,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -833,8 +833,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -853,8 +853,8 @@ public Mono createOrUpdateAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -876,8 +876,8 @@ private Mono createOrUpdateAsync(String /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. @@ -895,8 +895,8 @@ public ExpressRouteCrossConnectionPeeringInner createOrUpdate(String resourceGro /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName Name for the express route cross connection. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied to the create or update ExpressRouteCrossConnection peering * operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java index cd96bf677a83..08ca2439e732 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitsRoutesTableListResultInner; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionInner; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner; -import com.azure.resourcemanager.network.models.ExpressRouteCrossConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteCrossConnectionListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -75,116 +75,118 @@ public final class ExpressRouteCrossConnectionsClientImpl implements InnerSuppor * The interface defining all the services for NetworkManagementClientExpressRouteCrossConnections to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteCrossConnections") public interface ExpressRouteCrossConnectionsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("crossConnectionName") String crossConnectionName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("crossConnectionName") String crossConnectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteCrossConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("crossConnectionName") String crossConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("crossConnectionName") String crossConnectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject crossConnectionParameters, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("crossConnectionName") String crossConnectionName, @QueryParam("api-version") String apiVersion, + Mono> listByResourceGroup( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteCrossConnectionInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("crossConnectionName") String crossConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject crossConnectionParameters, @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listArpTable(@HostParam("$host") String endpoint, + Mono>> listArpTable(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @PathParam("devicePath") String devicePath, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("devicePath") String devicePath, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listRoutesTableSummary(@HostParam("$host") String endpoint, + Mono>> listRoutesTableSummary(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @PathParam("devicePath") String devicePath, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("devicePath") String devicePath, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listRoutesTable(@HostParam("$host") String endpoint, + Mono>> listRoutesTable(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("crossConnectionName") String crossConnectionName, @PathParam("peeringName") String peeringName, - @PathParam("devicePath") String devicePath, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("devicePath") String devicePath, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. + * Gets details about the specified ExpressRouteCrossConnection. * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return details about the specified ExpressRouteCrossConnection along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String filter) { + public Mono> + getByResourceGroupWithResponseAsync(String resourceGroupName, String crossConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -193,30 +195,37 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (crossConnectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - filter, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. + * Gets details about the specified ExpressRouteCrossConnection. * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return details about the specified ExpressRouteCrossConnection along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String filter, Context context) { + private Mono> + getByResourceGroupWithResponseAsync(String resourceGroupName, String crossConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -225,362 +234,323 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (crossConnectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), filter, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, accept, context); } /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. + * Gets details about the specified ExpressRouteCrossConnection. * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String filter) { - return new PagedFlux<>(() -> listSinglePageAsync(filter), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. + * @return details about the specified ExpressRouteCrossConnection on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - final String filter = null; - return new PagedFlux<>(() -> listSinglePageAsync(filter), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String crossConnectionName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, crossConnectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. + * Gets details about the specified ExpressRouteCrossConnection. * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String filter, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(filter, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. + * @return details about the specified ExpressRouteCrossConnection along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - final String filter = null; - return new PagedIterable<>(listAsync(filter)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String crossConnectionName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, crossConnectionName, context).block(); } /** - * Retrieves all the ExpressRouteCrossConnections in a subscription. + * Gets details about the specified ExpressRouteCrossConnection. * - * @param filter The filter to apply on the operation. For example, you can use $filter=name eq - * '{circuitServiceKey}'. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. + * @return details about the specified ExpressRouteCrossConnection. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String filter, Context context) { - return new PagedIterable<>(listAsync(filter, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCrossConnectionInner getByResourceGroup(String resourceGroupName, String crossConnectionName) { + return getByResourceGroupWithResponse(resourceGroupName, crossConnectionName, Context.NONE).getValue(); } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return expressRouteCrossConnection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (crossConnectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return expressRouteCrossConnection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String crossConnectionName, ExpressRouteCrossConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (crossConnectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, contentType, accept, parameters, context); } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of expressRouteCrossConnection resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ExpressRouteCrossConnectionInner> + beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, crossConnectionName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ExpressRouteCrossConnectionInner.class, + ExpressRouteCrossConnectionInner.class, this.client.getContext()); } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of expressRouteCrossConnection resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ExpressRouteCrossConnectionInner> + beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, crossConnectionName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ExpressRouteCrossConnectionInner.class, + ExpressRouteCrossConnectionInner.class, context); } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of expressRouteCrossConnection resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ExpressRouteCrossConnectionInner> + beginCreateOrUpdate(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).getSyncPoller(); + } /** - * Retrieves all the ExpressRouteCrossConnections in a resource group. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of expressRouteCrossConnection resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, - Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ExpressRouteCrossConnectionInner> + beginCreateOrUpdate(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context) + .getSyncPoller(); } /** - * Gets details about the specified ExpressRouteCrossConnection. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details about the specified ExpressRouteCrossConnection along with {@link Response} on successful - * completion of {@link Mono}. + * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getByResourceGroupWithResponseAsync(String resourceGroupName, String crossConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (crossConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - crossConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public Mono createOrUpdateAsync(String resourceGroupName, + String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets details about the specified ExpressRouteCrossConnection. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details about the specified ExpressRouteCrossConnection along with {@link Response} on successful - * completion of {@link Mono}. + * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getByResourceGroupWithResponseAsync(String resourceGroupName, String crossConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (crossConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, - this.client.getSubscriptionId(), accept, context); + private Mono createOrUpdateAsync(String resourceGroupName, + String crossConnectionName, ExpressRouteCrossConnectionInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets details about the specified ExpressRouteCrossConnection. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details about the specified ExpressRouteCrossConnection on successful completion of {@link Mono}. + * @return expressRouteCrossConnection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String crossConnectionName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, crossConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters) { + return createOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).block(); } /** - * Gets details about the specified ExpressRouteCrossConnection. + * Update the specified ExpressRouteCrossConnection. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param parameters Parameters supplied to the update express route crossConnection operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details about the specified ExpressRouteCrossConnection along with {@link Response}. + * @return expressRouteCrossConnection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String crossConnectionName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, crossConnectionName, context).block(); + public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String crossConnectionName, + ExpressRouteCrossConnectionInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context).block(); } /** - * Gets details about the specified ExpressRouteCrossConnection. + * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group (peering location of the circuit). + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details about the specified ExpressRouteCrossConnection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCrossConnectionInner getByResourceGroup(String resourceGroupName, String crossConnectionName) { - return getByResourceGroupWithResponse(resourceGroupName, crossConnectionName, Context.NONE).getValue(); - } - - /** - * Update the specified ExpressRouteCrossConnection. - * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -588,12 +558,16 @@ public ExpressRouteCrossConnectionInner getByResourceGroup(String resourceGroupN * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String crossConnectionName, TagsObject crossConnectionParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -602,29 +576,28 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + if (crossConnectionParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter crossConnectionParameters is required and cannot be null.")); } else { - parameters.validate(); + crossConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - crossConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, contentType, accept, crossConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update the specified ExpressRouteCrossConnection. + * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -633,12 +606,16 @@ public Mono>> createOrUpdateWithResponseAsync(String r * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String crossConnectionName, ExpressRouteCrossConnectionInner parameters, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String crossConnectionName, TagsObject crossConnectionParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -647,329 +624,358 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + if (crossConnectionParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter crossConnectionParameters is required and cannot be null.")); } else { - parameters.validate(); + crossConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, contentType, accept, crossConnectionParameters, context); } /** - * Update the specified ExpressRouteCrossConnection. + * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of expressRouteCrossConnection resource. + * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, ExpressRouteCrossConnectionInner> - beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, crossConnectionName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ExpressRouteCrossConnectionInner.class, - ExpressRouteCrossConnectionInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String crossConnectionName, + TagsObject crossConnectionParameters) { + return updateTagsWithResponseAsync(resourceGroupName, crossConnectionName, crossConnectionParameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update the specified ExpressRouteCrossConnection. + * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of expressRouteCrossConnection resource. + * @return expressRouteCrossConnection resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ExpressRouteCrossConnectionInner> - beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, crossConnectionName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ExpressRouteCrossConnectionInner.class, - ExpressRouteCrossConnectionInner.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String crossConnectionName, TagsObject crossConnectionParameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, crossConnectionName, crossConnectionParameters, context) + .block(); } /** - * Update the specified ExpressRouteCrossConnection. + * Updates an express route cross connection tags. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). + * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of expressRouteCrossConnection resource. + * @return expressRouteCrossConnection resource. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ExpressRouteCrossConnectionInner> - beginCreateOrUpdate(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, String crossConnectionName, + TagsObject crossConnectionParameters) { + return updateTagsWithResponse(resourceGroupName, crossConnectionName, crossConnectionParameters, Context.NONE) + .getValue(); } /** - * Update the specified ExpressRouteCrossConnection. + * Retrieves all the ExpressRouteCrossConnections in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of expressRouteCrossConnection resource. + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ExpressRouteCrossConnectionInner> - beginCreateOrUpdate(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update the specified ExpressRouteCrossConnection. + * Retrieves all the ExpressRouteCrossConnections in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, - String crossConnectionName, ExpressRouteCrossConnectionInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Update the specified ExpressRouteCrossConnection. + * Retrieves all the ExpressRouteCrossConnections in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String crossConnectionName, ExpressRouteCrossConnectionInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Update the specified ExpressRouteCrossConnection. + * Retrieves all the ExpressRouteCrossConnections in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters) { - return createOrUpdateAsync(resourceGroupName, crossConnectionName, parameters).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Retrieves all the ExpressRouteCrossConnections in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Update the specified ExpressRouteCrossConnection. + * Retrieves all the ExpressRouteCrossConnections in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. - * @param parameters Parameters supplied to the update express route crossConnection operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, String crossConnectionName, - ExpressRouteCrossConnectionInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, crossConnectionName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Updates an express route cross connection tags. + * Retrieves all the ExpressRouteCrossConnections in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. - * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String crossConnectionName, TagsObject crossConnectionParameters) { + private Mono> listSinglePageAsync(String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (crossConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (crossConnectionParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter crossConnectionParameters is required and cannot be null.")); - } else { - crossConnectionParameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - apiVersion, this.client.getSubscriptionId(), crossConnectionParameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates an express route cross connection tags. + * Retrieves all the ExpressRouteCrossConnections in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. - * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String crossConnectionName, TagsObject crossConnectionParameters, Context context) { + private Mono> listSinglePageAsync(String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (crossConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter crossConnectionName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (crossConnectionParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter crossConnectionParameters is required and cannot be null.")); - } else { - crossConnectionParameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, - this.client.getSubscriptionId(), crossConnectionParameters, accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Updates an express route cross connection tags. + * Retrieves all the ExpressRouteCrossConnections in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. - * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource on successful completion of {@link Mono}. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String crossConnectionName, - TagsObject crossConnectionParameters) { - return updateTagsWithResponseAsync(resourceGroupName, crossConnectionName, crossConnectionParameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(filter), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Updates an express route cross connection tags. + * Retrieves all the ExpressRouteCrossConnections in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. - * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + final String filter = null; + return new PagedFlux<>(() -> listSinglePageAsync(filter), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource along with {@link Response}. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String crossConnectionName, TagsObject crossConnectionParameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, crossConnectionName, crossConnectionParameters, context) - .block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String filter, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(filter, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Updates an express route cross connection tags. + * Retrieves all the ExpressRouteCrossConnections in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the cross connection. - * @param crossConnectionParameters Parameters supplied to update express route cross connection tags. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + final String filter = null; + return new PagedIterable<>(listAsync(filter)); + } + + /** + * Retrieves all the ExpressRouteCrossConnections in a subscription. + * + * @param filter The filter to apply on the operation. For example, you can use $filter=name eq + * '{circuitServiceKey}'. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRouteCrossConnection resource. + * @return the response of a ExpressRouteCrossConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, String crossConnectionName, - TagsObject crossConnectionParameters) { - return updateTagsWithResponse(resourceGroupName, crossConnectionName, crossConnectionParameters, Context.NONE) - .getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String filter, Context context) { + return new PagedIterable<>(listAsync(filter, context)); } /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -985,6 +991,10 @@ public Mono>> listArpTableWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -999,24 +1009,20 @@ public Mono>> listArpTableWithResponseAsync(String res if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listArpTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context)) + context -> service.listArpTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, devicePath, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1033,6 +1039,10 @@ private Mono>> listArpTableWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1047,22 +1057,18 @@ private Mono>> listArpTableWithResponseAsync(String re if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listArpTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, - devicePath, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listArpTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, devicePath, accept, context); } /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1087,8 +1093,8 @@ private Mono>> listArpTableWithResponseAsync(String re /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1115,8 +1121,8 @@ private Mono>> listArpTableWithResponseAsync(String re /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1136,8 +1142,8 @@ private Mono>> listArpTableWithResponseAsync(String re /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1159,8 +1165,8 @@ private Mono>> listArpTableWithResponseAsync(String re /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1179,8 +1185,8 @@ public Mono listArpTableAsync(Strin /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1200,8 +1206,8 @@ private Mono listArpTableAsync(Stri /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1219,8 +1225,8 @@ public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceG /** * Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1239,8 +1245,8 @@ public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceG /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1256,6 +1262,10 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1270,24 +1280,20 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, - crossConnectionName, peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, - context)) + .withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, peeringName, devicePath, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1304,6 +1310,10 @@ private Mono>> listRoutesTableSummaryWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1318,22 +1328,18 @@ private Mono>> listRoutesTableSummaryWithResponseAsync if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listRoutesTableSummary(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, devicePath, accept, context); } /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1359,8 +1365,8 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1388,8 +1394,8 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1410,8 +1416,8 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1434,8 +1440,8 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1454,8 +1460,8 @@ public Mono listR /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1475,8 +1481,8 @@ private Mono list /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1493,8 +1499,8 @@ public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner listRoutesT /** * Gets the route table summary associated with the express route cross connection in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1514,8 +1520,8 @@ public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner listRoutesT * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1531,6 +1537,10 @@ public Mono>> listRoutesTableWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1545,16 +1555,12 @@ public Mono>> listRoutesTableWithResponseAsync(String if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, - peeringName, devicePath, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listRoutesTable(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, crossConnectionName, peeringName, devicePath, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1562,8 +1568,8 @@ public Mono>> listRoutesTableWithResponseAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1580,6 +1586,10 @@ private Mono>> listRoutesTableWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1594,23 +1604,19 @@ private Mono>> listRoutesTableWithResponseAsync(String if (devicePath == null) { return Mono.error(new IllegalArgumentException("Parameter devicePath is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, - devicePath, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listRoutesTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, crossConnectionName, peeringName, devicePath, accept, context); } /** * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1636,8 +1642,8 @@ private Mono>> listRoutesTableWithResponseAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1665,8 +1671,8 @@ private Mono>> listRoutesTableWithResponseAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1688,8 +1694,8 @@ private Mono>> listRoutesTableWithResponseAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1712,8 +1718,8 @@ private Mono>> listRoutesTableWithResponseAsync(String * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1733,8 +1739,8 @@ public Mono listRoutesTableAsync * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1756,8 +1762,8 @@ private Mono listRoutesTableAsyn * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1776,8 +1782,8 @@ public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String res * Gets the currently advertised routes table associated with the express route cross connection in a resource * group. * - * @param resourceGroupName The name of the resource group. - * @param crossConnectionName The name of the ExpressRouteCrossConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param peeringName The name of the peering. * @param devicePath The path of the device. * @param context The context to associate with this operation. @@ -1800,11 +1806,12 @@ public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> + listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1813,7 +1820,9 @@ private Mono> listNextSinglePage new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1827,12 +1836,12 @@ private Mono> listNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, - Context context) { + private Mono> + listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1842,7 +1851,7 @@ private Mono> listNextSinglePage } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1854,12 +1863,11 @@ private Mono> listNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1868,9 +1876,7 @@ private Mono> listNextSinglePage new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1884,12 +1890,12 @@ private Mono> listNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListExpressRouteCrossConnection API service call along with {@link PagedResponse} on + * @return the response of a ExpressRouteCrossConnection list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1899,7 +1905,7 @@ private Mono> listNextSinglePage } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java index ede546c66f0c..3003a9afbd78 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -68,105 +68,79 @@ public final class ExpressRouteGatewaysClientImpl * The interface defining all the services for NetworkManagementClientExpressRouteGateways to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteGateways") public interface ExpressRouteGatewaysService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscription(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRouteGatewayName") String expressRouteGatewayName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRouteGatewayName") String expressRouteGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteGatewayInner putExpressRouteGatewayParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteGatewayInner putExpressRouteGatewayParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRouteGatewayName") String expressRouteGatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject expressRouteGatewayParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject expressRouteGatewayParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRouteGatewayName") String expressRouteGatewayName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRouteGatewayName") String expressRouteGatewayName, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRouteGatewayName") String expressRouteGatewayName, + Mono> listBySubscription(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); } /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listBySubscriptionWithResponseAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listBySubscription(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists ExpressRoute gateways under a given subscription. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. + * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionWithResponseAsync(Context context) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String expressRouteGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -175,162 +149,112 @@ private Mono> listBySubscriptionWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listBySubscription(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context); - } - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listBySubscriptionAsync() { - return listBySubscriptionWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listBySubscriptionWithResponse(Context context) { - return listBySubscriptionWithResponseAsync(context).block(); - } - - /** - * Lists ExpressRoute gateways under a given subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteGatewayListInner listBySubscription() { - return listBySubscriptionWithResponse(Context.NONE).getValue(); - } - - /** - * Lists ExpressRoute gateways in a given resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listByResourceGroupWithResponseAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (expressRouteGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. + * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupWithResponseAsync(String resourceGroupName, - Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String expressRouteGatewayName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (expressRouteGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, accept, context); } /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways on successful completion of {@link Mono}. + * @return expressRoute gateway resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listByResourceGroupAsync(String resourceGroupName) { - return listByResourceGroupWithResponseAsync(resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono getByResourceGroupAsync(String resourceGroupName, + String expressRouteGatewayName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, expressRouteGatewayName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways along with {@link Response}. + * @return expressRoute gateway resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByResourceGroupWithResponse(String resourceGroupName, - Context context) { - return listByResourceGroupWithResponseAsync(resourceGroupName, context).block(); + public Response getByResourceGroupWithResponse(String resourceGroupName, + String expressRouteGatewayName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, expressRouteGatewayName, context).block(); } /** - * Lists ExpressRoute gateways in a given resource group. + * Fetches the details of a ExpressRoute gateway in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ExpressRoute gateways. + * @return expressRoute gateway resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteGatewayListInner listByResourceGroup(String resourceGroupName) { - return listByResourceGroupWithResponse(resourceGroupName, Context.NONE).getValue(); + public ExpressRouteGatewayInner getByResourceGroup(String resourceGroupName, String expressRouteGatewayName) { + return getByResourceGroupWithResponse(resourceGroupName, expressRouteGatewayName, Context.NONE).getValue(); } /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,6 +269,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -353,10 +281,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (putExpressRouteGatewayParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter putExpressRouteGatewayParameters is required and cannot be null.")); @@ -364,18 +288,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r putExpressRouteGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, - apiVersion, this.client.getSubscriptionId(), putExpressRouteGatewayParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, contentType, accept, + putExpressRouteGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -391,6 +316,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -399,10 +328,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (putExpressRouteGatewayParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter putExpressRouteGatewayParameters is required and cannot be null.")); @@ -410,16 +335,17 @@ private Mono>> createOrUpdateWithResponseAsync(String putExpressRouteGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, - this.client.getSubscriptionId(), putExpressRouteGatewayParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, contentType, accept, putExpressRouteGatewayParameters, context); } /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -441,7 +367,7 @@ public PollerFlux, ExpressRouteGatewayInner /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -464,7 +390,7 @@ private PollerFlux, ExpressRouteGatewayInne /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -484,7 +410,7 @@ public SyncPoller, ExpressRouteGatewayInner /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -506,7 +432,7 @@ public SyncPoller, ExpressRouteGatewayInner /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -525,7 +451,7 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -544,7 +470,7 @@ private Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -562,7 +488,7 @@ public ExpressRouteGatewayInner createOrUpdate(String resourceGroupName, String /** * Creates or updates a ExpressRoute gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. * @param context The context to associate with this operation. @@ -581,8 +507,8 @@ public ExpressRouteGatewayInner createOrUpdate(String resourceGroupName, String /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -615,18 +541,20 @@ public Mono>> updateTagsWithResponseAsync(String resou expressRouteGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, expressRouteGatewayName, apiVersion, expressRouteGatewayParameters, accept, context)) + .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, contentType, accept, + expressRouteGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -660,17 +588,18 @@ private Mono>> updateTagsWithResponseAsync(String reso expressRouteGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - expressRouteGatewayName, apiVersion, expressRouteGatewayParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRouteGatewayName, contentType, accept, expressRouteGatewayParameters, context); } /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -690,8 +619,8 @@ public PollerFlux, ExpressRouteGatewayInner /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -713,8 +642,8 @@ private PollerFlux, ExpressRouteGatewayInne /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -731,8 +660,8 @@ public SyncPoller, ExpressRouteGatewayInner /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -752,8 +681,8 @@ public SyncPoller, ExpressRouteGatewayInner /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -770,8 +699,8 @@ public Mono updateTagsAsync(String resourceGroupName, /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -790,8 +719,8 @@ private Mono updateTagsAsync(String resourceGroupName, /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -807,8 +736,8 @@ public ExpressRouteGatewayInner updateTags(String resourceGroupName, String expr /** * Updates express route gateway tags. * - * @param resourceGroupName The resource group name of the ExpressRouteGateway. - * @param expressRouteGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -824,22 +753,27 @@ public ExpressRouteGatewayInner updateTags(String resourceGroupName, String expr } /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + public Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRouteGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -848,36 +782,36 @@ public Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - expressRouteGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRouteGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String expressRouteGatewayName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -886,280 +820,346 @@ private Mono> getByResourceGroupWithResponseA return Mono.error( new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRouteGatewayName, context); } /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRouteGatewayName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, expressRouteGatewayName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, expressRouteGatewayName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Fetches the details of a ExpressRoute gateway in a resource group. - * - * @param resourceGroupName The name of the resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRouteGatewayName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, expressRouteGatewayName, context).block(); + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, expressRouteGatewayName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Fetches the details of a ExpressRoute gateway in a resource group. + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoute gateway resource. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName) { + return this.beginDeleteAsync(resourceGroupName, expressRouteGatewayName).getSyncPoller(); + } + + /** + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, expressRouteGatewayName, context).getSyncPoller(); + } + + /** + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRouteGatewayInner getByResourceGroup(String resourceGroupName, String expressRouteGatewayName) { - return getByResourceGroupWithResponse(resourceGroupName, expressRouteGatewayName, Context.NONE).getValue(); + public Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName) { + return beginDeleteAsync(resourceGroupName, expressRouteGatewayName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be * deleted when there are no connection subresources. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRouteGatewayName) { + private Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName, Context context) { + return beginDeleteAsync(resourceGroupName, expressRouteGatewayName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRouteGatewayName) { + deleteAsync(resourceGroupName, expressRouteGatewayName).block(); + } + + /** + * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be + * deleted when there are no connection subresources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRouteGatewayName, Context context) { + deleteAsync(resourceGroupName, expressRouteGatewayName, context).block(); + } + + /** + * Lists ExpressRoute gateways in a given resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listByResourceGroupWithResponseAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRouteGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - expressRouteGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRouteGatewayName, Context context) { + private Mono> listByResourceGroupWithResponseAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRouteGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter expressRouteGatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return list of ExpressRoute gateways on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String expressRouteGatewayName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, expressRouteGatewayName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listByResourceGroupAsync(String resourceGroupName) { + return listByResourceGroupWithResponseAsync(resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return list of ExpressRoute gateways along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String expressRouteGatewayName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, expressRouteGatewayName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listByResourceGroupWithResponse(String resourceGroupName, + Context context) { + return listByResourceGroupWithResponseAsync(resourceGroupName, context).block(); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways in a given resource group. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return list of ExpressRoute gateways. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName) { - return this.beginDeleteAsync(resourceGroupName, expressRouteGatewayName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRouteGatewayListInner listByResourceGroup(String resourceGroupName) { + return listByResourceGroupWithResponse(resourceGroupName, Context.NONE).getValue(); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRouteGatewayName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, expressRouteGatewayName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBySubscriptionWithResponseAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listBySubscription(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of ExpressRoute gateways along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName) { - return beginDeleteAsync(resourceGroupName, expressRouteGatewayName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listBySubscriptionWithResponseAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscription(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of ExpressRoute gateways on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String expressRouteGatewayName, Context context) { - return beginDeleteAsync(resourceGroupName, expressRouteGatewayName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono listBySubscriptionAsync() { + return listBySubscriptionWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRouteGatewayName) { - deleteAsync(resourceGroupName, expressRouteGatewayName).block(); + public Response listBySubscriptionWithResponse(Context context) { + return listBySubscriptionWithResponseAsync(context).block(); } /** - * Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be - * deleted when there are no connection subresources. + * Lists ExpressRoute gateways under a given subscription. * - * @param resourceGroupName The name of the resource group. - * @param expressRouteGatewayName The name of the ExpressRoute gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of ExpressRoute gateways. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRouteGatewayName, Context context) { - deleteAsync(resourceGroupName, expressRouteGatewayName, context).block(); + public ExpressRouteGatewayListInner listBySubscription() { + return listBySubscriptionWithResponse(Context.NONE).getValue(); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java index 364d7db124ce..9931b705f391 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ExpressRouteLinksClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteLinkInner; -import com.azure.resourcemanager.network.models.ExpressRouteLinkListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteLinkListResult; import reactor.core.publisher.Mono; /** @@ -59,15 +59,15 @@ public final class ExpressRouteLinksClientImpl implements ExpressRouteLinksClien * The interface defining all the services for NetworkManagementClientExpressRouteLinks to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteLinks") public interface ExpressRouteLinksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, @PathParam("linkName") String linkName, @HeaderParam("Accept") String accept, Context context); @@ -76,8 +76,8 @@ Mono> get(@HostParam("$host") String endpoint, @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, @HeaderParam("Accept") String accept, Context context); @@ -87,16 +87,16 @@ Mono> list(@HostParam("$host") String endpo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -127,7 +127,7 @@ public Mono> getWithResponseAsync(String resourc final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, linkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -135,9 +135,9 @@ public Mono> getWithResponseAsync(String resourc /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -169,16 +169,16 @@ private Mono> getWithResponseAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, resourceGroupName, + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, linkName, accept, context); } /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -194,9 +194,9 @@ public Mono getAsync(String resourceGroupName, String exp /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -212,9 +212,9 @@ public Response getWithResponse(String resourceGroupName, /** * Retrieves the specified ExpressRouteLink resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param linkName The name of the ExpressRouteLink resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param linkName The name of the express route link. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -228,8 +228,8 @@ public ExpressRouteLinkInner get(String resourceGroupName, String expressRoutePo /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -257,7 +257,7 @@ private Mono> listSinglePageAsync(String re final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -267,8 +267,8 @@ private Mono> listSinglePageAsync(String re /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -298,7 +298,7 @@ private Mono> listSinglePageAsync(String re final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, resourceGroupName, + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -307,8 +307,8 @@ private Mono> listSinglePageAsync(String re /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -323,8 +323,8 @@ public PagedFlux listAsync(String resourceGroupName, Stri /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -341,8 +341,8 @@ private PagedFlux listAsync(String resourceGroupName, Str /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -356,8 +356,8 @@ public PagedIterable list(String resourceGroupName, Strin /** * Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java index f29a30dbc4fc..95cf3b4b9dc4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ExpressRoutePortAuthorizationsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortAuthorizationInner; -import com.azure.resourcemanager.network.models.ExpressRoutePortAuthorizationListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRoutePortAuthorizationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,294 +67,64 @@ public final class ExpressRoutePortAuthorizationsClientImpl implements ExpressRo * The interface defining all the services for NetworkManagementClientExpressRoutePortAuthorizations to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRoutePortAuthorizations") public interface ExpressRoutePortAuthorizationsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRoutePortName") String expressRoutePortName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, - @PathParam("authorizationName") String authorizationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRoutePortAuthorizationInner authorizationParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("authorizationName") String authorizationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRoutePortAuthorizationInner authorizationParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRoutePortName") String expressRoutePortName, + @PathParam("authorizationName") String authorizationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRoutePortName") String expressRoutePortName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRoutePortName") String expressRoutePortName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRoutePortName, String authorizationName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRoutePortName == null) { - return Mono - .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); - } - if (authorizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, - authorizationName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRoutePortName, String authorizationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRoutePortName == null) { - return Mono - .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); - } - if (authorizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, authorizationName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, - String authorizationName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, authorizationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, - String authorizationName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, authorizationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - String authorizationName) { - return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName).getSyncPoller(); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - String authorizationName, Context context) { - return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName) { - return beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName, - Context context) { - return beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRoutePortName, String authorizationName) { - deleteAsync(resourceGroupName, expressRoutePortName, authorizationName).block(); - } - - /** - * Deletes the specified authorization from the specified express route port. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the express route port. - * @param authorizationName The name of the authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRoutePortName, String authorizationName, - Context context) { - deleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context).block(); - } - /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -370,6 +140,10 @@ public Mono> getWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -382,22 +156,18 @@ public Mono> getWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, - authorizationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, authorizationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. @@ -414,6 +184,10 @@ private Mono> getWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -426,21 +200,17 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, authorizationName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRoutePortName, authorizationName, accept, context); } /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -459,7 +229,7 @@ public Mono getAsync(String resourceGroupNam /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param context The context to associate with this operation. @@ -477,7 +247,7 @@ public Response getWithResponse(String resou /** * Gets the specified authorization from the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -494,7 +264,7 @@ public ExpressRoutePortAuthorizationInner get(String resourceGroupName, String e /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -512,6 +282,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -524,10 +298,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (authorizationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null.")); @@ -535,18 +305,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r authorizationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - expressRoutePortName, authorizationName, apiVersion, this.client.getSubscriptionId(), - authorizationParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, authorizationName, + contentType, accept, authorizationParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -565,6 +336,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -577,10 +352,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (authorizationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter authorizationParameters is required and cannot be null.")); @@ -588,16 +359,18 @@ private Mono>> createOrUpdateWithResponseAsync(String authorizationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, - authorizationName, apiVersion, this.client.getSubscriptionId(), authorizationParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, authorizationName, contentType, accept, authorizationParameters, + context); } /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -621,7 +394,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -647,7 +420,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -670,7 +443,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -694,7 +467,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -715,7 +488,7 @@ public Mono createOrUpdateAsync(String resou /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -737,7 +510,7 @@ private Mono createOrUpdateAsync(String reso /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -757,7 +530,7 @@ public ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupNam /** * Creates or updates an authorization in the specified express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. * @param authorizationParameters Parameters supplied to the create or update express route port authorization @@ -775,10 +548,238 @@ public ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupNam context).block(); } + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String expressRoutePortName, String authorizationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (expressRoutePortName == null) { + return Mono + .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); + } + if (authorizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, authorizationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String expressRoutePortName, String authorizationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (expressRoutePortName == null) { + return Mono + .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); + } + if (authorizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter authorizationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRoutePortName, authorizationName, context); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, + String authorizationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, authorizationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, + String authorizationName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, authorizationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + String authorizationName) { + return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName).getSyncPoller(); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + String authorizationName, Context context) { + return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName) { + return beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String expressRoutePortName, String authorizationName, + Context context) { + return beginDeleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRoutePortName, String authorizationName) { + deleteAsync(resourceGroupName, expressRoutePortName, authorizationName).block(); + } + + /** + * Deletes the specified authorization from the specified express route port. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRoutePortName, String authorizationName, + Context context) { + deleteAsync(resourceGroupName, expressRoutePortName, authorizationName, context).block(); + } + /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -793,6 +794,10 @@ private Mono> listSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -801,15 +806,11 @@ private Mono> listSinglePageAs return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -818,7 +819,7 @@ private Mono> listSinglePageAs /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -834,6 +835,10 @@ private Mono> listSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -842,16 +847,12 @@ private Mono> listSinglePageAs return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRoutePortName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -859,7 +860,7 @@ private Mono> listSinglePageAs /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -876,7 +877,7 @@ public PagedFlux listAsync(String resourceGr /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -894,7 +895,7 @@ private PagedFlux listAsync(String resourceG /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -910,7 +911,7 @@ public PagedIterable list(String resourceGro /** * Gets all authorizations in an express route port. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java index 7d5d53336148..2ee6ae36e92c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.network.fluent.ExpressRoutePortsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortInner; import com.azure.resourcemanager.network.fluent.models.GenerateExpressRoutePortsLoaResultInner; -import com.azure.resourcemanager.network.models.ExpressRoutePortListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRoutePortListResult; import com.azure.resourcemanager.network.models.GenerateExpressRoutePortsLoaRequest; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -76,57 +76,54 @@ public final class ExpressRoutePortsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("expressRoutePortName") String expressRoutePortName, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, - @BodyParam("application/json") ExpressRoutePortInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRoutePortInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("expressRoutePortName") String expressRoutePortName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -134,27 +131,26 @@ Mono> listByResourceGroup(@HostParam("$host @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/generateLoa") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/generateLoa") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> generateLoa(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> generateLoa(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("expressRoutePortName") String expressRoutePortName, - @BodyParam("application/json") GenerateExpressRoutePortsLoaRequest request, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GenerateExpressRoutePortsLoaRequest request, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -162,220 +158,14 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRoutePortName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRoutePortName == null) { - return Mono - .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - apiVersion, resourceGroupName, expressRoutePortName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String expressRoutePortName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (expressRoutePortName == null) { - return Mono - .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, resourceGroupName, - expressRoutePortName, accept, context); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, expressRoutePortName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName) { - return this.beginDeleteAsync(resourceGroupName, expressRoutePortName).getSyncPoller(); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, context).getSyncPoller(); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String expressRoutePortName) { - return beginDeleteAsync(resourceGroupName, expressRoutePortName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String expressRoutePortName, Context context) { - return beginDeleteAsync(resourceGroupName, expressRoutePortName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRoutePortName) { - deleteAsync(resourceGroupName, expressRoutePortName).block(); - } - - /** - * Deletes the specified ExpressRoutePort resource. - * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String expressRoutePortName, Context context) { - deleteAsync(resourceGroupName, expressRoutePortName, context).block(); - } - /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -404,15 +194,15 @@ public Mono> getByResourceGroupWithResponseAsync final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), apiVersion, resourceGroupName, expressRoutePortName, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -442,14 +232,14 @@ private Mono> getByResourceGroupWithResponseAsyn final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, accept, context); } /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -465,7 +255,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -482,7 +272,7 @@ public Response getByResourceGroupWithResponse(String res /** * Retrieves the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,8 +287,8 @@ public ExpressRoutePortInner getByResourceGroup(String resourceGroupName, String /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -530,18 +320,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - apiVersion, resourceGroupName, expressRoutePortName, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -574,17 +366,18 @@ private Mono>> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - resourceGroupName, expressRoutePortName, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, contentType, accept, parameters, context); } /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -604,8 +397,8 @@ public PollerFlux, ExpressRoutePortInner> begi /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -626,8 +419,8 @@ private PollerFlux, ExpressRoutePortInner> beg /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -643,8 +436,8 @@ private PollerFlux, ExpressRoutePortInner> beg /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -662,8 +455,8 @@ public SyncPoller, ExpressRoutePortInner> begi /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -680,8 +473,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -699,8 +492,8 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -716,8 +509,8 @@ public ExpressRoutePortInner createOrUpdate(String resourceGroupName, String exp /** * Creates or updates the specified ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to the create ExpressRoutePort operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -734,8 +527,8 @@ public ExpressRoutePortInner createOrUpdate(String resourceGroupName, String exp /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -767,18 +560,20 @@ public Mono> updateTagsWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - apiVersion, resourceGroupName, expressRoutePortName, parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -811,17 +606,18 @@ private Mono> updateTagsWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - resourceGroupName, expressRoutePortName, parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, contentType, accept, parameters, context); } /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -838,8 +634,8 @@ public Mono updateTagsAsync(String resourceGroupName, Str /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -856,8 +652,8 @@ public Response updateTagsWithResponse(String resourceGro /** * Update ExpressRoutePort tags. * - * @param resourceGroupName The name of the resource group. - * @param expressRoutePortName The name of the ExpressRoutePort resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -870,10 +666,214 @@ public ExpressRoutePortInner updateTags(String resourceGroupName, String express return updateTagsWithResponse(resourceGroupName, expressRoutePortName, parameters, Context.NONE).getValue(); } + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String expressRoutePortName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (expressRoutePortName == null) { + return Mono + .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, expressRoutePortName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String expressRoutePortName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (expressRoutePortName == null) { + return Mono + .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + expressRoutePortName, context); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, expressRoutePortName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String expressRoutePortName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, expressRoutePortName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName) { + return this.beginDeleteAsync(resourceGroupName, expressRoutePortName).getSyncPoller(); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String expressRoutePortName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, expressRoutePortName, context).getSyncPoller(); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String expressRoutePortName) { + return beginDeleteAsync(resourceGroupName, expressRoutePortName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String expressRoutePortName, Context context) { + return beginDeleteAsync(resourceGroupName, expressRoutePortName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRoutePortName) { + deleteAsync(resourceGroupName, expressRoutePortName).block(); + } + + /** + * Deletes the specified ExpressRoutePort resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param expressRoutePortName The name of ExpressRoutePort. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String expressRoutePortName, Context context) { + deleteAsync(resourceGroupName, expressRoutePortName, context).block(); + } + /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -896,8 +896,8 @@ private Mono> listByResourceGroupSinglePage final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), apiVersion, resourceGroupName, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -906,7 +906,7 @@ private Mono> listByResourceGroupSinglePage /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -932,7 +932,7 @@ private Mono> listByResourceGroupSinglePage final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -941,7 +941,7 @@ private Mono> listByResourceGroupSinglePage /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -956,7 +956,7 @@ public PagedFlux listByResourceGroupAsync(String resource /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -972,7 +972,7 @@ private PagedFlux listByResourceGroupAsync(String resourc /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -986,7 +986,7 @@ public PagedIterable listByResourceGroup(String resourceG /** * List all the ExpressRoutePort resources in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1018,7 +1018,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1047,7 +1047,7 @@ private Mono> listSinglePageAsync(Context c final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1108,7 +1108,7 @@ public PagedIterable list(Context context) { /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1142,17 +1142,19 @@ public Mono> generateLoaWithRe request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.generateLoa(this.client.getEndpoint(), this.client.getSubscriptionId(), - apiVersion, resourceGroupName, expressRoutePortName, request, accept, context)) + .withContext( + context -> service.generateLoa(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, contentType, accept, request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @param context The context to associate with this operation. @@ -1188,16 +1190,17 @@ private Mono> generateLoaWithR request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.generateLoa(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - resourceGroupName, expressRoutePortName, request, accept, context); + return service.generateLoa(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, expressRoutePortName, contentType, accept, request, context); } /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1215,7 +1218,7 @@ public Mono generateLoaAsync(String res /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @param context The context to associate with this operation. @@ -1233,7 +1236,7 @@ public Response generateLoaWithResponse /** * Generate a letter of authorization for the requested ExpressRoutePort resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java index 926e79a64153..84e1306e7928 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ExpressRoutePortsLocationsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortsLocationInner; -import com.azure.resourcemanager.network.models.ExpressRoutePortsLocationListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRoutePortsLocationListResult; import reactor.core.publisher.Mono; /** @@ -59,45 +59,46 @@ public final class ExpressRoutePortsLocationsClientImpl implements ExpressRouteP * The interface defining all the services for NetworkManagementClientExpressRoutePortsLocations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRoutePortsLocations") public interface ExpressRoutePortsLocationsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("locationName") String locationName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @PathParam("locationName") String locationName, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. + * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at + * said peering location. * + * @param locationName Name of the requested ExpressRoutePort peering location. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return expressRoutePorts Peering Location along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono> getWithResponseAsync(String locationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -106,29 +107,30 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (locationName == null) { + return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + locationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. + * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at + * said peering location. * + * @param locationName Name of the requested ExpressRoutePort peering location. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return expressRoutePorts Peering Location along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> getWithResponseAsync(String locationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -137,83 +139,73 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (locationName == null) { + return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), locationName, accept, + context); } /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. + * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at + * said peering location. * + * @param locationName Name of the requested ExpressRoutePort peering location. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. + * @return expressRoutePorts Peering Location on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String locationName) { + return getWithResponseAsync(locationName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. + * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at + * said peering location. * + * @param locationName Name of the requested ExpressRoutePort peering location. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. + * @return expressRoutePorts Peering Location along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String locationName, Context context) { + return getWithResponseAsync(locationName, context).block(); } /** - * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. - * Available bandwidths can only be obtained when retrieving a specific peering location. + * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at + * said peering location. * + * @param locationName Name of the requested ExpressRoutePort peering location. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. + * @return expressRoutePorts Peering Location. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public ExpressRoutePortsLocationInner get(String locationName) { + return getWithResponse(locationName, Context.NONE).getValue(); } /** * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. * Available bandwidths can only be obtained when retrieving a specific peering location. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at - * said peering location. - * - * @param locationName Name of the requested ExpressRoutePort peering location. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Peering Location along with {@link Response} on successful completion of {@link Mono}. + * @return expressRoutePorts Location List Result along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String locationName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -222,30 +214,29 @@ public Mono> getWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (locationName == null) { - return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - locationName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at - * said peering location. + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. * - * @param locationName Name of the requested ExpressRoutePort peering location. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Peering Location along with {@link Response} on successful completion of {@link Mono}. + * @return expressRoutePorts Location List Result along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String locationName, Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -254,60 +245,69 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (locationName == null) { - return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, locationName, accept, - context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at - * said peering location. + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. * - * @param locationName Name of the requested ExpressRoutePort peering location. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Peering Location on successful completion of {@link Mono}. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String locationName) { - return getWithResponseAsync(locationName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at - * said peering location. + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. * - * @param locationName Name of the requested ExpressRoutePort peering location. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Peering Location along with {@link Response}. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String locationName, Context context) { - return getWithResponseAsync(locationName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at - * said peering location. + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. * - * @param locationName Name of the requested ExpressRoutePort peering location. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. + * Available bandwidths can only be obtained when retrieving a specific peering location. + * + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return expressRoutePorts Peering Location. + * @return expressRoutePorts Location List Result as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ExpressRoutePortsLocationInner get(String locationName) { - return getWithResponse(locationName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java index c47653731dcc..794d8429bab0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -54,14 +54,14 @@ public final class ExpressRouteProviderPortsLocationsClientImpl implements Expre * The interface defining all the services for NetworkManagementClientExpressRouteProviderPortsLocations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteProviderPortsLocations") public interface ExpressRouteProviderPortsLocationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java index 638a917495ed..a0dd3dd8c40a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ExpressRouteServiceProvidersClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteServiceProviderInner; -import com.azure.resourcemanager.network.models.ExpressRouteServiceProviderListResult; +import com.azure.resourcemanager.network.implementation.models.ExpressRouteServiceProviderListResult; import reactor.core.publisher.Mono; /** @@ -59,14 +59,14 @@ public final class ExpressRouteServiceProvidersClientImpl implements ExpressRout * The interface defining all the services for NetworkManagementClientExpressRouteServiceProviders to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientExpressRouteServiceProviders") public interface ExpressRouteServiceProvidersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -75,7 +75,7 @@ Mono> list(@HostParam("$host") S @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java index 79ea98bfb57b..68112b198041 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.FirewallPoliciesClient; import com.azure.resourcemanager.network.fluent.models.FirewallPolicyInner; -import com.azure.resourcemanager.network.models.FirewallPolicyListResult; +import com.azure.resourcemanager.network.implementation.models.FirewallPolicyListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,62 +73,62 @@ public final class FirewallPoliciesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FirewallPolicyInner parameters, @HeaderParam("Accept") String accept, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FirewallPolicyInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("firewallPolicyName") String firewallPolicyName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -137,7 +137,7 @@ Mono> list(@HostParam("$host") String endpoin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -145,219 +145,14 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String firewallPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String firewallPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName) { - return this.beginDeleteAsync(resourceGroupName, firewallPolicyName).getSyncPoller(); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, context).getSyncPoller(); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String firewallPolicyName) { - return beginDeleteAsync(resourceGroupName, firewallPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String firewallPolicyName, Context context) { - return beginDeleteAsync(resourceGroupName, firewallPolicyName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName) { - deleteAsync(resourceGroupName, firewallPolicyName).block(); - } - - /** - * Deletes the specified Firewall Policy. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName, Context context) { - deleteAsync(resourceGroupName, firewallPolicyName, context).block(); - } - /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -372,6 +167,10 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -380,22 +179,18 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - firewallPolicyName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -411,6 +206,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -419,21 +218,17 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, expand, accept, context); } /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -450,7 +245,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -468,7 +263,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -484,7 +279,7 @@ public FirewallPolicyInner getByResourceGroup(String resourceGroupName, String f /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -499,6 +294,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -507,27 +306,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - firewallPolicyName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -543,6 +340,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -551,26 +352,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context); } /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,7 +388,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -612,7 +410,7 @@ private PollerFlux, FirewallPolicyInner> beginCr /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,7 +427,7 @@ private PollerFlux, FirewallPolicyInner> beginCr /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -648,7 +446,7 @@ public SyncPoller, FirewallPolicyInner> beginCre /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -666,7 +464,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -685,7 +483,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -702,7 +500,7 @@ public FirewallPolicyInner createOrUpdate(String resourceGroupName, String firew /** * Creates or updates the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. * @param context The context to associate with this operation. @@ -720,7 +518,7 @@ public FirewallPolicyInner createOrUpdate(String resourceGroupName, String firew /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -735,6 +533,10 @@ public Mono> updateTagsWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -743,27 +545,25 @@ public Mono> updateTagsWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @param context The context to associate with this operation. @@ -779,6 +579,10 @@ private Mono> updateTagsWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -787,26 +591,23 @@ private Mono> updateTagsWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context); } /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -824,7 +625,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @param context The context to associate with this operation. @@ -842,7 +643,7 @@ public Response updateTagsWithResponse(String resourceGroup /** * Updates tags of a Azure Firewall Policy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -856,34 +657,237 @@ public FirewallPolicyInner updateTags(String resourceGroupName, String firewallP } /** - * Lists all Firewall Policies in a resource group. + * Deletes the specified Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String firewallPolicyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (firewallPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String firewallPolicyName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (firewallPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, context); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName) { + return this.beginDeleteAsync(resourceGroupName, firewallPolicyName).getSyncPoller(); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, context).getSyncPoller(); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String firewallPolicyName) { + return beginDeleteAsync(resourceGroupName, firewallPolicyName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String firewallPolicyName, Context context) { + return beginDeleteAsync(resourceGroupName, firewallPolicyName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallPolicyName) { + deleteAsync(resourceGroupName, firewallPolicyName).block(); + } + + /** + * Deletes the specified Firewall Policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallPolicyName, Context context) { + deleteAsync(resourceGroupName, firewallPolicyName, context).block(); + } + + /** + * Lists all Firewall Policies in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallPolicy list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -892,13 +896,13 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallPolicy list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -907,20 +911,20 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -928,11 +932,11 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedFlux}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -943,12 +947,12 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedFlux}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -959,11 +963,11 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedIterable}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -973,12 +977,12 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Lists all Firewall Policies in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call as paginated response with {@link PagedIterable}. + * @return the response of a FirewallPolicy list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -1101,8 +1105,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallPolicy list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1128,8 +1132,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicies API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallPolicy list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java index 08e3cec33e52..afa4cdcba78b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.HeaderParam; import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; @@ -58,24 +57,23 @@ public final class FirewallPolicyDeploymentsClientImpl implements FirewallPolicy * The interface defining all the services for NetworkManagementClientFirewallPolicyDeployments to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyDeployments") public interface FirewallPolicyDeploymentsService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/deploy") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deploy(@HostParam("$host") String endpoint, + Mono>> deploy(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, Context context); } /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -89,6 +87,10 @@ public Mono>> deployWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -97,22 +99,17 @@ public Mono>> deployWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deploy(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.deploy(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,6 +124,10 @@ private Mono>> deployWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -135,21 +136,16 @@ private Mono>> deployWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deploy(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.deploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, context); } /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -166,7 +162,7 @@ public PollerFlux, Void> beginDeployAsync(String resourceGroupN /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -186,7 +182,7 @@ private PollerFlux, Void> beginDeployAsync(String resourceGroup /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -201,7 +197,7 @@ public SyncPoller, Void> beginDeploy(String resourceGroupName, /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -218,7 +214,7 @@ public SyncPoller, Void> beginDeploy(String resourceGroupName, /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -234,7 +230,7 @@ public Mono deployAsync(String resourceGroupName, String firewallPolicyNam /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -251,7 +247,7 @@ private Mono deployAsync(String resourceGroupName, String firewallPolicyNa /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -265,7 +261,7 @@ public void deploy(String resourceGroupName, String firewallPolicyName) { /** * Deploys the firewall policy draft and child rule collection group drafts. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java index 9be84903bb16..390fdeda775e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -58,59 +58,60 @@ public final class FirewallPolicyDraftsClientImpl implements InnerSupportsDelete * The interface defining all the services for NetworkManagementClientFirewallPolicyDrafts to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyDrafts") public interface FirewallPolicyDraftsService { @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Accept") String accept, + Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") FirewallPolicyDraftInner parameters, @HeaderParam("Accept") String accept, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FirewallPolicyDraftInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, Context context); } /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. + * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallPolicyName, FirewallPolicyDraftInner parameters) { + public Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -119,42 +120,36 @@ public Mono> createOrUpdateWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - firewallPolicyName, this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. + * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String firewallPolicyName, FirewallPolicyDraftInner parameters, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -163,91 +158,83 @@ private Mono> createOrUpdateWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, accept, context); } /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource on successful completion of {@link Mono}. + * @return a draft Firewall Policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, - FirewallPolicyDraftInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters) + public Mono getAsync(String resourceGroupName, String firewallPolicyName) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource along with {@link Response}. + * @return a draft Firewall Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String resourceGroupName, - String firewallPolicyName, FirewallPolicyDraftInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters, context).block(); + public Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); } /** - * Create or update a draft Firewall Policy. + * Get a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return firewallPolicy Resource. + * @return a draft Firewall Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, - FirewallPolicyDraftInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, firewallPolicyName, parameters, Context.NONE).getValue(); + public FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName) { + return getWithResponse(resourceGroupName, firewallPolicyName, Context.NONE).getValue(); } /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName) { + public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -256,36 +243,44 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return firewallPolicy Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -294,79 +289,92 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context); } /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return firewallPolicy Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String firewallPolicyName) { - return deleteWithResponseAsync(resourceGroupName, firewallPolicyName).flatMap(ignored -> Mono.empty()); + public Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return firewallPolicy Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters, context).block(); } /** - * Delete a draft policy. + * Create or update a draft Firewall Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to the create or update Firewall Policy Draft operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return firewallPolicy Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName) { - deleteWithResponse(resourceGroupName, firewallPolicyName, Context.NONE); + public FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, firewallPolicyName, parameters, Context.NONE).getValue(); } /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName) { + public Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -375,36 +383,35 @@ public Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -413,62 +420,54 @@ private Mono> getWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, context); } /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String firewallPolicyName) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String firewallPolicyName) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName).flatMap(ignored -> Mono.empty()); } /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String firewallPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); + public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); } /** - * Get a draft Firewall Policy. + * Delete a draft policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a draft Firewall Policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName) { - return getWithResponse(resourceGroupName, firewallPolicyName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String firewallPolicyName) { + deleteWithResponse(resourceGroupName, firewallPolicyName, Context.NONE); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java index c0bb7f6324d5..d7e0a41c3ec3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; @@ -56,18 +55,17 @@ public final class FirewallPolicyIdpsSignaturesClientImpl implements FirewallPol * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignatures to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyIdpsSignatures") public interface FirewallPolicyIdpsSignaturesService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsSignatures") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") IdpsQueryObject parameters, @HeaderParam("Accept") String accept, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") IdpsQueryObject parameters, Context context); } @@ -75,7 +73,7 @@ Mono> list(@HostParam("$host") String endpoint, * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -90,6 +88,10 @@ public Mono> listWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -98,20 +100,17 @@ public Mono> listWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -119,7 +118,7 @@ public Mono> listWithResponseAsync(String resourceGr * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -135,6 +134,10 @@ private Mono> listWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -143,27 +146,24 @@ private Mono> listWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, contentType, accept, parameters, context); } /** * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -182,7 +182,7 @@ public Mono listAsync(String resourceGroupName, String firewa * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -201,7 +201,7 @@ public Response listWithResponse(String resourceGroupName, St * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned signatures is * 1000. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java index ade1e3915ee9..337bed181671 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; @@ -58,25 +57,24 @@ public final class FirewallPolicyIdpsSignaturesFilterValuesClientImpl * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignaturesFilterValues to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyIdpsSignaturesFilterValues") public interface FirewallPolicyIdpsSignaturesFilterValuesService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsFilterOptions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SignatureOverridesFilterValuesQuery parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") SignatureOverridesFilterValuesQuery parameters, Context context); } /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -92,6 +90,10 @@ public Mono> listWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -100,27 +102,24 @@ public Mono> listWithRespo return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -137,6 +136,10 @@ private Mono> listWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -145,26 +148,23 @@ private Mono> listWithResp return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, contentType, accept, parameters, context); } /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -183,7 +183,7 @@ public Mono listAsync(String resour /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @param context The context to associate with this operation. @@ -201,7 +201,7 @@ public Response listWithResponse(St /** * Retrieves the current filter values for the signatures overrides. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java index 61ff83125a61..fd436e384a1d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -60,58 +60,55 @@ public final class FirewallPolicyIdpsSignaturesOverridesClientImpl * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignaturesOverrides to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyIdpsSignaturesOverrides") public interface FirewallPolicyIdpsSignaturesOverridesService { @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> patch(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SignaturesOverridesInner parameters, @HeaderParam("Accept") String accept, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> put(@HostParam("$host") String endpoint, + Mono> put(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SignaturesOverridesInner parameters, @HeaderParam("Accept") String accept, + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SignaturesOverridesInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> patch(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SignaturesOverridesInner parameters, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Accept") String accept, + Context context); } /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -119,12 +116,16 @@ Mono> list(@HostParam("$host") String end * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> patchWithResponseAsync(String resourceGroupName, - String firewallPolicyName, SignaturesOverridesInner parameters) { + public Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -133,29 +134,19 @@ public Mono> patchWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.patch(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -164,12 +155,16 @@ public Mono> patchWithResponseAsync(String re * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> patchWithResponseAsync(String resourceGroupName, - String firewallPolicyName, SignaturesOverridesInner parameters, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -178,46 +173,34 @@ private Mono> patchWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.patch(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, accept, context); } /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono patchAsync(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters) { - return patchWithResponseAsync(resourceGroupName, firewallPolicyName, parameters) + public Mono getAsync(String resourceGroupName, String firewallPolicyName) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -225,32 +208,30 @@ public Mono patchAsync(String resourceGroupName, Strin * @return contains all specific policy signatures overrides for the IDPS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response patchWithResponse(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters, Context context) { - return patchWithResponseAsync(resourceGroupName, firewallPolicyName, parameters, context).block(); + public Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); } /** - * Will update the status of policy's signature overrides for IDPS. + * Returns all signatures overrides for a specific policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignaturesOverridesInner patch(String resourceGroupName, String firewallPolicyName, - SignaturesOverridesInner parameters) { - return patchWithResponse(resourceGroupName, firewallPolicyName, parameters, Context.NONE).getValue(); + public SignaturesOverridesInner get(String resourceGroupName, String firewallPolicyName) { + return getWithResponse(resourceGroupName, firewallPolicyName, Context.NONE).getValue(); } /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,6 +247,10 @@ public Mono> putWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -274,27 +259,24 @@ public Mono> putWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.put(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .withContext(context -> service.put(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. @@ -311,6 +293,10 @@ private Mono> putWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -319,26 +305,23 @@ private Mono> putWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.put(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.put(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, contentType, accept, parameters, context); } /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -356,7 +339,7 @@ public Mono putAsync(String resourceGroupName, String /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. @@ -374,7 +357,7 @@ public Response putWithResponse(String resourceGroupNa /** * Will override/create a new signature overrides for the policy's IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -389,10 +372,11 @@ public SignaturesOverridesInner put(String resourceGroupName, String firewallPol } /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -400,12 +384,16 @@ public SignaturesOverridesInner put(String resourceGroupName, String firewallPol * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName) { + public Mono> patchWithResponseAsync(String resourceGroupName, + String firewallPolicyName, SignaturesOverridesInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -414,23 +402,27 @@ public Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext( + context -> service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -439,12 +431,16 @@ public Mono> getWithResponseAsync(String reso * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, Context context) { + private Mono> patchWithResponseAsync(String resourceGroupName, + String firewallPolicyName, SignaturesOverridesInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -453,38 +449,43 @@ private Mono> getWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, contentType, accept, parameters, context); } /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String firewallPolicyName) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName) + public Mono patchAsync(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters) { + return patchWithResponseAsync(resourceGroupName, firewallPolicyName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -492,30 +493,32 @@ public Mono getAsync(String resourceGroupName, String * @return contains all specific policy signatures overrides for the IDPS along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String firewallPolicyName, - Context context) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); + public Response patchWithResponse(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters, Context context) { + return patchWithResponseAsync(resourceGroupName, firewallPolicyName, parameters, context).block(); } /** - * Returns all signatures overrides for a specific policy. + * Will update the status of policy's signature overrides for IDPS. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Will contain all properties of the object to put. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return contains all specific policy signatures overrides for the IDPS. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignaturesOverridesInner get(String resourceGroupName, String firewallPolicyName) { - return getWithResponse(resourceGroupName, firewallPolicyName, Context.NONE).getValue(); + public SignaturesOverridesInner patch(String resourceGroupName, String firewallPolicyName, + SignaturesOverridesInner parameters) { + return patchWithResponse(resourceGroupName, firewallPolicyName, parameters, Context.NONE).getValue(); } /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -530,6 +533,10 @@ public Mono> listWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -538,22 +545,18 @@ public Mono> listWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -569,6 +572,10 @@ private Mono> listWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -577,21 +584,17 @@ private Mono> listWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, accept, context); } /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -607,7 +610,7 @@ public Mono listAsync(String resourceGroupName, St /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -624,7 +627,7 @@ public Response listWithResponse(String resourceGr /** * Returns all signatures overrides objects for a specific policy as a list containing a single value. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java index aa33d709c957..316f2b2d48ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -59,62 +59,66 @@ public final class FirewallPolicyRuleCollectionGroupDraftsClientImpl * The interface defining all the services for NetworkManagementClientFirewallPolicyRuleCollectionGroupDrafts to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyRuleCollectionGroupDrafts") public interface FirewallPolicyRuleCollectionGroupDraftsService { @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") - @ExpectedResponses({ 200, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallPolicyName") String firewallPolicyName, @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FirewallPolicyRuleCollectionGroupDraftInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallPolicyRuleCollectionGroupDraftInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, Context context); } /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -127,37 +131,38 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -170,73 +175,76 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, ruleCollectionGroupName, accept, context); } /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return rule Collection Group Draft on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { - return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) - .flatMap(ignored -> Mono.empty()); + public Mono getAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return rule Collection Group Draft along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context) { - return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); + public Response getWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); } /** - * Delete Rule Collection Group Draft. + * Get Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return rule Collection Group Draft. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { - deleteWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, Context.NONE); + public FirewallPolicyRuleCollectionGroupDraftInner get(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName) { + return getWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, Context.NONE).getValue(); } /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -251,6 +259,10 @@ public Mono> createOrUpdat return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -263,30 +275,28 @@ public Mono> createOrUpdat return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,6 +312,10 @@ private Mono> createOrUpda return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -314,28 +328,26 @@ private Mono> createOrUpda return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, contentType, accept, parameters, context); } /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -353,9 +365,10 @@ public Mono createOrUpdateAsync(Str /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,9 +387,10 @@ public Response createOrUpdateWithR /** * Create or Update Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -392,23 +406,28 @@ public FirewallPolicyRuleCollectionGroupDraftInner createOrUpdate(String resourc } /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName) { + public Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -421,37 +440,38 @@ public Mono> getWithRespon return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -464,67 +484,62 @@ private Mono> getWithRespo return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, ruleCollectionGroupName, context); } /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + .flatMap(ignored -> Mono.empty()); } /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, Context context) { - return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); + public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); } /** - * Get Rule Collection Group Draft. + * Delete Rule Collection Group Draft. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rule Collection Group Draft. */ @ServiceMethod(returns = ReturnType.SINGLE) - public FirewallPolicyRuleCollectionGroupDraftInner get(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName) { - return getWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { + deleteWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, Context.NONE); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java index d04d3543c9fb..287eb713ce7d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.FirewallPolicyRuleCollectionGroupsClient; import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupInner; -import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollectionGroupListResult; +import com.azure.resourcemanager.network.implementation.models.FirewallPolicyRuleCollectionGroupListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,297 +67,67 @@ public final class FirewallPolicyRuleCollectionGroupsClientImpl implements Firew * The interface defining all the services for NetworkManagementClientFirewallPolicyRuleCollectionGroups to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFirewallPolicyRuleCollectionGroups") public interface FirewallPolicyRuleCollectionGroupsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallPolicyName") String firewallPolicyName, - @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("firewallPolicyName") String firewallPolicyName, @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FirewallPolicyRuleCollectionGroupInner parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FirewallPolicyRuleCollectionGroupInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("firewallPolicyName") String firewallPolicyName, + @PathParam("ruleCollectionGroupName") String ruleCollectionGroupName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("firewallPolicyName") String firewallPolicyName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("firewallPolicyName") String firewallPolicyName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); - } - if (ruleCollectionGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String firewallPolicyName, String ruleCollectionGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (firewallPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); - } - if (ruleCollectionGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName) { - return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).getSyncPoller(); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, - String ruleCollectionGroupName, Context context) { - return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { - return beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, - Context context) { - return beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { - deleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).block(); - } - - /** - * Deletes the specified FirewallPolicyRuleCollectionGroup. - * - * @param resourceGroupName The name of the resource group. - * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, - Context context) { - deleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); - } - /** * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -371,6 +141,10 @@ public Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -383,24 +157,21 @@ public Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -415,6 +186,10 @@ private Mono> getWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -427,23 +202,20 @@ private Mono> getWithResponseAs return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, ruleCollectionGroupName, accept, context); } /** * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -459,9 +231,10 @@ public Mono getAsync(String resourceGrou /** * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,9 +250,10 @@ public Response getWithResponse(String r /** * Gets the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -494,9 +268,10 @@ public FirewallPolicyRuleCollectionGroupInner get(String resourceGroupName, Stri /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -510,6 +285,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -522,30 +301,28 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -561,6 +338,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -573,28 +354,26 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, contentType, accept, parameters, context); } /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -615,9 +394,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -640,9 +420,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -660,9 +441,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -683,9 +465,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -703,9 +486,10 @@ public Mono createOrUpdateAsync(String r /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -724,9 +508,10 @@ private Mono createOrUpdateAsync(String /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -742,9 +527,10 @@ public FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGrou /** * Creates or updates the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. - * @param ruleCollectionGroupName The name of the FirewallPolicyRuleCollectionGroup. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param parameters Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -760,23 +546,28 @@ public FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGrou } /** - * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. + * Deletes the specified FirewallPolicyRuleCollectionGroup. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String firewallPolicyName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -785,15 +576,249 @@ private Mono> listSinglePa return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } + if (ruleCollectionGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (firewallPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); + } + if (ruleCollectionGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter ruleCollectionGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, ruleCollectionGroupName, context); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName) { + return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).getSyncPoller(); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context) { + return this.beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { + return beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + Context context) { + return beginDeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName) { + deleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).block(); + } + + /** + * Deletes the specified FirewallPolicyRuleCollectionGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @param ruleCollectionGroupName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + Context context) { + deleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); + } + + /** + * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param firewallPolicyName The name of the Firewall Policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FirewallPolicyRuleCollectionGroup list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String firewallPolicyName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (firewallPolicyName == null) { + return Mono + .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, firewallPolicyName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -802,13 +827,13 @@ private Mono> listSinglePa /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call along with {@link PagedResponse} on + * @return the response of a FirewallPolicyRuleCollectionGroup list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -818,6 +843,10 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -826,16 +855,12 @@ private Mono> listSinglePa return Mono .error(new IllegalArgumentException("Parameter firewallPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + firewallPolicyName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -843,12 +868,12 @@ private Mono> listSinglePa /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -861,13 +886,13 @@ public PagedFlux listAsync(String resour /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -880,12 +905,12 @@ private PagedFlux listAsync(String resou /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -897,13 +922,13 @@ public PagedIterable list(String resourc /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param firewallPolicyName The name of the Firewall Policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call as paginated response with + * @return the response of a FirewallPolicyRuleCollectionGroup list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -919,7 +944,7 @@ public PagedIterable list(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call along with {@link PagedResponse} on + * @return the response of a FirewallPolicyRuleCollectionGroup list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -946,7 +971,7 @@ private Mono> listNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListFirewallPolicyRuleCollectionGroups API service call along with {@link PagedResponse} on + * @return the response of a FirewallPolicyRuleCollectionGroup list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java index 4c84a79547bd..4595e46d615f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.FlowLogsClient; import com.azure.resourcemanager.network.fluent.models.FlowLogInner; -import com.azure.resourcemanager.network.models.FlowLogListResult; +import com.azure.resourcemanager.network.implementation.models.FlowLogListResult; import com.azure.resourcemanager.network.models.TagsObject; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -68,74 +68,206 @@ public final class FlowLogsClientImpl implements FlowLogsClient { * The interface defining all the services for NetworkManagementClientFlowLogs to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientFlowLogs") public interface FlowLogsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, @PathParam("flowLogName") String flowLogName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FlowLogInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, @PathParam("flowLogName") String flowLogName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FlowLogInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, @PathParam("flowLogName") String flowLogName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, @PathParam("flowLogName") String flowLogName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, + String flowLogName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + if (flowLogName == null) { + return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, flowLogName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, + String flowLogName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + if (flowLogName == null) { + return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, flowLogName, accept, context); + } + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkWatcherName, String flowLogName) { + return getWithResponseAsync(resourceGroupName, networkWatcherName, flowLogName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String networkWatcherName, + String flowLogName, Context context) { + return getWithResponseAsync(resourceGroupName, networkWatcherName, flowLogName, context).block(); + } + + /** + * Gets a flow log resource by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param flowLogName The name of the flow log resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a flow log resource by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FlowLogInner get(String resourceGroupName, String networkWatcherName, String flowLogName) { + return getWithResponse(resourceGroupName, networkWatcherName, flowLogName, Context.NONE).getValue(); } /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -149,6 +281,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -160,30 +296,27 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - flowLogName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, flowLogName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,6 +331,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -209,28 +346,25 @@ private Mono>> createOrUpdateWithResponseAsync(String if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, flowLogName, contentType, accept, parameters, context); } /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -249,9 +383,9 @@ public PollerFlux, FlowLogInner> beginCreateOrUpdateAsy /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,9 +406,9 @@ private PollerFlux, FlowLogInner> beginCreateOrUpdateAs /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -291,9 +425,9 @@ public SyncPoller, FlowLogInner> beginCreateOrUpdate(St /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -311,9 +445,9 @@ public SyncPoller, FlowLogInner> beginCreateOrUpdate(St /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -330,9 +464,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, String n /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -350,9 +484,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -368,9 +502,9 @@ public FlowLogInner createOrUpdate(String resourceGroupName, String networkWatch /** * Create or update a flow log for the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters that define the create or update flow log resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -387,9 +521,9 @@ public FlowLogInner createOrUpdate(String resourceGroupName, String networkWatch /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -403,6 +537,10 @@ public Mono> updateTagsWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -414,29 +552,27 @@ public Mono> updateTagsWithResponseAsync(String resourceG if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - flowLogName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, flowLogName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -451,6 +587,10 @@ private Mono> updateTagsWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -462,28 +602,25 @@ private Mono> updateTagsWithResponseAsync(String resource if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, flowLogName, contentType, accept, parameters, context); } /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -500,9 +637,9 @@ public Mono updateTagsAsync(String resourceGroupName, String netwo /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -520,9 +657,9 @@ public Response updateTagsWithResponse(String resourceGroupName, S /** * Update tags of the specified flow log. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log. + * @param flowLogName The name of the flow log resource. * @param parameters Parameters supplied to update flow log tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -537,156 +674,27 @@ public FlowLogInner updateTags(String resourceGroupName, String networkWatcherNa } /** - * Gets a flow log resource by name. + * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, + public Mono>> deleteWithResponseAsync(String resourceGroupName, String networkWatcherName, String flowLogName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (flowLogName == null) { - return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - flowLogName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String networkWatcherName, - String flowLogName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (flowLogName == null) { - return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkWatcherName, String flowLogName) { - return getWithResponseAsync(resourceGroupName, networkWatcherName, flowLogName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkWatcherName, - String flowLogName, Context context) { - return getWithResponseAsync(resourceGroupName, networkWatcherName, flowLogName, context).block(); - } - - /** - * Gets a flow log resource by name. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a flow log resource by name. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FlowLogInner get(String resourceGroupName, String networkWatcherName, String flowLogName) { - return getWithResponse(resourceGroupName, networkWatcherName, flowLogName, Context.NONE).getValue(); - } - - /** - * Deletes the specified flow log resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param flowLogName The name of the flow log resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String networkWatcherName, - String flowLogName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -698,22 +706,17 @@ public Mono>> deleteWithResponseAsync(String resourceG if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - flowLogName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, flowLogName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -729,6 +732,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -740,21 +747,16 @@ private Mono>> deleteWithResponseAsync(String resource if (flowLogName == null) { return Mono.error(new IllegalArgumentException("Parameter flowLogName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, flowLogName, context); } /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -774,7 +776,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -796,7 +798,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -813,7 +815,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -831,7 +833,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -848,7 +850,7 @@ public Mono deleteAsync(String resourceGroupName, String networkWatcherNam /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -867,7 +869,7 @@ private Mono deleteAsync(String resourceGroupName, String networkWatcherNa /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -882,7 +884,7 @@ public void delete(String resourceGroupName, String networkWatcherName, String f /** * Deletes the specified flow log resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. * @param context The context to associate with this operation. @@ -898,12 +900,13 @@ public void delete(String resourceGroupName, String networkWatcherName, String f /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a FlowLog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String networkWatcherName) { @@ -911,6 +914,10 @@ private Mono> listSinglePageAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -919,15 +926,11 @@ private Mono> listSinglePageAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -936,13 +939,14 @@ private Mono> listSinglePageAsync(String resourceGro /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a FlowLog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String networkWatcherName, @@ -951,6 +955,10 @@ private Mono> listSinglePageAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -959,16 +967,12 @@ private Mono> listSinglePageAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -976,12 +980,12 @@ private Mono> listSinglePageAsync(String resourceGro /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedFlux}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkWatcherName) { @@ -992,13 +996,13 @@ public PagedFlux listAsync(String resourceGroupName, String networ /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedFlux}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkWatcherName, Context context) { @@ -1009,12 +1013,12 @@ private PagedFlux listAsync(String resourceGroupName, String netwo /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedIterable}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkWatcherName) { @@ -1024,13 +1028,13 @@ public PagedIterable list(String resourceGroupName, String network /** * Lists all flow log resources for the specified Network Watcher. * - * @param resourceGroupName The name of the resource group containing Network Watcher. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs as paginated response with {@link PagedIterable}. + * @return the response of a FlowLog list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkWatcherName, Context context) { @@ -1044,7 +1048,8 @@ public PagedIterable list(String resourceGroupName, String network * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a FlowLog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1070,7 +1075,8 @@ private Mono> listNextSinglePageAsync(String nextLin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of flow logs along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a FlowLog list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java index 16522f7a6667..9e8ce4e8a0b4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.HubRouteTablesClient; import com.azure.resourcemanager.network.fluent.models.HubRouteTableInner; -import com.azure.resourcemanager.network.models.ListHubRouteTablesResult; +import com.azure.resourcemanager.network.implementation.models.ListHubRouteTablesResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,66 +67,202 @@ public final class HubRouteTablesClientImpl implements HubRouteTablesClient { * The interface defining all the services for NetworkManagementClientHubRouteTables to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientHubRouteTables") public interface HubRouteTablesService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") HubRouteTableInner routeTableParameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") HubRouteTableInner routeTableParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Retrieves the details of a RouteTable. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routeTableName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); + } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeTableName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the details of a RouteTable. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routeTableName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); + } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeTableName, accept, context); + } + + /** + * Retrieves the details of a RouteTable. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return routeTable resource in a virtual hub on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String virtualHubName, String routeTableName) { + return getWithResponseAsync(resourceGroupName, virtualHubName, routeTableName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the details of a RouteTable. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return routeTable resource in a virtual hub along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String virtualHubName, + String routeTableName, Context context) { + return getWithResponseAsync(resourceGroupName, virtualHubName, routeTableName, context).block(); + } + + /** + * Retrieves the details of a RouteTable. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return routeTable resource in a virtual hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public HubRouteTableInner get(String resourceGroupName, String virtualHubName, String routeTableName) { + return getWithResponse(resourceGroupName, virtualHubName, routeTableName, Context.NONE).getValue(); + } + /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -162,19 +298,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r routeTableParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, routeTableParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeTableName, contentType, accept, + routeTableParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,18 +350,20 @@ private Mono>> createOrUpdateWithResponseAsync(String routeTableParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, routeTableParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeTableName, contentType, accept, routeTableParameters, context); } /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -242,9 +383,10 @@ public PollerFlux, HubRouteTableInner> beginCreat /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,9 +408,10 @@ private PollerFlux, HubRouteTableInner> beginCrea /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -285,9 +428,10 @@ public SyncPoller, HubRouteTableInner> beginCreat /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,9 +450,10 @@ public SyncPoller, HubRouteTableInner> beginCreat /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -325,9 +470,10 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -345,9 +491,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -363,9 +510,10 @@ public HubRouteTableInner createOrUpdate(String resourceGroupName, String virtua /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeTableParameters Parameters supplied to create or update RouteTable. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -380,145 +528,13 @@ public HubRouteTableInner createOrUpdate(String resourceGroupName, String virtua .block(); } - /** - * Retrieves the details of a RouteTable. - * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routeTableName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualHubName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the details of a RouteTable. - * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routeTableName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualHubName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, accept, context); - } - - /** - * Retrieves the details of a RouteTable. - * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String virtualHubName, String routeTableName) { - return getWithResponseAsync(resourceGroupName, virtualHubName, routeTableName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the details of a RouteTable. - * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String virtualHubName, - String routeTableName, Context context) { - return getWithResponseAsync(resourceGroupName, virtualHubName, routeTableName, context).block(); - } - - /** - * Retrieves the details of a RouteTable. - * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routeTable resource in a virtual hub. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public HubRouteTableInner get(String resourceGroupName, String virtualHubName, String routeTableName) { - return getWithResponse(resourceGroupName, virtualHubName, routeTableName, Context.NONE).getValue(); - } - /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -546,19 +562,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeTableName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -587,18 +603,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeTableName, context); } /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -616,9 +632,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -638,9 +655,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -655,9 +673,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -673,9 +692,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -690,9 +710,10 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -709,9 +730,10 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -724,9 +746,10 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Deletes a RouteTable. * - * @param resourceGroupName The resource group name of the RouteTable. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routeTableName The name of the RouteTable. + * @param routeTableName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -740,7 +763,7 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -769,8 +792,8 @@ private Mono> listSinglePageAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -779,7 +802,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -810,8 +833,8 @@ private Mono> listSinglePageAsync(String resou final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -819,7 +842,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -836,7 +859,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -854,7 +877,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -870,7 +893,7 @@ public PagedIterable list(String resourceGroupName, String v /** * Retrieves the details of all RouteTables. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java index e60c3b2bf466..930a06c1181b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.HubVirtualNetworkConnectionsClient; import com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner; -import com.azure.resourcemanager.network.models.ListHubVirtualNetworkConnectionsResult; +import com.azure.resourcemanager.network.implementation.models.ListHubVirtualNetworkConnectionsResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,66 +67,64 @@ public final class HubVirtualNetworkConnectionsClientImpl implements HubVirtualN * The interface defining all the services for NetworkManagementClientHubVirtualNetworkConnections to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientHubVirtualNetworkConnections") public interface HubVirtualNetworkConnectionsService { - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") HubVirtualNetworkConnectionInner hubVirtualNetworkConnectionParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -164,20 +162,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r hubVirtualNetworkConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, hubVirtualNetworkConnectionParameters, - accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, connectionName, contentType, accept, + hubVirtualNetworkConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -216,18 +215,20 @@ private Mono>> createOrUpdateWithResponseAsync(String hubVirtualNetworkConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, hubVirtualNetworkConnectionParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, connectionName, contentType, accept, + hubVirtualNetworkConnectionParameters, context); } /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,9 +250,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -275,9 +276,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,9 +299,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -322,9 +323,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,9 +343,9 @@ public Mono createOrUpdateAsync(String resourc /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -364,9 +365,9 @@ private Mono createOrUpdateAsync(String resour /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -384,9 +385,9 @@ public HubVirtualNetworkConnectionInner createOrUpdate(String resourceGroupName, /** * Creates a hub virtual network connection if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the HubVirtualNetworkConnection. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param hubVirtualNetworkConnectionParameters Parameters supplied to create or update a hub virtual network * connection. * @param context The context to associate with this operation. @@ -406,9 +407,9 @@ public HubVirtualNetworkConnectionInner createOrUpdate(String resourceGroupName, /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -436,19 +437,18 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,18 +477,17 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, connectionName, context); } /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -506,9 +505,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -528,9 +527,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -545,9 +544,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -563,9 +562,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -580,9 +579,9 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -599,9 +598,9 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -614,9 +613,9 @@ public void delete(String resourceGroupName, String virtualHubName, String conne /** * Deletes a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the HubVirtualNetworkConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -630,9 +629,9 @@ public void delete(String resourceGroupName, String virtualHubName, String conne /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -663,17 +662,17 @@ public Mono> getWithResponseAsync(Str final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -705,16 +704,16 @@ private Mono> getWithResponseAsync(St final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, connectionName, accept, context); } /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -730,9 +729,9 @@ public Mono getAsync(String resourceGroupName, /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -748,9 +747,9 @@ public Response getWithResponse(String resourc /** * Retrieves the details of a HubVirtualNetworkConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param connectionName The name of the vpn connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -765,7 +764,7 @@ public HubVirtualNetworkConnectionInner get(String resourceGroupName, String vir /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -794,8 +793,8 @@ private Mono> listSinglePageAsyn final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -804,7 +803,7 @@ private Mono> listSinglePageAsyn /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -835,8 +834,8 @@ private Mono> listSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -844,7 +843,7 @@ private Mono> listSinglePageAsyn /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -861,7 +860,7 @@ public PagedFlux listAsync(String resourceGrou /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -880,7 +879,7 @@ private PagedFlux listAsync(String resourceGro /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -896,7 +895,7 @@ public PagedIterable list(String resourceGroup /** * Retrieves the details of all HubVirtualNetworkConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java index ca25bfc48da3..ac379de35889 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.InboundNatRulesClient; import com.azure.resourcemanager.network.fluent.models.InboundNatRuleInner; -import com.azure.resourcemanager.network.models.InboundNatRuleListResult; +import com.azure.resourcemanager.network.implementation.models.InboundNatRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,78 +67,84 @@ public final class InboundNatRulesClientImpl implements InboundNatRulesClient { * The interface defining all the services for NetworkManagementClientInboundNatRules to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientInboundNatRules") public interface InboundNatRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("inboundNatRuleName") String inboundNatRuleName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") - @ExpectedResponses({ 200, 202, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("inboundNatRuleName") String inboundNatRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("inboundNatRuleName") String inboundNatRuleName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") InboundNatRuleInner inboundNatRuleParameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("inboundNatRuleName") String inboundNatRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, - @HeaderParam("Accept") String accept, Context context); + @PathParam("inboundNatRuleName") String inboundNatRuleName, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("inboundNatRuleName") String inboundNatRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") InboundNatRuleInner inboundNatRuleParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer along with {@link PagedResponse} on successful completion of + * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName) { + public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -147,39 +153,43 @@ private Mono> listSinglePageAsync(String reso return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (inboundNatRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, inboundNatRuleName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer along with {@link PagedResponse} on successful completion of + * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -188,103 +198,97 @@ private Mono> listSinglePageAsync(String reso return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (inboundNatRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, inboundNatRuleName, expand, accept, context); } /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer inbound NAT rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName) { + final String expand = null; + return getWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all the inbound NAT rules in a load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer inbound NAT rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, String expand, Context context) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, expand, context).block(); } /** - * Gets all the inbound NAT rules in a load balancer. + * Gets the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. + * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer inbound NAT rule. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public InboundNatRuleInner get(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { + final String expand = null; + return getWithResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, expand, Context.NONE) + .getValue(); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -297,37 +301,48 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (inboundNatRuleParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null.")); + } else { + inboundNatRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - inboundNatRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, inboundNatRuleName, contentType, + accept, inboundNatRuleParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -340,181 +355,211 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (inboundNatRuleParameters == null) { + return Mono.error( + new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null.")); + } else { + inboundNatRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, inboundNatRuleName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, inboundNatRuleName, contentType, accept, inboundNatRuleParameters, + context); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + public PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync( + String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, loadBalancerName, + inboundNatRuleName, inboundNatRuleParameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + InboundNatRuleInner.class, InboundNatRuleInner.class, this.client.getContext()); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, Context context) { + private PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync( + String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, loadBalancerName, + inboundNatRuleName, inboundNatRuleParameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + InboundNatRuleInner.class, InboundNatRuleInner.class, context); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName) { - return this.beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).getSyncPoller(); + public SyncPoller, InboundNatRuleInner> beginCreateOrUpdate( + String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters) + .getSyncPoller(); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, Context context) { - return this.beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).getSyncPoller(); + public SyncPoller, InboundNatRuleInner> beginCreateOrUpdate( + String resourceGroupName, String loadBalancerName, String inboundNatRuleName, + InboundNatRuleInner inboundNatRuleParameters, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, + context) + .getSyncPoller(); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { - return beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { + return beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, + inboundNatRuleParameters).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - Context context) { - return beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, + inboundNatRuleParameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { - deleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).block(); + public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { + return createOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters) + .block(); } /** - * Deletes the specified load balancer inbound NAT rule. + * Creates or updates a load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return inbound NAT rule of the load balancer. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, Context context) { - deleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).block(); + public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, Context context) { + return createOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, + context).block(); } /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, String expand) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -527,39 +572,36 @@ public Mono> getWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - inboundNatRuleName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, inboundNatRuleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, String expand, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -572,341 +614,300 @@ private Mono> getWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, inboundNatRuleName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, inboundNatRuleName, context); } /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String loadBalancerName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { - final String expand = null; - return getWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, String expand, Context context) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, expand, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets the specified load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer inbound NAT rule. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public InboundNatRuleInner get(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { - final String expand = null; - return getWithResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, expand, Context.NONE) - .getValue(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName) { + return this.beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).getSyncPoller(); } /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, + String inboundNatRuleName, Context context) { + return this.beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).getSyncPoller(); + } + + /** + * Deletes the specified load balancer inbound NAT rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound NAT rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (inboundNatRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (inboundNatRuleParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null.")); - } else { - inboundNatRuleParameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - loadBalancerName, inboundNatRuleName, apiVersion, this.client.getSubscriptionId(), - inboundNatRuleParameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { + return beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer along with {@link Response} on successful completion of - * {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, + private Mono deleteAsync(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (inboundNatRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter inboundNatRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (inboundNatRuleParameters == null) { - return Mono.error( - new IllegalArgumentException("Parameter inboundNatRuleParameters is required and cannot be null.")); - } else { - inboundNatRuleParameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - inboundNatRuleName, apiVersion, this.client.getSubscriptionId(), inboundNatRuleParameters, accept, context); + return beginDeleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync( - String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, loadBalancerName, - inboundNatRuleName, inboundNatRuleParameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - InboundNatRuleInner.class, InboundNatRuleInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName) { + deleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName).block(); } /** - * Creates or updates a load balancer inbound NAT rule. + * Deletes the specified load balancer inbound NAT rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of inbound NAT rule of the load balancer. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, InboundNatRuleInner> beginCreateOrUpdateAsync( - String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, loadBalancerName, - inboundNatRuleName, inboundNatRuleParameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - InboundNatRuleInner.class, InboundNatRuleInner.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String loadBalancerName, String inboundNatRuleName, Context context) { + deleteAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, context).block(); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, InboundNatRuleInner> beginCreateOrUpdate( - String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, InboundNatRuleInner> beginCreateOrUpdate( - String resourceGroupName, String loadBalancerName, String inboundNatRuleName, - InboundNatRuleInner inboundNatRuleParameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, - context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { - return beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, - inboundNatRuleParameters).last().flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer on successful completion of {@link Mono}. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, - inboundNatRuleParameters, context).last().flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters) { - return createOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters) - .block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); } /** - * Creates or updates a load balancer inbound NAT rule. + * Gets all the inbound NAT rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param inboundNatRuleName The name of the inbound NAT rule. - * @param inboundNatRuleParameters Parameters supplied to the create or update inbound NAT rule operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return inbound NAT rule of the load balancer. + * @return all the inbound NAT rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadBalancerName, - String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, Context context) { - return createOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, - context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java index ca03d0d94fa0..a65634f3419a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -61,38 +61,183 @@ public final class InboundSecurityRuleOperationsClientImpl implements InboundSec * The interface defining all the services for NetworkManagementClientInboundSecurityRuleOperations to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientInboundSecurityRuleOperations") public interface InboundSecurityRuleOperationsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") InboundSecurityRuleInner parameters, @HeaderParam("Accept") String accept, + @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") InboundSecurityRuleInner parameters, + Context context); + } + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String ruleCollectionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkVirtualApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, ruleCollectionName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String ruleCollectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkVirtualApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, ruleCollectionName, accept, context); + } + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkVirtualApplianceName, + String ruleCollectionName) { + return getWithResponseAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String networkVirtualApplianceName, String ruleCollectionName, Context context) { + return getWithResponseAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, context) + .block(); + } + + /** + * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nVA Inbound Security Rule resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InboundSecurityRuleInner get(String resourceGroupName, String networkVirtualApplianceName, + String ruleCollectionName) { + return getWithResponse(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, Context.NONE) + .getValue(); } /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,6 +252,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -119,30 +268,28 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, ruleCollectionName, apiVersion, this.client.getSubscriptionId(), - parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, ruleCollectionName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -159,6 +306,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -171,28 +322,27 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - ruleCollectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, ruleCollectionName, contentType, accept, parameters, + context); } /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,9 +364,10 @@ public PollerFlux, InboundSecurityRuleInner /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -239,9 +390,10 @@ private PollerFlux, InboundSecurityRuleInne /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -261,9 +413,10 @@ public SyncPoller, InboundSecurityRuleInner /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -285,9 +438,10 @@ public SyncPoller, InboundSecurityRuleInner /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,9 +460,10 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -328,9 +483,10 @@ private Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,9 +504,10 @@ public InboundSecurityRuleInner createOrUpdate(String resourceGroupName, String /** * Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param ruleCollectionName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules * operation. * @param context The context to associate with this operation. @@ -365,144 +522,4 @@ public InboundSecurityRuleInner createOrUpdate(String resourceGroupName, String return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, parameters, context).block(); } - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String ruleCollectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkVirtualApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - ruleCollectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String ruleCollectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkVirtualApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - ruleCollectionName, apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkVirtualApplianceName, - String ruleCollectionName) { - return getWithResponseAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String networkVirtualApplianceName, String ruleCollectionName, Context context) { - return getWithResponseAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, context) - .block(); - } - - /** - * Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param ruleCollectionName The name of security rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nVA Inbound Security Rule resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public InboundSecurityRuleInner get(String resourceGroupName, String networkVirtualApplianceName, - String ruleCollectionName) { - return getWithResponse(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, Context.NONE) - .getValue(); - } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java index 6020c3a700d7..8668a88d4d12 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.IpAllocationsClient; import com.azure.resourcemanager.network.fluent.models.IpAllocationInner; -import com.azure.resourcemanager.network.models.IpAllocationListResult; +import com.azure.resourcemanager.network.implementation.models.IpAllocationListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,289 +73,85 @@ public final class IpAllocationsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ipAllocationName") String ipAllocationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ipAllocationName") String ipAllocationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("ipAllocationName") String ipAllocationName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ipAllocationName") String ipAllocationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") IpAllocationInner parameters, @HeaderParam("Accept") String accept, + @PathParam("ipAllocationName") String ipAllocationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") IpAllocationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("ipAllocationName") String ipAllocationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ipAllocationName") String ipAllocationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("ipAllocationName") String ipAllocationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ipAllocationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ipAllocationName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (ipAllocationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, ipAllocationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, ipAllocationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName) { - return this.beginDeleteAsync(resourceGroupName, ipAllocationName).getSyncPoller(); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, ipAllocationName, context).getSyncPoller(); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String ipAllocationName) { - return beginDeleteAsync(resourceGroupName, ipAllocationName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String ipAllocationName, Context context) { - return beginDeleteAsync(resourceGroupName, ipAllocationName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ipAllocationName) { - deleteAsync(resourceGroupName, ipAllocationName).block(); - } - /** - * Deletes the specified IpAllocation. - * - * @param resourceGroupName The name of the resource group. - * @param ipAllocationName The name of the IpAllocation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String ipAllocationName, Context context) { - deleteAsync(resourceGroupName, ipAllocationName, context).block(); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -371,6 +167,10 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -379,22 +179,18 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - ipAllocationName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipAllocationName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -411,6 +207,10 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -419,21 +219,17 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipAllocationName, expand, accept, context); } /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -450,7 +246,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -468,7 +264,7 @@ public Response getByResourceGroupWithResponse(String resourc /** * Gets the specified IpAllocation by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -484,7 +280,7 @@ public IpAllocationInner getByResourceGroup(String resourceGroupName, String ipA /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -499,6 +295,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -507,27 +307,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - ipAllocationName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipAllocationName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -543,6 +341,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -551,26 +353,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipAllocationName, contentType, accept, parameters, context); } /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,7 +389,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -612,7 +411,7 @@ private PollerFlux, IpAllocationInner> beginCreate /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,7 +428,7 @@ public SyncPoller, IpAllocationInner> beginCreateO /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -647,7 +446,7 @@ public SyncPoller, IpAllocationInner> beginCreateO /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -665,7 +464,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -684,7 +483,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -701,7 +500,7 @@ public IpAllocationInner createOrUpdate(String resourceGroupName, String ipAlloc /** * Creates or updates an IpAllocation in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -719,7 +518,7 @@ public IpAllocationInner createOrUpdate(String resourceGroupName, String ipAlloc /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -734,35 +533,37 @@ public Mono> updateTagsWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (ipAllocationName == null) { return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, ipAllocationName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipAllocationName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @param context The context to associate with this operation. @@ -778,6 +579,10 @@ private Mono> updateTagsWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -786,26 +591,23 @@ private Mono> updateTagsWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipAllocationName, contentType, accept, parameters, context); } /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -823,7 +625,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @param context The context to associate with this operation. @@ -841,7 +643,7 @@ public Response updateTagsWithResponse(String resourceGroupNa /** * Updates a IpAllocation tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -855,15 +657,17 @@ public IpAllocationInner updateTags(String resourceGroupName, String ipAllocatio } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -872,28 +676,35 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ipAllocationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipAllocationName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String ipAllocationName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -902,71 +713,155 @@ private Mono> listSinglePageAsync(Context conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (ipAllocationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipAllocationName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + ipAllocationName, context); } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, ipAllocationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ipAllocationName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, ipAllocationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName) { + return this.beginDeleteAsync(resourceGroupName, ipAllocationName).getSyncPoller(); } /** - * Gets all IpAllocations in a subscription. + * Deletes the specified IpAllocation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String ipAllocationName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, ipAllocationName, context).getSyncPoller(); + } + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String ipAllocationName) { + return beginDeleteAsync(resourceGroupName, ipAllocationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String ipAllocationName, Context context) { + return beginDeleteAsync(resourceGroupName, ipAllocationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String ipAllocationName) { + deleteAsync(resourceGroupName, ipAllocationName).block(); + } + + /** + * Deletes the specified IpAllocation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ipAllocationName The name of the IpAllocation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String ipAllocationName, Context context) { + deleteAsync(resourceGroupName, ipAllocationName, context).block(); } /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -979,19 +874,19 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1000,7 +895,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1015,20 +910,20 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1036,7 +931,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1051,7 +946,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGrou /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1067,7 +962,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGro /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1081,7 +976,7 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * Gets all IpAllocations in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1094,35 +989,36 @@ public PagedIterable listByResourceGroup(String resourceGroup } /** - * Get the next page of items. + * Gets all IpAllocations in a subscription. * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all IpAllocations in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the next page of items. + * Gets all IpAllocations in a subscription. * - * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1131,21 +1027,76 @@ private Mono> listNextSinglePageAsync(String ne * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + /** + * Gets all IpAllocations in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets all IpAllocations in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all IpAllocations in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all IpAllocations in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -1201,4 +1152,57 @@ private Mono> listByResourceGroupNextSinglePage .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all IpAllocations in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java index 30e33091b9e4..60f37fbb7ffc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,8 +33,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.IpGroupsClient; import com.azure.resourcemanager.network.fluent.models.IpGroupInner; +import com.azure.resourcemanager.network.implementation.models.IpGroupListResult; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.IpGroupListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -72,60 +72,59 @@ public final class IpGroupsClientImpl implements InnerSupportsGet, * The interface defining all the services for NetworkManagementClientIpGroups to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientIpGroups") public interface IpGroupsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") IpGroupInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IpGroupInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> updateGroups(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + Mono> updateGroups(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ipGroupsName") String ipGroupsName, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ipGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -134,7 +133,7 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -142,13 +141,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups * resource. @@ -164,6 +163,10 @@ public Mono> getByResourceGroupWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -171,22 +174,18 @@ public Mono> getByResourceGroupWithResponseAsync(String r if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - ipGroupsName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipGroupsName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups * resource. @@ -203,6 +202,10 @@ private Mono> getByResourceGroupWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -210,21 +213,17 @@ private Mono> getByResourceGroupWithResponseAsync(String if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipGroupsName, expand, accept, context); } /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -241,7 +240,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, Stri /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups * resource. @@ -260,7 +259,7 @@ public Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -276,7 +275,7 @@ public IpGroupInner getByResourceGroup(String resourceGroupName, String ipGroups /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -291,6 +290,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -298,27 +301,23 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipGroupsName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipGroupsName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -334,6 +333,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -341,26 +344,23 @@ private Mono>> createOrUpdateWithResponseAsync(String if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipGroupsName, contentType, accept, parameters, context); } /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -380,7 +380,7 @@ public PollerFlux, IpGroupInner> beginCreateOrUpdateAsy /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -402,7 +402,7 @@ private PollerFlux, IpGroupInner> beginCreateOrUpdateAs /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -419,7 +419,7 @@ public SyncPoller, IpGroupInner> beginCreateOrUpdate(St /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -437,7 +437,7 @@ public SyncPoller, IpGroupInner> beginCreateOrUpdate(St /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,7 +455,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, String i /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -474,7 +474,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -490,7 +490,7 @@ public IpGroupInner createOrUpdate(String resourceGroupName, String ipGroupsName /** * Creates or updates an ipGroups in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. * @param context The context to associate with this operation. @@ -508,7 +508,7 @@ public IpGroupInner createOrUpdate(String resourceGroupName, String ipGroupsName /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -523,6 +523,10 @@ public Mono> updateGroupsWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -530,27 +534,25 @@ public Mono> updateGroupsWithResponseAsync(String resourc if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateGroups(this.client.getEndpoint(), resourceGroupName, ipGroupsName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateGroups(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipGroupsName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @param context The context to associate with this operation. @@ -566,6 +568,10 @@ private Mono> updateGroupsWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -573,26 +579,23 @@ private Mono> updateGroupsWithResponseAsync(String resour if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateGroups(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateGroups(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, ipGroupsName, contentType, accept, parameters, context); } /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -609,7 +612,7 @@ public Mono updateGroupsAsync(String resourceGroupName, String ipG /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @param context The context to associate with this operation. @@ -627,7 +630,7 @@ public Response updateGroupsWithResponse(String resourceGroupName, /** * Updates tags of an IpGroups resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -643,7 +646,7 @@ public IpGroupInner updateGroups(String resourceGroupName, String ipGroupsName, /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -656,6 +659,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -663,22 +670,17 @@ public Mono>> deleteWithResponseAsync(String resourceG if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ipGroupsName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, ipGroupsName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -693,6 +695,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -700,21 +706,16 @@ private Mono>> deleteWithResponseAsync(String resource if (ipGroupsName == null) { return Mono.error(new IllegalArgumentException("Parameter ipGroupsName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + ipGroupsName, context); } /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -731,7 +732,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -751,7 +752,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -766,7 +767,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -783,7 +784,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -798,7 +799,7 @@ public Mono deleteAsync(String resourceGroupName, String ipGroupsName) { /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -815,7 +816,7 @@ private Mono deleteAsync(String resourceGroupName, String ipGroupsName, Co /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -829,7 +830,7 @@ public void delete(String resourceGroupName, String ipGroupsName) { /** * Deletes the specified ipGroups. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -844,7 +845,7 @@ public void delete(String resourceGroupName, String ipGroupsName, Context contex /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -857,19 +858,19 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -878,7 +879,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -893,20 +894,20 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -914,7 +915,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -929,7 +930,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupName /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -945,7 +946,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -959,7 +960,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * Gets all IpGroups in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpamPoolsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpamPoolsClientImpl.java index 9943842571a7..332e009306a2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpamPoolsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpamPoolsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,9 +37,9 @@ import com.azure.resourcemanager.network.fluent.models.IpamPoolInner; import com.azure.resourcemanager.network.fluent.models.PoolAssociationInner; import com.azure.resourcemanager.network.fluent.models.PoolUsageInner; -import com.azure.resourcemanager.network.models.IpamPoolList; +import com.azure.resourcemanager.network.implementation.models.IpamPoolList; +import com.azure.resourcemanager.network.implementation.models.PoolAssociationList; import com.azure.resourcemanager.network.models.IpamPoolUpdate; -import com.azure.resourcemanager.network.models.PoolAssociationList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -73,119 +73,111 @@ public final class IpamPoolsClientImpl implements IpamPoolsClient { * The interface defining all the services for NetworkManagementClientIpamPools to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientIpamPools") public interface IpamPoolsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("skipToken") String skipToken, - @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, - @QueryParam("sortValue") String sortValue, @QueryParam("api-version") String apiVersion, + @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") IpamPoolInner body, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") IpamPoolInner body, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") IpamPoolUpdate body, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IpamPoolUpdate body, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("If-Match") String ifMatch, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @QueryParam("skipToken") String skipToken, + @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, + @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/getPoolUsage") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPoolUsage(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getPoolUsage(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/listAssociatedResources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAssociatedResources(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listAssociatedResources(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAssociatedResourcesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String networkManagerName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + public Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -202,37 +194,32 @@ private Mono> listSinglePageAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, skipToken, skip, top, sortKey, sortValue, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param poolName Pool resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String networkManagerName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -249,134 +236,73 @@ private Mono> listSinglePageAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } + if (poolName == null) { + return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, networkManagerName, - skipToken, skip, top, sortKey, sortValue, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, accept, context); } /** - * Gets list of Pool resources at Network Manager level. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Pool resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkManagerName, String poolName) { + return getWithResponseAsync(resourceGroupName, networkManagerName, poolName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param poolName Pool resource name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, - sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets list of Pool resources at Network Manager level. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Pool resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, + Context context) { + return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, context).block(); } /** - * Gets list of Pool resources at Network Manager level. + * Gets the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Pool resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, - Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public IpamPoolInner get(String resourceGroupName, String networkManagerName, String poolName) { + return getWithResponse(resourceGroupName, networkManagerName, poolName, Context.NONE).getValue(); } /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -413,19 +339,21 @@ public Mono>> createWithResponseAsync(String resourceG body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, ifMatch, body, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, ifMatch, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -463,18 +391,19 @@ private Mono>> createWithResponseAsync(String resource body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, ifMatch, body, accept, context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, ifMatch, contentType, accept, body, context); } /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -495,9 +424,9 @@ public PollerFlux, IpamPoolInner> beginCreateAsync(Str /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -517,9 +446,9 @@ public PollerFlux, IpamPoolInner> beginCreateAsync(Str /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -542,9 +471,9 @@ private PollerFlux, IpamPoolInner> beginCreateAsync(St /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -561,9 +490,9 @@ public SyncPoller, IpamPoolInner> beginCreate(String r /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -583,9 +512,9 @@ public SyncPoller, IpamPoolInner> beginCreate(String r /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -604,9 +533,9 @@ public Mono createAsync(String resourceGroupName, String networkM /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -624,9 +553,9 @@ public Mono createAsync(String resourceGroupName, String networkM /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -646,9 +575,9 @@ private Mono createAsync(String resourceGroupName, String network /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -665,9 +594,9 @@ public IpamPoolInner create(String resourceGroupName, String networkManagerName, /** * Creates/Updates the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param body Pool resource object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -686,9 +615,9 @@ public IpamPoolInner create(String resourceGroupName, String networkManagerName, /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Pool resource object to update partially. @@ -725,17 +654,18 @@ public Mono> updateWithResponseAsync(String resourceGrou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, ifMatch, body, accept, context)) + .withContext( + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, ifMatch, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Pool resource object to update partially. @@ -773,16 +703,16 @@ private Mono> updateWithResponseAsync(String resourceGro final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, ifMatch, body, accept, context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, ifMatch, accept, body, context); } /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -799,9 +729,9 @@ public Mono updateAsync(String resourceGroupName, String networkM /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Pool resource object to update partially. @@ -820,9 +750,9 @@ public Response updateWithResponse(String resourceGroupName, Stri /** * Updates the specific Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. + * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -836,143 +766,10 @@ public IpamPoolInner update(String resourceGroupName, String networkManagerName, .getValue(); } - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, accept, context); - } - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkManagerName, String poolName) { - return getWithResponseAsync(resourceGroupName, networkManagerName, poolName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkManagerName, String poolName, - Context context) { - return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, context).block(); - } - - /** - * Gets the specific Pool resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public IpamPoolInner get(String resourceGroupName, String networkManagerName, String poolName) { - return getWithResponse(resourceGroupName, networkManagerName, poolName, Context.NONE).getValue(); - } - /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1005,17 +802,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, ifMatch, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, poolName, ifMatch, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1049,16 +845,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, ifMatch, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, ifMatch, context); } /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1080,7 +875,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1101,7 +896,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1125,7 +920,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1143,7 +938,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1163,7 +958,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1183,7 +978,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1201,7 +996,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1222,7 +1017,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1238,7 +1033,7 @@ public void delete(String resourceGroupName, String networkManagerName, String p /** * Delete the Pool resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to @@ -1254,10 +1049,213 @@ public void delete(String resourceGroupName, String networkManagerName, String p deleteAsync(resourceGroupName, networkManagerName, poolName, ifMatch, context).block(); } + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String networkManagerName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String networkManagerName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, + sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue)); + } + + /** + * Gets list of Pool resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Pool resources at Network Manager level as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, String skipToken, + Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, context)); + } + /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1290,15 +1288,15 @@ public Mono> getPoolUsageWithResponseAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getPoolUsage(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, accept, context)) + .withContext(context -> service.getPoolUsage(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, poolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. @@ -1332,14 +1330,14 @@ private Mono> getPoolUsageWithResponseAsync(String reso final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getPoolUsage(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, accept, context); + return service.getPoolUsage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, accept, context); } /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1357,7 +1355,7 @@ public Mono getPoolUsageAsync(String resourceGroupName, String n /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. @@ -1375,7 +1373,7 @@ public Response getPoolUsageWithResponse(String resourceGroupNam /** * Get the Pool Usage. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1391,7 +1389,7 @@ public PoolUsageInner getPoolUsage(String resourceGroupName, String networkManag /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1424,9 +1422,8 @@ private Mono> listAssociatedResourcesSingleP final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listAssociatedResources(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, apiVersion, accept, context)) + .withContext(context -> service.listAssociatedResources(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, poolName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1435,7 +1432,7 @@ private Mono> listAssociatedResourcesSingleP /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. @@ -1470,8 +1467,8 @@ private Mono> listAssociatedResourcesSingleP final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listAssociatedResources(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, apiVersion, accept, context) + .listAssociatedResources(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1479,7 +1476,7 @@ private Mono> listAssociatedResourcesSingleP /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1498,7 +1495,7 @@ public PagedFlux listAssociatedResourcesAsync(String resou /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. @@ -1518,7 +1515,7 @@ private PagedFlux listAssociatedResourcesAsync(String reso /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1535,7 +1532,7 @@ public PagedIterable listAssociatedResources(String resour /** * List Associated Resource in the Pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java index fc01663b18a0..4fed0747c28c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.LoadBalancerBackendAddressPoolsClient; import com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner; -import com.azure.resourcemanager.network.models.LoadBalancerBackendAddressPoolListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerBackendAddressPoolListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,212 +67,64 @@ public final class LoadBalancerBackendAddressPoolsClientImpl implements LoadBala * The interface defining all the services for NetworkManagementClientLoadBalancerBackendAddressPools to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerBackendAddressPools") public interface LoadBalancerBackendAddressPoolsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("backendAddressPoolName") String backendAddressPoolName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("backendAddressPoolName") String backendAddressPoolName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("loadBalancerName") String loadBalancerName, @PathParam("backendAddressPoolName") String backendAddressPoolName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BackendAddressPoolInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BackendAddressPoolInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("backendAddressPoolName") String backendAddressPoolName, + @PathParam("backendAddressPoolName") String backendAddressPoolName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); - } - - /** - * Gets all the load balancer backed address pools. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); - } - /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -287,6 +139,10 @@ public Mono> getWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -299,22 +155,18 @@ public Mono> getWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - backendAddressPoolName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, backendAddressPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -330,6 +182,10 @@ private Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -342,21 +198,17 @@ private Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, backendAddressPoolName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, backendAddressPoolName, accept, context); } /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,7 +226,7 @@ public Mono getAsync(String resourceGroupName, String l /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -392,7 +244,7 @@ public Response getWithResponse(String resourceGroupNam /** * Gets load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -409,7 +261,7 @@ public BackendAddressPoolInner get(String resourceGroupName, String loadBalancer /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -425,6 +277,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -437,28 +293,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - backendAddressPoolName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, backendAddressPoolName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -475,6 +328,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -487,26 +344,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - backendAddressPoolName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, backendAddressPoolName, contentType, accept, parameters, context); } /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -529,7 +383,7 @@ public PollerFlux, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -553,7 +407,7 @@ private PollerFlux, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -573,7 +427,7 @@ public SyncPoller, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -595,7 +449,7 @@ public SyncPoller, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -614,7 +468,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -634,7 +488,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -652,7 +506,7 @@ public BackendAddressPoolInner createOrUpdate(String resourceGroupName, String l /** * Creates or updates a load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param parameters Parameters supplied to the create or update load balancer backend address pool operation. @@ -672,7 +526,7 @@ public BackendAddressPoolInner createOrUpdate(String resourceGroupName, String l /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -687,6 +541,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -699,22 +557,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - backendAddressPoolName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, backendAddressPoolName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -730,6 +583,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -742,21 +599,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter backendAddressPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, backendAddressPoolName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, backendAddressPoolName, context); } /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -776,7 +628,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -798,7 +650,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -815,7 +667,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -834,7 +686,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -851,7 +703,7 @@ public Mono deleteAsync(String resourceGroupName, String loadBalancerName, /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -870,7 +722,7 @@ private Mono deleteAsync(String resourceGroupName, String loadBalancerName /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -885,7 +737,7 @@ public void delete(String resourceGroupName, String loadBalancerName, String bac /** * Deletes the specified load balancer backend address pool. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. * @param context The context to associate with this operation. @@ -899,6 +751,153 @@ public void delete(String resourceGroupName, String loadBalancerName, String bac deleteAsync(resourceGroupName, loadBalancerName, backendAddressPoolName, context).block(); } + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer backed address pools as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); + } + /** * Get the next page of items. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java index 86e9b68ac689..51e909495fa7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.LoadBalancerFrontendIpConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.FrontendIpConfigurationInner; -import com.azure.resourcemanager.network.models.LoadBalancerFrontendIpConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerFrontendIPConfigurationListResult; import reactor.core.publisher.Mono; /** @@ -61,56 +61,63 @@ public final class LoadBalancerFrontendIpConfigurationsClientImpl * The interface defining all the services for NetworkManagementClientLoadBalancerFrontendIpConfigurations to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerFrontendIpConfigurations") public interface LoadBalancerFrontendIpConfigurationsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("frontendIPConfigurationName") String frontendIPConfigurationName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("frontendIPConfigurationName") String frontendIpConfigurationName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return load balancer frontend IP configuration along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String loadBalancerName, String frontendIPConfigurationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -119,39 +126,43 @@ private Mono> listSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (frontendIPConfigurationName == null) { + return Mono.error( + new IllegalArgumentException("Parameter frontendIPConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, frontendIPConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return load balancer frontend IP configuration along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String loadBalancerName, String frontendIPConfigurationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -160,105 +171,96 @@ private Mono> listSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (frontendIPConfigurationName == null) { + return Mono.error( + new IllegalArgumentException("Parameter frontendIPConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, frontendIPConfigurationName, accept, context); } /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. + * @return load balancer frontend IP configuration on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, frontendIPConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. + * @return load balancer frontend IP configuration along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName, Context context) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, frontendIPConfigurationName, context).block(); } /** - * Gets all the load balancer frontend IP configurations. + * Gets load balancer frontend IP configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the resource that is unique within the set of frontend IP + * configurations used by the load balancer. This name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. + * @return load balancer frontend IP configuration. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public FrontendIpConfigurationInner get(String resourceGroupName, String loadBalancerName, + String frontendIPConfigurationName) { + return getWithResponse(resourceGroupName, loadBalancerName, frontendIPConfigurationName, Context.NONE) + .getValue(); } /** * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); - } - - /** - * Gets load balancer frontend IP configuration. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration along with {@link Response} on successful completion of - * {@link Mono}. + * @return all the load balancer frontend IP configurations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String loadBalancerName, String frontendIpConfigurationName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -267,42 +269,39 @@ public Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (frontendIpConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter frontendIpConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - frontendIpConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration along with {@link Response} on successful completion of - * {@link Mono}. + * @return all the load balancer frontend IP configurations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String loadBalancerName, String frontendIpConfigurationName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -311,73 +310,80 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (frontendIpConfigurationName == null) { - return Mono.error( - new IllegalArgumentException("Parameter frontendIpConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, frontendIpConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration on successful completion of {@link Mono}. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, frontendIpConfigurationName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration along with {@link Response}. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName, Context context) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, frontendIpConfigurationName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets load balancer frontend IP configuration. + * Gets all the load balancer frontend IP configurations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param frontendIpConfigurationName The name of the frontend IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer frontend IP configuration. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public FrontendIpConfigurationInner get(String resourceGroupName, String loadBalancerName, - String frontendIpConfigurationName) { - return getWithResponse(resourceGroupName, loadBalancerName, frontendIpConfigurationName, Context.NONE) - .getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + } + + /** + * Gets all the load balancer frontend IP configurations. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer frontend IP configurations as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java index b186c4bab42a..886ab074ff8f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -32,7 +32,7 @@ import com.azure.resourcemanager.network.fluent.LoadBalancerLoadBalancingRulesClient; import com.azure.resourcemanager.network.fluent.models.LoadBalancerHealthPerRuleInner; import com.azure.resourcemanager.network.fluent.models.LoadBalancingRuleInner; -import com.azure.resourcemanager.network.models.LoadBalancerLoadBalancingRuleListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerLoadBalancingRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -66,66 +66,72 @@ public final class LoadBalancerLoadBalancingRulesClientImpl implements LoadBalan * The interface defining all the services for NetworkManagementClientLoadBalancerLoadBalancingRules to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerLoadBalancingRules") public interface LoadBalancerLoadBalancingRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("loadBalancingRuleName") String loadBalancingRuleName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("loadBalancingRuleName") String loadBalancingRuleName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}/health") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> health(@HostParam("$host") String endpoint, - @PathParam("groupName") String groupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("loadBalancingRuleName") String loadBalancingRuleName, + Mono>> health(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("groupName") String groupName, @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("loadBalancingRuleName") String loadBalancingRuleName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String loadBalancerName, String loadBalancingRuleName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -134,39 +140,42 @@ private Mono> listSinglePageAsync(String r return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (loadBalancingRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, loadBalancingRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String loadBalancerName, String loadBalancingRuleName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -175,105 +184,91 @@ private Mono> listSinglePageAsync(String r return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (loadBalancingRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, loadBalancingRuleName, accept, context); } /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer load balancing rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String loadBalancerName, + String loadBalancingRuleName) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, loadBalancingRuleName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer load balancing rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String loadBalancerName, + String loadBalancingRuleName, Context context) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, loadBalancingRuleName, context).block(); } /** - * Gets all the load balancing rules in a load balancer. + * Gets the specified load balancer load balancing rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer load balancing rule. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public LoadBalancingRuleInner get(String resourceGroupName, String loadBalancerName, String loadBalancingRuleName) { + return getWithResponse(resourceGroupName, loadBalancerName, loadBalancingRuleName, Context.NONE).getValue(); } /** * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); - } - - /** - * Gets the specified load balancer load balancing rule. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return all the load balancing rules in a load balancer along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String loadBalancerName, String loadBalancingRuleName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -282,42 +277,39 @@ public Mono> getWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (loadBalancingRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - loadBalancingRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return all the load balancing rules in a load balancer along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String loadBalancerName, String loadBalancingRuleName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -326,77 +318,86 @@ private Mono> getWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (loadBalancingRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, loadBalancingRuleName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule on successful completion of {@link Mono}. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String loadBalancerName, - String loadBalancingRuleName) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, loadBalancingRuleName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule along with {@link Response}. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String loadBalancerName, - String loadBalancingRuleName, Context context) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, loadBalancingRuleName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets the specified load balancer load balancing rule. + * Gets all the load balancing rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer load balancing rule. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LoadBalancingRuleInner get(String resourceGroupName, String loadBalancerName, String loadBalancingRuleName) { - return getWithResponse(resourceGroupName, loadBalancerName, loadBalancingRuleName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + } + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancing rules in a load balancer as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); } /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -412,6 +413,10 @@ public Mono>> healthWithResponseAsync(String groupName return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } @@ -423,22 +428,18 @@ public Mono>> healthWithResponseAsync(String groupName return Mono .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.health(this.client.getEndpoint(), groupName, loadBalancerName, - loadBalancingRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.health(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), groupName, loadBalancerName, loadBalancingRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. @@ -455,6 +456,10 @@ private Mono>> healthWithResponseAsync(String groupNam return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } @@ -466,21 +471,17 @@ private Mono>> healthWithResponseAsync(String groupNam return Mono .error(new IllegalArgumentException("Parameter loadBalancingRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.health(this.client.getEndpoint(), groupName, loadBalancerName, loadBalancingRuleName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.health(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), groupName, + loadBalancerName, loadBalancingRuleName, accept, context); } /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -501,7 +502,7 @@ private Mono>> healthWithResponseAsync(String groupNam /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. @@ -524,7 +525,7 @@ private Mono>> healthWithResponseAsync(String groupNam /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -541,7 +542,7 @@ private Mono>> healthWithResponseAsync(String groupNam /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. @@ -559,7 +560,7 @@ private Mono>> healthWithResponseAsync(String groupNam /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,7 +578,7 @@ public Mono healthAsync(String groupName, String /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. @@ -596,7 +597,7 @@ private Mono healthAsync(String groupName, Strin /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -613,7 +614,7 @@ public LoadBalancerHealthPerRuleInner health(String groupName, String loadBalanc /** * Get health details of a load balancing rule. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. * @param loadBalancingRuleName The name of the load balancing rule. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java index aede4b8756d4..814041483b2f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.LoadBalancerNetworkInterfacesClient; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner; -import com.azure.resourcemanager.network.models.NetworkInterfaceListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceListResult; import reactor.core.publisher.Mono; /** @@ -59,31 +59,32 @@ public final class LoadBalancerNetworkInterfacesClientImpl implements LoadBalanc * The interface defining all the services for NetworkManagementClientLoadBalancerNetworkInterfaces to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerNetworkInterfaces") public interface LoadBalancerNetworkInterfacesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -98,6 +99,10 @@ private Mono> listSinglePageAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -106,15 +111,11 @@ private Mono> listSinglePageAsync(String re return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -123,7 +124,7 @@ private Mono> listSinglePageAsync(String re /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,6 +140,10 @@ private Mono> listSinglePageAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -147,16 +152,12 @@ private Mono> listSinglePageAsync(String re return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -164,7 +165,7 @@ private Mono> listSinglePageAsync(String re /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -180,7 +181,7 @@ public PagedFlux listAsync(String resourceGroupName, Stri /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +199,7 @@ private PagedFlux listAsync(String resourceGroupName, Str /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -213,7 +214,7 @@ public PagedIterable list(String resourceGroupName, Strin /** * Gets associated load balancer network interfaces. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java index 860c9e97f613..f25c7f69460e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.LoadBalancerOutboundRulesClient; import com.azure.resourcemanager.network.fluent.models.OutboundRuleInner; -import com.azure.resourcemanager.network.models.LoadBalancerOutboundRuleListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerOutboundRuleListResult; import reactor.core.publisher.Mono; /** @@ -59,55 +59,62 @@ public final class LoadBalancerOutboundRulesClientImpl implements LoadBalancerOu * The interface defining all the services for NetworkManagementClientLoadBalancerOutboundRules to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerOutboundRules") public interface LoadBalancerOutboundRulesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("outboundRuleName") String outboundRuleName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("outboundRuleName") String outboundRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer along with {@link PagedResponse} on successful completion of + * @return the specified load balancer outbound rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName) { + public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String outboundRuleName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -116,39 +123,42 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (outboundRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter outboundRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, outboundRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer along with {@link PagedResponse} on successful completion of + * @return the specified load balancer outbound rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String loadBalancerName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String outboundRuleName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -157,103 +167,91 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (outboundRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter outboundRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, outboundRuleName, accept, context); } /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer outbound rule on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String loadBalancerName, + String outboundRuleName) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, outboundRuleName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. + * @return the specified load balancer outbound rule along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String loadBalancerName, + String outboundRuleName, Context context) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, outboundRuleName, context).block(); } /** - * Gets all the outbound rules in a load balancer. + * Gets the specified load balancer outbound rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. + * @return the specified load balancer outbound rule. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public OutboundRuleInner get(String resourceGroupName, String loadBalancerName, String outboundRuleName) { + return getWithResponse(resourceGroupName, loadBalancerName, outboundRuleName, Context.NONE).getValue(); } /** * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); - } - - /** - * Gets the specified load balancer outbound rule. - * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule along with {@link Response} on successful completion of + * @return all the outbound rules in a load balancer along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String outboundRuleName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -262,42 +260,39 @@ public Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (outboundRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter outboundRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - outboundRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule along with {@link Response} on successful completion of + * @return all the outbound rules in a load balancer along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String outboundRuleName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String loadBalancerName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -306,71 +301,78 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (outboundRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter outboundRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, outboundRuleName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule on successful completion of {@link Mono}. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String loadBalancerName, - String outboundRuleName) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, outboundRuleName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule along with {@link Response}. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String loadBalancerName, - String outboundRuleName, Context context) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, outboundRuleName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets the specified load balancer outbound rule. + * Gets all the outbound rules in a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param outboundRuleName The name of the outbound rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified load balancer outbound rule. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public OutboundRuleInner get(String resourceGroupName, String loadBalancerName, String outboundRuleName) { - return getWithResponse(resourceGroupName, loadBalancerName, outboundRuleName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + } + + /** + * Gets all the outbound rules in a load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the outbound rules in a load balancer as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java index 04b9954ff697..f29caeba8a83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.LoadBalancerProbesClient; import com.azure.resourcemanager.network.fluent.models.ProbeInner; -import com.azure.resourcemanager.network.models.LoadBalancerProbeListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerProbeListResult; import reactor.core.publisher.Mono; /** @@ -59,53 +59,60 @@ public final class LoadBalancerProbesClientImpl implements LoadBalancerProbesCli * The interface defining all the services for NetworkManagementClientLoadBalancerProbes to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLoadBalancerProbes") public interface LoadBalancerProbesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, @PathParam("probeName") String probeName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @PathParam("probeName") String probeName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String loadBalancerName) { + public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String probeName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -114,38 +121,40 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (probeName == null) { + return Mono.error(new IllegalArgumentException("Parameter probeName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, probeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String loadBalancerName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, + String probeName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -154,102 +163,87 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (probeName == null) { + return Mono.error(new IllegalArgumentException("Parameter probeName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, probeName, accept, context); } /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedFlux}. + * @return load balancer probe on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String loadBalancerName, String probeName) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, probeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedFlux}. + * @return load balancer probe along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String loadBalancerName, String probeName, + Context context) { + return getWithResponseAsync(resourceGroupName, loadBalancerName, probeName, context).block(); } /** - * Gets all the load balancer probes. + * Gets load balancer probe. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedIterable}. + * @return load balancer probe. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public ProbeInner get(String resourceGroupName, String loadBalancerName, String probeName) { + return getWithResponse(resourceGroupName, loadBalancerName, probeName, Context.NONE).getValue(); } /** * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancer probes as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); - } - - /** - * Gets load balancer probe. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. + * @return all the load balancer probes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String probeName) { + private Mono> listSinglePageAsync(String resourceGroupName, String loadBalancerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -258,40 +252,38 @@ public Mono> getWithResponseAsync(String resourceGroupName, return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (probeName == null) { - return Mono.error(new IllegalArgumentException("Parameter probeName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - probeName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe along with {@link Response} on successful completion of {@link Mono}. + * @return all the load balancer probes along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String loadBalancerName, - String probeName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String loadBalancerName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -300,69 +292,78 @@ private Mono> getWithResponseAsync(String resourceGroupName return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (probeName == null) { - return Mono.error(new IllegalArgumentException("Parameter probeName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, probeName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe on successful completion of {@link Mono}. + * @return all the load balancer probes as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String loadBalancerName, String probeName) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, probeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String loadBalancerName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe along with {@link Response}. + * @return all the load balancer probes as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String loadBalancerName, String probeName, - Context context) { - return getWithResponseAsync(resourceGroupName, loadBalancerName, probeName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String loadBalancerName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, loadBalancerName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets load balancer probe. + * Gets all the load balancer probes. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. - * @param probeName The name of the probe. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return load balancer probe. + * @return all the load balancer probes as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ProbeInner get(String resourceGroupName, String loadBalancerName, String probeName) { - return getWithResponse(resourceGroupName, loadBalancerName, probeName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName)); + } + + /** + * Gets all the load balancer probes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancer probes as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String loadBalancerName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, loadBalancerName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java index fc9b46f6e39f..b0f21fac72af 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.network.fluent.models.BackendAddressInboundNatRulePortMappingsInner; import com.azure.resourcemanager.network.fluent.models.LoadBalancerInner; import com.azure.resourcemanager.network.fluent.models.MigratedPoolsInner; -import com.azure.resourcemanager.network.models.LoadBalancerListResult; +import com.azure.resourcemanager.network.implementation.models.LoadBalancerListResult; import com.azure.resourcemanager.network.models.LoadBalancerVipSwapRequest; import com.azure.resourcemanager.network.models.MigrateLoadBalancerToIpBasedRequest; import com.azure.resourcemanager.network.models.QueryInboundNatRulePortMappingRequest; @@ -79,320 +79,114 @@ public final class LoadBalancersClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") LoadBalancerInner parameters, @HeaderParam("Accept") String accept, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LoadBalancerInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("loadBalancerName") String loadBalancerName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("loadBalancerName") String loadBalancerName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/setLoadBalancerFrontendPublicIpAddresses") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> swapPublicIpAddresses(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") LoadBalancerVipSwapRequest parameters, @HeaderParam("Accept") String accept, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listInboundNatRulePortMappings(@HostParam("$host") String endpoint, - @PathParam("groupName") String groupName, @PathParam("loadBalancerName") String loadBalancerName, - @PathParam("backendPoolName") String backendPoolName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") QueryInboundNatRulePortMappingRequest parameters, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> migrateToIpBased(@HostParam("$host") String endpoint, + Mono> migrateToIpBased(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("groupName") String groupName, @PathParam("loadBalancerName") String loadBalancerName, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") MigrateLoadBalancerToIpBasedRequest parameters, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> listInboundNatRulePortMappings(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("groupName") String groupName, @PathParam("loadBalancerName") String loadBalancerName, + @PathParam("backendPoolName") String backendPoolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") QueryInboundNatRulePortMappingRequest parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/setLoadBalancerFrontendPublicIpAddresses") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> swapPublicIpAddresses(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") MigrateLoadBalancerToIpBasedRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") LoadBalancerVipSwapRequest parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, loadBalancerName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, loadBalancerName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName) { - return this.beginDeleteAsync(resourceGroupName, loadBalancerName).getSyncPoller(); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, loadBalancerName, context).getSyncPoller(); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String loadBalancerName) { - return beginDeleteAsync(resourceGroupName, loadBalancerName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String loadBalancerName, Context context) { - return beginDeleteAsync(resourceGroupName, loadBalancerName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String loadBalancerName) { - deleteAsync(resourceGroupName, loadBalancerName).block(); - } - - /** - * Deletes the specified load balancer. - * - * @param resourceGroupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String loadBalancerName, Context context) { - deleteAsync(resourceGroupName, loadBalancerName, context).block(); + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -407,6 +201,10 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -415,22 +213,18 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - loadBalancerName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -446,6 +240,10 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -454,21 +252,17 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, expand, accept, context); } /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -485,7 +279,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -503,7 +297,7 @@ public Response getByResourceGroupWithResponse(String resourc /** * Gets the specified load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -519,7 +313,7 @@ public LoadBalancerInner getByResourceGroup(String resourceGroupName, String loa /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -534,6 +328,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -542,27 +340,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - loadBalancerName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -578,6 +374,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -586,26 +386,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, contentType, accept, parameters, context); } /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -625,7 +422,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -647,7 +444,7 @@ private PollerFlux, LoadBalancerInner> beginCreate /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -664,7 +461,7 @@ public SyncPoller, LoadBalancerInner> beginCreateO /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -682,7 +479,7 @@ public SyncPoller, LoadBalancerInner> beginCreateO /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -700,7 +497,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -719,7 +516,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -736,7 +533,7 @@ public LoadBalancerInner createOrUpdate(String resourceGroupName, String loadBal /** * Creates or updates a load balancer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. * @param context The context to associate with this operation. @@ -754,7 +551,7 @@ public LoadBalancerInner createOrUpdate(String resourceGroupName, String loadBal /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -769,6 +566,10 @@ public Mono> updateTagsWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -777,27 +578,25 @@ public Mono> updateTagsWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @param context The context to associate with this operation. @@ -813,6 +612,10 @@ private Mono> updateTagsWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -821,26 +624,23 @@ private Mono> updateTagsWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, loadBalancerName, contentType, accept, parameters, context); } /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -858,7 +658,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @param context The context to associate with this operation. @@ -876,7 +676,7 @@ public Response updateTagsWithResponse(String resourceGroupNa /** * Updates a load balancer tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -890,15 +690,17 @@ public LoadBalancerInner updateTags(String resourceGroupName, String loadBalance } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -907,101 +709,192 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, loadBalancerName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String loadBalancerName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + loadBalancerName, context); + } + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, loadBalancerName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String loadBalancerName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, loadBalancerName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName) { + return this.beginDeleteAsync(resourceGroupName, loadBalancerName).getSyncPoller(); + } + + /** + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String loadBalancerName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, loadBalancerName, context).getSyncPoller(); } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String loadBalancerName) { + return beginDeleteAsync(resourceGroupName, loadBalancerName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String loadBalancerName, Context context) { + return beginDeleteAsync(resourceGroupName, loadBalancerName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String loadBalancerName) { + deleteAsync(resourceGroupName, loadBalancerName).block(); } /** - * Gets all the load balancers in a subscription. + * Deletes the specified load balancer. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param loadBalancerName The name of the load balancer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String loadBalancerName, Context context) { + deleteAsync(resourceGroupName, loadBalancerName, context).block(); } /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1014,19 +907,19 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1035,7 +928,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1050,20 +943,20 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1071,7 +964,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1086,7 +979,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGrou /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1102,7 +995,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGro /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1116,7 +1009,7 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * Gets all the load balancers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1129,219 +1022,253 @@ public PagedIterable listByResourceGroup(String resourceGroup } /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> swapPublicIpAddressesWithResponseAsync(String location, - LoadBalancerVipSwapRequest parameters) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.swapPublicIpAddresses(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> swapPublicIpAddressesWithResponseAsync(String location, - LoadBalancerVipSwapRequest parameters, Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.swapPublicIpAddresses(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return all the load balancers in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, - LoadBalancerVipSwapRequest parameters) { - Mono>> mono = swapPublicIpAddressesWithResponseAsync(location, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Swaps VIPs between two load balancers. + * Gets all the load balancers in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the load balancers in a subscription. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return all the load balancers in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, - LoadBalancerVipSwapRequest parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = swapPublicIpAddressesWithResponseAsync(location, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the migrateToIpBased Api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginSwapPublicIpAddresses(String location, - LoadBalancerVipSwapRequest parameters) { - return this.beginSwapPublicIpAddressesAsync(location, parameters).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> migrateToIpBasedWithResponseAsync(String groupName, + String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (groupName == null) { + return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + if (parameters != null) { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.migrateToIpBased(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), groupName, loadBalancerName, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the migrateToIpBased Api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginSwapPublicIpAddresses(String location, - LoadBalancerVipSwapRequest parameters, Context context) { - return this.beginSwapPublicIpAddressesAsync(location, parameters, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> migrateToIpBasedWithResponseAsync(String groupName, + String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (groupName == null) { + return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + if (parameters != null) { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.migrateToIpBased(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + groupName, loadBalancerName, accept, parameters, context); } /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response for a migrateToIpBased API on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters) { - return beginSwapPublicIpAddressesAsync(location, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono migrateToIpBasedAsync(String groupName, String loadBalancerName) { + final MigrateLoadBalancerToIpBasedRequest parameters = null; + return migrateToIpBasedWithResponseAsync(groupName, loadBalancerName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the migrateToIpBased Api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters, - Context context) { - return beginSwapPublicIpAddressesAsync(location, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Swaps VIPs between two load balancers. - * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response for a migrateToIpBased API along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters) { - swapPublicIpAddressesAsync(location, parameters).block(); + public Response migrateToIpBasedWithResponse(String groupName, String loadBalancerName, + MigrateLoadBalancerToIpBasedRequest parameters, Context context) { + return migrateToIpBasedWithResponseAsync(groupName, loadBalancerName, parameters, context).block(); } /** - * Swaps VIPs between two load balancers. + * Migrate load balancer to IP Based. * - * @param location The region where load balancers are located at. - * @param parameters Parameters that define which VIPs should be swapped. - * @param context The context to associate with this operation. + * @param groupName The groupName parameter. + * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response for a migrateToIpBased API. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters, Context context) { - swapPublicIpAddressesAsync(location, parameters, context).block(); + public MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancerName) { + final MigrateLoadBalancerToIpBasedRequest parameters = null; + return migrateToIpBasedWithResponse(groupName, loadBalancerName, parameters, Context.NONE).getValue(); } /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1356,6 +1283,10 @@ public Mono>> listInboundNatRulePortMappingsWithRespon return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } @@ -1367,30 +1298,27 @@ public Mono>> listInboundNatRulePortMappingsWithRespon return Mono .error(new IllegalArgumentException("Parameter backendPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listInboundNatRulePortMappings(this.client.getEndpoint(), groupName, - loadBalancerName, backendPoolName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.listInboundNatRulePortMappings(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), groupName, loadBalancerName, backendPoolName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1407,6 +1335,10 @@ private Mono>> listInboundNatRulePortMappingsWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } @@ -1418,28 +1350,26 @@ private Mono>> listInboundNatRulePortMappingsWithRespo return Mono .error(new IllegalArgumentException("Parameter backendPoolName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listInboundNatRulePortMappings(this.client.getEndpoint(), groupName, loadBalancerName, - backendPoolName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.listInboundNatRulePortMappings(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), groupName, loadBalancerName, backendPoolName, contentType, accept, + parameters, context); } /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1462,9 +1392,9 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1489,9 +1419,9 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1510,9 +1440,9 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1533,9 +1463,9 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1552,9 +1482,9 @@ public Mono listInboundNatRulePor /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1573,9 +1503,9 @@ private Mono listInboundNatRulePo /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1591,9 +1521,9 @@ public BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappi /** * List of inbound NAT rule port mappings. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param loadBalancerName The name of the load balancer. - * @param backendPoolName The name of the load balancer backend address pool. + * @param backendPoolName The name of the backend address pool. * @param parameters Query inbound NAT rule port mapping request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1610,136 +1540,211 @@ public BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappi } /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> migrateToIpBasedWithResponseAsync(String groupName, - String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters) { + public Mono>> swapPublicIpAddressesWithResponseAsync(String location, + LoadBalancerVipSwapRequest parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (groupName == null) { - return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters != null) { + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.migrateToIpBased(this.client.getEndpoint(), groupName, loadBalancerName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.swapPublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> migrateToIpBasedWithResponseAsync(String groupName, - String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters, Context context) { + private Mono>> swapPublicIpAddressesWithResponseAsync(String location, + LoadBalancerVipSwapRequest parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (groupName == null) { - return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); - } - if (loadBalancerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters != null) { + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.migrateToIpBased(this.client.getEndpoint(), groupName, loadBalancerName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.swapPublicIpAddresses(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, contentType, parameters, context); } /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, + LoadBalancerVipSwapRequest parameters) { + Mono>> mono = swapPublicIpAddressesWithResponseAsync(location, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginSwapPublicIpAddressesAsync(String location, + LoadBalancerVipSwapRequest parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = swapPublicIpAddressesWithResponseAsync(location, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginSwapPublicIpAddresses(String location, + LoadBalancerVipSwapRequest parameters) { + return this.beginSwapPublicIpAddressesAsync(location, parameters).getSyncPoller(); + } + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginSwapPublicIpAddresses(String location, + LoadBalancerVipSwapRequest parameters, Context context) { + return this.beginSwapPublicIpAddressesAsync(location, parameters, context).getSyncPoller(); + } + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono migrateToIpBasedAsync(String groupName, String loadBalancerName) { - final MigrateLoadBalancerToIpBasedRequest parameters = null; - return migrateToIpBasedWithResponseAsync(groupName, loadBalancerName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters) { + return beginSwapPublicIpAddressesAsync(location, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param parameters Parameters supplied to the migrateToIpBased Api. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response migrateToIpBasedWithResponse(String groupName, String loadBalancerName, - MigrateLoadBalancerToIpBasedRequest parameters, Context context) { - return migrateToIpBasedWithResponseAsync(groupName, loadBalancerName, parameters, context).block(); + private Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwapRequest parameters, + Context context) { + return beginSwapPublicIpAddressesAsync(location, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Migrate load balancer to IP Based. + * Swaps VIPs between two load balancers. * - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. + * @param location The name of the Azure region. + * @param parameters The parameters parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response for a migrateToIpBased API. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancerName) { - final MigrateLoadBalancerToIpBasedRequest parameters = null; - return migrateToIpBasedWithResponse(groupName, loadBalancerName, parameters, Context.NONE).getValue(); + public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters) { + swapPublicIpAddressesAsync(location, parameters).block(); + } + + /** + * Swaps VIPs between two load balancers. + * + * @param location The name of the Azure region. + * @param parameters The parameters parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest parameters, Context context) { + swapPublicIpAddressesAsync(location, parameters, context).block(); } /** @@ -1749,11 +1754,11 @@ public MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of + * @return all the load balancers in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1762,8 +1767,7 @@ private Mono> listAllNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1777,11 +1781,11 @@ private Mono> listAllNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of + * @return all the load balancers in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1791,7 +1795,7 @@ private Mono> listAllNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1803,11 +1807,11 @@ private Mono> listAllNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a resource group along with {@link PagedResponse} on successful completion of + * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1816,7 +1820,8 @@ private Mono> listNextSinglePageAsync(String ne new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1830,11 +1835,11 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the load balancers in a resource group along with {@link PagedResponse} on successful completion of + * @return all the load balancers in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1844,7 +1849,7 @@ private Mono> listNextSinglePageAsync(String ne } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java index 1a5449022843..2400bb53cf81 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.LocalNetworkGatewaysClient; import com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner; -import com.azure.resourcemanager.network.models.LocalNetworkGatewayListResult; +import com.azure.resourcemanager.network.implementation.models.LocalNetworkGatewayListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -72,72 +72,195 @@ public final class LocalNetworkGatewaysClientImpl * The interface defining all the services for NetworkManagementClientLocalNetworkGateways to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientLocalNetworkGateways") public interface LocalNetworkGatewaysService { @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("localNetworkGatewayName") String localNetworkGatewayName, @HeaderParam("Accept") String accept, + Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localNetworkGatewayName") String localNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") LocalNetworkGatewayInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LocalNetworkGatewayInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("localNetworkGatewayName") String localNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localNetworkGatewayName") String localNetworkGatewayName, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("localNetworkGatewayName") String localNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("localNetworkGatewayName") String localNetworkGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (localNetworkGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, localNetworkGatewayName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (localNetworkGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, localNetworkGatewayName, accept, context); + } + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String localNetworkGatewayName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, localNetworkGatewayName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String localNetworkGatewayName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, localNetworkGatewayName, context).block(); + } + + /** + * Gets the specified local network gateway in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param localNetworkGatewayName The name of the local network gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified local network gateway in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LocalNetworkGatewayInner getByResourceGroup(String resourceGroupName, String localNetworkGatewayName) { + return getByResourceGroupWithResponse(resourceGroupName, localNetworkGatewayName, Context.NONE).getValue(); + } + /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -153,6 +276,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -161,27 +288,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - localNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, localNetworkGatewayName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -198,6 +323,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -206,26 +335,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, localNetworkGatewayName, contentType, accept, parameters, context); } /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -246,7 +372,7 @@ public PollerFlux, LocalNetworkGatewayInner /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -269,7 +395,7 @@ private PollerFlux, LocalNetworkGatewayInne /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,7 +412,7 @@ public SyncPoller, LocalNetworkGatewayInner /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -306,7 +432,7 @@ public SyncPoller, LocalNetworkGatewayInner /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -324,7 +450,7 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -343,7 +469,7 @@ private Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -360,7 +486,7 @@ public LocalNetworkGatewayInner createOrUpdate(String resourceGroupName, String /** * Creates or updates a local network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to the create or update local network gateway operation. * @param context The context to associate with this operation. @@ -376,23 +502,28 @@ public LocalNetworkGatewayInner createOrUpdate(String resourceGroupName, String } /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -401,37 +532,45 @@ public Mono> getByResourceGroupWithResponseAs return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - localNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, localNetworkGatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String localNetworkGatewayName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -440,70 +579,76 @@ private Mono> getByResourceGroupWithResponseA return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, localNetworkGatewayName, contentType, accept, parameters, context); } /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group on successful completion of {@link Mono}. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String localNetworkGatewayName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, localNetworkGatewayName) + public Mono updateTagsAsync(String resourceGroupName, String localNetworkGatewayName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, localNetworkGatewayName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group along with {@link Response}. + * @return a common class for general resource information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String localNetworkGatewayName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, localNetworkGatewayName, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, + String localNetworkGatewayName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, localNetworkGatewayName, parameters, context).block(); } /** - * Gets the specified local network gateway in a resource group. + * Updates a local network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified local network gateway in a resource group. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LocalNetworkGatewayInner getByResourceGroup(String resourceGroupName, String localNetworkGatewayName) { - return getByResourceGroupWithResponse(resourceGroupName, localNetworkGatewayName, Context.NONE).getValue(); + public LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetworkGatewayName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, localNetworkGatewayName, parameters, Context.NONE).getValue(); } /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -517,6 +662,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -525,22 +674,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - localNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, localNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -555,6 +699,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -563,21 +711,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + localNetworkGatewayName, context); } /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -595,7 +738,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -616,7 +759,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -631,7 +774,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -648,7 +791,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -664,7 +807,7 @@ public Mono deleteAsync(String resourceGroupName, String localNetworkGatew /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -681,7 +824,7 @@ private Mono deleteAsync(String resourceGroupName, String localNetworkGate /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -695,7 +838,7 @@ public void delete(String resourceGroupName, String localNetworkGatewayName) { /** * Deletes the specified local network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param localNetworkGatewayName The name of the local network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -707,151 +850,10 @@ public void delete(String resourceGroupName, String localNetworkGatewayName, Con deleteAsync(resourceGroupName, localNetworkGatewayName, context).block(); } - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName, TagsObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localNetworkGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - localNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String localNetworkGatewayName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (localNetworkGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter localNetworkGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); - } - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String localNetworkGatewayName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, localNetworkGatewayName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String localNetworkGatewayName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, localNetworkGatewayName, parameters, context).block(); - } - - /** - * Updates a local network gateway tags. - * - * @param resourceGroupName The name of the resource group. - * @param localNetworkGatewayName The name of the local network gateway. - * @param parameters Parameters supplied to update local network gateway tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LocalNetworkGatewayInner updateTags(String resourceGroupName, String localNetworkGatewayName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, localNetworkGatewayName, parameters, Context.NONE).getValue(); - } - /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -864,19 +866,19 @@ private Mono> listByResourceGroupSingleP return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -885,7 +887,7 @@ private Mono> listByResourceGroupSingleP /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -900,20 +902,20 @@ private Mono> listByResourceGroupSingleP return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -921,7 +923,7 @@ private Mono> listByResourceGroupSingleP /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -936,7 +938,7 @@ public PagedFlux listByResourceGroupAsync(String resou /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -952,7 +954,7 @@ private PagedFlux listByResourceGroupAsync(String reso /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -966,7 +968,7 @@ public PagedIterable listByResourceGroup(String resour /** * Gets all the local network gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java index acbfea2a9c70..d89b15731460 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ManagementGroupNetworkManagerConnectionsClient; import com.azure.resourcemanager.network.fluent.models.NetworkManagerConnectionInner; -import com.azure.resourcemanager.network.models.NetworkManagerConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkManagerConnectionListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import reactor.core.publisher.Mono; @@ -65,44 +65,41 @@ public final class ManagementGroupNetworkManagerConnectionsClientImpl * The interface defining all the services for NetworkManagementClientManagementGroupNetworkManagerConnections to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientManagementGroupNetworkManagerConnections") public interface ManagementGroupNetworkManagerConnectionsService { @Headers({ "Content-Type: application/json" }) - @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") - @ExpectedResponses({ 200, 201 }) + @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("managementGroupId") String managementGroupId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId, @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetworkManagerConnectionInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") - @ExpectedResponses({ 200 }) + @Put("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("managementGroupId") String managementGroupId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId, @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkManagerConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("managementGroupId") String managementGroupId, - @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId, + @PathParam("networkManagerConnectionName") String networkManagerConnectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("managementGroupId") String managementGroupId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("managementGroupId") String managementGroupId, @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @@ -111,25 +108,24 @@ Mono> list(@HostParam("$host") Stri @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this management group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { + public Mono> getWithResponseAsync(String managementGroupId, + String networkManagerConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -142,35 +138,29 @@ public Mono> createOrUpdateWithResponseA return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), managementGroupId, - networkManagerConnectionName, apiVersion, parameters, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, managementGroupId, + networkManagerConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this management group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { + private Mono> getWithResponseAsync(String managementGroupId, + String networkManagerConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -183,87 +173,76 @@ private Mono> createOrUpdateWithResponse return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, - apiVersion, parameters, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, managementGroupId, networkManagerConnectionName, + accept, context); } /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource on successful completion of {@link Mono}. + * @return a specified connection created by this management group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { - return createOrUpdateWithResponseAsync(managementGroupId, networkManagerConnectionName, parameters) + public Mono getAsync(String managementGroupId, String networkManagerConnectionName) { + return getWithResponseAsync(managementGroupId, networkManagerConnectionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response}. + * @return a specified connection created by this management group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String managementGroupId, - String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { - return createOrUpdateWithResponseAsync(managementGroupId, networkManagerConnectionName, parameters, context) - .block(); + public Response getWithResponse(String managementGroupId, + String networkManagerConnectionName, Context context) { + return getWithResponseAsync(managementGroupId, networkManagerConnectionName, context).block(); } /** - * Create a network manager connection on this management group. + * Get a specified connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource. + * @return a specified connection created by this management group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkManagerConnectionInner createOrUpdate(String managementGroupId, String networkManagerConnectionName, - NetworkManagerConnectionInner parameters) { - return createOrUpdateWithResponse(managementGroupId, networkManagerConnectionName, parameters, Context.NONE) - .getValue(); + public NetworkManagerConnectionInner get(String managementGroupId, String networkManagerConnectionName) { + return getWithResponse(managementGroupId, networkManagerConnectionName, Context.NONE).getValue(); } /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String managementGroupId, - String networkManagerConnectionName) { + public Mono> createOrUpdateWithResponseAsync(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -276,29 +255,36 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), managementGroupId, - networkManagerConnectionName, apiVersion, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, managementGroupId, + networkManagerConnectionName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String managementGroupId, - String networkManagerConnectionName, Context context) { + private Mono> createOrUpdateWithResponseAsync(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -311,65 +297,78 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, apiVersion, - accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, managementGroupId, + networkManagerConnectionName, contentType, accept, parameters, context); } /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group on successful completion of {@link Mono}. + * @return the Network Manager Connection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String managementGroupId, String networkManagerConnectionName) { - return getWithResponseAsync(managementGroupId, networkManagerConnectionName) + public Mono createOrUpdateAsync(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { + return createOrUpdateWithResponseAsync(managementGroupId, networkManagerConnectionName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group along with {@link Response}. + * @return the Network Manager Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String managementGroupId, - String networkManagerConnectionName, Context context) { - return getWithResponseAsync(managementGroupId, networkManagerConnectionName, context).block(); + public Response createOrUpdateWithResponse(String managementGroupId, + String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { + return createOrUpdateWithResponseAsync(managementGroupId, networkManagerConnectionName, parameters, context) + .block(); } /** - * Get a specified connection created by this management group. + * Create a network manager connection on this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this management group. + * @return the Network Manager Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkManagerConnectionInner get(String managementGroupId, String networkManagerConnectionName) { - return getWithResponse(managementGroupId, networkManagerConnectionName, Context.NONE).getValue(); + public NetworkManagerConnectionInner createOrUpdate(String managementGroupId, String networkManagerConnectionName, + NetworkManagerConnectionInner parameters) { + return createOrUpdateWithResponse(managementGroupId, networkManagerConnectionName, parameters, Context.NONE) + .getValue(); } /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -391,17 +390,16 @@ public Mono> deleteWithResponseAsync(String managementGroupId, St new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), managementGroupId, - networkManagerConnectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, managementGroupId, + networkManagerConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -425,16 +423,15 @@ private Mono> deleteWithResponseAsync(String managementGroupId, S new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, apiVersion, - accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, managementGroupId, networkManagerConnectionName, + context); } /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -450,7 +447,7 @@ public Mono deleteAsync(String managementGroupId, String networkManagerCon /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -467,7 +464,7 @@ public Response deleteWithResponse(String managementGroupId, String networ /** * Delete specified pending connection created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param networkManagerConnectionName Name for the network manager connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -481,7 +478,7 @@ public void delete(String managementGroupId, String networkManagerConnectionName /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -490,8 +487,8 @@ public void delete(String managementGroupId, String networkManagerConnectionName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String managementGroupId, @@ -507,7 +504,7 @@ private Mono> listSinglePageAsync(S final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), managementGroupId, apiVersion, top, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, managementGroupId, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -517,7 +514,7 @@ private Mono> listSinglePageAsync(S /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -527,8 +524,8 @@ private Mono> listSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String managementGroupId, @@ -544,7 +541,7 @@ private Mono> listSinglePageAsync(S final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), managementGroupId, apiVersion, top, skipToken, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, managementGroupId, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -552,7 +549,7 @@ private Mono> listSinglePageAsync(S /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -561,7 +558,7 @@ private Mono> listSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String managementGroupId, Integer top, String skipToken) { @@ -572,11 +569,11 @@ public PagedFlux listAsync(String managementGroup /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String managementGroupId) { @@ -589,7 +586,7 @@ public PagedFlux listAsync(String managementGroup /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -599,7 +596,7 @@ public PagedFlux listAsync(String managementGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String managementGroupId, Integer top, String skipToken, @@ -611,11 +608,12 @@ private PagedFlux listAsync(String managementGrou /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String managementGroupId) { @@ -627,7 +625,7 @@ public PagedIterable list(String managementGroupI /** * List all network manager connections created by this management group. * - * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure management group. + * @param managementGroupId The management group ID. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -637,7 +635,8 @@ public PagedIterable list(String managementGroupI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String managementGroupId, Integer top, String skipToken, @@ -652,8 +651,8 @@ public PagedIterable list(String managementGroupI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -679,8 +678,8 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java index c9ebdd80dccb..3e020f7cc5fd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NatGatewaysClient; import com.azure.resourcemanager.network.fluent.models.NatGatewayInner; -import com.azure.resourcemanager.network.models.NatGatewayListResult; +import com.azure.resourcemanager.network.implementation.models.NatGatewayListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,286 +73,84 @@ public final class NatGatewaysClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("natGatewayName") String natGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("natGatewayName") String natGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("natGatewayName") String natGatewayName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("natGatewayName") String natGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NatGatewayInner parameters, @HeaderParam("Accept") String accept, + @PathParam("natGatewayName") String natGatewayName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NatGatewayInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("natGatewayName") String natGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natGatewayName") String natGatewayName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("natGatewayName") String natGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (natGatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, natGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (natGatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, natGatewayName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, natGatewayName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName) { - return this.beginDeleteAsync(resourceGroupName, natGatewayName).getSyncPoller(); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, natGatewayName, context).getSyncPoller(); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String natGatewayName) { - return beginDeleteAsync(resourceGroupName, natGatewayName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String natGatewayName, Context context) { - return beginDeleteAsync(resourceGroupName, natGatewayName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String natGatewayName) { - deleteAsync(resourceGroupName, natGatewayName).block(); - } - - /** - * Deletes the specified nat gateway. - * - * @param resourceGroupName The name of the resource group. - * @param natGatewayName The name of the nat gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String natGatewayName, Context context) { - deleteAsync(resourceGroupName, natGatewayName, context).block(); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAllNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,6 +166,10 @@ public Mono> getByResourceGroupWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -375,22 +177,18 @@ public Mono> getByResourceGroupWithResponseAsync(Strin if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - natGatewayName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, natGatewayName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -407,6 +205,10 @@ private Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -414,21 +216,17 @@ private Mono> getByResourceGroupWithResponseAsync(Stri if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, natGatewayName, expand, accept, context); } /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -445,7 +243,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, S /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -463,7 +261,7 @@ public Response getByResourceGroupWithResponse(String resourceG /** * Gets the specified nat gateway in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -479,7 +277,7 @@ public NatGatewayInner getByResourceGroup(String resourceGroupName, String natGa /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -494,6 +292,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -501,27 +303,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, natGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, natGatewayName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -537,6 +337,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -544,26 +348,23 @@ private Mono>> createOrUpdateWithResponseAsync(String if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, natGatewayName, contentType, accept, parameters, context); } /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -583,7 +384,7 @@ public PollerFlux, NatGatewayInner> beginCreateOrUpd /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -605,7 +406,7 @@ private PollerFlux, NatGatewayInner> beginCreateOrUp /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -622,7 +423,7 @@ public SyncPoller, NatGatewayInner> beginCreateOrUpd /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -640,7 +441,7 @@ public SyncPoller, NatGatewayInner> beginCreateOrUpd /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -658,7 +459,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -677,7 +478,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -693,7 +494,7 @@ public NatGatewayInner createOrUpdate(String resourceGroupName, String natGatewa /** * Creates or updates a nat gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to the create or update nat gateway operation. * @param context The context to associate with this operation. @@ -711,7 +512,7 @@ public NatGatewayInner createOrUpdate(String resourceGroupName, String natGatewa /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -726,6 +527,10 @@ public Mono> updateTagsWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -733,27 +538,25 @@ public Mono> updateTagsWithResponseAsync(String resour if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, natGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, natGatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @param context The context to associate with this operation. @@ -769,6 +572,10 @@ private Mono> updateTagsWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -776,26 +583,23 @@ private Mono> updateTagsWithResponseAsync(String resou if (natGatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, natGatewayName, contentType, accept, parameters, context); } /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -813,7 +617,7 @@ public Mono updateTagsAsync(String resourceGroupName, String na /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @param context The context to associate with this operation. @@ -831,7 +635,7 @@ public Response updateTagsWithResponse(String resourceGroupName /** * Updates nat gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param natGatewayName The name of the nat gateway. * @param parameters Parameters supplied to update nat gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -845,15 +649,17 @@ public NatGatewayInner updateTags(String resourceGroupName, String natGatewayNam } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -862,28 +668,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (natGatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, natGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String natGatewayName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -892,71 +704,154 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (natGatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter natGatewayName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + natGatewayName, context); } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, natGatewayName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String natGatewayName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, natGatewayName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName) { + return this.beginDeleteAsync(resourceGroupName, natGatewayName).getSyncPoller(); } /** - * Gets all the Nat Gateways in a subscription. + * Deletes the specified nat gateway. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String natGatewayName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, natGatewayName, context).getSyncPoller(); + } + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String natGatewayName) { + return beginDeleteAsync(resourceGroupName, natGatewayName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String natGatewayName, Context context) { + return beginDeleteAsync(resourceGroupName, natGatewayName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String natGatewayName) { + deleteAsync(resourceGroupName, natGatewayName).block(); + } + + /** + * Deletes the specified nat gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param natGatewayName The name of the nat gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String natGatewayName, Context context) { + deleteAsync(resourceGroupName, natGatewayName, context).block(); } /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -969,19 +864,19 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -990,7 +885,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1005,20 +900,20 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1026,7 +921,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1041,7 +936,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupN /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1057,7 +952,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroup /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1071,7 +966,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNa /** * Gets all nat gateways in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1083,6 +978,115 @@ public PagedIterable listByResourceGroup(String resourceGroupNa return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } + /** + * Gets all the Nat Gateways in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the Nat Gateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets all the Nat Gateways in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the Nat Gateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the Nat Gateways in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the Nat Gateways in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the Nat Gateways in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -1090,11 +1094,11 @@ public PagedIterable listByResourceGroup(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all nat gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1103,8 +1107,7 @@ private Mono> listAllNextSinglePageAsync(String n new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1118,11 +1121,11 @@ private Mono> listAllNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all nat gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1132,7 +1135,7 @@ private Mono> listAllNextSinglePageAsync(String n } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1144,11 +1147,11 @@ private Mono> listAllNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all nat gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1157,7 +1160,8 @@ private Mono> listNextSinglePageAsync(String next new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1171,11 +1175,11 @@ private Mono> listNextSinglePageAsync(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all nat gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the Nat Gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1185,7 +1189,7 @@ private Mono> listNextSinglePageAsync(String next } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java index cd292603c199..17e729fa7e6b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NatRulesClient; import com.azure.resourcemanager.network.fluent.models.VpnGatewayNatRuleInner; -import com.azure.resourcemanager.network.models.ListVpnGatewayNatRulesResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnGatewayNatRulesResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -66,64 +66,62 @@ public final class NatRulesClientImpl implements NatRulesClient { * The interface defining all the services for NetworkManagementClientNatRules to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNatRules") public interface NatRulesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VpnGatewayNatRuleInner natRuleParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnGatewayNatRuleInner natRuleParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVpnGateway(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listByVpnGateway(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnGatewayNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -153,17 +151,18 @@ public Mono> getWithResponseAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, natRuleName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, natRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -194,16 +193,17 @@ private Mono> getWithResponseAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, - natRuleName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, natRuleName, accept, context); } /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -218,9 +218,10 @@ public Mono getAsync(String resourceGroupName, String ga /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -236,9 +237,10 @@ public Response getWithResponse(String resourceGroupName /** * Retrieves the details of a nat ruleGet. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -252,9 +254,10 @@ public VpnGatewayNatRuleInner get(String resourceGroupName, String gatewayName, /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -289,19 +292,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r natRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, natRuleName, apiVersion, natRuleParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, natRuleName, contentType, accept, + natRuleParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -337,18 +343,20 @@ private Mono>> createOrUpdateWithResponseAsync(String natRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, natRuleName, apiVersion, natRuleParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, natRuleName, contentType, accept, natRuleParameters, context); } /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -368,9 +376,10 @@ public PollerFlux, VpnGatewayNatRuleInner> be /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -392,9 +401,10 @@ private PollerFlux, VpnGatewayNatRuleInner> b /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -411,9 +421,10 @@ public SyncPoller, VpnGatewayNatRuleInner> be /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -432,9 +443,10 @@ public SyncPoller, VpnGatewayNatRuleInner> be /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -451,9 +463,10 @@ public Mono createOrUpdateAsync(String resourceGroupName /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,9 +484,10 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -489,9 +503,10 @@ public VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String ga /** * Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -508,9 +523,10 @@ public VpnGatewayNatRuleInner createOrUpdate(String resourceGroupName, String ga /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -538,19 +554,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, natRuleName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, natRuleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -579,18 +595,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, natRuleName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, natRuleName, context); } /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -607,9 +623,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -629,9 +646,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -646,9 +664,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -664,9 +683,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -681,9 +701,10 @@ public Mono deleteAsync(String resourceGroupName, String gatewayName, Stri /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -699,9 +720,10 @@ private Mono deleteAsync(String resourceGroupName, String gatewayName, Str /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -714,9 +736,10 @@ public void delete(String resourceGroupName, String gatewayName, String natRuleN /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -730,7 +753,7 @@ public void delete(String resourceGroupName, String gatewayName, String natRuleN /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -759,8 +782,8 @@ private Mono> listByVpnGatewaySinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -769,7 +792,7 @@ private Mono> listByVpnGatewaySinglePageAs /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -800,8 +823,8 @@ private Mono> listByVpnGatewaySinglePageAs final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context) + .listByVpnGateway(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -809,7 +832,7 @@ private Mono> listByVpnGatewaySinglePageAs /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -826,7 +849,7 @@ public PagedFlux listByVpnGatewayAsync(String resourceGr /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -845,7 +868,7 @@ private PagedFlux listByVpnGatewayAsync(String resourceG /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -861,7 +884,7 @@ public PagedIterable listByVpnGateway(String resourceGro /** * Retrieves all nat rules for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java index 916f070736b9..563aa4c4aeb7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkGroupsClient; import com.azure.resourcemanager.network.fluent.models.NetworkGroupInner; -import com.azure.resourcemanager.network.models.NetworkGroupListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkGroupListResult; import com.azure.resourcemanager.network.models.NetworkGroupsCreateOrUpdateResponse; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -68,66 +68,64 @@ public final class NetworkGroupsClientImpl implements NetworkGroupsClient { * The interface defining all the services for NetworkManagementClientNetworkGroups to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkGroups") public interface NetworkGroupsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("networkGroupName") String networkGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkGroupName") String networkGroupName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("networkGroupName") String networkGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") NetworkGroupInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkGroupName") String networkGroupName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkGroupInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("networkGroupName") String networkGroupName, @QueryParam("api-version") String apiVersion, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkGroupName") String networkGroupName, @QueryParam("force") Boolean force, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -161,15 +159,15 @@ public Mono> getWithResponseAsync(String resourceGro final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param context The context to associate with this operation. @@ -204,14 +202,14 @@ private Mono> getWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, networkGroupName, accept, context); } /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,7 +227,7 @@ public Mono getAsync(String resourceGroupName, String network /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param context The context to associate with this operation. @@ -247,7 +245,7 @@ public Response getWithResponse(String resourceGroupName, Str /** * Gets the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -263,7 +261,7 @@ public NetworkGroupInner get(String resourceGroupName, String networkManagerName /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -303,18 +301,19 @@ public Mono createOrUpdateWithResponseAsync parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, apiVersion, ifMatch, parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, networkGroupName, ifMatch, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -356,16 +355,17 @@ private Mono createOrUpdateWithResponseAsyn parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, apiVersion, ifMatch, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, ifMatch, contentType, accept, parameters, context); } /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -385,7 +385,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -408,7 +408,7 @@ public NetworkGroupsCreateOrUpdateResponse createOrUpdateWithResponse(String res /** * Creates or updates a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param parameters Parameters supplied to the specify which network group need to create. @@ -428,7 +428,7 @@ public NetworkGroupInner createOrUpdate(String resourceGroupName, String network /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -462,17 +462,17 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, apiVersion, force, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -507,16 +507,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, apiVersion, force, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, networkGroupName, force, context); } /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -538,7 +537,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -559,7 +558,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -583,7 +582,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -601,7 +600,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -622,7 +621,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -642,7 +641,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -660,7 +659,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -681,7 +680,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -697,7 +696,7 @@ public void delete(String resourceGroupName, String networkManagerName, String n /** * Deletes a network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -716,7 +715,7 @@ public void delete(String resourceGroupName, String networkManagerName, String n /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -726,8 +725,8 @@ public void delete(String resourceGroupName, String networkManagerName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -751,8 +750,8 @@ private Mono> listSinglePageAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -761,7 +760,7 @@ private Mono> listSinglePageAsync(String resour /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -772,8 +771,8 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -798,8 +797,8 @@ private Mono> listSinglePageAsync(String resour final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, networkManagerName, - apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -807,7 +806,7 @@ private Mono> listSinglePageAsync(String resour /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -817,7 +816,7 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedFlux}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -829,12 +828,12 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedFlux}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { @@ -847,7 +846,7 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -858,7 +857,7 @@ public PagedFlux listAsync(String resourceGroupName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedFlux}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -871,12 +870,12 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedIterable}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName) { @@ -888,7 +887,7 @@ public PagedIterable list(String resourceGroupName, String ne /** * Lists the specified network group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -899,7 +898,7 @@ public PagedIterable list(String resourceGroupName, String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup as paginated response with {@link PagedIterable}. + * @return the response of a NetworkGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, @@ -914,8 +913,8 @@ public PagedIterable list(String resourceGroupName, String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -941,8 +940,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkGroup along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java index f1dac1ac0630..e51aa89824b9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkInterfaceIpConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner; -import com.azure.resourcemanager.network.models.NetworkInterfaceIpConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceIPConfigurationListResult; import reactor.core.publisher.Mono; /** @@ -59,56 +59,62 @@ public final class NetworkInterfaceIpConfigurationsClientImpl implements Network * The interface defining all the services for NetworkManagementClientNetworkInterfaceIpConfigurations to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkInterfaceIpConfigurations") public interface NetworkInterfaceIpConfigurationsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkInterfaceName") String networkInterfaceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface along with {@link PagedResponse} on successful completion of + * @return the specified network interface ip configuration along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkInterfaceName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String networkInterfaceName, String ipConfigurationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -117,39 +123,42 @@ private Mono> listSinglePage return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, ipConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface along with {@link PagedResponse} on successful completion of + * @return the specified network interface ip configuration along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkInterfaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String networkInterfaceName, String ipConfigurationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -158,107 +167,92 @@ private Mono> listSinglePage return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, ipConfigurationName, accept, context); } /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. + * @return the specified network interface ip configuration on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, - String networkInterfaceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkInterfaceName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkInterfaceName, + String ipConfigurationName) { + return getWithResponseAsync(resourceGroupName, networkInterfaceName, ipConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. + * @return the specified network interface ip configuration along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, - String networkInterfaceName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkInterfaceName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String networkInterfaceName, String ipConfigurationName, Context context) { + return getWithResponseAsync(resourceGroupName, networkInterfaceName, ipConfigurationName, context).block(); } /** - * Get all ip configurations in a network interface. + * Gets the specified network interface ip configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. + * @return the specified network interface ip configuration. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, - String networkInterfaceName) { - return new PagedIterable<>(listAsync(resourceGroupName, networkInterfaceName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkInterfaceIpConfigurationInner get(String resourceGroupName, String networkInterfaceName, + String ipConfigurationName) { + return getWithResponse(resourceGroupName, networkInterfaceName, ipConfigurationName, Context.NONE).getValue(); } /** * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, - String networkInterfaceName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkInterfaceName, context)); - } - - /** - * Gets the specified network interface ip configuration. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration along with {@link Response} on successful completion of + * @return all ip configurations in a network interface along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkInterfaceName, String ipConfigurationName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkInterfaceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -267,42 +261,39 @@ public Mono> getWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - ipConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration along with {@link Response} on successful completion of + * @return all ip configurations in a network interface along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String networkInterfaceName, String ipConfigurationName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkInterfaceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -311,72 +302,82 @@ private Mono> getWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, ipConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration on successful completion of {@link Mono}. + * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkInterfaceName, - String ipConfigurationName) { - return getWithResponseAsync(resourceGroupName, networkInterfaceName, ipConfigurationName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, + String networkInterfaceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkInterfaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration along with {@link Response}. + * @return all ip configurations in a network interface as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, - String networkInterfaceName, String ipConfigurationName, Context context) { - return getWithResponseAsync(resourceGroupName, networkInterfaceName, ipConfigurationName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, + String networkInterfaceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkInterfaceName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets the specified network interface ip configuration. + * Get all ip configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration. + * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInterfaceIpConfigurationInner get(String resourceGroupName, String networkInterfaceName, - String ipConfigurationName) { - return getWithResponse(resourceGroupName, networkInterfaceName, ipConfigurationName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, + String networkInterfaceName) { + return new PagedIterable<>(listAsync(resourceGroupName, networkInterfaceName)); + } + + /** + * Get all ip configurations in a network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all ip configurations in a network interface as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, + String networkInterfaceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkInterfaceName, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java index 7da7ddffa1e7..39f3b91a067a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkInterfaceLoadBalancersClient; import com.azure.resourcemanager.network.fluent.models.LoadBalancerInner; -import com.azure.resourcemanager.network.models.NetworkInterfaceLoadBalancerListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceLoadBalancerListResult; import reactor.core.publisher.Mono; /** @@ -59,38 +59,38 @@ public final class NetworkInterfaceLoadBalancersClientImpl implements NetworkInt * The interface defining all the services for NetworkManagementClientNetworkInterfaceLoadBalancers to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkInterfaceLoadBalancers") public interface NetworkInterfaceLoadBalancersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of LoadBalancer items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -99,6 +99,10 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -107,15 +111,11 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -124,14 +124,14 @@ private Mono> listSinglePageAsync(String resour /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of LoadBalancer items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -140,6 +140,10 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -148,16 +152,12 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -165,12 +165,12 @@ private Mono> listSinglePageAsync(String resour /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedFlux}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkInterfaceName) { @@ -181,13 +181,13 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedFlux}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkInterfaceName, @@ -199,12 +199,12 @@ private PagedFlux listAsync(String resourceGroupName, String /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedIterable}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkInterfaceName) { @@ -214,13 +214,13 @@ public PagedIterable list(String resourceGroupName, String ne /** * List all load balancers in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call as paginated response with {@link PagedIterable}. + * @return paged collection of LoadBalancer items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkInterfaceName, @@ -235,8 +235,8 @@ public PagedIterable list(String resourceGroupName, String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of LoadBalancer items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -262,8 +262,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list ip configurations API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of LoadBalancer items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java index c678fed1115c..1de1fb51ae66 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkInterfaceTapConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceTapConfigurationInner; -import com.azure.resourcemanager.network.models.NetworkInterfaceTapConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceTapConfigurationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,298 +67,68 @@ public final class NetworkInterfaceTapConfigurationsClientImpl implements Networ * The interface defining all the services for NetworkManagementClientNetworkInterfaceTapConfigurations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkInterfaceTapConfigurations") public interface NetworkInterfaceTapConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("tapConfigurationName") String tapConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("tapConfigurationName") String tapConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tapConfigurationName") String tapConfigurationName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkInterfaceName") String networkInterfaceName, @PathParam("tapConfigurationName") String tapConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkInterfaceTapConfigurationInner tapConfigurationParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, + @PathParam("tapConfigurationName") String tapConfigurationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkInterfaceName, String tapConfigurationName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (tapConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - tapConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkInterfaceName, String tapConfigurationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (tapConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, tapConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName) { - return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).getSyncPoller(); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - String tapConfigurationName, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) { - return beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, - Context context) { - return beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) { - deleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).block(); - } - - /** - * Deletes the specified tap configuration from the NetworkInterface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, - Context context) { - deleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context).block(); - } - /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -372,6 +142,10 @@ public Mono> getWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -384,24 +158,21 @@ public Mono> getWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - tapConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, tapConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -416,6 +187,10 @@ private Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -428,23 +203,20 @@ private Mono> getWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, tapConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, tapConfigurationName, accept, context); } /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -460,9 +232,10 @@ public Mono getAsync(String resourceGroup /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -478,9 +251,10 @@ public Response getWithResponse(String re /** * Get the specified tap configuration on a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -495,9 +269,10 @@ public NetworkInterfaceTapConfigurationInner get(String resourceGroupName, Strin /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -513,6 +288,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -525,10 +304,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (tapConfigurationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter tapConfigurationParameters is required and cannot be null.")); @@ -536,20 +311,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r tapConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, tapConfigurationName, apiVersion, this.client.getSubscriptionId(), - tapConfigurationParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, tapConfigurationName, + contentType, accept, tapConfigurationParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -566,6 +343,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -578,10 +359,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (tapConfigurationParameters == null) { return Mono.error( new IllegalArgumentException("Parameter tapConfigurationParameters is required and cannot be null.")); @@ -589,19 +366,21 @@ private Mono>> createOrUpdateWithResponseAsync(String tapConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - tapConfigurationName, apiVersion, this.client.getSubscriptionId(), tapConfigurationParameters, accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, tapConfigurationName, contentType, accept, + tapConfigurationParameters, context); } /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -622,9 +401,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -647,9 +427,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -669,9 +450,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -692,9 +474,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -712,9 +495,10 @@ public Mono createOrUpdateAsync(String re /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,9 +517,10 @@ private Mono createOrUpdateAsync(String r /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -752,9 +537,10 @@ public NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroup /** * Creates or updates a Tap configuration in the specified NetworkInterface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -770,10 +556,249 @@ public NetworkInterfaceTapConfigurationInner createOrUpdate(String resourceGroup tapConfigurationParameters, context).block(); } + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkInterfaceName, String tapConfigurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (tapConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, tapConfigurationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkInterfaceName, String tapConfigurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (tapConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter tapConfigurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, tapConfigurationName, context); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName) { + return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).getSyncPoller(); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + String tapConfigurationName, Context context) { + return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) { + return beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, + Context context) { + return beginDeleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) { + deleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).block(); + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the resource that is unique within a resource group. This name can be + * used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, + Context context) { + deleteAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, context).block(); + } + /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -788,6 +813,10 @@ private Mono> listSinglePag return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -796,15 +825,11 @@ private Mono> listSinglePag return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -813,7 +838,7 @@ private Mono> listSinglePag /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -829,6 +854,10 @@ private Mono> listSinglePag return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -837,16 +866,12 @@ private Mono> listSinglePag return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -854,7 +879,7 @@ private Mono> listSinglePag /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -871,7 +896,7 @@ public PagedFlux listAsync(String resourc /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -889,7 +914,7 @@ private PagedFlux listAsync(String resour /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -905,7 +930,7 @@ public PagedIterable list(String resource /** * Get all Tap configurations in a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java index 542c63587cbf..034958e92f71 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -38,8 +38,8 @@ import com.azure.resourcemanager.network.fluent.models.EffectiveRouteListResultInner; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner; -import com.azure.resourcemanager.network.models.NetworkInterfaceIpConfigurationListResult; -import com.azure.resourcemanager.network.models.NetworkInterfaceListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceIPConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkInterfaceListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -78,173 +78,181 @@ public final class NetworkInterfacesClientImpl implements InnerSupportsGet> listCloudServiceRoleInstanceNetworkInterfaces( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> getCloudServiceNetworkInterface(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("cloudServiceName") String cloudServiceName, - @PathParam("roleInstanceName") String roleInstanceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("roleInstanceName") String roleInstanceName, + @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCloudServiceNetworkInterfaces( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("cloudServiceName") String cloudServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listCloudServiceRoleInstanceNetworkInterfaces( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("cloudServiceName") String cloudServiceName, + @PathParam("roleInstanceName") String roleInstanceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getCloudServiceNetworkInterface(@HostParam("$host") String endpoint, + Mono> getVirtualMachineScaleSetNetworkInterface( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("cloudServiceName") String cloudServiceName, - @PathParam("roleInstanceName") String roleInstanceName, - @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, + @PathParam("virtualmachineIndex") String virtualmachineIndex, + @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono> listVirtualMachineScaleSetVMNetworkInterfaces( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, + @PathParam("virtualmachineIndex") String virtualmachineIndex, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkInterfaceInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkInterfaceInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkInterfaceName") String networkInterfaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getEffectiveRouteTable(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, + Mono>> getEffectiveRouteTable(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listEffectiveNetworkSecurityGroups(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkInterfaceName") String networkInterfaceName, + Mono>> listEffectiveNetworkSecurityGroups(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkInterfaceName") String networkInterfaceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetVMNetworkInterfaces( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, - @PathParam("virtualmachineIndex") String virtualmachineIndex, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listCloudServiceNetworkInterfaces( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listVirtualMachineScaleSetNetworkInterfaces( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVirtualMachineScaleSetNetworkInterface( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> getVirtualMachineScaleSetIpConfiguration( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, @PathParam("virtualmachineIndex") String virtualmachineIndex, @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetIpConfigurations( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, - @PathParam("virtualmachineIndex") String virtualmachineIndex, - @PathParam("networkInterfaceName") String networkInterfaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVirtualMachineScaleSetIpConfiguration( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> listVirtualMachineScaleSetIpConfigurations( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, @PathParam("virtualmachineIndex") String virtualmachineIndex, - @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("networkInterfaceName") String networkInterfaceName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -252,39 +260,39 @@ Mono> getVirtualMachineScaleSetIp @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listCloudServiceRoleInstanceNetworkInterfacesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCloudServiceNetworkInterfacesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listVirtualMachineScaleSetVMNetworkInterfacesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetVMNetworkInterfacesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listCloudServiceNetworkInterfacesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -292,37 +300,44 @@ Mono> listVirtualMachineScaleSetVMNetworkIn @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listVirtualMachineScaleSetNetworkInterfacesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetIpConfigurationsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listVirtualMachineScaleSetIpConfigurationsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the specified network interface in a cloud service along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName) { + public Mono> getCloudServiceNetworkInterfaceWithResponseAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, + String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -335,41 +350,46 @@ private Mono> listCloudServiceRoleInstanceN return Mono .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listCloudServiceRoleInstanceNetworkInterfaces(this.client.getEndpoint(), - resourceGroupName, cloudServiceName, roleInstanceName, apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getCloudServiceNetworkInterface(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return the specified network interface in a cloud service along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, Context context) { + private Mono> getCloudServiceNetworkInterfaceWithResponseAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, + String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -382,120 +402,102 @@ private Mono> listCloudServiceRoleInstanceN return Mono .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listCloudServiceRoleInstanceNetworkInterfaces(this.client.getEndpoint(), resourceGroupName, - cloudServiceName, roleInstanceName, apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.getCloudServiceNetworkInterface(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, expand, accept, context); } /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedFlux}. + * @return the specified network interface in a cloud service on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName) { - return new PagedFlux<>( - () -> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, - roleInstanceName), - nextLink -> listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getCloudServiceNetworkInterfaceAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName) { + final String expand = null; + return getCloudServiceNetworkInterfaceWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedFlux}. + * @return the specified network interface in a cloud service along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, Context context) { - return new PagedFlux<>( - () -> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, - roleInstanceName, context), - nextLink -> listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCloudServiceNetworkInterfaceWithResponse(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand, Context context) { + return getCloudServiceNetworkInterfaceWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, expand, context).block(); } /** - * Gets information about all network interfaces in a role instance in a cloud service. + * Get the specified network interface in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. + * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedIterable}. + * @return the specified network interface in a cloud service. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, String roleInstanceName) { - return new PagedIterable<>( - listCloudServiceRoleInstanceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, roleInstanceName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkInterfaceInner getCloudServiceNetworkInterface(String resourceGroupName, String cloudServiceName, + String roleInstanceName, String networkInterfaceName) { + final String expand = null; + return getCloudServiceNetworkInterfaceWithResponse(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, expand, Context.NONE).getValue(); } /** * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. * @param roleInstanceName The name of role instance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a role instance in a cloud service as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, String roleInstanceName, Context context) { - return new PagedIterable<>(listCloudServiceRoleInstanceNetworkInterfacesAsync(resourceGroupName, - cloudServiceName, roleInstanceName, context)); - } - - /** - * Gets all network interfaces in a cloud service. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all network interfaces in a role instance in a cloud service along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listCloudServiceNetworkInterfacesSinglePageAsync(String resourceGroupName, String cloudServiceName) { + private Mono> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -504,39 +506,45 @@ public PagedIterable listCloudServiceRoleInstanceNetworkI return Mono .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (roleInstanceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listCloudServiceNetworkInterfaces(this.client.getEndpoint(), - resourceGroupName, cloudServiceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listCloudServiceRoleInstanceNetworkInterfaces(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network interfaces in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The name of role instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all network interfaces in a role instance in a cloud service along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCloudServiceNetworkInterfacesSinglePageAsync( - String resourceGroupName, String cloudServiceName, Context context) { + private Mono> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -545,464 +553,445 @@ private Mono> listCloudServiceNetworkInterf return Mono .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (roleInstanceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listCloudServiceNetworkInterfaces(this.client.getEndpoint(), resourceGroupName, cloudServiceName, - apiVersion, this.client.getSubscriptionId(), accept, context) + .listCloudServiceRoleInstanceNetworkInterfaces(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network interfaces in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The name of role instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, - String cloudServiceName) { + public PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName) { return new PagedFlux<>( - () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName), - nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink)); + () -> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, + roleInstanceName), + nextLink -> listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(nextLink)); } /** - * Gets all network interfaces in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The name of role instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, - String cloudServiceName, Context context) { + private PagedFlux listCloudServiceRoleInstanceNetworkInterfacesAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, Context context) { return new PagedFlux<>( - () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, context), - nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink, context)); + () -> listCloudServiceRoleInstanceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, + roleInstanceName, context), + nextLink -> listCloudServiceRoleInstanceNetworkInterfacesNextSinglePageAsync(nextLink, context)); } /** - * Gets all network interfaces in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The name of role instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, - String cloudServiceName) { - return new PagedIterable<>(listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName)); + public PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, String roleInstanceName) { + return new PagedIterable<>( + listCloudServiceRoleInstanceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, roleInstanceName)); } /** - * Gets all network interfaces in a cloud service. + * Gets information about all network interfaces in a role instance in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The name of role instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. + * @return information about all network interfaces in a role instance in a cloud service as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, - String cloudServiceName, Context context) { - return new PagedIterable<>( - listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, context)); + public PagedIterable listCloudServiceRoleInstanceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, String roleInstanceName, Context context) { + return new PagedIterable<>(listCloudServiceRoleInstanceNetworkInterfacesAsync(resourceGroupName, + cloudServiceName, roleInstanceName, context)); } /** - * Get the specified network interface in a cloud service. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service along with {@link Response} on successful completion - * of {@link Mono}. + * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getCloudServiceNetworkInterfaceWithResponseAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, - String expand) { + public Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (cloudServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (roleInstanceName == null) { + if (virtualmachineIndex == null) { return Mono - .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); } if (networkInterfaceName == null) { return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; + final String apiVersion = "2018-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getCloudServiceNetworkInterface(this.client.getEndpoint(), - resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the specified network interface in a cloud service. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service along with {@link Response} on successful completion - * of {@link Mono}. + * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getCloudServiceNetworkInterfaceWithResponseAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, - String expand, Context context) { + private Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (cloudServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (roleInstanceName == null) { + if (virtualmachineIndex == null) { return Mono - .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); } if (networkInterfaceName == null) { return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; + final String apiVersion = "2018-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getCloudServiceNetworkInterface(this.client.getEndpoint(), resourceGroupName, cloudServiceName, - roleInstanceName, networkInterfaceName, apiVersion, this.client.getSubscriptionId(), expand, accept, - context); + return service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, expand, accept, context); } /** - * Get the specified network interface in a cloud service. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service on successful completion of {@link Mono}. + * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getCloudServiceNetworkInterfaceAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName) { + public Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) { final String expand = null; - return getCloudServiceNetworkInterfaceWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue())); + return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the specified network interface in a cloud service. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service along with {@link Response}. + * @return the specified network interface in a virtual machine scale set along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getCloudServiceNetworkInterfaceWithResponse(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String expand, Context context) { - return getCloudServiceNetworkInterfaceWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, expand, context).block(); + public Response getVirtualMachineScaleSetNetworkInterfaceWithResponse( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String expand, Context context) { + return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, expand, context).block(); } /** - * Get the specified network interface in a cloud service. + * Get the specified network interface in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a cloud service. + * @return the specified network interface in a virtual machine scale set. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInterfaceInner getCloudServiceNetworkInterface(String resourceGroupName, String cloudServiceName, - String roleInstanceName, String networkInterfaceName) { + public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) { final String expand = null; - return getCloudServiceNetworkInterfaceWithResponse(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, expand, Context.NONE).getValue(); + return getVirtualMachineScaleSetNetworkInterfaceWithResponse(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, expand, Context.NONE).getValue(); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkInterfaceName) { + private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (virtualmachineIndex == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; + final String apiVersion = "2018-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkInterfaceName, Context context) { + private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (virtualmachineIndex == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; + final String apiVersion = "2018-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified network interface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkInterfaceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified network interface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified network interface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName) { - return this.beginDeleteAsync(resourceGroupName, networkInterfaceName).getSyncPoller(); - } - - /** - * Deletes the specified network interface. - * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, context).getSyncPoller(); + return service + .listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkInterfaceName) { - return beginDeleteAsync(resourceGroupName, networkInterfaceName).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex) { + return new PagedFlux<>( + () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName, + virtualMachineScaleSetName, virtualmachineIndex), + nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink)); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkInterfaceName, Context context) { - return beginDeleteAsync(resourceGroupName, networkInterfaceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { + return new PagedFlux<>( + () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName, + virtualMachineScaleSetName, virtualmachineIndex, context), + nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink, context)); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkInterfaceName) { - deleteAsync(resourceGroupName, networkInterfaceName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex) { + return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName, + virtualMachineScaleSetName, virtualmachineIndex)); } /** - * Deletes the specified network interface. + * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated + * response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkInterfaceName, Context context) { - deleteAsync(resourceGroupName, networkInterfaceName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { + return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName, + virtualMachineScaleSetName, virtualmachineIndex, context)); } /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1018,6 +1007,10 @@ public Mono> getByResourceGroupWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1026,22 +1019,18 @@ public Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -1058,6 +1047,10 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1066,21 +1059,17 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, expand, accept, context); } /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1097,7 +1086,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -1115,7 +1104,7 @@ public Response getByResourceGroupWithResponse(String res /** * Gets information about the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1131,7 +1120,7 @@ public NetworkInterfaceInner getByResourceGroup(String resourceGroupName, String /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1147,6 +1136,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1155,27 +1148,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -1192,6 +1183,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1200,26 +1195,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, contentType, accept, parameters, context); } /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1240,7 +1232,7 @@ public PollerFlux, NetworkInterfaceInner> begi /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -1262,7 +1254,7 @@ private PollerFlux, NetworkInterfaceInner> beg /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1279,7 +1271,7 @@ private PollerFlux, NetworkInterfaceInner> beg /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -1298,7 +1290,7 @@ public SyncPoller, NetworkInterfaceInner> begi /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1316,7 +1308,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -1335,7 +1327,7 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1352,7 +1344,7 @@ public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String net /** * Creates or updates a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @param context The context to associate with this operation. @@ -1368,156 +1360,365 @@ public NetworkInterfaceInner createOrUpdate(String resourceGroupName, String net } /** - * Updates a network interface tags. + * Updates a network interface tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network interface in a resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkInterfaceName, TagsObject parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a network interface tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network interface in a resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkInterfaceName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, contentType, accept, parameters, context); + } + + /** + * Updates a network interface tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network interface in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String networkInterfaceName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates a network interface tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network interface in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, String networkInterfaceName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context).block(); + } + + /** + * Updates a network interface tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network interface in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkInterfaceInner updateTags(String resourceGroupName, String networkInterfaceName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, networkInterfaceName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkInterfaceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkInterfaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkInterfaceName, context); + } + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkInterfaceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkInterfaceName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkInterfaceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified network interface. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName The name of the network interface. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName) { + return this.beginDeleteAsync(resourceGroupName, networkInterfaceName).getSyncPoller(); + } + + /** + * Deletes the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param parameters Parameters supplied to update network interface tags. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network interface in a resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkInterfaceName, TagsObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, networkInterfaceName, context).getSyncPoller(); } /** - * Updates a network interface tags. + * Deletes the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param parameters Parameters supplied to update network interface tags. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network interface in a resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkInterfaceName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + public Mono deleteAsync(String resourceGroupName, String networkInterfaceName) { + return beginDeleteAsync(resourceGroupName, networkInterfaceName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a network interface tags. + * Deletes the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param parameters Parameters supplied to update network interface tags. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network interface in a resource group on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String networkInterfaceName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String networkInterfaceName, Context context) { + return beginDeleteAsync(resourceGroupName, networkInterfaceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a network interface tags. + * Deletes the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param parameters Parameters supplied to update network interface tags. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network interface in a resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String networkInterfaceName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, networkInterfaceName, parameters, context).block(); + public void delete(String resourceGroupName, String networkInterfaceName) { + deleteAsync(resourceGroupName, networkInterfaceName).block(); } /** - * Updates a network interface tags. + * Deletes the specified network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. - * @param parameters Parameters supplied to update network interface tags. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network interface in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInterfaceInner updateTags(String resourceGroupName, String networkInterfaceName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, networkInterfaceName, parameters, Context.NONE).getValue(); + public void delete(String resourceGroupName, String networkInterfaceName, Context context) { + deleteAsync(resourceGroupName, networkInterfaceName, context).block(); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1526,28 +1727,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1556,87 +1763,94 @@ private Mono> listSinglePageAsync(Context c return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. + * @return all network interfaces in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. + * @return all network interfaces in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + * @return all network interfaces in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all network interfaces in a subscription. + * Gets all network interfaces in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. + * @return all network interfaces in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1644,35 +1858,29 @@ private Mono> listByResourceGroupSinglePage final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1680,77 +1888,68 @@ private Mono> listByResourceGroupSinglePage final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group as paginated response with {@link PagedFlux}. + * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group as paginated response with {@link PagedFlux}. + * @return all network interfaces in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group as paginated response with {@link PagedIterable}. + * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all network interfaces in a resource group. + * Gets all network interfaces in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group as paginated response with {@link PagedIterable}. + * @return all network interfaces in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1765,6 +1964,10 @@ public Mono>> getEffectiveRouteTableWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1773,22 +1976,18 @@ public Mono>> getEffectiveRouteTableWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getEffectiveRouteTable(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getEffectiveRouteTable(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1804,29 +2003,29 @@ private Mono>> getEffectiveRouteTableWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (networkInterfaceName == null) { return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getEffectiveRouteTable(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getEffectiveRouteTable(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkInterfaceName, accept, context); } /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1846,7 +2045,7 @@ private Mono>> getEffectiveRouteTableWithResponseAsync /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1868,7 +2067,7 @@ private Mono>> getEffectiveRouteTableWithResponseAsync /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1884,7 +2083,7 @@ private Mono>> getEffectiveRouteTableWithResponseAsync /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1901,7 +2100,7 @@ private Mono>> getEffectiveRouteTableWithResponseAsync /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1918,7 +2117,7 @@ public Mono getEffectiveRouteTableAsync(String re /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1936,7 +2135,7 @@ private Mono getEffectiveRouteTableAsync(String r /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1951,7 +2150,7 @@ public EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroup /** * Gets all route tables applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1968,7 +2167,7 @@ public EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroup /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1983,6 +2182,10 @@ public EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1991,22 +2194,18 @@ public EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroup return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), - resourceGroupName, networkInterfaceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2022,6 +2221,10 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2030,21 +2233,17 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), resourceGroupName, - networkInterfaceName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkInterfaceName, accept, context); } /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2066,7 +2265,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2091,7 +2290,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2109,7 +2308,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2129,7 +2328,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2146,7 +2345,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2164,7 +2363,7 @@ private Mono listEffectiveNetworkS /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2180,7 +2379,7 @@ public EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurity /** * Gets all network security groups applied to a network interface. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkInterfaceName The name of the network interface. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2195,184 +2394,161 @@ public EffectiveNetworkSecurityGroupListResultInner listEffectiveNetworkSecurity } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex) { + private Mono> + listCloudServiceNetworkInterfacesSinglePageAsync(String resourceGroupName, String cloudServiceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { + if (cloudServiceName == null) { return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - final String apiVersion = "2018-10-01"; + final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { + private Mono> listCloudServiceNetworkInterfacesSinglePageAsync( + String resourceGroupName, String cloudServiceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { + if (cloudServiceName == null) { return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - final String apiVersion = "2018-10-01"; + final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listVirtualMachineScaleSetVMNetworkInterfaces(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, apiVersion, this.client.getSubscriptionId(), accept, - context) + .listCloudServiceNetworkInterfaces(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, cloudServiceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedFlux}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex) { + public PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, + String cloudServiceName) { return new PagedFlux<>( - () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex), - nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink)); + () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName), + nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink)); } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedFlux}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVirtualMachineScaleSetVMNetworkInterfacesAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { + private PagedFlux listCloudServiceNetworkInterfacesAsync(String resourceGroupName, + String cloudServiceName, Context context) { return new PagedFlux<>( - () -> listVirtualMachineScaleSetVMNetworkInterfacesSinglePageAsync(resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, context), - nextLink -> listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(nextLink, context)); + () -> listCloudServiceNetworkInterfacesSinglePageAsync(resourceGroupName, cloudServiceName, context), + nextLink -> listCloudServiceNetworkInterfacesNextSinglePageAsync(nextLink, context)); } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedIterable}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex) { - return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex)); + public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, + String cloudServiceName) { + return new PagedIterable<>(listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName)); } /** - * Gets information about all network interfaces in a virtual machine in a virtual machine scale set. + * Gets all network interfaces in a cloud service. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set as paginated - * response with {@link PagedIterable}. + * @return all network interfaces in a cloud service as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVirtualMachineScaleSetVMNetworkInterfaces(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, Context context) { - return new PagedIterable<>(listVirtualMachineScaleSetVMNetworkInterfacesAsync(resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, context)); + public PagedIterable listCloudServiceNetworkInterfaces(String resourceGroupName, + String cloudServiceName, Context context) { + return new PagedIterable<>( + listCloudServiceNetworkInterfacesAsync(resourceGroupName, cloudServiceName, context)); } /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2387,6 +2563,10 @@ private Mono> listVirtualMachineScaleSetNet return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2395,16 +2575,12 @@ private Mono> listVirtualMachineScaleSetNet return Mono.error( new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2018-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, apiVersion, this.client.getSubscriptionId(), accept, - context)) + .withContext( + context -> service.listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2413,7 +2589,7 @@ private Mono> listVirtualMachineScaleSetNet /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2429,6 +2605,10 @@ private Mono> listVirtualMachineScaleSetNet return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2437,16 +2617,12 @@ private Mono> listVirtualMachineScaleSetNet return Mono.error( new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2018-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, apiVersion, this.client.getSubscriptionId(), accept, context) + .listVirtualMachineScaleSetNetworkInterfaces(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2454,7 +2630,7 @@ private Mono> listVirtualMachineScaleSetNet /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2473,7 +2649,7 @@ public PagedFlux listVirtualMachineScaleSetNetworkInterfa /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2493,7 +2669,7 @@ private PagedFlux listVirtualMachineScaleSetNetworkInterf /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2510,7 +2686,7 @@ public PagedIterable listVirtualMachineScaleSetNetworkInt /** * Gets all network interfaces in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2526,27 +2702,33 @@ public PagedIterable listVirtualMachineScaleSetNetworkInt } /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful - * completion of {@link Mono}. + * @return the specified network interface ip configuration in a virtual machine scale set along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String expand) { + public Mono> + getVirtualMachineScaleSetIpConfigurationWithResponseAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2563,42 +2745,48 @@ public Mono> getVirtualMachineScaleSetNetworkInt return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } final String apiVersion = "2018-10-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getVirtualMachineScaleSetIpConfiguration(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set along with {@link Response} on successful - * completion of {@link Mono}. + * @return the specified network interface ip configuration in a virtual machine scale set along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String expand, Context context) { + private Mono> + getVirtualMachineScaleSetIpConfigurationWithResponseAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2615,87 +2803,95 @@ private Mono> getVirtualMachineScaleSetNetworkIn return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } final String apiVersion = "2018-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getVirtualMachineScaleSetNetworkInterface(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getVirtualMachineScaleSetIpConfiguration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, ipConfigurationName, expand, accept, context); } /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set on successful completion of {@link Mono}. + * @return the specified network interface ip configuration in a virtual machine scale set on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getVirtualMachineScaleSetNetworkInterfaceAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) { + public Mono getVirtualMachineScaleSetIpConfigurationAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String ipConfigurationName) { final String expand = null; - return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, expand).flatMap(res -> Mono.justOrEmpty(res.getValue())); + return getVirtualMachineScaleSetIpConfigurationWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set along with {@link Response}. + * @return the specified network interface ip configuration in a virtual machine scale set along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVirtualMachineScaleSetNetworkInterfaceWithResponse( + public Response getVirtualMachineScaleSetIpConfigurationWithResponse( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String expand, Context context) { - return getVirtualMachineScaleSetNetworkInterfaceWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, expand, context).block(); + String networkInterfaceName, String ipConfigurationName, String expand, Context context) { + return getVirtualMachineScaleSetIpConfigurationWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand, context).block(); } /** - * Get the specified network interface in a virtual machine scale set. + * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface in a virtual machine scale set. + * @return the specified network interface ip configuration in a virtual machine scale set. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName) { + public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfiguration(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName) { final String expand = null; - return getVirtualMachineScaleSetNetworkInterfaceWithResponse(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, expand, Context.NONE).getValue(); + return getVirtualMachineScaleSetIpConfigurationWithResponse(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand, Context.NONE).getValue(); } /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2711,6 +2907,10 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2727,16 +2927,12 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2018-10-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listVirtualMachineScaleSetIpConfigurations(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, expand, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2745,10 +2941,10 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2766,6 +2962,10 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2782,17 +2982,13 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re return Mono .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2018-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listVirtualMachineScaleSetIpConfigurations(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context) + .listVirtualMachineScaleSetIpConfigurations(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, expand, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2800,10 +2996,10 @@ public NetworkInterfaceInner getVirtualMachineScaleSetNetworkInterface(String re /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2824,10 +3020,10 @@ public PagedFlux listVirtualMachineScaleSe /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2848,10 +3044,10 @@ public PagedFlux listVirtualMachineScaleSe /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2873,10 +3069,10 @@ private PagedFlux listVirtualMachineScaleS /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2895,10 +3091,10 @@ public PagedIterable listVirtualMachineSca /** * Get the specified network interface ip configuration in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2915,190 +3111,6 @@ public PagedIterable listVirtualMachineSca virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, expand, context)); } - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @param expand Expands referenced resources. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getVirtualMachineScaleSetIpConfigurationWithResponseAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, String expand) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2018-10-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getVirtualMachineScaleSetIpConfiguration(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, - ipConfigurationName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getVirtualMachineScaleSetIpConfigurationWithResponseAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, String expand, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2018-10-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getVirtualMachineScaleSetIpConfiguration(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); - } - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getVirtualMachineScaleSetIpConfigurationAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName) { - final String expand = null; - return getVirtualMachineScaleSetIpConfigurationWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set along with - * {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVirtualMachineScaleSetIpConfigurationWithResponse( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName, String expand, Context context) { - return getVirtualMachineScaleSetIpConfigurationWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand, context).block(); - } - - /** - * Get the specified network interface ip configuration in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the ip configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network interface ip configuration in a virtual machine scale set. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfiguration(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName) { - final String expand = null; - return getVirtualMachineScaleSetIpConfigurationWithResponse(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, expand, Context.NONE).getValue(); - } - /** * Get the next page of items. * @@ -3164,12 +3176,12 @@ public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfigura * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink) { + listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3179,8 +3191,8 @@ public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfigura } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), - accept, context)) + .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, + this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3194,12 +3206,12 @@ public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfigura * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) { + listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3209,7 +3221,8 @@ public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfigura } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context) + return service + .listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3221,11 +3234,11 @@ public NetworkInterfaceIpConfigurationInner getVirtualMachineScaleSetIpConfigura * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3234,8 +3247,7 @@ private Mono> listAllNextSinglePageAsync(St new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3249,11 +3261,11 @@ private Mono> listAllNextSinglePageAsync(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3263,7 +3275,7 @@ private Mono> listAllNextSinglePageAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3275,11 +3287,11 @@ private Mono> listAllNextSinglePageAsync(St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3288,7 +3300,8 @@ private Mono> listNextSinglePageAsync(Strin new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3302,11 +3315,11 @@ private Mono> listNextSinglePageAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network interfaces in a resource group along with {@link PagedResponse} on successful completion of + * @return all network interfaces in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3316,7 +3329,7 @@ private Mono> listNextSinglePageAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3328,12 +3341,12 @@ private Mono> listNextSinglePageAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink) { + listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3343,8 +3356,8 @@ private Mono> listNextSinglePageAsync(Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, - this.client.getEndpoint(), accept, context)) + .withContext(context -> service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3358,12 +3371,12 @@ private Mono> listNextSinglePageAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all network interfaces in a virtual machine in a virtual machine scale set along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return all network interfaces in a cloud service along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listVirtualMachineScaleSetVMNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) { + listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3373,8 +3386,7 @@ private Mono> listNextSinglePageAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listVirtualMachineScaleSetVMNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listCloudServiceNetworkInterfacesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java index 3133d2a81565..0fc6285456b4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -20,36 +20,34 @@ @ServiceClientBuilder(serviceClients = { NetworkManagementClientImpl.class }) public final class NetworkManagementClientBuilder { /* - * The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * Service host */ - private String subscriptionId; + private String endpoint; /** - * Sets The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Sets Service host. * - * @param subscriptionId the subscriptionId value. + * @param endpoint the endpoint value. * @return the NetworkManagementClientBuilder. */ - public NetworkManagementClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public NetworkManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. + * @param subscriptionId the subscriptionId value. * @return the NetworkManagementClientBuilder. */ - public NetworkManagementClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public NetworkManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -134,7 +132,7 @@ public NetworkManagementClientImpl buildClient() { ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); NetworkManagementClientImpl client = new NetworkManagementClientImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java index 0e1264f651a5..d3e56951746c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -203,11 +203,11 @@ import com.azure.resourcemanager.network.fluent.models.NetworkManagerEffectiveSecurityAdminRulesListResultInner; import com.azure.resourcemanager.network.fluent.models.VirtualWanSecurityProvidersInner; import com.azure.resourcemanager.network.fluent.models.VpnProfileResponseInner; +import com.azure.resourcemanager.network.implementation.models.BastionActiveSessionListResult; +import com.azure.resourcemanager.network.implementation.models.BastionSessionDeleteResult; +import com.azure.resourcemanager.network.implementation.models.BastionShareableLinkListResult; import com.azure.resourcemanager.network.models.ActiveConfigurationParameter; -import com.azure.resourcemanager.network.models.BastionActiveSessionListResult; -import com.azure.resourcemanager.network.models.BastionSessionDeleteResult; import com.azure.resourcemanager.network.models.BastionShareableLinkListRequest; -import com.azure.resourcemanager.network.models.BastionShareableLinkListResult; import com.azure.resourcemanager.network.models.BastionShareableLinkTokenListRequest; import com.azure.resourcemanager.network.models.QueryRequestOptions; import com.azure.resourcemanager.network.models.SessionIds; @@ -229,33 +229,31 @@ public final class NetworkManagementClientImpl extends AzureServiceClient implem private final NetworkManagementClientService service; /** - * The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * Service host. */ - private final String subscriptionId; + private final String endpoint; /** - * Gets The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Gets Service host. * - * @return the subscriptionId value. + * @return the endpoint value. */ - public String getSubscriptionId() { - return this.subscriptionId; + public String getEndpoint() { + return this.endpoint; } /** - * server parameter. + * The ID of the target subscription. The value must be an UUID. */ - private final String endpoint; + private final String subscriptionId; /** - * Gets server parameter. + * Gets The ID of the target subscription. The value must be an UUID. * - * @return the endpoint value. + * @return the subscriptionId value. */ - public String getEndpoint() { - return this.endpoint; + public String getSubscriptionId() { + return this.subscriptionId; } /** @@ -301,31 +299,31 @@ public Duration getDefaultPollInterval() { } /** - * The ApplicationGatewaysClient object to access its operations. + * The OperationsClient object to access its operations. */ - private final ApplicationGatewaysClient applicationGateways; + private final OperationsClient operations; /** - * Gets the ApplicationGatewaysClient object to access its operations. + * Gets the OperationsClient object to access its operations. * - * @return the ApplicationGatewaysClient object. + * @return the OperationsClient object. */ - public ApplicationGatewaysClient getApplicationGateways() { - return this.applicationGateways; + public OperationsClient getOperations() { + return this.operations; } /** - * The ApplicationGatewayPrivateLinkResourcesClient object to access its operations. + * The ApplicationGatewaysClient object to access its operations. */ - private final ApplicationGatewayPrivateLinkResourcesClient applicationGatewayPrivateLinkResources; + private final ApplicationGatewaysClient applicationGateways; /** - * Gets the ApplicationGatewayPrivateLinkResourcesClient object to access its operations. + * Gets the ApplicationGatewaysClient object to access its operations. * - * @return the ApplicationGatewayPrivateLinkResourcesClient object. + * @return the ApplicationGatewaysClient object. */ - public ApplicationGatewayPrivateLinkResourcesClient getApplicationGatewayPrivateLinkResources() { - return this.applicationGatewayPrivateLinkResources; + public ApplicationGatewaysClient getApplicationGateways() { + return this.applicationGateways; } /** @@ -342,34 +340,6 @@ public ApplicationGatewayPrivateEndpointConnectionsClient getApplicationGatewayP return this.applicationGatewayPrivateEndpointConnections; } - /** - * The ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. - */ - private final ApplicationGatewayWafDynamicManifestsDefaultsClient applicationGatewayWafDynamicManifestsDefaults; - - /** - * Gets the ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. - * - * @return the ApplicationGatewayWafDynamicManifestsDefaultsClient object. - */ - public ApplicationGatewayWafDynamicManifestsDefaultsClient getApplicationGatewayWafDynamicManifestsDefaults() { - return this.applicationGatewayWafDynamicManifestsDefaults; - } - - /** - * The ApplicationGatewayWafDynamicManifestsClient object to access its operations. - */ - private final ApplicationGatewayWafDynamicManifestsClient applicationGatewayWafDynamicManifests; - - /** - * Gets the ApplicationGatewayWafDynamicManifestsClient object to access its operations. - * - * @return the ApplicationGatewayWafDynamicManifestsClient object. - */ - public ApplicationGatewayWafDynamicManifestsClient getApplicationGatewayWafDynamicManifests() { - return this.applicationGatewayWafDynamicManifests; - } - /** * The ApplicationSecurityGroupsClient object to access its operations. */ @@ -384,48 +354,6 @@ public ApplicationSecurityGroupsClient getApplicationSecurityGroups() { return this.applicationSecurityGroups; } - /** - * The AvailableDelegationsClient object to access its operations. - */ - private final AvailableDelegationsClient availableDelegations; - - /** - * Gets the AvailableDelegationsClient object to access its operations. - * - * @return the AvailableDelegationsClient object. - */ - public AvailableDelegationsClient getAvailableDelegations() { - return this.availableDelegations; - } - - /** - * The AvailableResourceGroupDelegationsClient object to access its operations. - */ - private final AvailableResourceGroupDelegationsClient availableResourceGroupDelegations; - - /** - * Gets the AvailableResourceGroupDelegationsClient object to access its operations. - * - * @return the AvailableResourceGroupDelegationsClient object. - */ - public AvailableResourceGroupDelegationsClient getAvailableResourceGroupDelegations() { - return this.availableResourceGroupDelegations; - } - - /** - * The AvailableServiceAliasesClient object to access its operations. - */ - private final AvailableServiceAliasesClient availableServiceAliases; - - /** - * Gets the AvailableServiceAliasesClient object to access its operations. - * - * @return the AvailableServiceAliasesClient object. - */ - public AvailableServiceAliasesClient getAvailableServiceAliases() { - return this.availableServiceAliases; - } - /** * The AzureFirewallsClient object to access its operations. */ @@ -440,34 +368,6 @@ public AzureFirewallsClient getAzureFirewalls() { return this.azureFirewalls; } - /** - * The AzureFirewallFqdnTagsClient object to access its operations. - */ - private final AzureFirewallFqdnTagsClient azureFirewallFqdnTags; - - /** - * Gets the AzureFirewallFqdnTagsClient object to access its operations. - * - * @return the AzureFirewallFqdnTagsClient object. - */ - public AzureFirewallFqdnTagsClient getAzureFirewallFqdnTags() { - return this.azureFirewallFqdnTags; - } - - /** - * The WebCategoriesClient object to access its operations. - */ - private final WebCategoriesClient webCategories; - - /** - * Gets the WebCategoriesClient object to access its operations. - * - * @return the WebCategoriesClient object. - */ - public WebCategoriesClient getWebCategories() { - return this.webCategories; - } - /** * The BastionHostsClient object to access its operations. */ @@ -510,20 +410,6 @@ public PublicIpAddressesClient getPublicIpAddresses() { return this.publicIpAddresses; } - /** - * The VipSwapsClient object to access its operations. - */ - private final VipSwapsClient vipSwaps; - - /** - * Gets the VipSwapsClient object to access its operations. - * - * @return the VipSwapsClient object. - */ - public VipSwapsClient getVipSwaps() { - return this.vipSwaps; - } - /** * The CustomIpPrefixesClient object to access its operations. */ @@ -567,45 +453,31 @@ public DdosProtectionPlansClient getDdosProtectionPlans() { } /** - * The DscpConfigurationsClient object to access its operations. - */ - private final DscpConfigurationsClient dscpConfigurations; - - /** - * Gets the DscpConfigurationsClient object to access its operations. - * - * @return the DscpConfigurationsClient object. - */ - public DscpConfigurationsClient getDscpConfigurations() { - return this.dscpConfigurations; - } - - /** - * The AvailableEndpointServicesClient object to access its operations. + * The ExpressRouteCircuitAuthorizationsClient object to access its operations. */ - private final AvailableEndpointServicesClient availableEndpointServices; + private final ExpressRouteCircuitAuthorizationsClient expressRouteCircuitAuthorizations; /** - * Gets the AvailableEndpointServicesClient object to access its operations. + * Gets the ExpressRouteCircuitAuthorizationsClient object to access its operations. * - * @return the AvailableEndpointServicesClient object. + * @return the ExpressRouteCircuitAuthorizationsClient object. */ - public AvailableEndpointServicesClient getAvailableEndpointServices() { - return this.availableEndpointServices; + public ExpressRouteCircuitAuthorizationsClient getExpressRouteCircuitAuthorizations() { + return this.expressRouteCircuitAuthorizations; } /** - * The ExpressRouteCircuitAuthorizationsClient object to access its operations. + * The ExpressRouteCircuitsClient object to access its operations. */ - private final ExpressRouteCircuitAuthorizationsClient expressRouteCircuitAuthorizations; + private final ExpressRouteCircuitsClient expressRouteCircuits; /** - * Gets the ExpressRouteCircuitAuthorizationsClient object to access its operations. + * Gets the ExpressRouteCircuitsClient object to access its operations. * - * @return the ExpressRouteCircuitAuthorizationsClient object. + * @return the ExpressRouteCircuitsClient object. */ - public ExpressRouteCircuitAuthorizationsClient getExpressRouteCircuitAuthorizations() { - return this.expressRouteCircuitAuthorizations; + public ExpressRouteCircuitsClient getExpressRouteCircuits() { + return this.expressRouteCircuits; } /** @@ -650,34 +522,6 @@ public PeerExpressRouteCircuitConnectionsClient getPeerExpressRouteCircuitConnec return this.peerExpressRouteCircuitConnections; } - /** - * The ExpressRouteCircuitsClient object to access its operations. - */ - private final ExpressRouteCircuitsClient expressRouteCircuits; - - /** - * Gets the ExpressRouteCircuitsClient object to access its operations. - * - * @return the ExpressRouteCircuitsClient object. - */ - public ExpressRouteCircuitsClient getExpressRouteCircuits() { - return this.expressRouteCircuits; - } - - /** - * The ExpressRouteServiceProvidersClient object to access its operations. - */ - private final ExpressRouteServiceProvidersClient expressRouteServiceProviders; - - /** - * Gets the ExpressRouteServiceProvidersClient object to access its operations. - * - * @return the ExpressRouteServiceProvidersClient object. - */ - public ExpressRouteServiceProvidersClient getExpressRouteServiceProviders() { - return this.expressRouteServiceProviders; - } - /** * The ExpressRouteCrossConnectionsClient object to access its operations. */ @@ -692,20 +536,6 @@ public ExpressRouteCrossConnectionsClient getExpressRouteCrossConnections() { return this.expressRouteCrossConnections; } - /** - * The ExpressRouteCrossConnectionPeeringsClient object to access its operations. - */ - private final ExpressRouteCrossConnectionPeeringsClient expressRouteCrossConnectionPeerings; - - /** - * Gets the ExpressRouteCrossConnectionPeeringsClient object to access its operations. - * - * @return the ExpressRouteCrossConnectionPeeringsClient object. - */ - public ExpressRouteCrossConnectionPeeringsClient getExpressRouteCrossConnectionPeerings() { - return this.expressRouteCrossConnectionPeerings; - } - /** * The ExpressRoutePortsLocationsClient object to access its operations. */ @@ -734,20 +564,6 @@ public ExpressRoutePortsClient getExpressRoutePorts() { return this.expressRoutePorts; } - /** - * The ExpressRouteLinksClient object to access its operations. - */ - private final ExpressRouteLinksClient expressRouteLinks; - - /** - * Gets the ExpressRouteLinksClient object to access its operations. - * - * @return the ExpressRouteLinksClient object. - */ - public ExpressRouteLinksClient getExpressRouteLinks() { - return this.expressRouteLinks; - } - /** * The ExpressRoutePortAuthorizationsClient object to access its operations. */ @@ -763,28 +579,14 @@ public ExpressRoutePortAuthorizationsClient getExpressRoutePortAuthorizations() } /** - * The ExpressRouteProviderPortsLocationsClient object to access its operations. + * The FirewallPoliciesClient object to access its operations. */ - private final ExpressRouteProviderPortsLocationsClient expressRouteProviderPortsLocations; + private final FirewallPoliciesClient firewallPolicies; /** - * Gets the ExpressRouteProviderPortsLocationsClient object to access its operations. + * Gets the FirewallPoliciesClient object to access its operations. * - * @return the ExpressRouteProviderPortsLocationsClient object. - */ - public ExpressRouteProviderPortsLocationsClient getExpressRouteProviderPortsLocations() { - return this.expressRouteProviderPortsLocations; - } - - /** - * The FirewallPoliciesClient object to access its operations. - */ - private final FirewallPoliciesClient firewallPolicies; - - /** - * Gets the FirewallPoliciesClient object to access its operations. - * - * @return the FirewallPoliciesClient object. + * @return the FirewallPoliciesClient object. */ public FirewallPoliciesClient getFirewallPolicies() { return this.firewallPolicies; @@ -804,20 +606,6 @@ public FirewallPolicyRuleCollectionGroupsClient getFirewallPolicyRuleCollectionG return this.firewallPolicyRuleCollectionGroups; } - /** - * The FirewallPolicyIdpsSignaturesClient object to access its operations. - */ - private final FirewallPolicyIdpsSignaturesClient firewallPolicyIdpsSignatures; - - /** - * Gets the FirewallPolicyIdpsSignaturesClient object to access its operations. - * - * @return the FirewallPolicyIdpsSignaturesClient object. - */ - public FirewallPolicyIdpsSignaturesClient getFirewallPolicyIdpsSignatures() { - return this.firewallPolicyIdpsSignatures; - } - /** * The FirewallPolicyIdpsSignaturesOverridesClient object to access its operations. */ @@ -832,20 +620,6 @@ public FirewallPolicyIdpsSignaturesOverridesClient getFirewallPolicyIdpsSignatur return this.firewallPolicyIdpsSignaturesOverrides; } - /** - * The FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. - */ - private final FirewallPolicyIdpsSignaturesFilterValuesClient firewallPolicyIdpsSignaturesFilterValues; - - /** - * Gets the FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. - * - * @return the FirewallPolicyIdpsSignaturesFilterValuesClient object. - */ - public FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSignaturesFilterValues() { - return this.firewallPolicyIdpsSignaturesFilterValues; - } - /** * The FirewallPolicyDraftsClient object to access its operations. */ @@ -860,20 +634,6 @@ public FirewallPolicyDraftsClient getFirewallPolicyDrafts() { return this.firewallPolicyDrafts; } - /** - * The FirewallPolicyDeploymentsClient object to access its operations. - */ - private final FirewallPolicyDeploymentsClient firewallPolicyDeployments; - - /** - * Gets the FirewallPolicyDeploymentsClient object to access its operations. - * - * @return the FirewallPolicyDeploymentsClient object. - */ - public FirewallPolicyDeploymentsClient getFirewallPolicyDeployments() { - return this.firewallPolicyDeployments; - } - /** * The FirewallPolicyRuleCollectionGroupDraftsClient object to access its operations. */ @@ -902,6 +662,20 @@ public IpamPoolsClient getIpamPools() { return this.ipamPools; } + /** + * The NetworkManagersClient object to access its operations. + */ + private final NetworkManagersClient networkManagers; + + /** + * Gets the NetworkManagersClient object to access its operations. + * + * @return the NetworkManagersClient object. + */ + public NetworkManagersClient getNetworkManagers() { + return this.networkManagers; + } + /** * The StaticCidrsClient object to access its operations. */ @@ -958,34 +732,6 @@ public LoadBalancersClient getLoadBalancers() { return this.loadBalancers; } - /** - * The LoadBalancerBackendAddressPoolsClient object to access its operations. - */ - private final LoadBalancerBackendAddressPoolsClient loadBalancerBackendAddressPools; - - /** - * Gets the LoadBalancerBackendAddressPoolsClient object to access its operations. - * - * @return the LoadBalancerBackendAddressPoolsClient object. - */ - public LoadBalancerBackendAddressPoolsClient getLoadBalancerBackendAddressPools() { - return this.loadBalancerBackendAddressPools; - } - - /** - * The LoadBalancerFrontendIpConfigurationsClient object to access its operations. - */ - private final LoadBalancerFrontendIpConfigurationsClient loadBalancerFrontendIpConfigurations; - - /** - * Gets the LoadBalancerFrontendIpConfigurationsClient object to access its operations. - * - * @return the LoadBalancerFrontendIpConfigurationsClient object. - */ - public LoadBalancerFrontendIpConfigurationsClient getLoadBalancerFrontendIpConfigurations() { - return this.loadBalancerFrontendIpConfigurations; - } - /** * The InboundNatRulesClient object to access its operations. */ @@ -1000,62 +746,6 @@ public InboundNatRulesClient getInboundNatRules() { return this.inboundNatRules; } - /** - * The LoadBalancerLoadBalancingRulesClient object to access its operations. - */ - private final LoadBalancerLoadBalancingRulesClient loadBalancerLoadBalancingRules; - - /** - * Gets the LoadBalancerLoadBalancingRulesClient object to access its operations. - * - * @return the LoadBalancerLoadBalancingRulesClient object. - */ - public LoadBalancerLoadBalancingRulesClient getLoadBalancerLoadBalancingRules() { - return this.loadBalancerLoadBalancingRules; - } - - /** - * The LoadBalancerOutboundRulesClient object to access its operations. - */ - private final LoadBalancerOutboundRulesClient loadBalancerOutboundRules; - - /** - * Gets the LoadBalancerOutboundRulesClient object to access its operations. - * - * @return the LoadBalancerOutboundRulesClient object. - */ - public LoadBalancerOutboundRulesClient getLoadBalancerOutboundRules() { - return this.loadBalancerOutboundRules; - } - - /** - * The LoadBalancerNetworkInterfacesClient object to access its operations. - */ - private final LoadBalancerNetworkInterfacesClient loadBalancerNetworkInterfaces; - - /** - * Gets the LoadBalancerNetworkInterfacesClient object to access its operations. - * - * @return the LoadBalancerNetworkInterfacesClient object. - */ - public LoadBalancerNetworkInterfacesClient getLoadBalancerNetworkInterfaces() { - return this.loadBalancerNetworkInterfaces; - } - - /** - * The LoadBalancerProbesClient object to access its operations. - */ - private final LoadBalancerProbesClient loadBalancerProbes; - - /** - * Gets the LoadBalancerProbesClient object to access its operations. - * - * @return the LoadBalancerProbesClient object. - */ - public LoadBalancerProbesClient getLoadBalancerProbes() { - return this.loadBalancerProbes; - } - /** * The NatGatewaysClient object to access its operations. */ @@ -1084,20 +774,6 @@ public NetworkInterfaceIpConfigurationsClient getNetworkInterfaceIpConfiguration return this.networkInterfaceIpConfigurations; } - /** - * The NetworkInterfaceLoadBalancersClient object to access its operations. - */ - private final NetworkInterfaceLoadBalancersClient networkInterfaceLoadBalancers; - - /** - * Gets the NetworkInterfaceLoadBalancersClient object to access its operations. - * - * @return the NetworkInterfaceLoadBalancersClient object. - */ - public NetworkInterfaceLoadBalancersClient getNetworkInterfaceLoadBalancers() { - return this.networkInterfaceLoadBalancers; - } - /** * The NetworkInterfaceTapConfigurationsClient object to access its operations. */ @@ -1112,62 +788,6 @@ public NetworkInterfaceTapConfigurationsClient getNetworkInterfaceTapConfigurati return this.networkInterfaceTapConfigurations; } - /** - * The NetworkManagersClient object to access its operations. - */ - private final NetworkManagersClient networkManagers; - - /** - * Gets the NetworkManagersClient object to access its operations. - * - * @return the NetworkManagersClient object. - */ - public NetworkManagersClient getNetworkManagers() { - return this.networkManagers; - } - - /** - * The NetworkManagerCommitsClient object to access its operations. - */ - private final NetworkManagerCommitsClient networkManagerCommits; - - /** - * Gets the NetworkManagerCommitsClient object to access its operations. - * - * @return the NetworkManagerCommitsClient object. - */ - public NetworkManagerCommitsClient getNetworkManagerCommits() { - return this.networkManagerCommits; - } - - /** - * The NetworkManagerDeploymentStatusOperationsClient object to access its operations. - */ - private final NetworkManagerDeploymentStatusOperationsClient networkManagerDeploymentStatusOperations; - - /** - * Gets the NetworkManagerDeploymentStatusOperationsClient object to access its operations. - * - * @return the NetworkManagerDeploymentStatusOperationsClient object. - */ - public NetworkManagerDeploymentStatusOperationsClient getNetworkManagerDeploymentStatusOperations() { - return this.networkManagerDeploymentStatusOperations; - } - - /** - * The SubscriptionNetworkManagerConnectionsClient object to access its operations. - */ - private final SubscriptionNetworkManagerConnectionsClient subscriptionNetworkManagerConnections; - - /** - * Gets the SubscriptionNetworkManagerConnectionsClient object to access its operations. - * - * @return the SubscriptionNetworkManagerConnectionsClient object. - */ - public SubscriptionNetworkManagerConnectionsClient getSubscriptionNetworkManagerConnections() { - return this.subscriptionNetworkManagerConnections; - } - /** * The ManagementGroupNetworkManagerConnectionsClient object to access its operations. */ @@ -1308,20 +928,6 @@ public AdminRuleCollectionsClient getAdminRuleCollections() { return this.adminRuleCollections; } - /** - * The AdminRulesClient object to access its operations. - */ - private final AdminRulesClient adminRules; - - /** - * Gets the AdminRulesClient object to access its operations. - * - * @return the AdminRulesClient object. - */ - public AdminRulesClient getAdminRules() { - return this.adminRules; - } - /** * The SecurityUserConfigurationsClient object to access its operations. */ @@ -1435,143 +1041,31 @@ public NetworkSecurityPerimetersClient getNetworkSecurityPerimeters() { } /** - * The NetworkSecurityPerimeterProfilesClient object to access its operations. + * The ReachabilityAnalysisIntentsClient object to access its operations. */ - private final NetworkSecurityPerimeterProfilesClient networkSecurityPerimeterProfiles; + private final ReachabilityAnalysisIntentsClient reachabilityAnalysisIntents; /** - * Gets the NetworkSecurityPerimeterProfilesClient object to access its operations. + * Gets the ReachabilityAnalysisIntentsClient object to access its operations. * - * @return the NetworkSecurityPerimeterProfilesClient object. + * @return the ReachabilityAnalysisIntentsClient object. */ - public NetworkSecurityPerimeterProfilesClient getNetworkSecurityPerimeterProfiles() { - return this.networkSecurityPerimeterProfiles; + public ReachabilityAnalysisIntentsClient getReachabilityAnalysisIntents() { + return this.reachabilityAnalysisIntents; } /** - * The NetworkSecurityPerimeterAccessRulesClient object to access its operations. + * The VerifierWorkspacesClient object to access its operations. */ - private final NetworkSecurityPerimeterAccessRulesClient networkSecurityPerimeterAccessRules; + private final VerifierWorkspacesClient verifierWorkspaces; /** - * Gets the NetworkSecurityPerimeterAccessRulesClient object to access its operations. + * Gets the VerifierWorkspacesClient object to access its operations. * - * @return the NetworkSecurityPerimeterAccessRulesClient object. + * @return the VerifierWorkspacesClient object. */ - public NetworkSecurityPerimeterAccessRulesClient getNetworkSecurityPerimeterAccessRules() { - return this.networkSecurityPerimeterAccessRules; - } - - /** - * The NetworkSecurityPerimeterAssociationsClient object to access its operations. - */ - private final NetworkSecurityPerimeterAssociationsClient networkSecurityPerimeterAssociations; - - /** - * Gets the NetworkSecurityPerimeterAssociationsClient object to access its operations. - * - * @return the NetworkSecurityPerimeterAssociationsClient object. - */ - public NetworkSecurityPerimeterAssociationsClient getNetworkSecurityPerimeterAssociations() { - return this.networkSecurityPerimeterAssociations; - } - - /** - * The NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. - */ - private final NetworkSecurityPerimeterAssociableResourceTypesClient networkSecurityPerimeterAssociableResourceTypes; - - /** - * Gets the NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. - * - * @return the NetworkSecurityPerimeterAssociableResourceTypesClient object. - */ - public NetworkSecurityPerimeterAssociableResourceTypesClient getNetworkSecurityPerimeterAssociableResourceTypes() { - return this.networkSecurityPerimeterAssociableResourceTypes; - } - - /** - * The NetworkSecurityPerimeterLinksClient object to access its operations. - */ - private final NetworkSecurityPerimeterLinksClient networkSecurityPerimeterLinks; - - /** - * Gets the NetworkSecurityPerimeterLinksClient object to access its operations. - * - * @return the NetworkSecurityPerimeterLinksClient object. - */ - public NetworkSecurityPerimeterLinksClient getNetworkSecurityPerimeterLinks() { - return this.networkSecurityPerimeterLinks; - } - - /** - * The NetworkSecurityPerimeterLinkReferencesClient object to access its operations. - */ - private final NetworkSecurityPerimeterLinkReferencesClient networkSecurityPerimeterLinkReferences; - - /** - * Gets the NetworkSecurityPerimeterLinkReferencesClient object to access its operations. - * - * @return the NetworkSecurityPerimeterLinkReferencesClient object. - */ - public NetworkSecurityPerimeterLinkReferencesClient getNetworkSecurityPerimeterLinkReferences() { - return this.networkSecurityPerimeterLinkReferences; - } - - /** - * The NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. - */ - private final NetworkSecurityPerimeterLoggingConfigurationsClient networkSecurityPerimeterLoggingConfigurations; - - /** - * Gets the NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. - * - * @return the NetworkSecurityPerimeterLoggingConfigurationsClient object. - */ - public NetworkSecurityPerimeterLoggingConfigurationsClient getNetworkSecurityPerimeterLoggingConfigurations() { - return this.networkSecurityPerimeterLoggingConfigurations; - } - - /** - * The NetworkSecurityPerimeterOperationStatusesClient object to access its operations. - */ - private final NetworkSecurityPerimeterOperationStatusesClient networkSecurityPerimeterOperationStatuses; - - /** - * Gets the NetworkSecurityPerimeterOperationStatusesClient object to access its operations. - * - * @return the NetworkSecurityPerimeterOperationStatusesClient object. - */ - public NetworkSecurityPerimeterOperationStatusesClient getNetworkSecurityPerimeterOperationStatuses() { - return this.networkSecurityPerimeterOperationStatuses; - } - - /** - * The NetworkSecurityPerimeterServiceTagsClient object to access its operations. - */ - private final NetworkSecurityPerimeterServiceTagsClient networkSecurityPerimeterServiceTags; - - /** - * Gets the NetworkSecurityPerimeterServiceTagsClient object to access its operations. - * - * @return the NetworkSecurityPerimeterServiceTagsClient object. - */ - public NetworkSecurityPerimeterServiceTagsClient getNetworkSecurityPerimeterServiceTags() { - return this.networkSecurityPerimeterServiceTags; - } - - /** - * The ReachabilityAnalysisIntentsClient object to access its operations. - */ - private final ReachabilityAnalysisIntentsClient reachabilityAnalysisIntents; - - /** - * Gets the ReachabilityAnalysisIntentsClient object to access its operations. - * - * @return the ReachabilityAnalysisIntentsClient object. - */ - public ReachabilityAnalysisIntentsClient getReachabilityAnalysisIntents() { - return this.reachabilityAnalysisIntents; + public VerifierWorkspacesClient getVerifierWorkspaces() { + return this.verifierWorkspaces; } /** @@ -1589,17 +1083,17 @@ public ReachabilityAnalysisRunsClient getReachabilityAnalysisRuns() { } /** - * The VerifierWorkspacesClient object to access its operations. + * The NetworkVirtualApplianceConnectionsClient object to access its operations. */ - private final VerifierWorkspacesClient verifierWorkspaces; + private final NetworkVirtualApplianceConnectionsClient networkVirtualApplianceConnections; /** - * Gets the VerifierWorkspacesClient object to access its operations. + * Gets the NetworkVirtualApplianceConnectionsClient object to access its operations. * - * @return the VerifierWorkspacesClient object. + * @return the NetworkVirtualApplianceConnectionsClient object. */ - public VerifierWorkspacesClient getVerifierWorkspaces() { - return this.verifierWorkspaces; + public NetworkVirtualApplianceConnectionsClient getNetworkVirtualApplianceConnections() { + return this.networkVirtualApplianceConnections; } /** @@ -1630,34 +1124,6 @@ public VirtualApplianceSitesClient getVirtualApplianceSites() { return this.virtualApplianceSites; } - /** - * The VirtualApplianceSkusClient object to access its operations. - */ - private final VirtualApplianceSkusClient virtualApplianceSkus; - - /** - * Gets the VirtualApplianceSkusClient object to access its operations. - * - * @return the VirtualApplianceSkusClient object. - */ - public VirtualApplianceSkusClient getVirtualApplianceSkus() { - return this.virtualApplianceSkus; - } - - /** - * The InboundSecurityRuleOperationsClient object to access its operations. - */ - private final InboundSecurityRuleOperationsClient inboundSecurityRuleOperations; - - /** - * Gets the InboundSecurityRuleOperationsClient object to access its operations. - * - * @return the InboundSecurityRuleOperationsClient object. - */ - public InboundSecurityRuleOperationsClient getInboundSecurityRuleOperations() { - return this.inboundSecurityRuleOperations; - } - /** * The NetworkWatchersClient object to access its operations. */ @@ -1672,34 +1138,6 @@ public NetworkWatchersClient getNetworkWatchers() { return this.networkWatchers; } - /** - * The PacketCapturesClient object to access its operations. - */ - private final PacketCapturesClient packetCaptures; - - /** - * Gets the PacketCapturesClient object to access its operations. - * - * @return the PacketCapturesClient object. - */ - public PacketCapturesClient getPacketCaptures() { - return this.packetCaptures; - } - - /** - * The ConnectionMonitorsClient object to access its operations. - */ - private final ConnectionMonitorsClient connectionMonitors; - - /** - * Gets the ConnectionMonitorsClient object to access its operations. - * - * @return the ConnectionMonitorsClient object. - */ - public ConnectionMonitorsClient getConnectionMonitors() { - return this.connectionMonitors; - } - /** * The FlowLogsClient object to access its operations. */ @@ -1714,20 +1152,6 @@ public FlowLogsClient getFlowLogs() { return this.flowLogs; } - /** - * The OperationsClient object to access its operations. - */ - private final OperationsClient operations; - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - public OperationsClient getOperations() { - return this.operations; - } - /** * The PrivateEndpointsClient object to access its operations. */ @@ -1742,34 +1166,6 @@ public PrivateEndpointsClient getPrivateEndpoints() { return this.privateEndpoints; } - /** - * The AvailablePrivateEndpointTypesClient object to access its operations. - */ - private final AvailablePrivateEndpointTypesClient availablePrivateEndpointTypes; - - /** - * Gets the AvailablePrivateEndpointTypesClient object to access its operations. - * - * @return the AvailablePrivateEndpointTypesClient object. - */ - public AvailablePrivateEndpointTypesClient getAvailablePrivateEndpointTypes() { - return this.availablePrivateEndpointTypes; - } - - /** - * The PrivateDnsZoneGroupsClient object to access its operations. - */ - private final PrivateDnsZoneGroupsClient privateDnsZoneGroups; - - /** - * Gets the PrivateDnsZoneGroupsClient object to access its operations. - * - * @return the PrivateDnsZoneGroupsClient object. - */ - public PrivateDnsZoneGroupsClient getPrivateDnsZoneGroups() { - return this.privateDnsZoneGroups; - } - /** * The PrivateLinkServicesClient object to access its operations. */ @@ -1812,20 +1208,6 @@ public RouteFiltersClient getRouteFilters() { return this.routeFilters; } - /** - * The RouteFilterRulesClient object to access its operations. - */ - private final RouteFilterRulesClient routeFilterRules; - - /** - * Gets the RouteFilterRulesClient object to access its operations. - * - * @return the RouteFilterRulesClient object. - */ - public RouteFilterRulesClient getRouteFilterRules() { - return this.routeFilterRules; - } - /** * The RouteTablesClient object to access its operations. */ @@ -1868,20 +1250,6 @@ public SecurityPartnerProvidersClient getSecurityPartnerProviders() { return this.securityPartnerProviders; } - /** - * The BgpServiceCommunitiesClient object to access its operations. - */ - private final BgpServiceCommunitiesClient bgpServiceCommunities; - - /** - * Gets the BgpServiceCommunitiesClient object to access its operations. - * - * @return the BgpServiceCommunitiesClient object. - */ - public BgpServiceCommunitiesClient getBgpServiceCommunities() { - return this.bgpServiceCommunities; - } - /** * The ServiceEndpointPoliciesClient object to access its operations. */ @@ -1911,63 +1279,7 @@ public ServiceEndpointPolicyDefinitionsClient getServiceEndpointPolicyDefinition } /** - * The ServiceGatewaysClient object to access its operations. - */ - private final ServiceGatewaysClient serviceGateways; - - /** - * Gets the ServiceGatewaysClient object to access its operations. - * - * @return the ServiceGatewaysClient object. - */ - public ServiceGatewaysClient getServiceGateways() { - return this.serviceGateways; - } - - /** - * The ServiceTagsClient object to access its operations. - */ - private final ServiceTagsClient serviceTags; - - /** - * Gets the ServiceTagsClient object to access its operations. - * - * @return the ServiceTagsClient object. - */ - public ServiceTagsClient getServiceTags() { - return this.serviceTags; - } - - /** - * The ServiceTagInformationsClient object to access its operations. - */ - private final ServiceTagInformationsClient serviceTagInformations; - - /** - * Gets the ServiceTagInformationsClient object to access its operations. - * - * @return the ServiceTagInformationsClient object. - */ - public ServiceTagInformationsClient getServiceTagInformations() { - return this.serviceTagInformations; - } - - /** - * The UsagesClient object to access its operations. - */ - private final UsagesClient usages; - - /** - * Gets the UsagesClient object to access its operations. - * - * @return the UsagesClient object. - */ - public UsagesClient getUsages() { - return this.usages; - } - - /** - * The VirtualNetworksClient object to access its operations. + * The VirtualNetworksClient object to access its operations. */ private final VirtualNetworksClient virtualNetworks; @@ -1994,34 +1306,6 @@ public SubnetsClient getSubnets() { return this.subnets; } - /** - * The ResourceNavigationLinksClient object to access its operations. - */ - private final ResourceNavigationLinksClient resourceNavigationLinks; - - /** - * Gets the ResourceNavigationLinksClient object to access its operations. - * - * @return the ResourceNavigationLinksClient object. - */ - public ResourceNavigationLinksClient getResourceNavigationLinks() { - return this.resourceNavigationLinks; - } - - /** - * The ServiceAssociationLinksClient object to access its operations. - */ - private final ServiceAssociationLinksClient serviceAssociationLinks; - - /** - * Gets the ServiceAssociationLinksClient object to access its operations. - * - * @return the ServiceAssociationLinksClient object. - */ - public ServiceAssociationLinksClient getServiceAssociationLinks() { - return this.serviceAssociationLinks; - } - /** * The VirtualNetworkPeeringsClient object to access its operations. */ @@ -2036,20 +1320,6 @@ public VirtualNetworkPeeringsClient getVirtualNetworkPeerings() { return this.virtualNetworkPeerings; } - /** - * The VirtualNetworkAppliancesClient object to access its operations. - */ - private final VirtualNetworkAppliancesClient virtualNetworkAppliances; - - /** - * Gets the VirtualNetworkAppliancesClient object to access its operations. - * - * @return the VirtualNetworkAppliancesClient object. - */ - public VirtualNetworkAppliancesClient getVirtualNetworkAppliances() { - return this.virtualNetworkAppliances; - } - /** * The VirtualNetworkGatewaysClient object to access its operations. */ @@ -2190,20 +1460,6 @@ public VpnSiteLinksClient getVpnSiteLinks() { return this.vpnSiteLinks; } - /** - * The VpnSitesConfigurationsClient object to access its operations. - */ - private final VpnSitesConfigurationsClient vpnSitesConfigurations; - - /** - * Gets the VpnSitesConfigurationsClient object to access its operations. - * - * @return the VpnSitesConfigurationsClient object. - */ - public VpnSitesConfigurationsClient getVpnSitesConfigurations() { - return this.vpnSitesConfigurations; - } - /** * The VpnServerConfigurationsClient object to access its operations. */ @@ -2218,20 +1474,6 @@ public VpnServerConfigurationsClient getVpnServerConfigurations() { return this.vpnServerConfigurations; } - /** - * The ConfigurationPolicyGroupsClient object to access its operations. - */ - private final ConfigurationPolicyGroupsClient configurationPolicyGroups; - - /** - * Gets the ConfigurationPolicyGroupsClient object to access its operations. - * - * @return the ConfigurationPolicyGroupsClient object. - */ - public ConfigurationPolicyGroupsClient getConfigurationPolicyGroups() { - return this.configurationPolicyGroups; - } - /** * The VirtualHubsClient object to access its operations. */ @@ -2261,242 +1503,998 @@ public RouteMapsClient getRouteMaps() { } /** - * The HubVirtualNetworkConnectionsClient object to access its operations. + * The VpnGatewaysClient object to access its operations. */ - private final HubVirtualNetworkConnectionsClient hubVirtualNetworkConnections; + private final VpnGatewaysClient vpnGateways; /** - * Gets the HubVirtualNetworkConnectionsClient object to access its operations. + * Gets the VpnGatewaysClient object to access its operations. * - * @return the HubVirtualNetworkConnectionsClient object. + * @return the VpnGatewaysClient object. */ - public HubVirtualNetworkConnectionsClient getHubVirtualNetworkConnections() { - return this.hubVirtualNetworkConnections; + public VpnGatewaysClient getVpnGateways() { + return this.vpnGateways; } /** - * The VpnGatewaysClient object to access its operations. + * The VpnSiteLinkConnectionsClient object to access its operations. */ - private final VpnGatewaysClient vpnGateways; + private final VpnSiteLinkConnectionsClient vpnSiteLinkConnections; /** - * Gets the VpnGatewaysClient object to access its operations. + * Gets the VpnSiteLinkConnectionsClient object to access its operations. * - * @return the VpnGatewaysClient object. + * @return the VpnSiteLinkConnectionsClient object. */ - public VpnGatewaysClient getVpnGateways() { - return this.vpnGateways; + public VpnSiteLinkConnectionsClient getVpnSiteLinkConnections() { + return this.vpnSiteLinkConnections; } /** - * The VpnLinkConnectionsClient object to access its operations. + * The P2SVpnGatewaysClient object to access its operations. */ - private final VpnLinkConnectionsClient vpnLinkConnections; + private final P2SVpnGatewaysClient p2SVpnGateways; /** - * Gets the VpnLinkConnectionsClient object to access its operations. + * Gets the P2SVpnGatewaysClient object to access its operations. * - * @return the VpnLinkConnectionsClient object. + * @return the P2SVpnGatewaysClient object. */ - public VpnLinkConnectionsClient getVpnLinkConnections() { - return this.vpnLinkConnections; + public P2SVpnGatewaysClient getP2SVpnGateways() { + return this.p2SVpnGateways; } /** - * The VpnConnectionsClient object to access its operations. + * The ExpressRouteGatewaysClient object to access its operations. */ - private final VpnConnectionsClient vpnConnections; + private final ExpressRouteGatewaysClient expressRouteGateways; /** - * Gets the VpnConnectionsClient object to access its operations. + * Gets the ExpressRouteGatewaysClient object to access its operations. * - * @return the VpnConnectionsClient object. + * @return the ExpressRouteGatewaysClient object. */ - public VpnConnectionsClient getVpnConnections() { - return this.vpnConnections; + public ExpressRouteGatewaysClient getExpressRouteGateways() { + return this.expressRouteGateways; } /** - * The VpnSiteLinkConnectionsClient object to access its operations. + * The HubRouteTablesClient object to access its operations. */ - private final VpnSiteLinkConnectionsClient vpnSiteLinkConnections; + private final HubRouteTablesClient hubRouteTables; /** - * Gets the VpnSiteLinkConnectionsClient object to access its operations. + * Gets the HubRouteTablesClient object to access its operations. * - * @return the VpnSiteLinkConnectionsClient object. + * @return the HubRouteTablesClient object. */ - public VpnSiteLinkConnectionsClient getVpnSiteLinkConnections() { - return this.vpnSiteLinkConnections; + public HubRouteTablesClient getHubRouteTables() { + return this.hubRouteTables; } /** - * The NatRulesClient object to access its operations. + * The WebApplicationFirewallPoliciesClient object to access its operations. */ - private final NatRulesClient natRules; + private final WebApplicationFirewallPoliciesClient webApplicationFirewallPolicies; /** - * Gets the NatRulesClient object to access its operations. + * Gets the WebApplicationFirewallPoliciesClient object to access its operations. * - * @return the NatRulesClient object. + * @return the WebApplicationFirewallPoliciesClient object. */ - public NatRulesClient getNatRules() { - return this.natRules; + public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() { + return this.webApplicationFirewallPolicies; } /** - * The P2SVpnGatewaysClient object to access its operations. + * The VirtualNetworkAppliancesClient object to access its operations. */ - private final P2SVpnGatewaysClient p2SVpnGateways; + private final VirtualNetworkAppliancesClient virtualNetworkAppliances; /** - * Gets the P2SVpnGatewaysClient object to access its operations. + * Gets the VirtualNetworkAppliancesClient object to access its operations. * - * @return the P2SVpnGatewaysClient object. + * @return the VirtualNetworkAppliancesClient object. */ - public P2SVpnGatewaysClient getP2SVpnGateways() { - return this.p2SVpnGateways; + public VirtualNetworkAppliancesClient getVirtualNetworkAppliances() { + return this.virtualNetworkAppliances; } /** - * The VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + * The ServiceGatewaysClient object to access its operations. */ - private final VpnServerConfigurationsAssociatedWithVirtualWansClient vpnServerConfigurationsAssociatedWithVirtualWans; + private final ServiceGatewaysClient serviceGateways; /** - * Gets the VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + * Gets the ServiceGatewaysClient object to access its operations. * - * @return the VpnServerConfigurationsAssociatedWithVirtualWansClient object. + * @return the ServiceGatewaysClient object. */ - public VpnServerConfigurationsAssociatedWithVirtualWansClient - getVpnServerConfigurationsAssociatedWithVirtualWans() { - return this.vpnServerConfigurationsAssociatedWithVirtualWans; + public ServiceGatewaysClient getServiceGateways() { + return this.serviceGateways; } /** - * The VirtualHubRouteTableV2SClient object to access its operations. + * The ApplicationGatewayPrivateLinkResourcesClient object to access its operations. */ - private final VirtualHubRouteTableV2SClient virtualHubRouteTableV2S; + private final ApplicationGatewayPrivateLinkResourcesClient applicationGatewayPrivateLinkResources; /** - * Gets the VirtualHubRouteTableV2SClient object to access its operations. + * Gets the ApplicationGatewayPrivateLinkResourcesClient object to access its operations. * - * @return the VirtualHubRouteTableV2SClient object. + * @return the ApplicationGatewayPrivateLinkResourcesClient object. */ - public VirtualHubRouteTableV2SClient getVirtualHubRouteTableV2S() { - return this.virtualHubRouteTableV2S; + public ApplicationGatewayPrivateLinkResourcesClient getApplicationGatewayPrivateLinkResources() { + return this.applicationGatewayPrivateLinkResources; } /** - * The ExpressRouteGatewaysClient object to access its operations. + * The ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. */ - private final ExpressRouteGatewaysClient expressRouteGateways; + private final ApplicationGatewayWafDynamicManifestsDefaultsClient applicationGatewayWafDynamicManifestsDefaults; /** - * Gets the ExpressRouteGatewaysClient object to access its operations. + * Gets the ApplicationGatewayWafDynamicManifestsDefaultsClient object to access its operations. + * + * @return the ApplicationGatewayWafDynamicManifestsDefaultsClient object. + */ + public ApplicationGatewayWafDynamicManifestsDefaultsClient getApplicationGatewayWafDynamicManifestsDefaults() { + return this.applicationGatewayWafDynamicManifestsDefaults; + } + + /** + * The ApplicationGatewayWafDynamicManifestsClient object to access its operations. + */ + private final ApplicationGatewayWafDynamicManifestsClient applicationGatewayWafDynamicManifests; + + /** + * Gets the ApplicationGatewayWafDynamicManifestsClient object to access its operations. + * + * @return the ApplicationGatewayWafDynamicManifestsClient object. + */ + public ApplicationGatewayWafDynamicManifestsClient getApplicationGatewayWafDynamicManifests() { + return this.applicationGatewayWafDynamicManifests; + } + + /** + * The WebCategoriesClient object to access its operations. + */ + private final WebCategoriesClient webCategories; + + /** + * Gets the WebCategoriesClient object to access its operations. + * + * @return the WebCategoriesClient object. + */ + public WebCategoriesClient getWebCategories() { + return this.webCategories; + } + + /** + * The ExpressRouteProviderPortsLocationsClient object to access its operations. + */ + private final ExpressRouteProviderPortsLocationsClient expressRouteProviderPortsLocations; + + /** + * Gets the ExpressRouteProviderPortsLocationsClient object to access its operations. + * + * @return the ExpressRouteProviderPortsLocationsClient object. + */ + public ExpressRouteProviderPortsLocationsClient getExpressRouteProviderPortsLocations() { + return this.expressRouteProviderPortsLocations; + } + + /** + * The NetworkInterfaceLoadBalancersClient object to access its operations. + */ + private final NetworkInterfaceLoadBalancersClient networkInterfaceLoadBalancers; + + /** + * Gets the NetworkInterfaceLoadBalancersClient object to access its operations. + * + * @return the NetworkInterfaceLoadBalancersClient object. + */ + public NetworkInterfaceLoadBalancersClient getNetworkInterfaceLoadBalancers() { + return this.networkInterfaceLoadBalancers; + } + + /** + * The VipSwapsClient object to access its operations. + */ + private final VipSwapsClient vipSwaps; + + /** + * Gets the VipSwapsClient object to access its operations. + * + * @return the VipSwapsClient object. + */ + public VipSwapsClient getVipSwaps() { + return this.vipSwaps; + } + + /** + * The DscpConfigurationsClient object to access its operations. + */ + private final DscpConfigurationsClient dscpConfigurations; + + /** + * Gets the DscpConfigurationsClient object to access its operations. + * + * @return the DscpConfigurationsClient object. + */ + public DscpConfigurationsClient getDscpConfigurations() { + return this.dscpConfigurations; + } + + /** + * The ExpressRouteCrossConnectionPeeringsClient object to access its operations. + */ + private final ExpressRouteCrossConnectionPeeringsClient expressRouteCrossConnectionPeerings; + + /** + * Gets the ExpressRouteCrossConnectionPeeringsClient object to access its operations. + * + * @return the ExpressRouteCrossConnectionPeeringsClient object. + */ + public ExpressRouteCrossConnectionPeeringsClient getExpressRouteCrossConnectionPeerings() { + return this.expressRouteCrossConnectionPeerings; + } + + /** + * The ExpressRouteLinksClient object to access its operations. + */ + private final ExpressRouteLinksClient expressRouteLinks; + + /** + * Gets the ExpressRouteLinksClient object to access its operations. + * + * @return the ExpressRouteLinksClient object. + */ + public ExpressRouteLinksClient getExpressRouteLinks() { + return this.expressRouteLinks; + } + + /** + * The FirewallPolicyIdpsSignaturesClient object to access its operations. + */ + private final FirewallPolicyIdpsSignaturesClient firewallPolicyIdpsSignatures; + + /** + * Gets the FirewallPolicyIdpsSignaturesClient object to access its operations. + * + * @return the FirewallPolicyIdpsSignaturesClient object. + */ + public FirewallPolicyIdpsSignaturesClient getFirewallPolicyIdpsSignatures() { + return this.firewallPolicyIdpsSignatures; + } + + /** + * The FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. + */ + private final FirewallPolicyIdpsSignaturesFilterValuesClient firewallPolicyIdpsSignaturesFilterValues; + + /** + * Gets the FirewallPolicyIdpsSignaturesFilterValuesClient object to access its operations. + * + * @return the FirewallPolicyIdpsSignaturesFilterValuesClient object. + */ + public FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSignaturesFilterValues() { + return this.firewallPolicyIdpsSignaturesFilterValues; + } + + /** + * The FirewallPolicyDeploymentsClient object to access its operations. + */ + private final FirewallPolicyDeploymentsClient firewallPolicyDeployments; + + /** + * Gets the FirewallPolicyDeploymentsClient object to access its operations. + * + * @return the FirewallPolicyDeploymentsClient object. + */ + public FirewallPolicyDeploymentsClient getFirewallPolicyDeployments() { + return this.firewallPolicyDeployments; + } + + /** + * The NetworkManagerCommitsClient object to access its operations. + */ + private final NetworkManagerCommitsClient networkManagerCommits; + + /** + * Gets the NetworkManagerCommitsClient object to access its operations. + * + * @return the NetworkManagerCommitsClient object. + */ + public NetworkManagerCommitsClient getNetworkManagerCommits() { + return this.networkManagerCommits; + } + + /** + * The NetworkManagerDeploymentStatusOperationsClient object to access its operations. + */ + private final NetworkManagerDeploymentStatusOperationsClient networkManagerDeploymentStatusOperations; + + /** + * Gets the NetworkManagerDeploymentStatusOperationsClient object to access its operations. + * + * @return the NetworkManagerDeploymentStatusOperationsClient object. + */ + public NetworkManagerDeploymentStatusOperationsClient getNetworkManagerDeploymentStatusOperations() { + return this.networkManagerDeploymentStatusOperations; + } + + /** + * The LoadBalancerNetworkInterfacesClient object to access its operations. + */ + private final LoadBalancerNetworkInterfacesClient loadBalancerNetworkInterfaces; + + /** + * Gets the LoadBalancerNetworkInterfacesClient object to access its operations. + * + * @return the LoadBalancerNetworkInterfacesClient object. + */ + public LoadBalancerNetworkInterfacesClient getLoadBalancerNetworkInterfaces() { + return this.loadBalancerNetworkInterfaces; + } + + /** + * The LoadBalancerBackendAddressPoolsClient object to access its operations. + */ + private final LoadBalancerBackendAddressPoolsClient loadBalancerBackendAddressPools; + + /** + * Gets the LoadBalancerBackendAddressPoolsClient object to access its operations. + * + * @return the LoadBalancerBackendAddressPoolsClient object. + */ + public LoadBalancerBackendAddressPoolsClient getLoadBalancerBackendAddressPools() { + return this.loadBalancerBackendAddressPools; + } + + /** + * The LoadBalancerFrontendIpConfigurationsClient object to access its operations. + */ + private final LoadBalancerFrontendIpConfigurationsClient loadBalancerFrontendIpConfigurations; + + /** + * Gets the LoadBalancerFrontendIpConfigurationsClient object to access its operations. + * + * @return the LoadBalancerFrontendIpConfigurationsClient object. + */ + public LoadBalancerFrontendIpConfigurationsClient getLoadBalancerFrontendIpConfigurations() { + return this.loadBalancerFrontendIpConfigurations; + } + + /** + * The LoadBalancerLoadBalancingRulesClient object to access its operations. + */ + private final LoadBalancerLoadBalancingRulesClient loadBalancerLoadBalancingRules; + + /** + * Gets the LoadBalancerLoadBalancingRulesClient object to access its operations. + * + * @return the LoadBalancerLoadBalancingRulesClient object. + */ + public LoadBalancerLoadBalancingRulesClient getLoadBalancerLoadBalancingRules() { + return this.loadBalancerLoadBalancingRules; + } + + /** + * The LoadBalancerOutboundRulesClient object to access its operations. + */ + private final LoadBalancerOutboundRulesClient loadBalancerOutboundRules; + + /** + * Gets the LoadBalancerOutboundRulesClient object to access its operations. + * + * @return the LoadBalancerOutboundRulesClient object. + */ + public LoadBalancerOutboundRulesClient getLoadBalancerOutboundRules() { + return this.loadBalancerOutboundRules; + } + + /** + * The LoadBalancerProbesClient object to access its operations. + */ + private final LoadBalancerProbesClient loadBalancerProbes; + + /** + * Gets the LoadBalancerProbesClient object to access its operations. + * + * @return the LoadBalancerProbesClient object. + */ + public LoadBalancerProbesClient getLoadBalancerProbes() { + return this.loadBalancerProbes; + } + + /** + * The SubscriptionNetworkManagerConnectionsClient object to access its operations. + */ + private final SubscriptionNetworkManagerConnectionsClient subscriptionNetworkManagerConnections; + + /** + * Gets the SubscriptionNetworkManagerConnectionsClient object to access its operations. + * + * @return the SubscriptionNetworkManagerConnectionsClient object. + */ + public SubscriptionNetworkManagerConnectionsClient getSubscriptionNetworkManagerConnections() { + return this.subscriptionNetworkManagerConnections; + } + + /** + * The AdminRulesClient object to access its operations. + */ + private final AdminRulesClient adminRules; + + /** + * Gets the AdminRulesClient object to access its operations. + * + * @return the AdminRulesClient object. + */ + public AdminRulesClient getAdminRules() { + return this.adminRules; + } + + /** + * The NetworkSecurityPerimeterProfilesClient object to access its operations. + */ + private final NetworkSecurityPerimeterProfilesClient networkSecurityPerimeterProfiles; + + /** + * Gets the NetworkSecurityPerimeterProfilesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterProfilesClient object. + */ + public NetworkSecurityPerimeterProfilesClient getNetworkSecurityPerimeterProfiles() { + return this.networkSecurityPerimeterProfiles; + } + + /** + * The NetworkSecurityPerimeterAccessRulesClient object to access its operations. + */ + private final NetworkSecurityPerimeterAccessRulesClient networkSecurityPerimeterAccessRules; + + /** + * Gets the NetworkSecurityPerimeterAccessRulesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterAccessRulesClient object. + */ + public NetworkSecurityPerimeterAccessRulesClient getNetworkSecurityPerimeterAccessRules() { + return this.networkSecurityPerimeterAccessRules; + } + + /** + * The NetworkSecurityPerimeterAssociationsClient object to access its operations. + */ + private final NetworkSecurityPerimeterAssociationsClient networkSecurityPerimeterAssociations; + + /** + * Gets the NetworkSecurityPerimeterAssociationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterAssociationsClient object. + */ + public NetworkSecurityPerimeterAssociationsClient getNetworkSecurityPerimeterAssociations() { + return this.networkSecurityPerimeterAssociations; + } + + /** + * The NetworkSecurityPerimeterLinksClient object to access its operations. + */ + private final NetworkSecurityPerimeterLinksClient networkSecurityPerimeterLinks; + + /** + * Gets the NetworkSecurityPerimeterLinksClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLinksClient object. + */ + public NetworkSecurityPerimeterLinksClient getNetworkSecurityPerimeterLinks() { + return this.networkSecurityPerimeterLinks; + } + + /** + * The NetworkSecurityPerimeterLinkReferencesClient object to access its operations. + */ + private final NetworkSecurityPerimeterLinkReferencesClient networkSecurityPerimeterLinkReferences; + + /** + * Gets the NetworkSecurityPerimeterLinkReferencesClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLinkReferencesClient object. + */ + public NetworkSecurityPerimeterLinkReferencesClient getNetworkSecurityPerimeterLinkReferences() { + return this.networkSecurityPerimeterLinkReferences; + } + + /** + * The NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. + */ + private final NetworkSecurityPerimeterLoggingConfigurationsClient networkSecurityPerimeterLoggingConfigurations; + + /** + * Gets the NetworkSecurityPerimeterLoggingConfigurationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterLoggingConfigurationsClient object. + */ + public NetworkSecurityPerimeterLoggingConfigurationsClient getNetworkSecurityPerimeterLoggingConfigurations() { + return this.networkSecurityPerimeterLoggingConfigurations; + } + + /** + * The VirtualApplianceSkusClient object to access its operations. + */ + private final VirtualApplianceSkusClient virtualApplianceSkus; + + /** + * Gets the VirtualApplianceSkusClient object to access its operations. + * + * @return the VirtualApplianceSkusClient object. + */ + public VirtualApplianceSkusClient getVirtualApplianceSkus() { + return this.virtualApplianceSkus; + } + + /** + * The InboundSecurityRuleOperationsClient object to access its operations. + */ + private final InboundSecurityRuleOperationsClient inboundSecurityRuleOperations; + + /** + * Gets the InboundSecurityRuleOperationsClient object to access its operations. + * + * @return the InboundSecurityRuleOperationsClient object. + */ + public InboundSecurityRuleOperationsClient getInboundSecurityRuleOperations() { + return this.inboundSecurityRuleOperations; + } + + /** + * The PacketCapturesClient object to access its operations. + */ + private final PacketCapturesClient packetCaptures; + + /** + * Gets the PacketCapturesClient object to access its operations. + * + * @return the PacketCapturesClient object. + */ + public PacketCapturesClient getPacketCaptures() { + return this.packetCaptures; + } + + /** + * The ConnectionMonitorsClient object to access its operations. + */ + private final ConnectionMonitorsClient connectionMonitors; + + /** + * Gets the ConnectionMonitorsClient object to access its operations. + * + * @return the ConnectionMonitorsClient object. + */ + public ConnectionMonitorsClient getConnectionMonitors() { + return this.connectionMonitors; + } + + /** + * The PrivateDnsZoneGroupsClient object to access its operations. + */ + private final PrivateDnsZoneGroupsClient privateDnsZoneGroups; + + /** + * Gets the PrivateDnsZoneGroupsClient object to access its operations. + * + * @return the PrivateDnsZoneGroupsClient object. + */ + public PrivateDnsZoneGroupsClient getPrivateDnsZoneGroups() { + return this.privateDnsZoneGroups; + } + + /** + * The RouteFilterRulesClient object to access its operations. + */ + private final RouteFilterRulesClient routeFilterRules; + + /** + * Gets the RouteFilterRulesClient object to access its operations. + * + * @return the RouteFilterRulesClient object. + */ + public RouteFilterRulesClient getRouteFilterRules() { + return this.routeFilterRules; + } + + /** + * The ResourceNavigationLinksClient object to access its operations. + */ + private final ResourceNavigationLinksClient resourceNavigationLinks; + + /** + * Gets the ResourceNavigationLinksClient object to access its operations. + * + * @return the ResourceNavigationLinksClient object. + */ + public ResourceNavigationLinksClient getResourceNavigationLinks() { + return this.resourceNavigationLinks; + } + + /** + * The ServiceAssociationLinksClient object to access its operations. + */ + private final ServiceAssociationLinksClient serviceAssociationLinks; + + /** + * Gets the ServiceAssociationLinksClient object to access its operations. + * + * @return the ServiceAssociationLinksClient object. + */ + public ServiceAssociationLinksClient getServiceAssociationLinks() { + return this.serviceAssociationLinks; + } + + /** + * The VpnSitesConfigurationsClient object to access its operations. + */ + private final VpnSitesConfigurationsClient vpnSitesConfigurations; + + /** + * Gets the VpnSitesConfigurationsClient object to access its operations. + * + * @return the VpnSitesConfigurationsClient object. + */ + public VpnSitesConfigurationsClient getVpnSitesConfigurations() { + return this.vpnSitesConfigurations; + } + + /** + * The VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + */ + private final VpnServerConfigurationsAssociatedWithVirtualWansClient vpnServerConfigurationsAssociatedWithVirtualWans; + + /** + * Gets the VpnServerConfigurationsAssociatedWithVirtualWansClient object to access its operations. + * + * @return the VpnServerConfigurationsAssociatedWithVirtualWansClient object. + */ + public VpnServerConfigurationsAssociatedWithVirtualWansClient + getVpnServerConfigurationsAssociatedWithVirtualWans() { + return this.vpnServerConfigurationsAssociatedWithVirtualWans; + } + + /** + * The ConfigurationPolicyGroupsClient object to access its operations. + */ + private final ConfigurationPolicyGroupsClient configurationPolicyGroups; + + /** + * Gets the ConfigurationPolicyGroupsClient object to access its operations. + * + * @return the ConfigurationPolicyGroupsClient object. + */ + public ConfigurationPolicyGroupsClient getConfigurationPolicyGroups() { + return this.configurationPolicyGroups; + } + + /** + * The HubVirtualNetworkConnectionsClient object to access its operations. + */ + private final HubVirtualNetworkConnectionsClient hubVirtualNetworkConnections; + + /** + * Gets the HubVirtualNetworkConnectionsClient object to access its operations. + * + * @return the HubVirtualNetworkConnectionsClient object. + */ + public HubVirtualNetworkConnectionsClient getHubVirtualNetworkConnections() { + return this.hubVirtualNetworkConnections; + } + + /** + * The VirtualHubRouteTableV2SClient object to access its operations. + */ + private final VirtualHubRouteTableV2SClient virtualHubRouteTableV2S; + + /** + * Gets the VirtualHubRouteTableV2SClient object to access its operations. + * + * @return the VirtualHubRouteTableV2SClient object. + */ + public VirtualHubRouteTableV2SClient getVirtualHubRouteTableV2S() { + return this.virtualHubRouteTableV2S; + } + + /** + * The VpnConnectionsClient object to access its operations. + */ + private final VpnConnectionsClient vpnConnections; + + /** + * Gets the VpnConnectionsClient object to access its operations. + * + * @return the VpnConnectionsClient object. + */ + public VpnConnectionsClient getVpnConnections() { + return this.vpnConnections; + } + + /** + * The VpnLinkConnectionsClient object to access its operations. + */ + private final VpnLinkConnectionsClient vpnLinkConnections; + + /** + * Gets the VpnLinkConnectionsClient object to access its operations. + * + * @return the VpnLinkConnectionsClient object. + */ + public VpnLinkConnectionsClient getVpnLinkConnections() { + return this.vpnLinkConnections; + } + + /** + * The NatRulesClient object to access its operations. + */ + private final NatRulesClient natRules; + + /** + * Gets the NatRulesClient object to access its operations. + * + * @return the NatRulesClient object. + */ + public NatRulesClient getNatRules() { + return this.natRules; + } + + /** + * The ExpressRouteConnectionsClient object to access its operations. + */ + private final ExpressRouteConnectionsClient expressRouteConnections; + + /** + * Gets the ExpressRouteConnectionsClient object to access its operations. + * + * @return the ExpressRouteConnectionsClient object. + */ + public ExpressRouteConnectionsClient getExpressRouteConnections() { + return this.expressRouteConnections; + } + + /** + * The VirtualHubBgpConnectionsClient object to access its operations. + */ + private final VirtualHubBgpConnectionsClient virtualHubBgpConnections; + + /** + * Gets the VirtualHubBgpConnectionsClient object to access its operations. + * + * @return the VirtualHubBgpConnectionsClient object. + */ + public VirtualHubBgpConnectionsClient getVirtualHubBgpConnections() { + return this.virtualHubBgpConnections; + } + + /** + * The VirtualHubIpConfigurationsClient object to access its operations. + */ + private final VirtualHubIpConfigurationsClient virtualHubIpConfigurations; + + /** + * Gets the VirtualHubIpConfigurationsClient object to access its operations. + * + * @return the VirtualHubIpConfigurationsClient object. + */ + public VirtualHubIpConfigurationsClient getVirtualHubIpConfigurations() { + return this.virtualHubIpConfigurations; + } + + /** + * The RoutingIntentsClient object to access its operations. + */ + private final RoutingIntentsClient routingIntents; + + /** + * Gets the RoutingIntentsClient object to access its operations. + * + * @return the RoutingIntentsClient object. + */ + public RoutingIntentsClient getRoutingIntents() { + return this.routingIntents; + } + + /** + * The AvailableDelegationsClient object to access its operations. + */ + private final AvailableDelegationsClient availableDelegations; + + /** + * Gets the AvailableDelegationsClient object to access its operations. + * + * @return the AvailableDelegationsClient object. + */ + public AvailableDelegationsClient getAvailableDelegations() { + return this.availableDelegations; + } + + /** + * The AvailableResourceGroupDelegationsClient object to access its operations. + */ + private final AvailableResourceGroupDelegationsClient availableResourceGroupDelegations; + + /** + * Gets the AvailableResourceGroupDelegationsClient object to access its operations. + * + * @return the AvailableResourceGroupDelegationsClient object. + */ + public AvailableResourceGroupDelegationsClient getAvailableResourceGroupDelegations() { + return this.availableResourceGroupDelegations; + } + + /** + * The AvailableServiceAliasesClient object to access its operations. + */ + private final AvailableServiceAliasesClient availableServiceAliases; + + /** + * Gets the AvailableServiceAliasesClient object to access its operations. + * + * @return the AvailableServiceAliasesClient object. + */ + public AvailableServiceAliasesClient getAvailableServiceAliases() { + return this.availableServiceAliases; + } + + /** + * The AzureFirewallFqdnTagsClient object to access its operations. + */ + private final AzureFirewallFqdnTagsClient azureFirewallFqdnTags; + + /** + * Gets the AzureFirewallFqdnTagsClient object to access its operations. + * + * @return the AzureFirewallFqdnTagsClient object. + */ + public AzureFirewallFqdnTagsClient getAzureFirewallFqdnTags() { + return this.azureFirewallFqdnTags; + } + + /** + * The AvailableEndpointServicesClient object to access its operations. + */ + private final AvailableEndpointServicesClient availableEndpointServices; + + /** + * Gets the AvailableEndpointServicesClient object to access its operations. + * + * @return the AvailableEndpointServicesClient object. + */ + public AvailableEndpointServicesClient getAvailableEndpointServices() { + return this.availableEndpointServices; + } + + /** + * The ExpressRouteServiceProvidersClient object to access its operations. + */ + private final ExpressRouteServiceProvidersClient expressRouteServiceProviders; + + /** + * Gets the ExpressRouteServiceProvidersClient object to access its operations. + * + * @return the ExpressRouteServiceProvidersClient object. + */ + public ExpressRouteServiceProvidersClient getExpressRouteServiceProviders() { + return this.expressRouteServiceProviders; + } + + /** + * The NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. + */ + private final NetworkSecurityPerimeterAssociableResourceTypesClient networkSecurityPerimeterAssociableResourceTypes; + + /** + * Gets the NetworkSecurityPerimeterAssociableResourceTypesClient object to access its operations. * - * @return the ExpressRouteGatewaysClient object. + * @return the NetworkSecurityPerimeterAssociableResourceTypesClient object. */ - public ExpressRouteGatewaysClient getExpressRouteGateways() { - return this.expressRouteGateways; + public NetworkSecurityPerimeterAssociableResourceTypesClient getNetworkSecurityPerimeterAssociableResourceTypes() { + return this.networkSecurityPerimeterAssociableResourceTypes; } /** - * The ExpressRouteConnectionsClient object to access its operations. + * The NetworkSecurityPerimeterOperationStatusesClient object to access its operations. */ - private final ExpressRouteConnectionsClient expressRouteConnections; + private final NetworkSecurityPerimeterOperationStatusesClient networkSecurityPerimeterOperationStatuses; /** - * Gets the ExpressRouteConnectionsClient object to access its operations. + * Gets the NetworkSecurityPerimeterOperationStatusesClient object to access its operations. * - * @return the ExpressRouteConnectionsClient object. + * @return the NetworkSecurityPerimeterOperationStatusesClient object. */ - public ExpressRouteConnectionsClient getExpressRouteConnections() { - return this.expressRouteConnections; + public NetworkSecurityPerimeterOperationStatusesClient getNetworkSecurityPerimeterOperationStatuses() { + return this.networkSecurityPerimeterOperationStatuses; } /** - * The NetworkVirtualApplianceConnectionsClient object to access its operations. + * The NetworkSecurityPerimeterServiceTagsClient object to access its operations. */ - private final NetworkVirtualApplianceConnectionsClient networkVirtualApplianceConnections; + private final NetworkSecurityPerimeterServiceTagsClient networkSecurityPerimeterServiceTags; /** - * Gets the NetworkVirtualApplianceConnectionsClient object to access its operations. + * Gets the NetworkSecurityPerimeterServiceTagsClient object to access its operations. * - * @return the NetworkVirtualApplianceConnectionsClient object. + * @return the NetworkSecurityPerimeterServiceTagsClient object. */ - public NetworkVirtualApplianceConnectionsClient getNetworkVirtualApplianceConnections() { - return this.networkVirtualApplianceConnections; + public NetworkSecurityPerimeterServiceTagsClient getNetworkSecurityPerimeterServiceTags() { + return this.networkSecurityPerimeterServiceTags; } /** - * The VirtualHubBgpConnectionsClient object to access its operations. + * The AvailablePrivateEndpointTypesClient object to access its operations. */ - private final VirtualHubBgpConnectionsClient virtualHubBgpConnections; + private final AvailablePrivateEndpointTypesClient availablePrivateEndpointTypes; /** - * Gets the VirtualHubBgpConnectionsClient object to access its operations. + * Gets the AvailablePrivateEndpointTypesClient object to access its operations. * - * @return the VirtualHubBgpConnectionsClient object. + * @return the AvailablePrivateEndpointTypesClient object. */ - public VirtualHubBgpConnectionsClient getVirtualHubBgpConnections() { - return this.virtualHubBgpConnections; + public AvailablePrivateEndpointTypesClient getAvailablePrivateEndpointTypes() { + return this.availablePrivateEndpointTypes; } /** - * The VirtualHubIpConfigurationsClient object to access its operations. + * The BgpServiceCommunitiesClient object to access its operations. */ - private final VirtualHubIpConfigurationsClient virtualHubIpConfigurations; + private final BgpServiceCommunitiesClient bgpServiceCommunities; /** - * Gets the VirtualHubIpConfigurationsClient object to access its operations. + * Gets the BgpServiceCommunitiesClient object to access its operations. * - * @return the VirtualHubIpConfigurationsClient object. + * @return the BgpServiceCommunitiesClient object. */ - public VirtualHubIpConfigurationsClient getVirtualHubIpConfigurations() { - return this.virtualHubIpConfigurations; + public BgpServiceCommunitiesClient getBgpServiceCommunities() { + return this.bgpServiceCommunities; } /** - * The HubRouteTablesClient object to access its operations. + * The ServiceTagsClient object to access its operations. */ - private final HubRouteTablesClient hubRouteTables; + private final ServiceTagsClient serviceTags; /** - * Gets the HubRouteTablesClient object to access its operations. + * Gets the ServiceTagsClient object to access its operations. * - * @return the HubRouteTablesClient object. + * @return the ServiceTagsClient object. */ - public HubRouteTablesClient getHubRouteTables() { - return this.hubRouteTables; + public ServiceTagsClient getServiceTags() { + return this.serviceTags; } /** - * The RoutingIntentsClient object to access its operations. + * The ServiceTagInformationsClient object to access its operations. */ - private final RoutingIntentsClient routingIntents; + private final ServiceTagInformationsClient serviceTagInformations; /** - * Gets the RoutingIntentsClient object to access its operations. + * Gets the ServiceTagInformationsClient object to access its operations. * - * @return the RoutingIntentsClient object. + * @return the ServiceTagInformationsClient object. */ - public RoutingIntentsClient getRoutingIntents() { - return this.routingIntents; + public ServiceTagInformationsClient getServiceTagInformations() { + return this.serviceTagInformations; } /** - * The WebApplicationFirewallPoliciesClient object to access its operations. + * The UsagesClient object to access its operations. */ - private final WebApplicationFirewallPoliciesClient webApplicationFirewallPolicies; + private final UsagesClient usages; /** - * Gets the WebApplicationFirewallPoliciesClient object to access its operations. + * Gets the UsagesClient object to access its operations. * - * @return the WebApplicationFirewallPoliciesClient object. + * @return the UsagesClient object. */ - public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() { - return this.webApplicationFirewallPolicies; + public UsagesClient getUsages() { + return this.usages; } /** @@ -2506,82 +2504,53 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure subscription. The - * subscription ID forms part of the URI for every service call. - * @param endpoint server parameter. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ NetworkManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { super(httpPipeline, serializerAdapter, environment); this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; + this.subscriptionId = subscriptionId; + this.operations = new OperationsClientImpl(this); this.applicationGateways = new ApplicationGatewaysClientImpl(this); - this.applicationGatewayPrivateLinkResources = new ApplicationGatewayPrivateLinkResourcesClientImpl(this); this.applicationGatewayPrivateEndpointConnections = new ApplicationGatewayPrivateEndpointConnectionsClientImpl(this); - this.applicationGatewayWafDynamicManifestsDefaults - = new ApplicationGatewayWafDynamicManifestsDefaultsClientImpl(this); - this.applicationGatewayWafDynamicManifests = new ApplicationGatewayWafDynamicManifestsClientImpl(this); this.applicationSecurityGroups = new ApplicationSecurityGroupsClientImpl(this); - this.availableDelegations = new AvailableDelegationsClientImpl(this); - this.availableResourceGroupDelegations = new AvailableResourceGroupDelegationsClientImpl(this); - this.availableServiceAliases = new AvailableServiceAliasesClientImpl(this); this.azureFirewalls = new AzureFirewallsClientImpl(this); - this.azureFirewallFqdnTags = new AzureFirewallFqdnTagsClientImpl(this); - this.webCategories = new WebCategoriesClientImpl(this); this.bastionHosts = new BastionHostsClientImpl(this); this.networkInterfaces = new NetworkInterfacesClientImpl(this); this.publicIpAddresses = new PublicIpAddressesClientImpl(this); - this.vipSwaps = new VipSwapsClientImpl(this); this.customIpPrefixes = new CustomIpPrefixesClientImpl(this); this.ddosCustomPolicies = new DdosCustomPoliciesClientImpl(this); this.ddosProtectionPlans = new DdosProtectionPlansClientImpl(this); - this.dscpConfigurations = new DscpConfigurationsClientImpl(this); - this.availableEndpointServices = new AvailableEndpointServicesClientImpl(this); this.expressRouteCircuitAuthorizations = new ExpressRouteCircuitAuthorizationsClientImpl(this); + this.expressRouteCircuits = new ExpressRouteCircuitsClientImpl(this); this.expressRouteCircuitPeerings = new ExpressRouteCircuitPeeringsClientImpl(this); this.expressRouteCircuitConnections = new ExpressRouteCircuitConnectionsClientImpl(this); this.peerExpressRouteCircuitConnections = new PeerExpressRouteCircuitConnectionsClientImpl(this); - this.expressRouteCircuits = new ExpressRouteCircuitsClientImpl(this); - this.expressRouteServiceProviders = new ExpressRouteServiceProvidersClientImpl(this); this.expressRouteCrossConnections = new ExpressRouteCrossConnectionsClientImpl(this); - this.expressRouteCrossConnectionPeerings = new ExpressRouteCrossConnectionPeeringsClientImpl(this); this.expressRoutePortsLocations = new ExpressRoutePortsLocationsClientImpl(this); this.expressRoutePorts = new ExpressRoutePortsClientImpl(this); - this.expressRouteLinks = new ExpressRouteLinksClientImpl(this); this.expressRoutePortAuthorizations = new ExpressRoutePortAuthorizationsClientImpl(this); - this.expressRouteProviderPortsLocations = new ExpressRouteProviderPortsLocationsClientImpl(this); this.firewallPolicies = new FirewallPoliciesClientImpl(this); this.firewallPolicyRuleCollectionGroups = new FirewallPolicyRuleCollectionGroupsClientImpl(this); - this.firewallPolicyIdpsSignatures = new FirewallPolicyIdpsSignaturesClientImpl(this); this.firewallPolicyIdpsSignaturesOverrides = new FirewallPolicyIdpsSignaturesOverridesClientImpl(this); - this.firewallPolicyIdpsSignaturesFilterValues = new FirewallPolicyIdpsSignaturesFilterValuesClientImpl(this); this.firewallPolicyDrafts = new FirewallPolicyDraftsClientImpl(this); - this.firewallPolicyDeployments = new FirewallPolicyDeploymentsClientImpl(this); this.firewallPolicyRuleCollectionGroupDrafts = new FirewallPolicyRuleCollectionGroupDraftsClientImpl(this); this.ipamPools = new IpamPoolsClientImpl(this); + this.networkManagers = new NetworkManagersClientImpl(this); this.staticCidrs = new StaticCidrsClientImpl(this); this.ipAllocations = new IpAllocationsClientImpl(this); this.ipGroups = new IpGroupsClientImpl(this); this.loadBalancers = new LoadBalancersClientImpl(this); - this.loadBalancerBackendAddressPools = new LoadBalancerBackendAddressPoolsClientImpl(this); - this.loadBalancerFrontendIpConfigurations = new LoadBalancerFrontendIpConfigurationsClientImpl(this); this.inboundNatRules = new InboundNatRulesClientImpl(this); - this.loadBalancerLoadBalancingRules = new LoadBalancerLoadBalancingRulesClientImpl(this); - this.loadBalancerOutboundRules = new LoadBalancerOutboundRulesClientImpl(this); - this.loadBalancerNetworkInterfaces = new LoadBalancerNetworkInterfacesClientImpl(this); - this.loadBalancerProbes = new LoadBalancerProbesClientImpl(this); this.natGateways = new NatGatewaysClientImpl(this); this.networkInterfaceIpConfigurations = new NetworkInterfaceIpConfigurationsClientImpl(this); - this.networkInterfaceLoadBalancers = new NetworkInterfaceLoadBalancersClientImpl(this); this.networkInterfaceTapConfigurations = new NetworkInterfaceTapConfigurationsClientImpl(this); - this.networkManagers = new NetworkManagersClientImpl(this); - this.networkManagerCommits = new NetworkManagerCommitsClientImpl(this); - this.networkManagerDeploymentStatusOperations = new NetworkManagerDeploymentStatusOperationsClientImpl(this); - this.subscriptionNetworkManagerConnections = new SubscriptionNetworkManagerConnectionsClientImpl(this); this.managementGroupNetworkManagerConnections = new ManagementGroupNetworkManagerConnectionsClientImpl(this); this.connectivityConfigurations = new ConnectivityConfigurationsClientImpl(this); this.networkGroups = new NetworkGroupsClientImpl(this); @@ -2592,7 +2561,6 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() this.scopeConnections = new ScopeConnectionsClientImpl(this); this.securityAdminConfigurations = new SecurityAdminConfigurationsClientImpl(this); this.adminRuleCollections = new AdminRuleCollectionsClientImpl(this); - this.adminRules = new AdminRulesClientImpl(this); this.securityUserConfigurations = new SecurityUserConfigurationsClientImpl(this); this.securityUserRuleCollections = new SecurityUserRuleCollectionsClientImpl(this); this.securityUserRules = new SecurityUserRulesClientImpl(this); @@ -2601,52 +2569,26 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() this.securityRules = new SecurityRulesClientImpl(this); this.defaultSecurityRules = new DefaultSecurityRulesClientImpl(this); this.networkSecurityPerimeters = new NetworkSecurityPerimetersClientImpl(this); - this.networkSecurityPerimeterProfiles = new NetworkSecurityPerimeterProfilesClientImpl(this); - this.networkSecurityPerimeterAccessRules = new NetworkSecurityPerimeterAccessRulesClientImpl(this); - this.networkSecurityPerimeterAssociations = new NetworkSecurityPerimeterAssociationsClientImpl(this); - this.networkSecurityPerimeterAssociableResourceTypes - = new NetworkSecurityPerimeterAssociableResourceTypesClientImpl(this); - this.networkSecurityPerimeterLinks = new NetworkSecurityPerimeterLinksClientImpl(this); - this.networkSecurityPerimeterLinkReferences = new NetworkSecurityPerimeterLinkReferencesClientImpl(this); - this.networkSecurityPerimeterLoggingConfigurations - = new NetworkSecurityPerimeterLoggingConfigurationsClientImpl(this); - this.networkSecurityPerimeterOperationStatuses = new NetworkSecurityPerimeterOperationStatusesClientImpl(this); - this.networkSecurityPerimeterServiceTags = new NetworkSecurityPerimeterServiceTagsClientImpl(this); this.reachabilityAnalysisIntents = new ReachabilityAnalysisIntentsClientImpl(this); - this.reachabilityAnalysisRuns = new ReachabilityAnalysisRunsClientImpl(this); this.verifierWorkspaces = new VerifierWorkspacesClientImpl(this); + this.reachabilityAnalysisRuns = new ReachabilityAnalysisRunsClientImpl(this); + this.networkVirtualApplianceConnections = new NetworkVirtualApplianceConnectionsClientImpl(this); this.networkVirtualAppliances = new NetworkVirtualAppliancesClientImpl(this); this.virtualApplianceSites = new VirtualApplianceSitesClientImpl(this); - this.virtualApplianceSkus = new VirtualApplianceSkusClientImpl(this); - this.inboundSecurityRuleOperations = new InboundSecurityRuleOperationsClientImpl(this); this.networkWatchers = new NetworkWatchersClientImpl(this); - this.packetCaptures = new PacketCapturesClientImpl(this); - this.connectionMonitors = new ConnectionMonitorsClientImpl(this); this.flowLogs = new FlowLogsClientImpl(this); - this.operations = new OperationsClientImpl(this); this.privateEndpoints = new PrivateEndpointsClientImpl(this); - this.availablePrivateEndpointTypes = new AvailablePrivateEndpointTypesClientImpl(this); - this.privateDnsZoneGroups = new PrivateDnsZoneGroupsClientImpl(this); this.privateLinkServices = new PrivateLinkServicesClientImpl(this); this.publicIpPrefixes = new PublicIpPrefixesClientImpl(this); this.routeFilters = new RouteFiltersClientImpl(this); - this.routeFilterRules = new RouteFilterRulesClientImpl(this); this.routeTables = new RouteTablesClientImpl(this); this.routes = new RoutesClientImpl(this); this.securityPartnerProviders = new SecurityPartnerProvidersClientImpl(this); - this.bgpServiceCommunities = new BgpServiceCommunitiesClientImpl(this); this.serviceEndpointPolicies = new ServiceEndpointPoliciesClientImpl(this); this.serviceEndpointPolicyDefinitions = new ServiceEndpointPolicyDefinitionsClientImpl(this); - this.serviceGateways = new ServiceGatewaysClientImpl(this); - this.serviceTags = new ServiceTagsClientImpl(this); - this.serviceTagInformations = new ServiceTagInformationsClientImpl(this); - this.usages = new UsagesClientImpl(this); this.virtualNetworks = new VirtualNetworksClientImpl(this); this.subnets = new SubnetsClientImpl(this); - this.resourceNavigationLinks = new ResourceNavigationLinksClientImpl(this); - this.serviceAssociationLinks = new ServiceAssociationLinksClientImpl(this); this.virtualNetworkPeerings = new VirtualNetworkPeeringsClientImpl(this); - this.virtualNetworkAppliances = new VirtualNetworkAppliancesClientImpl(this); this.virtualNetworkGateways = new VirtualNetworkGatewaysClientImpl(this); this.virtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionsClientImpl(this); this.localNetworkGateways = new LocalNetworkGatewaysClientImpl(this); @@ -2657,29 +2599,84 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() this.virtualWans = new VirtualWansClientImpl(this); this.vpnSites = new VpnSitesClientImpl(this); this.vpnSiteLinks = new VpnSiteLinksClientImpl(this); - this.vpnSitesConfigurations = new VpnSitesConfigurationsClientImpl(this); this.vpnServerConfigurations = new VpnServerConfigurationsClientImpl(this); - this.configurationPolicyGroups = new ConfigurationPolicyGroupsClientImpl(this); this.virtualHubs = new VirtualHubsClientImpl(this); this.routeMaps = new RouteMapsClientImpl(this); - this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsClientImpl(this); this.vpnGateways = new VpnGatewaysClientImpl(this); - this.vpnLinkConnections = new VpnLinkConnectionsClientImpl(this); - this.vpnConnections = new VpnConnectionsClientImpl(this); this.vpnSiteLinkConnections = new VpnSiteLinkConnectionsClientImpl(this); - this.natRules = new NatRulesClientImpl(this); this.p2SVpnGateways = new P2SVpnGatewaysClientImpl(this); + this.expressRouteGateways = new ExpressRouteGatewaysClientImpl(this); + this.hubRouteTables = new HubRouteTablesClientImpl(this); + this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesClientImpl(this); + this.virtualNetworkAppliances = new VirtualNetworkAppliancesClientImpl(this); + this.serviceGateways = new ServiceGatewaysClientImpl(this); + this.applicationGatewayPrivateLinkResources = new ApplicationGatewayPrivateLinkResourcesClientImpl(this); + this.applicationGatewayWafDynamicManifestsDefaults + = new ApplicationGatewayWafDynamicManifestsDefaultsClientImpl(this); + this.applicationGatewayWafDynamicManifests = new ApplicationGatewayWafDynamicManifestsClientImpl(this); + this.webCategories = new WebCategoriesClientImpl(this); + this.expressRouteProviderPortsLocations = new ExpressRouteProviderPortsLocationsClientImpl(this); + this.networkInterfaceLoadBalancers = new NetworkInterfaceLoadBalancersClientImpl(this); + this.vipSwaps = new VipSwapsClientImpl(this); + this.dscpConfigurations = new DscpConfigurationsClientImpl(this); + this.expressRouteCrossConnectionPeerings = new ExpressRouteCrossConnectionPeeringsClientImpl(this); + this.expressRouteLinks = new ExpressRouteLinksClientImpl(this); + this.firewallPolicyIdpsSignatures = new FirewallPolicyIdpsSignaturesClientImpl(this); + this.firewallPolicyIdpsSignaturesFilterValues = new FirewallPolicyIdpsSignaturesFilterValuesClientImpl(this); + this.firewallPolicyDeployments = new FirewallPolicyDeploymentsClientImpl(this); + this.networkManagerCommits = new NetworkManagerCommitsClientImpl(this); + this.networkManagerDeploymentStatusOperations = new NetworkManagerDeploymentStatusOperationsClientImpl(this); + this.loadBalancerNetworkInterfaces = new LoadBalancerNetworkInterfacesClientImpl(this); + this.loadBalancerBackendAddressPools = new LoadBalancerBackendAddressPoolsClientImpl(this); + this.loadBalancerFrontendIpConfigurations = new LoadBalancerFrontendIpConfigurationsClientImpl(this); + this.loadBalancerLoadBalancingRules = new LoadBalancerLoadBalancingRulesClientImpl(this); + this.loadBalancerOutboundRules = new LoadBalancerOutboundRulesClientImpl(this); + this.loadBalancerProbes = new LoadBalancerProbesClientImpl(this); + this.subscriptionNetworkManagerConnections = new SubscriptionNetworkManagerConnectionsClientImpl(this); + this.adminRules = new AdminRulesClientImpl(this); + this.networkSecurityPerimeterProfiles = new NetworkSecurityPerimeterProfilesClientImpl(this); + this.networkSecurityPerimeterAccessRules = new NetworkSecurityPerimeterAccessRulesClientImpl(this); + this.networkSecurityPerimeterAssociations = new NetworkSecurityPerimeterAssociationsClientImpl(this); + this.networkSecurityPerimeterLinks = new NetworkSecurityPerimeterLinksClientImpl(this); + this.networkSecurityPerimeterLinkReferences = new NetworkSecurityPerimeterLinkReferencesClientImpl(this); + this.networkSecurityPerimeterLoggingConfigurations + = new NetworkSecurityPerimeterLoggingConfigurationsClientImpl(this); + this.virtualApplianceSkus = new VirtualApplianceSkusClientImpl(this); + this.inboundSecurityRuleOperations = new InboundSecurityRuleOperationsClientImpl(this); + this.packetCaptures = new PacketCapturesClientImpl(this); + this.connectionMonitors = new ConnectionMonitorsClientImpl(this); + this.privateDnsZoneGroups = new PrivateDnsZoneGroupsClientImpl(this); + this.routeFilterRules = new RouteFilterRulesClientImpl(this); + this.resourceNavigationLinks = new ResourceNavigationLinksClientImpl(this); + this.serviceAssociationLinks = new ServiceAssociationLinksClientImpl(this); + this.vpnSitesConfigurations = new VpnSitesConfigurationsClientImpl(this); this.vpnServerConfigurationsAssociatedWithVirtualWans = new VpnServerConfigurationsAssociatedWithVirtualWansClientImpl(this); + this.configurationPolicyGroups = new ConfigurationPolicyGroupsClientImpl(this); + this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsClientImpl(this); this.virtualHubRouteTableV2S = new VirtualHubRouteTableV2SClientImpl(this); - this.expressRouteGateways = new ExpressRouteGatewaysClientImpl(this); + this.vpnConnections = new VpnConnectionsClientImpl(this); + this.vpnLinkConnections = new VpnLinkConnectionsClientImpl(this); + this.natRules = new NatRulesClientImpl(this); this.expressRouteConnections = new ExpressRouteConnectionsClientImpl(this); - this.networkVirtualApplianceConnections = new NetworkVirtualApplianceConnectionsClientImpl(this); this.virtualHubBgpConnections = new VirtualHubBgpConnectionsClientImpl(this); this.virtualHubIpConfigurations = new VirtualHubIpConfigurationsClientImpl(this); - this.hubRouteTables = new HubRouteTablesClientImpl(this); this.routingIntents = new RoutingIntentsClientImpl(this); - this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesClientImpl(this); + this.availableDelegations = new AvailableDelegationsClientImpl(this); + this.availableResourceGroupDelegations = new AvailableResourceGroupDelegationsClientImpl(this); + this.availableServiceAliases = new AvailableServiceAliasesClientImpl(this); + this.azureFirewallFqdnTags = new AzureFirewallFqdnTagsClientImpl(this); + this.availableEndpointServices = new AvailableEndpointServicesClientImpl(this); + this.expressRouteServiceProviders = new ExpressRouteServiceProvidersClientImpl(this); + this.networkSecurityPerimeterAssociableResourceTypes + = new NetworkSecurityPerimeterAssociableResourceTypesClientImpl(this); + this.networkSecurityPerimeterOperationStatuses = new NetworkSecurityPerimeterOperationStatusesClientImpl(this); + this.networkSecurityPerimeterServiceTags = new NetworkSecurityPerimeterServiceTagsClientImpl(this); + this.availablePrivateEndpointTypes = new AvailablePrivateEndpointTypesClientImpl(this); + this.bgpServiceCommunities = new BgpServiceCommunitiesClientImpl(this); + this.serviceTags = new ServiceTagsClientImpl(this); + this.serviceTagInformations = new ServiceTagInformationsClientImpl(this); + this.usages = new UsagesClientImpl(this); this.service = RestProxy.create(NetworkManagementClientService.class, this.httpPipeline, this.getSerializerAdapter()); } @@ -2688,158 +2685,149 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() * The interface defining all the services for NetworkManagementClient to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClient") public interface NetworkManagementClientService { @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> putBastionShareableLink(@HostParam("$host") String endpoint, + Mono>> putBastionShareableLink(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, - @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteBastionShareableLink(@HostParam("$host") String endpoint, + Mono>> deleteBastionShareableLink(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, - @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteBastionShareableLinkByToken(@HostParam("$host") String endpoint, + Mono>> deleteBastionShareableLinkByToken(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BastionShareableLinkTokenListRequest bslTokenRequest, - @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BastionShareableLinkTokenListRequest bslTokenRequest, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getBastionShareableLink(@HostParam("$host") String endpoint, + Mono> getBastionShareableLink(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, - @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BastionShareableLinkListRequest bslRequest, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getActiveSessions(@HostParam("$host") String endpoint, + Mono>> getActiveSessions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> disconnectActiveSessions(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("bastionHostName") String bastionHostname, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") SessionIds sessionIds, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkDnsNameAvailability(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("domainNameLabel") String domainNameLabel, + Mono> disconnectActiveSessions(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("bastionHostName") String bastionHostName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SessionIds sessionIds, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> expressRouteProviderPort(@HostParam("$host") String endpoint, - @PathParam("providerport") String providerport, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> expressRouteProviderPort(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("providerport") String providerport, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listActiveConnectivityConfigurations( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, - @BodyParam("application/json") ActiveConfigurationParameter parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ActiveConfigurationParameter parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listActiveSecurityAdminRules( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, - @BodyParam("application/json") ActiveConfigurationParameter parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ActiveConfigurationParameter parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> - listNetworkManagerEffectiveConnectivityConfigurations(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + listNetworkManagerEffectiveConnectivityConfigurations(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @BodyParam("application/json") QueryRequestOptions parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("$top") Integer top, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") QueryRequestOptions parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> - listNetworkManagerEffectiveSecurityAdminRules(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + listNetworkManagerEffectiveSecurityAdminRules(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @BodyParam("application/json") QueryRequestOptions parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("$top") Integer top, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") QueryRequestOptions parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> supportedSecurityProviders(@HostParam("$host") String endpoint, + Mono> supportedSecurityProviders( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualWANName") String virtualWANName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/generateVpnProfile") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> generatevirtualwanvpnserverconfigurationvpnprofile( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VirtualWanVpnProfileParameters vpnClientParams, + @PathParam("virtualWANName") String virtualWANName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualWanVpnProfileParameters vpnClientParams, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkDnsNameAvailability") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> checkDnsNameAvailability(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @QueryParam("domainNameLabel") String domainNameLabel, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -2847,7 +2835,7 @@ Mono>> generatevirtualwanvpnserverconfigurationvpnprof @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> putBastionShareableLinkNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -2855,7 +2843,7 @@ Mono> putBastionShareableLinkNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getBastionShareableLinkNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -2863,7 +2851,7 @@ Mono> getBastionShareableLinkNext( @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getActiveSessionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -2871,40 +2859,39 @@ Mono> getActiveSessionsNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> disconnectActiveSessionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putBastionShareableLinkSinglePageAsync( - String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -2914,11 +2901,10 @@ private Mono> putBastionShareableLinkSi final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> { - Mono>> mono - = service - .putBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), bslRequest, accept, context) - .cache(); + Mono>> mono = service + .putBastionShareableLink(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, bslRequest, context) + .cache(); return Mono.zip(mono, this.getLroResult(mono, this.getHttpPipeline(), BastionShareableLinkListResult.class, BastionShareableLinkListResult.class, @@ -2933,34 +2919,33 @@ private Mono> putBastionShareableLinkSi /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putBastionShareableLinkSinglePageAsync( - String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -2970,11 +2955,10 @@ private Mono> putBastionShareableLinkSi final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.mergeContext(context); - Mono>> mono - = service - .putBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), bslRequest, accept, context) - .cache(); + Mono>> mono = service + .putBastionShareableLink(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, bslRequest, context) + .cache(); return Mono .zip(mono, this.getLroResult( @@ -2987,83 +2971,83 @@ private Mono> putBastionShareableLinkSi /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux putBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String bastionHostName, BastionShareableLinkListRequest bslRequest) { return new PagedFlux<>( - () -> putBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostname, bslRequest), + () -> putBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostName, bslRequest), nextLink -> putBastionShareableLinkNextSinglePageAsync(nextLink)); } /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux putBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { return new PagedFlux<>( - () -> putBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostname, bslRequest, context), + () -> putBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostName, bslRequest, context), nextLink -> putBastionShareableLinkNextSinglePageAsync(nextLink, context)); } /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable putBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { - return new PagedIterable<>(putBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest)); + String bastionHostName, BastionShareableLinkListRequest bslRequest) { + return new PagedIterable<>(putBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest)); } /** * Creates a Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable putBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { return new PagedIterable<>( - putBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest, context)); + putBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest, context)); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3072,22 +3056,22 @@ public PagedIterable putBastionShareableLink(String r */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteBastionShareableLinkWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String bastionHostName, BastionShareableLinkListRequest bslRequest) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -3095,18 +3079,18 @@ public Mono>> deleteBastionShareableLinkWithResponseAs bslRequest.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.deleteBastionShareableLink(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), bslRequest, accept, context)) + .withContext(context -> service.deleteBastionShareableLink(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, bastionHostName, contentType, bslRequest, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3116,22 +3100,22 @@ public Mono>> deleteBastionShareableLinkWithResponseAs */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteBastionShareableLinkWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -3139,17 +3123,17 @@ private Mono>> deleteBastionShareableLinkWithResponseA bslRequest.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.mergeContext(context); - return service.deleteBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), bslRequest, accept, context); + return service.deleteBastionShareableLink(this.getEndpoint(), apiVersion, this.getSubscriptionId(), + resourceGroupName, bastionHostName, contentType, bslRequest, context); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3158,17 +3142,17 @@ private Mono>> deleteBastionShareableLinkWithResponseA */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String bastionHostName, BastionShareableLinkListRequest bslRequest) { Mono>> mono - = deleteBastionShareableLinkWithResponseAsync(resourceGroupName, bastionHostname, bslRequest); + = deleteBastionShareableLinkWithResponseAsync(resourceGroupName, bastionHostName, bslRequest); return this.getLroResult(mono, this.getHttpPipeline(), Void.class, Void.class, this.getContext()); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3178,18 +3162,18 @@ public PollerFlux, Void> beginDeleteBastionShareableLinkAsync(S */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { context = this.mergeContext(context); Mono>> mono - = deleteBastionShareableLinkWithResponseAsync(resourceGroupName, bastionHostname, bslRequest, context); + = deleteBastionShareableLinkWithResponseAsync(resourceGroupName, bastionHostName, bslRequest, context); return this.getLroResult(mono, this.getHttpPipeline(), Void.class, Void.class, context); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3198,16 +3182,16 @@ private PollerFlux, Void> beginDeleteBastionShareableLinkAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { - return this.beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest) + String bastionHostName, BastionShareableLinkListRequest bslRequest) { + return this.beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest) .getSyncPoller(); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3217,16 +3201,16 @@ public SyncPoller, Void> beginDeleteBastionShareableLink(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { - return this.beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest, context) + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { + return this.beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest, context) .getSyncPoller(); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3234,17 +3218,17 @@ public SyncPoller, Void> beginDeleteBastionShareableLink(String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostname, + public Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest) { - return beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest).last() + return beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest).last() .flatMap(this::getLroFinalResultOrError); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3253,33 +3237,33 @@ public Mono deleteBastionShareableLinkAsync(String resourceGroupName, Stri * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostname, + private Mono deleteBastionShareableLinkAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { - return beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest, context).last() + return beginDeleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest, context).last() .flatMap(this::getLroFinalResultOrError); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteBastionShareableLink(String resourceGroupName, String bastionHostname, + public void deleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest) { - deleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest).block(); + deleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest).block(); } /** * Deletes the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3287,16 +3271,16 @@ public void deleteBastionShareableLink(String resourceGroupName, String bastionH * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteBastionShareableLink(String resourceGroupName, String bastionHostname, + public void deleteBastionShareableLink(String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { - deleteBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest, context).block(); + deleteBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest, context).block(); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3305,22 +3289,22 @@ public void deleteBastionShareableLink(String resourceGroupName, String bastionH */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteBastionShareableLinkByTokenWithResponseAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest) { + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslTokenRequest == null) { return Mono @@ -3329,18 +3313,18 @@ public Mono>> deleteBastionShareableLinkByTokenWithRes bslTokenRequest.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.deleteBastionShareableLinkByToken(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), bslTokenRequest, accept, context)) + .withContext(context -> service.deleteBastionShareableLinkByToken(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, bastionHostName, contentType, bslTokenRequest, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3350,23 +3334,23 @@ public Mono>> deleteBastionShareableLinkByTokenWithRes */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteBastionShareableLinkByTokenWithResponseAsync( - String resourceGroupName, String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest, + String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslTokenRequest == null) { return Mono @@ -3375,17 +3359,17 @@ private Mono>> deleteBastionShareableLinkByTokenWithRe bslTokenRequest.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.mergeContext(context); - return service.deleteBastionShareableLinkByToken(this.getEndpoint(), resourceGroupName, bastionHostname, - apiVersion, this.getSubscriptionId(), bslTokenRequest, accept, context); + return service.deleteBastionShareableLinkByToken(this.getEndpoint(), apiVersion, this.getSubscriptionId(), + resourceGroupName, bastionHostName, contentType, bslTokenRequest, context); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3394,17 +3378,17 @@ private Mono>> deleteBastionShareableLinkByTokenWithRe */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteBastionShareableLinkByTokenAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest) { + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) { Mono>> mono - = deleteBastionShareableLinkByTokenWithResponseAsync(resourceGroupName, bastionHostname, bslTokenRequest); + = deleteBastionShareableLinkByTokenWithResponseAsync(resourceGroupName, bastionHostName, bslTokenRequest); return this.getLroResult(mono, this.getHttpPipeline(), Void.class, Void.class, this.getContext()); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3414,18 +3398,18 @@ public PollerFlux, Void> beginDeleteBastionShareableLinkByToken */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteBastionShareableLinkByTokenAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { context = this.mergeContext(context); Mono>> mono = deleteBastionShareableLinkByTokenWithResponseAsync(resourceGroupName, - bastionHostname, bslTokenRequest, context); + bastionHostName, bslTokenRequest, context); return this.getLroResult(mono, this.getHttpPipeline(), Void.class, Void.class, context); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3434,16 +3418,16 @@ private PollerFlux, Void> beginDeleteBastionShareableLinkByToke */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest) { - return this.beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest) + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) { + return this.beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest) .getSyncPoller(); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3453,17 +3437,17 @@ public SyncPoller, Void> beginDeleteBastionShareableLinkByToken */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteBastionShareableLinkByToken(String resourceGroupName, - String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { + String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { return this - .beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest, context) + .beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest, context) .getSyncPoller(); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3471,17 +3455,17 @@ public SyncPoller, Void> beginDeleteBastionShareableLinkByToken * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostname, + public Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) { - return beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest).last() + return beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest).last() .flatMap(this::getLroFinalResultOrError); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3490,9 +3474,9 @@ public Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupNam * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostname, + private Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { - return beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest, context) + return beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest, context) .last() .flatMap(this::getLroFinalResultOrError); } @@ -3500,24 +3484,24 @@ private Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupNa /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostname, + public void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) { - deleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest).block(); + deleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest).block(); } /** * Deletes the Bastion Shareable Links for all the tokens specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3525,16 +3509,16 @@ public void deleteBastionShareableLinkByToken(String resourceGroupName, String b * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostname, + public void deleteBastionShareableLinkByToken(String resourceGroupName, String bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { - deleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest, context).block(); + deleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest, context).block(); } /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3544,22 +3528,22 @@ public void deleteBastionShareableLinkByToken(String resourceGroupName, String b */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getBastionShareableLinkSinglePageAsync( - String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -3569,8 +3553,8 @@ private Mono> getBastionShareableLinkSi final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getBastionShareableLink(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), bslRequest, accept, context)) + .withContext(context -> service.getBastionShareableLink(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, bastionHostName, accept, bslRequest, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); @@ -3579,8 +3563,8 @@ private Mono> getBastionShareableLinkSi /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3591,22 +3575,22 @@ private Mono> getBastionShareableLinkSi */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getBastionShareableLinkSinglePageAsync( - String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String resourceGroupName, String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } if (bslRequest == null) { return Mono.error(new IllegalArgumentException("Parameter bslRequest is required and cannot be null.")); @@ -3617,8 +3601,8 @@ private Mono> getBastionShareableLinkSi final String accept = "application/json"; context = this.mergeContext(context); return service - .getBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), bslRequest, accept, context) + .getBastionShareableLink(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, bslRequest, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3626,8 +3610,8 @@ private Mono> getBastionShareableLinkSi /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3636,17 +3620,17 @@ private Mono> getBastionShareableLinkSi */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux getBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { + String bastionHostName, BastionShareableLinkListRequest bslRequest) { return new PagedFlux<>( - () -> getBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostname, bslRequest), + () -> getBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostName, bslRequest), nextLink -> getBastionShareableLinkNextSinglePageAsync(nextLink)); } /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3656,17 +3640,17 @@ public PagedFlux getBastionShareableLinkAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getBastionShareableLinkAsync(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { return new PagedFlux<>( - () -> getBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostname, bslRequest, context), + () -> getBastionShareableLinkSinglePageAsync(resourceGroupName, bastionHostName, bslRequest, context), nextLink -> getBastionShareableLinkNextSinglePageAsync(nextLink, context)); } /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3675,15 +3659,15 @@ private PagedFlux getBastionShareableLinkAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest) { - return new PagedIterable<>(getBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest)); + String bastionHostName, BastionShareableLinkListRequest bslRequest) { + return new PagedIterable<>(getBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest)); } /** * Return the Bastion Shareable Links for all the VMs specified in the request. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3693,47 +3677,47 @@ public PagedIterable getBastionShareableLink(String r */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getBastionShareableLink(String resourceGroupName, - String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context) { + String bastionHostName, BastionShareableLinkListRequest bslRequest, Context context) { return new PagedIterable<>( - getBastionShareableLinkAsync(resourceGroupName, bastionHostname, bslRequest, context)); + getBastionShareableLinkAsync(resourceGroupName, bastionHostName, bslRequest, context)); } /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getActiveSessionsSinglePageAsync(String resourceGroupName, - String bastionHostname) { + String bastionHostName) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> { Mono>> mono = service - .getActiveSessions(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), accept, context) + .getActiveSessions(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, context) .cache(); return Mono.zip(mono, this.getLroResult(mono, @@ -3749,40 +3733,40 @@ private Mono> getActiveSessionsSinglePa /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getActiveSessionsSinglePageAsync(String resourceGroupName, - String bastionHostname, Context context) { + String bastionHostName, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (bastionHostname == null) { + if (bastionHostName == null) { return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.mergeContext(context); Mono>> mono = service - .getActiveSessions(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), accept, context) + .getActiveSessions(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, context) .cache(); return Mono .zip(mono, @@ -3796,124 +3780,77 @@ private Mono> getActiveSessionsSinglePa /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux getActiveSessionsAsync(String resourceGroupName, - String bastionHostname) { - return new PagedFlux<>(() -> getActiveSessionsSinglePageAsync(resourceGroupName, bastionHostname), + String bastionHostName) { + return new PagedFlux<>(() -> getActiveSessionsSinglePageAsync(resourceGroupName, bastionHostName), nextLink -> getActiveSessionsNextSinglePageAsync(nextLink)); } /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedFlux}. + * @return the paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux getActiveSessionsAsync(String resourceGroupName, - String bastionHostname, Context context) { - return new PagedFlux<>(() -> getActiveSessionsSinglePageAsync(resourceGroupName, bastionHostname, context), + String bastionHostName, Context context) { + return new PagedFlux<>(() -> getActiveSessionsSinglePageAsync(resourceGroupName, bastionHostName, context), nextLink -> getActiveSessionsNextSinglePageAsync(nextLink, context)); } /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getActiveSessions(String resourceGroupName, - String bastionHostname) { - return new PagedIterable<>(getActiveSessionsAsync(resourceGroupName, bastionHostname)); + String bastionHostName) { + return new PagedIterable<>(getActiveSessionsAsync(resourceGroupName, bastionHostName)); } /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions as paginated response with {@link PagedIterable}. + * @return the paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable getActiveSessions(String resourceGroupName, String bastionHostname, + public PagedIterable getActiveSessions(String resourceGroupName, String bastionHostName, Context context) { - return new PagedIterable<>(getActiveSessionsAsync(resourceGroupName, bastionHostname, context)); - } - - /** - * Returns the list of currently active sessions on the Bastion. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param sessionIds The list of sessionids to disconnect. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for DisconnectActiveSessions along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> disconnectActiveSessionsSinglePageAsync( - String resourceGroupName, String bastionHostname, SessionIds sessionIds) { - if (this.getEndpoint() == null) { - return Mono - .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (bastionHostname == null) { - return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); - } - if (sessionIds == null) { - return Mono.error(new IllegalArgumentException("Parameter sessionIds is required and cannot be null.")); - } else { - sessionIds.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.disconnectActiveSessions(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), sessionIds, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); + return new PagedIterable<>(getActiveSessionsAsync(resourceGroupName, bastionHostName, context)); } /** * Returns the list of currently active sessions on the Bastion. * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. * @param sessionIds The list of sessionids to disconnect. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3922,238 +3859,158 @@ private Mono> disconnectActiveSessionsSi */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disconnectActiveSessionsSinglePageAsync( - String resourceGroupName, String bastionHostname, SessionIds sessionIds, Context context) { - if (this.getEndpoint() == null) { - return Mono - .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (bastionHostname == null) { - return Mono - .error(new IllegalArgumentException("Parameter bastionHostname is required and cannot be null.")); - } - if (this.getSubscriptionId() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); - } - if (sessionIds == null) { - return Mono.error(new IllegalArgumentException("Parameter sessionIds is required and cannot be null.")); - } else { - sessionIds.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.mergeContext(context); - return service - .disconnectActiveSessions(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, - this.getSubscriptionId(), sessionIds, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Returns the list of currently active sessions on the Bastion. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param sessionIds The list of sessionids to disconnect. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for DisconnectActiveSessions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, - String bastionHostname, SessionIds sessionIds) { - return new PagedFlux<>( - () -> disconnectActiveSessionsSinglePageAsync(resourceGroupName, bastionHostname, sessionIds), - nextLink -> disconnectActiveSessionsNextSinglePageAsync(nextLink)); - } - - /** - * Returns the list of currently active sessions on the Bastion. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param sessionIds The list of sessionids to disconnect. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for DisconnectActiveSessions as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, - String bastionHostname, SessionIds sessionIds, Context context) { - return new PagedFlux<>( - () -> disconnectActiveSessionsSinglePageAsync(resourceGroupName, bastionHostname, sessionIds, context), - nextLink -> disconnectActiveSessionsNextSinglePageAsync(nextLink, context)); - } - - /** - * Returns the list of currently active sessions on the Bastion. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param sessionIds The list of sessionids to disconnect. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable disconnectActiveSessions(String resourceGroupName, - String bastionHostname, SessionIds sessionIds) { - return new PagedIterable<>(disconnectActiveSessionsAsync(resourceGroupName, bastionHostname, sessionIds)); - } - - /** - * Returns the list of currently active sessions on the Bastion. - * - * @param resourceGroupName The name of the resource group. - * @param bastionHostname The name of the Bastion Host. - * @param sessionIds The list of sessionids to disconnect. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable disconnectActiveSessions(String resourceGroupName, - String bastionHostname, SessionIds sessionIds, Context context) { - return new PagedIterable<>( - disconnectActiveSessionsAsync(resourceGroupName, bastionHostname, sessionIds, context)); - } - - /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> checkDnsNameAvailabilityWithResponseAsync(String location, - String domainNameLabel) { + String resourceGroupName, String bastionHostName, SessionIds sessionIds) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (domainNameLabel == null) { - return Mono - .error(new IllegalArgumentException("Parameter domainNameLabel is required and cannot be null.")); - } if (this.getSubscriptionId() == null) { return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (bastionHostName == null) { + return Mono + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); + } + if (sessionIds == null) { + return Mono.error(new IllegalArgumentException("Parameter sessionIds is required and cannot be null.")); + } else { + sessionIds.validate(); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkDnsNameAvailability(this.getEndpoint(), location, domainNameLabel, - apiVersion, this.getSubscriptionId(), accept, context)) + .withContext(context -> service.disconnectActiveSessions(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, bastionHostName, accept, sessionIds, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * Returns the list of currently active sessions on the Bastion. * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param sessionIds The list of sessionids to disconnect. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful - * completion of {@link Mono}. + * @return response for DisconnectActiveSessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkDnsNameAvailabilityWithResponseAsync(String location, - String domainNameLabel, Context context) { + private Mono> disconnectActiveSessionsSinglePageAsync( + String resourceGroupName, String bastionHostName, SessionIds sessionIds, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (domainNameLabel == null) { - return Mono - .error(new IllegalArgumentException("Parameter domainNameLabel is required and cannot be null.")); - } if (this.getSubscriptionId() == null) { return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (bastionHostName == null) { + return Mono + .error(new IllegalArgumentException("Parameter bastionHostName is required and cannot be null.")); + } + if (sessionIds == null) { + return Mono.error(new IllegalArgumentException("Parameter sessionIds is required and cannot be null.")); + } else { + sessionIds.validate(); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.mergeContext(context); - return service.checkDnsNameAvailability(this.getEndpoint(), location, domainNameLabel, apiVersion, - this.getSubscriptionId(), accept, context); + return service + .disconnectActiveSessions(this.getEndpoint(), apiVersion, this.getSubscriptionId(), resourceGroupName, + bastionHostName, accept, sessionIds, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * Returns the list of currently active sessions on the Bastion. * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param sessionIds The list of sessionids to disconnect. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call on successful completion of {@link Mono}. + * @return response for DisconnectActiveSessions as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono checkDnsNameAvailabilityAsync(String location, String domainNameLabel) { - return checkDnsNameAvailabilityWithResponseAsync(location, domainNameLabel) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, + String bastionHostName, SessionIds sessionIds) { + return new PagedFlux<>( + () -> disconnectActiveSessionsSinglePageAsync(resourceGroupName, bastionHostName, sessionIds), + nextLink -> disconnectActiveSessionsNextSinglePageAsync(nextLink)); } /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * Returns the list of currently active sessions on the Bastion. * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param sessionIds The list of sessionids to disconnect. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call along with {@link Response}. + * @return response for DisconnectActiveSessions as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkDnsNameAvailabilityWithResponse(String location, - String domainNameLabel, Context context) { - return checkDnsNameAvailabilityWithResponseAsync(location, domainNameLabel, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux disconnectActiveSessionsAsync(String resourceGroupName, + String bastionHostName, SessionIds sessionIds, Context context) { + return new PagedFlux<>( + () -> disconnectActiveSessionsSinglePageAsync(resourceGroupName, bastionHostName, sessionIds, context), + nextLink -> disconnectActiveSessionsNextSinglePageAsync(nextLink, context)); } /** - * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * Returns the list of currently active sessions on the Bastion. * - * @param location The location of the domain name. - * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: - * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param sessionIds The list of sessionids to disconnect. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckDnsNameAvailability API service call. + * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, String domainNameLabel) { - return checkDnsNameAvailabilityWithResponse(location, domainNameLabel, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable disconnectActiveSessions(String resourceGroupName, + String bastionHostName, SessionIds sessionIds) { + return new PagedIterable<>(disconnectActiveSessionsAsync(resourceGroupName, bastionHostName, sessionIds)); + } + + /** + * Returns the list of currently active sessions on the Bastion. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param bastionHostName The name of the Bastion Host. + * @param sessionIds The list of sessionids to disconnect. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for DisconnectActiveSessions as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable disconnectActiveSessions(String resourceGroupName, + String bastionHostName, SessionIds sessionIds, Context context) { + return new PagedIterable<>( + disconnectActiveSessionsAsync(resourceGroupName, bastionHostName, sessionIds, context)); } /** @@ -4172,18 +4029,18 @@ public DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } - if (providerport == null) { - return Mono.error(new IllegalArgumentException("Parameter providerport is required and cannot be null.")); - } if (this.getSubscriptionId() == null) { return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } + if (providerport == null) { + return Mono.error(new IllegalArgumentException("Parameter providerport is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.expressRouteProviderPort(this.getEndpoint(), providerport, apiVersion, - this.getSubscriptionId(), accept, context)) + .withContext(context -> service.expressRouteProviderPort(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), providerport, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } @@ -4204,17 +4061,17 @@ private Mono> expressRouteProviderPortWi return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); } - if (providerport == null) { - return Mono.error(new IllegalArgumentException("Parameter providerport is required and cannot be null.")); - } if (this.getSubscriptionId() == null) { return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } + if (providerport == null) { + return Mono.error(new IllegalArgumentException("Parameter providerport is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.mergeContext(context); - return service.expressRouteProviderPort(this.getEndpoint(), providerport, apiVersion, this.getSubscriptionId(), + return service.expressRouteProviderPort(this.getEndpoint(), apiVersion, this.getSubscriptionId(), providerport, accept, context); } @@ -4265,7 +4122,7 @@ public ExpressRouteProviderPortInner expressRouteProviderPort(String providerpor /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4302,17 +4159,19 @@ public ExpressRouteProviderPortInner expressRouteProviderPort(String providerpor parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listActiveConnectivityConfigurations(this.getEndpoint(), apiVersion, - this.getSubscriptionId(), resourceGroupName, networkManagerName, top, parameters, accept, context)) + this.getSubscriptionId(), resourceGroupName, networkManagerName, top, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4350,16 +4209,17 @@ public ExpressRouteProviderPortInner expressRouteProviderPort(String providerpor parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.mergeContext(context); return service.listActiveConnectivityConfigurations(this.getEndpoint(), apiVersion, this.getSubscriptionId(), - resourceGroupName, networkManagerName, top, parameters, accept, context); + resourceGroupName, networkManagerName, top, contentType, accept, parameters, context); } /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4379,7 +4239,7 @@ public Mono listActiveConnectiv /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4401,7 +4261,7 @@ public Response listActiveConne /** * Lists active connectivity configurations in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4420,7 +4280,7 @@ public ActiveConnectivityConfigurationsListResultInner listActiveConnectivityCon /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4456,17 +4316,19 @@ public Mono> listActiveSecurit parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listActiveSecurityAdminRules(this.getEndpoint(), apiVersion, - this.getSubscriptionId(), resourceGroupName, networkManagerName, top, parameters, accept, context)) + this.getSubscriptionId(), resourceGroupName, networkManagerName, top, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4504,16 +4366,17 @@ private Mono> listActiveSecuri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.mergeContext(context); return service.listActiveSecurityAdminRules(this.getEndpoint(), apiVersion, this.getSubscriptionId(), - resourceGroupName, networkManagerName, top, parameters, accept, context); + resourceGroupName, networkManagerName, top, contentType, accept, parameters, context); } /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4532,7 +4395,7 @@ public Mono listActiveSecurityAdminRule /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4554,7 +4417,7 @@ public Response listActiveSecurityAdmin /** * Lists active security admin rules in a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Active Configuration Parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4573,7 +4436,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4610,18 +4473,19 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNetworkManagerEffectiveConnectivityConfigurations(this.getEndpoint(), - this.getSubscriptionId(), resourceGroupName, virtualNetworkName, apiVersion, top, parameters, accept, - context)) + apiVersion, this.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4659,17 +4523,18 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.mergeContext(context); - return service.listNetworkManagerEffectiveConnectivityConfigurations(this.getEndpoint(), - this.getSubscriptionId(), resourceGroupName, virtualNetworkName, apiVersion, top, parameters, accept, + return service.listNetworkManagerEffectiveConnectivityConfigurations(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, contentType, accept, parameters, context); } /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4690,7 +4555,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4713,7 +4578,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective connectivity configurations applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4733,7 +4598,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4770,18 +4635,19 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNetworkManagerEffectiveSecurityAdminRules(this.getEndpoint(), - this.getSubscriptionId(), resourceGroupName, virtualNetworkName, apiVersion, top, parameters, accept, - context)) + apiVersion, this.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4819,16 +4685,18 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.mergeContext(context); - return service.listNetworkManagerEffectiveSecurityAdminRules(this.getEndpoint(), this.getSubscriptionId(), - resourceGroupName, virtualNetworkName, apiVersion, top, parameters, accept, context); + return service.listNetworkManagerEffectiveSecurityAdminRules(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, virtualNetworkName, top, contentType, accept, parameters, + context); } /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4849,7 +4717,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -4871,7 +4739,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri /** * List all effective security admin rules applied on a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to list correct page. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4890,8 +4758,8 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4899,7 +4767,7 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> - supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWanName) { + supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWANName) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); @@ -4912,22 +4780,22 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.supportedSecurityProviders(this.getEndpoint(), this.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, accept, context)) + .withContext(context -> service.supportedSecurityProviders(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, virtualWANName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4936,7 +4804,7 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWanName, Context context) { + supportedSecurityProvidersWithResponseAsync(String resourceGroupName, String virtualWANName, Context context) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); @@ -4949,21 +4817,21 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.mergeContext(context); - return service.supportedSecurityProviders(this.getEndpoint(), this.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, accept, context); + return service.supportedSecurityProviders(this.getEndpoint(), apiVersion, this.getSubscriptionId(), + resourceGroupName, virtualWANName, accept, context); } /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4971,16 +4839,16 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono supportedSecurityProvidersAsync(String resourceGroupName, - String virtualWanName) { - return supportedSecurityProvidersWithResponseAsync(resourceGroupName, virtualWanName) + String virtualWANName) { + return supportedSecurityProvidersWithResponseAsync(resourceGroupName, virtualWANName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4989,15 +4857,15 @@ public Mono supportedSecurityProvidersAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) public Response supportedSecurityProvidersWithResponse(String resourceGroupName, - String virtualWanName, Context context) { - return supportedSecurityProvidersWithResponseAsync(resourceGroupName, virtualWanName, context).block(); + String virtualWANName, Context context) { + return supportedSecurityProvidersWithResponseAsync(resourceGroupName, virtualWANName, context).block(); } /** * Gives the supported security providers for the virtual wan. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which supported security providers are needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5005,26 +4873,25 @@ public Response supportedSecurityProvidersWith */ @ServiceMethod(returns = ReturnType.SINGLE) public VirtualWanSecurityProvidersInner supportedSecurityProviders(String resourceGroupName, - String virtualWanName) { - return supportedSecurityProvidersWithResponse(resourceGroupName, virtualWanName, Context.NONE).getValue(); + String virtualWANName) { + return supportedSecurityProvidersWithResponse(resourceGroupName, virtualWANName, Context.NONE).getValue(); } /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> generatevirtualwanvpnserverconfigurationvpnprofileWithResponseAsync( - String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams) { + String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); @@ -5037,8 +4904,8 @@ public Mono>> generatevirtualwanvpnserverconfiguration return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } if (vpnClientParams == null) { return Mono @@ -5047,11 +4914,12 @@ public Mono>> generatevirtualwanvpnserverconfiguration vpnClientParams.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generatevirtualwanvpnserverconfigurationvpnprofile(this.getEndpoint(), - this.getSubscriptionId(), resourceGroupName, virtualWanName, apiVersion, vpnClientParams, accept, - context)) + apiVersion, this.getSubscriptionId(), resourceGroupName, virtualWANName, contentType, accept, + vpnClientParams, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } @@ -5059,19 +4927,18 @@ public Mono>> generatevirtualwanvpnserverconfiguration * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> generatevirtualwanvpnserverconfigurationvpnprofileWithResponseAsync( - String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams, + String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { if (this.getEndpoint() == null) { return Mono @@ -5085,8 +4952,8 @@ private Mono>> generatevirtualwanvpnserverconfiguratio return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } if (vpnClientParams == null) { return Mono @@ -5095,30 +4962,31 @@ private Mono>> generatevirtualwanvpnserverconfiguratio vpnClientParams.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.mergeContext(context); - return service.generatevirtualwanvpnserverconfigurationvpnprofile(this.getEndpoint(), this.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, vpnClientParams, accept, context); + return service.generatevirtualwanvpnserverconfigurationvpnprofile(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), resourceGroupName, virtualWANName, contentType, accept, vpnClientParams, context); } /** * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams) { Mono>> mono = generatevirtualwanvpnserverconfigurationvpnprofileWithResponseAsync( - resourceGroupName, virtualWanName, vpnClientParams); + resourceGroupName, virtualWANName, vpnClientParams); return this.getLroResult(mono, this.getHttpPipeline(), VpnProfileResponseInner.class, VpnProfileResponseInner.class, this.getContext()); } @@ -5127,22 +4995,22 @@ private Mono>> generatevirtualwanvpnserverconfiguratio * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { context = this.mergeContext(context); Mono>> mono = generatevirtualwanvpnserverconfigurationvpnprofileWithResponseAsync( - resourceGroupName, virtualWanName, vpnClientParams, context); + resourceGroupName, virtualWANName, vpnClientParams, context); return this.getLroResult(mono, this.getHttpPipeline(), VpnProfileResponseInner.class, VpnProfileResponseInner.class, context); } @@ -5151,20 +5019,20 @@ private Mono>> generatevirtualwanvpnserverconfiguratio * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams) { return this - .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams) .getSyncPoller(); } @@ -5173,21 +5041,21 @@ private Mono>> generatevirtualwanvpnserverconfiguratio * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnProfileResponseInner> - beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, + beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { return this - .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams, context) .getSyncPoller(); } @@ -5196,18 +5064,18 @@ private Mono>> generatevirtualwanvpnserverconfiguratio * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono generatevirtualwanvpnserverconfigurationvpnprofileAsync( - String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams) { - return beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams) { + return beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams).last().flatMap(this::getLroFinalResultOrError); } @@ -5215,20 +5083,20 @@ public Mono generatevirtualwanvpnserverconfigurationvpn * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono generatevirtualwanvpnserverconfigurationvpnprofileAsync( - String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams, + String resourceGroupName, String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { - return beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + return beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams, context).last().flatMap(this::getLroFinalResultOrError); } @@ -5236,18 +5104,18 @@ private Mono generatevirtualwanvpnserverconfigurationvp * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, - String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams) { - return generatevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams) { + return generatevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams).block(); } @@ -5255,22 +5123,149 @@ public VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofil * Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination * in the specified resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param vpnClientParams Parameters supplied to the generate VirtualWan VPN profile generation operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, - String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { - return generatevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + String virtualWANName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { + return generatevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWANName, vpnClientParams, context).block(); } + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> checkDnsNameAvailabilityWithResponseAsync(String location, + String domainNameLabel) { + if (this.getEndpoint() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); + } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (domainNameLabel == null) { + return Mono + .error(new IllegalArgumentException("Parameter domainNameLabel is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.checkDnsNameAvailability(this.getEndpoint(), apiVersion, + this.getSubscriptionId(), location, domainNameLabel, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); + } + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> checkDnsNameAvailabilityWithResponseAsync(String location, + String domainNameLabel, Context context) { + if (this.getEndpoint() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.getEndpoint() is required and cannot be null.")); + } + if (this.getSubscriptionId() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (domainNameLabel == null) { + return Mono + .error(new IllegalArgumentException("Parameter domainNameLabel is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.mergeContext(context); + return service.checkDnsNameAvailability(this.getEndpoint(), apiVersion, this.getSubscriptionId(), location, + domainNameLabel, accept, context); + } + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkDnsNameAvailabilityAsync(String location, String domainNameLabel) { + return checkDnsNameAvailabilityWithResponseAsync(location, domainNameLabel) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response checkDnsNameAvailabilityWithResponse(String location, + String domainNameLabel, Context context) { + return checkDnsNameAvailabilityWithResponseAsync(location, domainNameLabel, context).block(); + } + + /** + * Checks whether a domain name in the cloudapp.azure.com zone is available for use. + * + * @param location The location name. + * @param domainNameLabel The domain name to be verified. It must conform to the following regular expression: + * ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response for the CheckDnsNameAvailability API service call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, String domainNameLabel) { + return checkDnsNameAvailabilityWithResponse(location, domainNameLabel, Context.NONE).getValue(); + } + /** * Get the next page of items. * @@ -5278,8 +5273,7 @@ public VpnProfileResponseInner generatevirtualwanvpnserverconfigurationvpnprofil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putBastionShareableLinkNextSinglePageAsync(String nextLink) { @@ -5306,8 +5300,7 @@ private Mono> putBastionShareableLinkNe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for all the Bastion Shareable Link endpoints along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putBastionShareableLinkNextSinglePageAsync(String nextLink, @@ -5388,7 +5381,7 @@ private Mono> getBastionShareableLinkNe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getActiveSessionsNextSinglePageAsync(String nextLink) { @@ -5415,7 +5408,7 @@ private Mono> getActiveSessionsNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetActiveSessions along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getActiveSessionsNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java index ce2847358d69..2340474443bd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; @@ -60,25 +59,24 @@ public final class NetworkManagerCommitsClientImpl implements NetworkManagerComm * The interface defining all the services for NetworkManagementClientNetworkManagerCommits to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkManagerCommits") public interface NetworkManagerCommitsService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> post(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> post(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetworkManagerCommitInner parameters, @HeaderParam("Accept") String accept, + @PathParam("networkManagerName") String networkManagerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkManagerCommitInner parameters, Context context); } /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,17 +109,18 @@ public Mono>> postWithResponseAsync(String resourceGro parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.post(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, parameters, accept, context)) + .withContext(context -> service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. @@ -155,16 +154,17 @@ private Mono>> postWithResponseAsync(String resourceGr parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.post(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, parameters, accept, context); + return service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, contentType, accept, parameters, context); } /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -185,7 +185,7 @@ private Mono>> postWithResponseAsync(String resourceGr /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. @@ -207,7 +207,7 @@ private PollerFlux, NetworkManagerCommitIn /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +224,7 @@ private PollerFlux, NetworkManagerCommitIn /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. @@ -242,7 +242,7 @@ public SyncPoller, NetworkManagerCommitInn /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,7 +260,7 @@ public Mono postAsync(String resourceGroupName, Strin /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. @@ -279,7 +279,7 @@ private Mono postAsync(String resourceGroupName, Stri /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -296,7 +296,7 @@ public NetworkManagerCommitInner post(String resourceGroupName, String networkMa /** * Post a Network Manager Commit. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network commit is. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java index 28dcffbda890..10ce67401bfe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; @@ -58,26 +57,24 @@ public final class NetworkManagerDeploymentStatusOperationsClientImpl * The interface defining all the services for NetworkManagementClientNetworkManagerDeploymentStatusOperations to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkManagerDeploymentStatusOperations") public interface NetworkManagerDeploymentStatusOperationsService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, - @BodyParam("application/json") NetworkManagerDeploymentStatusParameter parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkManagerDeploymentStatusParameter parameters, Context context); } /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -113,17 +110,18 @@ public Mono> listWithRes parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, top, parameters, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -161,16 +159,17 @@ private Mono> listWithRe parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, top, parameters, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, contentType, accept, parameters, context); } /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -189,7 +188,7 @@ public Mono listAsync(String reso /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -209,7 +208,7 @@ public Response listWithResponse( /** * Post to List of Network Manager Deployment Status. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which Managed Network deployment status is. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerRoutingConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerRoutingConfigurationsClientImpl.java index e2ecd5b9fe0c..02f67298aa9f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerRoutingConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerRoutingConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkManagerRoutingConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.NetworkManagerRoutingConfigurationInner; -import com.azure.resourcemanager.network.models.NetworkManagerRoutingConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkManagerRoutingConfigurationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,259 +67,62 @@ public final class NetworkManagerRoutingConfigurationsClientImpl implements Netw * The interface defining all the services for NetworkManagementClientNetworkManagerRoutingConfigurations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkManagerRoutingConfigurations") public interface NetworkManagerRoutingConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkManagerRoutingConfigurationInner routingConfiguration, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, top, skipToken, accept, context)) - .>map( - res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, - String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, - String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); - } - - /** - * Lists all the network manager routing configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, - String networkManagerName, Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); - } - /** * Retrieves a network manager routing configuration. * @@ -500,11 +303,12 @@ public Mono> createOrUpdateWit routingConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - routingConfiguration, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, contentType, + accept, routingConfiguration, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -552,10 +356,12 @@ private Mono> createOrUpdateWi routingConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, routingConfiguration, accept, context); + resourceGroupName, networkManagerName, configurationName, contentType, accept, routingConfiguration, + context); } /** @@ -655,11 +461,10 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, force, accept, context)) + resourceGroupName, networkManagerName, configurationName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -701,10 +506,9 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, force, accept, context); + networkManagerName, configurationName, force, context); } /** @@ -907,6 +711,208 @@ public void delete(String resourceGroupName, String networkManagerName, String c deleteAsync(resourceGroupName, networkManagerName, configurationName, force, context).block(); } + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, skipToken, accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, + String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken, Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, + String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); + } + + /** + * Lists all the network manager routing configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkManagerRoutingConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, + String networkManagerName, Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -914,8 +920,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NetworkManagerRoutingConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -942,8 +948,8 @@ private Mono> listNextSin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager routing configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NetworkManagerRoutingConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java index 2428112031ff..8eee648cb8c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkManagersClient; import com.azure.resourcemanager.network.fluent.models.NetworkManagerInner; -import com.azure.resourcemanager.network.models.NetworkManagerListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkManagerListResult; import com.azure.resourcemanager.network.models.PatchObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,67 +73,64 @@ public final class NetworkManagersClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetworkManagerInner parameters, @HeaderParam("Accept") String accept, + @PathParam("networkManagerName") String networkManagerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkManagerInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}") - @ExpectedResponses({ 200, 202, 204 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> patch(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PatchObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> patch(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") PatchObject parameters, @HeaderParam("Accept") String accept, + @PathParam("networkManagerName") String networkManagerName, @QueryParam("force") Boolean force, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @@ -141,23 +138,23 @@ Mono> listByResourceGroup(@HostParam("$host") @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -186,15 +183,15 @@ public Mono> getByResourceGroupWithResponseAsync(S final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,14 +221,14 @@ private Mono> getByResourceGroupWithResponseAsync( final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, accept, context); } /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -247,7 +244,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -264,7 +261,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets the specified Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -279,7 +276,7 @@ public NetworkManagerInner getByResourceGroup(String resourceGroupName, String n /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -312,17 +309,19 @@ public Mono> createOrUpdateWithResponseAsync(Strin parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @param context The context to associate with this operation. @@ -356,16 +355,17 @@ private Mono> createOrUpdateWithResponseAsync(Stri parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, contentType, accept, parameters, context); } /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -383,7 +383,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @param context The context to associate with this operation. @@ -401,7 +401,7 @@ public Response createOrUpdateWithResponse(String resourceG /** * Creates or updates a Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param parameters Parameters supplied to specify which network manager is. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -415,10 +415,151 @@ public NetworkManagerInner createOrUpdate(String resourceGroupName, String netwo return createOrUpdateWithResponse(resourceGroupName, networkManagerName, parameters, Context.NONE).getValue(); } + /** + * Patch NetworkManager. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> patchWithResponseAsync(String resourceGroupName, + String networkManagerName, PatchObject parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Patch NetworkManager. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> patchWithResponseAsync(String resourceGroupName, + String networkManagerName, PatchObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, contentType, accept, parameters, context); + } + + /** + * Patch NetworkManager. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Managed Network resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono patchAsync(String resourceGroupName, String networkManagerName, + PatchObject parameters) { + return patchWithResponseAsync(resourceGroupName, networkManagerName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Patch NetworkManager. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Managed Network resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response patchWithResponse(String resourceGroupName, String networkManagerName, + PatchObject parameters, Context context) { + return patchWithResponseAsync(resourceGroupName, networkManagerName, parameters, context).block(); + } + + /** + * Patch NetworkManager. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Managed Network resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkManagerInner patch(String resourceGroupName, String networkManagerName, PatchObject parameters) { + return patchWithResponse(resourceGroupName, networkManagerName, parameters, Context.NONE).getValue(); + } + /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -447,17 +588,16 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, force, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -487,16 +627,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, force, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, force, context); } /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -516,7 +655,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -534,7 +673,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -557,7 +696,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -573,7 +712,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -592,7 +731,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -610,7 +749,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -627,7 +766,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -647,7 +786,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -662,7 +801,7 @@ public void delete(String resourceGroupName, String networkManagerName) { /** * Deletes a network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been * deployed, the service will do a cleanup deployment in the background, prior to the delete. @@ -677,146 +816,9 @@ public void delete(String resourceGroupName, String networkManagerName, Boolean } /** - * Patch NetworkManager. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> patchWithResponseAsync(String resourceGroupName, - String networkManagerName, PatchObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch NetworkManager. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> patchWithResponseAsync(String resourceGroupName, - String networkManagerName, PatchObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, apiVersion, parameters, accept, context); - } - - /** - * Patch NetworkManager. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono patchAsync(String resourceGroupName, String networkManagerName, - PatchObject parameters) { - return patchWithResponseAsync(resourceGroupName, networkManagerName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Patch NetworkManager. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response patchWithResponse(String resourceGroupName, String networkManagerName, - PatchObject parameters, Context context) { - return patchWithResponseAsync(resourceGroupName, networkManagerName, parameters, context).block(); - } - - /** - * Patch NetworkManager. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param parameters Parameters supplied to specify which network manager is. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Managed Network resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkManagerInner patch(String resourceGroupName, String networkManagerName, PatchObject parameters) { - return patchWithResponse(resourceGroupName, networkManagerName, parameters, Context.NONE).getValue(); - } - - /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -825,11 +827,12 @@ public NetworkManagerInner patch(String resourceGroupName, String networkManager * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Integer top, String skipToken) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Integer top, String skipToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -838,19 +841,24 @@ private Mono> listSinglePageAsync(Integer top return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - top, skipToken, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -860,12 +868,12 @@ private Mono> listSinglePageAsync(Integer top * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Integer top, String skipToken, - Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Integer top, String skipToken, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -874,19 +882,24 @@ private Mono> listSinglePageAsync(Integer top return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, top, skipToken, accept, - context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -895,32 +908,36 @@ private Mono> listSinglePageAsync(Integer top * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, + String skipToken) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { final Integer top = null; final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -930,31 +947,35 @@ public PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken, context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, + String skipToken, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { + public PagedIterable listByResourceGroup(String resourceGroupName) { final Integer top = null; final String skipToken = null; - return new PagedIterable<>(listAsync(top, skipToken)); + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken)); } /** - * List all network managers in a subscription. + * List network managers in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -964,17 +985,17 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(top, skipToken, context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Integer top, + String skipToken, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken, context)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -983,12 +1004,11 @@ public PagedIterable list(Integer top, String skipToken, Co * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Integer top, String skipToken) { + private Mono> listSinglePageAsync(Integer top, String skipToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -997,24 +1017,19 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1024,12 +1039,12 @@ private Mono> listByResourceGroupSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Integer top, String skipToken, Context context) { + private Mono> listSinglePageAsync(Integer top, String skipToken, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1038,24 +1053,19 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), top, skipToken, accept, + context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1064,36 +1074,32 @@ private Mono> listByResourceGroupSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, - String skipToken) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync(Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + public PagedFlux listAsync() { final Integer top = null; final String skipToken = null; - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1103,35 +1109,31 @@ public PagedFlux listByResourceGroupAsync(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, - String skipToken, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken, context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { + public PagedIterable list() { final Integer top = null; final String skipToken = null; - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken)); + return new PagedIterable<>(listAsync(top, skipToken)); } /** - * List network managers in a resource group. + * List all network managers in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1141,12 +1143,11 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManager list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Integer top, - String skipToken, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken, context)); + public PagedIterable list(Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(top, skipToken, context)); } /** @@ -1156,11 +1157,11 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1169,9 +1170,7 @@ private Mono> listBySubscriptionNextSinglePag new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1185,12 +1184,11 @@ private Mono> listBySubscriptionNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1200,7 +1198,7 @@ private Mono> listBySubscriptionNextSinglePag } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1212,11 +1210,11 @@ private Mono> listBySubscriptionNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1225,7 +1223,9 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1239,11 +1239,12 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkManager along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManager list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1253,7 +1254,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java index 602170065b1f..e571394874d4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkProfilesClient; import com.azure.resourcemanager.network.fluent.models.NetworkProfileInner; -import com.azure.resourcemanager.network.models.NetworkProfileListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkProfileListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,99 +73,105 @@ public final class NetworkProfilesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkProfileName") String networkProfileName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkProfileName") String networkProfileName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("networkProfileName") String networkProfileName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkProfileName") String networkProfileName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkProfileInner parameters, @HeaderParam("Accept") String accept, + @PathParam("networkProfileName") String networkProfileName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkProfileInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkProfileName") String networkProfileName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkProfileName") String networkProfileName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkProfileName") String networkProfileName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified network profile. + * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified network profile in a specified resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkProfileName) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkProfileName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -174,36 +180,38 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkProfileName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkProfileName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified network profile. + * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified network profile in a specified resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkProfileName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkProfileName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -212,167 +220,228 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkProfileName, expand, accept, context); } /** - * Deletes the specified network profile. + * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified network profile in a specified resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkProfileName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String networkProfileName) { + final String expand = null; + return getByResourceGroupWithResponseAsync(resourceGroupName, networkProfileName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified network profile. + * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified network profile in a specified resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkProfileName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String networkProfileName, String expand, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, networkProfileName, expand, context).block(); } /** - * Deletes the specified network profile. + * Gets the specified network profile in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified network profile in a specified resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName) { - return this.beginDeleteAsync(resourceGroupName, networkProfileName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkProfileInner getByResourceGroup(String resourceGroupName, String networkProfileName) { + final String expand = null; + return getByResourceGroupWithResponse(resourceGroupName, networkProfileName, expand, Context.NONE).getValue(); } /** - * Deletes the specified network profile. + * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, networkProfileName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkProfileName, NetworkProfileInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkProfileName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkProfileName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified network profile. + * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to the create or update network profile operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkProfileName) { - return beginDeleteAsync(resourceGroupName, networkProfileName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkProfileName, NetworkProfileInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkProfileName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkProfileName, contentType, accept, parameters, context); } /** - * Deletes the specified network profile. + * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return network profile resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkProfileName, Context context) { - return beginDeleteAsync(resourceGroupName, networkProfileName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono createOrUpdateAsync(String resourceGroupName, String networkProfileName, + NetworkProfileInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, networkProfileName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified network profile. + * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to the create or update network profile operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network profile resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkProfileName) { - deleteAsync(resourceGroupName, networkProfileName).block(); + public Response createOrUpdateWithResponse(String resourceGroupName, String networkProfileName, + NetworkProfileInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, networkProfileName, parameters, context).block(); } /** - * Deletes the specified network profile. + * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the NetworkProfile. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to the create or update network profile operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network profile resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkProfileName, Context context) { - deleteAsync(resourceGroupName, networkProfileName, context).block(); + public NetworkProfileInner createOrUpdate(String resourceGroupName, String networkProfileName, + NetworkProfileInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, networkProfileName, parameters, Context.NONE).getValue(); } /** - * Gets the specified network profile in a specified resource group. + * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network profile in a specified resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkProfileName, String expand) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkProfileName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -381,38 +450,44 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - networkProfileName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkProfileName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified network profile in a specified resource group. + * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update network profile tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network profile in a specified resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkProfileName, String expand, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkProfileName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -421,86 +496,92 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkProfileName, contentType, accept, parameters, context); } /** - * Gets the specified network profile in a specified resource group. + * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network profile in a specified resource group on successful completion of {@link Mono}. + * @return network profile resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String networkProfileName) { - final String expand = null; - return getByResourceGroupWithResponseAsync(resourceGroupName, networkProfileName, expand) + public Mono updateTagsAsync(String resourceGroupName, String networkProfileName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, networkProfileName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the specified network profile in a specified resource group. + * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update network profile tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network profile in a specified resource group along with {@link Response}. + * @return network profile resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String networkProfileName, String expand, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, networkProfileName, expand, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, String networkProfileName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, networkProfileName, parameters, context).block(); } /** - * Gets the specified network profile in a specified resource group. + * Updates network profile tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkProfileName The name of the public IP prefix. + * @param parameters Parameters supplied to update network profile tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network profile in a specified resource group. + * @return network profile resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkProfileInner getByResourceGroup(String resourceGroupName, String networkProfileName) { - final String expand = null; - return getByResourceGroupWithResponse(resourceGroupName, networkProfileName, expand, Context.NONE).getValue(); + public NetworkProfileInner updateTags(String resourceGroupName, String networkProfileName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, networkProfileName, parameters, Context.NONE).getValue(); } /** - * Creates or updates a network profile. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to the create or update network profile operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkProfileName, NetworkProfileInner parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkProfileName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -509,42 +590,35 @@ public Mono> createOrUpdateWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkProfileName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkProfileName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a network profile. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to the create or update network profile operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkProfileName, NetworkProfileInner parameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkProfileName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -553,223 +627,155 @@ private Mono> createOrUpdateWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkProfileName, context); } /** - * Creates or updates a network profile. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to the create or update network profile operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String networkProfileName, - NetworkProfileInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, networkProfileName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkProfileName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Creates or updates a network profile. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to the create or update network profile operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String resourceGroupName, String networkProfileName, - NetworkProfileInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, networkProfileName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkProfileName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkProfileName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Creates or updates a network profile. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to the create or update network profile operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkProfileInner createOrUpdate(String resourceGroupName, String networkProfileName, - NetworkProfileInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, networkProfileName, parameters, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName) { + return this.beginDeleteAsync(resourceGroupName, networkProfileName).getSyncPoller(); + } + + /** + * Deletes the specified network profile. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkProfileName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, networkProfileName, context).getSyncPoller(); } /** - * Updates network profile tags. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to update network profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkProfileName, TagsObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkProfileName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkProfileName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public Mono deleteAsync(String resourceGroupName, String networkProfileName) { + return beginDeleteAsync(resourceGroupName, networkProfileName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates network profile tags. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to update network profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkProfileName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkProfileName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkProfileName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + private Mono deleteAsync(String resourceGroupName, String networkProfileName, Context context) { + return beginDeleteAsync(resourceGroupName, networkProfileName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates network profile tags. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to update network profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String networkProfileName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, networkProfileName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public void delete(String resourceGroupName, String networkProfileName) { + deleteAsync(resourceGroupName, networkProfileName).block(); } /** - * Updates network profile tags. + * Deletes the specified network profile. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to update network profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkProfileName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String networkProfileName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, networkProfileName, parameters, context).block(); + public void delete(String resourceGroupName, String networkProfileName, Context context) { + deleteAsync(resourceGroupName, networkProfileName, context).block(); } /** - * Updates network profile tags. + * Gets all network profiles in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkProfileName The name of the network profile. - * @param parameters Parameters supplied to update network profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network profile resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkProfileInner updateTags(String resourceGroupName, String networkProfileName, TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, networkProfileName, parameters, Context.NONE).getValue(); - } - - /** - * Gets all the network profiles in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of + * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -778,28 +784,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the network profiles in a subscription. + * Gets all network profiles in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of + * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -808,87 +820,94 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the network profiles in a subscription. + * Gets all network profiles in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. + * @return all network profiles in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all the network profiles in a subscription. + * Gets all network profiles in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. + * @return all network profiles in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all the network profiles in a subscription. + * Gets all network profiles in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + * @return all network profiles in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all the network profiles in a subscription. + * Gets all network profiles in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. + * @return all network profiles in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of + * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -896,35 +915,29 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of + * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -932,71 +945,62 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group as paginated response with {@link PagedFlux}. + * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group as paginated response with {@link PagedFlux}. + * @return all the network profiles in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group as paginated response with {@link PagedIterable}. + * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all network profiles in a resource group. + * Gets all the network profiles in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group as paginated response with {@link PagedIterable}. + * @return all the network profiles in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1006,11 +1010,11 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of + * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1019,8 +1023,7 @@ private Mono> listAllNextSinglePageAsync(Stri new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1034,11 +1037,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of + * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1048,7 +1051,7 @@ private Mono> listAllNextSinglePageAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1060,11 +1063,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of + * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1073,7 +1076,8 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1087,11 +1091,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network profiles in a resource group along with {@link PagedResponse} on successful completion of + * @return all the network profiles in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1101,7 +1105,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java index 9ba33e6d944e..7d55e5fd44e8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkSecurityGroupsClient; import com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner; -import com.azure.resourcemanager.network.models.NetworkSecurityGroupListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkSecurityGroupListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,295 +73,86 @@ public final class NetworkSecurityGroupsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkSecurityGroupInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkSecurityGroupInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkSecurityGroupName") String networkSecurityGroupName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - networkSecurityGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkSecurityGroupName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkSecurityGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName) { - return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName).getSyncPoller(); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, context).getSyncPoller(); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName) { - return beginDeleteAsync(resourceGroupName, networkSecurityGroupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkSecurityGroupName) { - deleteAsync(resourceGroupName, networkSecurityGroupName).block(); - } - - /** - * Deletes the specified network security group. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkSecurityGroupName, Context context) { - deleteAsync(resourceGroupName, networkSecurityGroupName, context).block(); - } - /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -377,6 +168,10 @@ public Mono> getByResourceGroupWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -385,22 +180,18 @@ public Mono> getByResourceGroupWithResponseA return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - networkSecurityGroupName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityGroupName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -417,6 +208,10 @@ private Mono> getByResourceGroupWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -425,21 +220,17 @@ private Mono> getByResourceGroupWithResponse return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, expand, accept, context); } /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -457,7 +248,7 @@ public Mono getByResourceGroupAsync(String resourceGr /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -476,7 +267,7 @@ public Response getByResourceGroupWithResponse(String /** * Gets the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -493,7 +284,7 @@ public NetworkSecurityGroupInner getByResourceGroup(String resourceGroupName, St /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -508,6 +299,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -516,27 +311,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkSecurityGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityGroupName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -552,6 +345,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -560,26 +357,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, contentType, accept, parameters, context); } /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -600,7 +394,7 @@ public PollerFlux, NetworkSecurityGroupInn /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -623,7 +417,7 @@ private PollerFlux, NetworkSecurityGroupIn /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -640,7 +434,7 @@ public SyncPoller, NetworkSecurityGroupInn /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -660,7 +454,7 @@ public SyncPoller, NetworkSecurityGroupInn /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -678,7 +472,7 @@ public Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -697,7 +491,7 @@ private Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -714,7 +508,7 @@ public NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String /** * Creates or updates a network security group in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to the create or update network security group operation. * @param context The context to associate with this operation. @@ -732,7 +526,7 @@ public NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String /** * Updates a network security group tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -747,6 +541,10 @@ public Mono> updateTagsWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -755,129 +553,336 @@ public Mono> updateTagsWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a network security group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkSecurityGroup resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, contentType, accept, parameters, context); + } + + /** + * Updates a network security group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkSecurityGroup resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String networkSecurityGroupName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, networkSecurityGroupName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates a network security group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkSecurityGroup resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String networkSecurityGroupName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, networkSecurityGroupName, parameters, context).block(); + } + + /** + * Updates a network security group tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkSecurityGroup resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSecurityGroupName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, networkSecurityGroupName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - networkSecurityGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates a network security group tags. + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, context); + } + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkSecurityGroupName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkSecurityGroupName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName) { + return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName).getSyncPoller(); + } + + /** + * Deletes the specified network security group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param parameters Parameters supplied to update network security group tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkSecurityGroup resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, context).getSyncPoller(); } /** - * Updates a network security group tags. + * Deletes the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkSecurityGroup resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String networkSecurityGroupName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, networkSecurityGroupName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName) { + return beginDeleteAsync(resourceGroupName, networkSecurityGroupName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a network security group tags. + * Deletes the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param parameters Parameters supplied to update network security group tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkSecurityGroup resource along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String networkSecurityGroupName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, networkSecurityGroupName, parameters, context).block(); + private Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a network security group tags. + * Deletes the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. - * @param parameters Parameters supplied to update network security group tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkSecurityGroup resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSecurityGroupName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, networkSecurityGroupName, parameters, Context.NONE).getValue(); + public void delete(String resourceGroupName, String networkSecurityGroupName) { + deleteAsync(resourceGroupName, networkSecurityGroupName).block(); } /** - * Gets all network security groups in a subscription. + * Deletes the specified network security group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkSecurityGroupName, Context context) { + deleteAsync(resourceGroupName, networkSecurityGroupName, context).block(); + } + + /** + * Gets all network security groups in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -886,28 +891,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network security groups in a subscription. + * Gets all network security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion + * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -916,88 +927,94 @@ private Mono> listSinglePageAsync(Conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network security groups in a subscription. + * Gets all network security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. + * @return all network security groups in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all network security groups in a subscription. + * Gets all network security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. + * @return all network security groups in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all network security groups in a subscription. + * Gets all network security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + * @return all network security groups in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all network security groups in a subscription. + * Gets all network security groups in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. + * @return all network security groups in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion + * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1005,35 +1022,29 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion + * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1041,71 +1052,62 @@ private Mono> listByResourceGroupSingle final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group as paginated response with {@link PagedFlux}. + * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group as paginated response with {@link PagedFlux}. + * @return all network security groups in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group as paginated response with {@link PagedIterable}. + * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all network security groups in a resource group. + * Gets all network security groups in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group as paginated response with {@link PagedIterable}. + * @return all network security groups in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1115,11 +1117,11 @@ public PagedIterable listByResourceGroup(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion + * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1128,8 +1130,7 @@ private Mono> listAllNextSinglePageAsyn new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1143,12 +1144,11 @@ private Mono> listAllNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion + * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1158,7 +1158,7 @@ private Mono> listAllNextSinglePageAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1170,11 +1170,11 @@ private Mono> listAllNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion + * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1183,7 +1183,8 @@ private Mono> listNextSinglePageAsync(S new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1197,11 +1198,12 @@ private Mono> listNextSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all network security groups in a resource group along with {@link PagedResponse} on successful completion + * @return all network security groups in a subscription along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1211,7 +1213,7 @@ private Mono> listNextSinglePageAsync(S } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAccessRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAccessRulesClientImpl.java index 4f3cd518bae0..056d975a064b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAccessRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAccessRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -31,7 +31,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterAccessRulesClient; import com.azure.resourcemanager.network.fluent.models.NspAccessRuleInner; -import com.azure.resourcemanager.network.models.NspAccessRuleListResult; +import com.azure.resourcemanager.network.implementation.models.NspAccessRuleListResult; import reactor.core.publisher.Mono; /** @@ -63,79 +63,76 @@ public final class NetworkSecurityPerimeterAccessRulesClientImpl implements Netw * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterAccessRules to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterAccessRules") public interface NetworkSecurityPerimeterAccessRulesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("profileName") String profileName, @PathParam("accessRuleName") String accessRuleName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("profileName") String profileName, @PathParam("accessRuleName") String accessRuleName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") NspAccessRuleInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NspAccessRuleInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("profileName") String profileName, @PathParam("accessRuleName") String accessRuleName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("profileName") String profileName, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("profileName") String profileName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}/reconcile") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> reconcile(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> reconcile(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("profileName") String profileName, @PathParam("accessRuleName") String accessRuleName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") Object parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") Object parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -173,16 +170,15 @@ public Mono> getWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -221,14 +217,14 @@ private Mono> getWithResponseAsync(String resourceG final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, profileName, accessRuleName, accept, context); } /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -247,7 +243,7 @@ public Mono getAsync(String resourceGroupName, String networ /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -267,7 +263,7 @@ public Response getWithResponse(String resourceGroupName, St /** * Gets the specified NSP access rule by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -286,7 +282,7 @@ public NspAccessRuleInner get(String resourceGroupName, String networkSecurityPe /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -327,18 +323,19 @@ public Mono> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, parameters, - accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, profileName, + accessRuleName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -381,16 +378,18 @@ private Mono> createOrUpdateWithResponseAsync(Strin parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, contentType, accept, + parameters, context); } /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -410,7 +409,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -432,7 +431,7 @@ public Response createOrUpdateWithResponse(String resourceGr /** * Creates or updates a network access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -452,7 +451,7 @@ public NspAccessRuleInner createOrUpdate(String resourceGroupName, String networ /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -487,18 +486,17 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono.error(new IllegalArgumentException("Parameter accessRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( - context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, accept, context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -534,16 +532,15 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error(new IllegalArgumentException("Parameter accessRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, profileName, accessRuleName, context); } /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -562,7 +559,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -582,7 +579,7 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Deletes an NSP access rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -599,7 +596,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -610,7 +607,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules along with {@link PagedResponse} on successful completion + * @return the response of a NspAccessRule list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -638,9 +635,8 @@ private Mono> listSinglePageAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -649,7 +645,7 @@ private Mono> listSinglePageAsync(String resou /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -661,7 +657,7 @@ private Mono> listSinglePageAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules along with {@link PagedResponse} on successful completion + * @return the response of a NspAccessRule list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -690,8 +686,8 @@ private Mono> listSinglePageAsync(String resou final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, profileName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -699,7 +695,7 @@ private Mono> listSinglePageAsync(String resou /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -710,7 +706,7 @@ private Mono> listSinglePageAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedFlux}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -723,13 +719,13 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedFlux}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -744,7 +740,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -756,7 +752,7 @@ public PagedFlux listAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedFlux}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -768,13 +764,13 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedIterable}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -788,7 +784,7 @@ public PagedIterable list(String resourceGroupName, String n /** * Lists the NSP access rules in the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -800,7 +796,7 @@ public PagedIterable list(String resourceGroupName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules as paginated response with {@link PagedIterable}. + * @return the response of a NspAccessRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -812,7 +808,7 @@ public PagedIterable list(String resourceGroupName, String n /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -820,7 +816,7 @@ public PagedIterable list(String resourceGroupName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> reconcileWithResponseAsync(String resourceGroupName, @@ -851,18 +847,19 @@ public Mono> reconcileWithResponseAsync(String resourceGroupNam return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, parameters, - accept, context)) + .withContext(context -> service.reconcile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, profileName, + accessRuleName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -871,7 +868,7 @@ public Mono> reconcileWithResponseAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> reconcileWithResponseAsync(String resourceGroupName, @@ -903,16 +900,18 @@ private Mono> reconcileWithResponseAsync(String resourceGroupNa return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, accessRuleName, apiVersion, parameters, accept, context); + return service.reconcile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, accessRuleName, contentType, accept, + parameters, context); } /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -920,7 +919,7 @@ private Mono> reconcileWithResponseAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return anything on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono reconcileAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -932,7 +931,7 @@ public Mono reconcileAsync(String resourceGroupName, String networkSecur /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -941,7 +940,7 @@ public Mono reconcileAsync(String resourceGroupName, String networkSecur * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response}. + * @return anything along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response reconcileWithResponse(String resourceGroupName, String networkSecurityPerimeterName, @@ -953,7 +952,7 @@ public Response reconcileWithResponse(String resourceGroupName, String n /** * Reconcile NSP access rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param accessRuleName The name of the NSP access rule. @@ -961,7 +960,7 @@ public Response reconcileWithResponse(String resourceGroupName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return anything. */ @ServiceMethod(returns = ReturnType.SINGLE) public Object reconcile(String resourceGroupName, String networkSecurityPerimeterName, String profileName, @@ -977,7 +976,7 @@ public Object reconcile(String resourceGroupName, String networkSecurityPerimete * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules along with {@link PagedResponse} on successful completion + * @return the response of a NspAccessRule list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1004,7 +1003,7 @@ private Mono> listNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP access rules along with {@link PagedResponse} on successful completion + * @return the response of a NspAccessRule list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociableResourceTypesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociableResourceTypesClientImpl.java index 93b682030caa..7bf29010499f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociableResourceTypesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociableResourceTypesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterAssociableResourceTypesClient; import com.azure.resourcemanager.network.fluent.models.PerimeterAssociableResourceInner; -import com.azure.resourcemanager.network.models.PerimeterAssociableResourcesListResult; +import com.azure.resourcemanager.network.implementation.models.PerimeterAssociableResourcesListResult; import reactor.core.publisher.Mono; /** @@ -62,23 +62,23 @@ public final class NetworkSecurityPerimeterAssociableResourceTypesClientImpl * NetworkManagementClientNetworkSecurityPerimeterAssociableResourceTypes to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterAssociableResourceTypes") public interface NetworkSecurityPerimeterAssociableResourceTypesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/perimeterAssociableResourceTypes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -86,7 +86,7 @@ Mono> listNext( * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -109,8 +109,8 @@ private Mono> listSinglePageAsyn final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -120,7 +120,7 @@ private Mono> listSinglePageAsyn * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -146,7 +146,7 @@ private Mono> listSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -155,7 +155,7 @@ private Mono> listSinglePageAsyn * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -170,7 +170,7 @@ public PagedFlux listAsync(String location) { * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -187,7 +187,7 @@ private PagedFlux listAsync(String location, C * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -202,7 +202,7 @@ public PagedIterable list(String location) { * Gets the list of resources that are onboarded with NSP. These resources can be associated with a network security * perimeter. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociationsClientImpl.java index a7b9da522685..42bea4c104e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterAssociationsClient; import com.azure.resourcemanager.network.fluent.models.NspAssociationInner; -import com.azure.resourcemanager.network.models.NspAssociationsListResult; +import com.azure.resourcemanager.network.implementation.models.NspAssociationsListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -70,78 +70,75 @@ public final class NetworkSecurityPerimeterAssociationsClientImpl * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterAssociations to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterAssociations") public interface NetworkSecurityPerimeterAssociationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("associationName") String associationName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NspAssociationInner parameters, @HeaderParam("Accept") String accept, + @PathParam("associationName") String associationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NspAssociationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("associationName") String associationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}/reconcile") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> reconcile(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> reconcile(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") Object parameters, @HeaderParam("Accept") String accept, Context context); + @PathParam("associationName") String associationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") Object parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,15 +173,15 @@ public Mono> getWithResponseAsync(String resourceG final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, associationName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, associationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -220,14 +217,14 @@ private Mono> getWithResponseAsync(String resource final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, associationName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, associationName, accept, context); } /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -245,7 +242,7 @@ public Mono getAsync(String resourceGroupName, String netwo /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -263,7 +260,7 @@ public Response getWithResponse(String resourceGroupName, S /** * Gets the specified NSP association by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -281,7 +278,7 @@ public NspAssociationInner get(String resourceGroupName, String networkSecurityP /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -320,18 +317,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, associationName, apiVersion, parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, associationName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -371,16 +369,17 @@ private Mono>> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, associationName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, associationName, contentType, accept, parameters, context); } /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -402,7 +401,7 @@ public PollerFlux, NspAssociationInner> beginCre /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -426,7 +425,7 @@ private PollerFlux, NspAssociationInner> beginCr /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -447,7 +446,7 @@ public SyncPoller, NspAssociationInner> beginCre /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -470,7 +469,7 @@ public SyncPoller, NspAssociationInner> beginCre /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -490,7 +489,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -510,7 +509,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -529,7 +528,7 @@ public NspAssociationInner createOrUpdate(String resourceGroupName, String netwo /** * Creates or updates a NSP resource association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters that hold the NspAssociation resource to be created/updated. @@ -549,7 +548,7 @@ public NspAssociationInner createOrUpdate(String resourceGroupName, String netwo /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -581,17 +580,17 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter associationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, associationName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, associationName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -624,16 +623,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter associationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, associationName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, associationName, context); } /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -653,7 +651,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -675,7 +673,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -692,7 +690,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -711,7 +709,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -729,7 +727,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -748,7 +746,7 @@ private Mono deleteAsync(String resourceGroupName, String networkSecurityP /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -763,7 +761,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Deletes an NSP association resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param context The context to associate with this operation. @@ -780,7 +778,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -790,8 +788,8 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of NspAssociation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -815,8 +813,8 @@ private Mono> listSinglePageAsync(String reso final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -825,7 +823,7 @@ private Mono> listSinglePageAsync(String reso /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -836,8 +834,8 @@ private Mono> listSinglePageAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of NspAssociation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -862,8 +860,8 @@ private Mono> listSinglePageAsync(String reso final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -871,7 +869,7 @@ private Mono> listSinglePageAsync(String reso /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -881,7 +879,7 @@ private Mono> listSinglePageAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedFlux}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -894,12 +892,12 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedFlux}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName) { @@ -913,7 +911,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -924,7 +922,7 @@ public PagedFlux listAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedFlux}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -937,12 +935,12 @@ private PagedFlux listAsync(String resourceGroupName, Strin /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedIterable}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName) { @@ -954,7 +952,7 @@ public PagedIterable list(String resourceGroupName, String /** * Lists the NSP resource associations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -965,7 +963,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations as paginated response with {@link PagedIterable}. + * @return paged collection of NspAssociation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -976,14 +974,14 @@ public PagedIterable list(String resourceGroupName, String /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> reconcileWithResponseAsync(String resourceGroupName, @@ -1012,18 +1010,19 @@ public Mono> reconcileWithResponseAsync(String resourceGroupNam return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, associationName, apiVersion, parameters, accept, - context)) + .withContext(context -> service.reconcile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, associationName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. @@ -1031,7 +1030,7 @@ public Mono> reconcileWithResponseAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return anything along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> reconcileWithResponseAsync(String resourceGroupName, @@ -1060,23 +1059,24 @@ private Mono> reconcileWithResponseAsync(String resourceGroupNa return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, associationName, apiVersion, parameters, accept, context); + return service.reconcile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, associationName, contentType, accept, parameters, context); } /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object on successful completion of {@link Mono}. + * @return anything on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono reconcileAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -1088,7 +1088,7 @@ public Mono reconcileAsync(String resourceGroupName, String networkSecur /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. @@ -1096,7 +1096,7 @@ public Mono reconcileAsync(String resourceGroupName, String networkSecur * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response}. + * @return anything along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response reconcileWithResponse(String resourceGroupName, String networkSecurityPerimeterName, @@ -1108,14 +1108,14 @@ public Response reconcileWithResponse(String resourceGroupName, String n /** * Reconcile NSP association. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param associationName The name of the NSP association. * @param parameters Parameters for NSP association reconcile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return anything. */ @ServiceMethod(returns = ReturnType.SINGLE) public Object reconcile(String resourceGroupName, String networkSecurityPerimeterName, String associationName, @@ -1131,8 +1131,8 @@ public Object reconcile(String resourceGroupName, String networkSecurityPerimete * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of NspAssociation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1158,8 +1158,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP resource associations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of NspAssociation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinkReferencesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinkReferencesClientImpl.java index 4ce1367bd277..ea045b4ba8fc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinkReferencesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinkReferencesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -31,7 +31,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterLinkReferencesClient; import com.azure.resourcemanager.network.fluent.models.NspLinkReferenceInner; -import com.azure.resourcemanager.network.models.NspLinkReferenceListResult; +import com.azure.resourcemanager.network.implementation.models.NspLinkReferenceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,55 +67,54 @@ public final class NetworkSecurityPerimeterLinkReferencesClientImpl * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterLinkReferences to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterLinkReferences") public interface NetworkSecurityPerimeterLinkReferencesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/linkReferences/{linkReferenceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("linkReferenceName") String linkReferenceName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkReferenceName") String linkReferenceName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/linkReferences/{linkReferenceName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("linkReferenceName") String linkReferenceName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkReferenceName") String linkReferenceName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/linkReferences") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,15 +149,15 @@ public Mono> getWithResponseAsync(String resourc final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, linkReferenceName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, linkReferenceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -194,14 +193,14 @@ private Mono> getWithResponseAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, linkReferenceName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, linkReferenceName, accept, context); } /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,7 +218,7 @@ public Mono getAsync(String resourceGroupName, String net /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -238,7 +237,7 @@ public Response getWithResponse(String resourceGroupName, /** * Gets the specified NSP linkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -256,7 +255,7 @@ public NspLinkReferenceInner get(String resourceGroupName, String networkSecurit /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -288,17 +287,17 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter linkReferenceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, linkReferenceName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, linkReferenceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -331,16 +330,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter linkReferenceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, linkReferenceName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, linkReferenceName, context); } /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -360,7 +358,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -382,7 +380,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -400,7 +398,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -419,7 +417,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -437,7 +435,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -456,7 +454,7 @@ private Mono deleteAsync(String resourceGroupName, String networkSecurityP /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,7 +469,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Deletes an NSP LinkReference resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkReferenceName The name of the NSP linkReference. * @param context The context to associate with this operation. @@ -488,7 +486,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -498,7 +496,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources along with {@link PagedResponse} on successful + * @return the response of a NspLinkReference list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -523,8 +521,8 @@ private Mono> listSinglePageAsync(String re final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -533,7 +531,7 @@ private Mono> listSinglePageAsync(String re /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -544,7 +542,7 @@ private Mono> listSinglePageAsync(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources along with {@link PagedResponse} on successful + * @return the response of a NspLinkReference list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -570,8 +568,8 @@ private Mono> listSinglePageAsync(String re final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -579,7 +577,7 @@ private Mono> listSinglePageAsync(String re /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -589,7 +587,7 @@ private Mono> listSinglePageAsync(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -602,12 +600,12 @@ public PagedFlux listAsync(String resourceGroupName, Stri /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName) { @@ -621,7 +619,7 @@ public PagedFlux listAsync(String resourceGroupName, Stri /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -632,7 +630,7 @@ public PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -645,13 +643,12 @@ private PagedFlux listAsync(String resourceGroupName, Str /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with - * {@link PagedIterable}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName) { @@ -663,7 +660,7 @@ public PagedIterable list(String resourceGroupName, Strin /** * Lists the NSP LinkReference resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -674,8 +671,7 @@ public PagedIterable list(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources as paginated response with - * {@link PagedIterable}. + * @return the response of a NspLinkReference list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -690,7 +686,7 @@ public PagedIterable list(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources along with {@link PagedResponse} on successful + * @return the response of a NspLinkReference list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -717,7 +713,7 @@ private Mono> listNextSinglePageAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP linkReference resources along with {@link PagedResponse} on successful + * @return the response of a NspLinkReference list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinksClientImpl.java index cfb645df2a0d..0f51930ab45a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterLinksClient; import com.azure.resourcemanager.network.fluent.models.NspLinkInner; -import com.azure.resourcemanager.network.models.NspLinkListResult; +import com.azure.resourcemanager.network.implementation.models.NspLinkListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,66 +67,63 @@ public final class NetworkSecurityPerimeterLinksClientImpl implements NetworkSec * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterLinks to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterLinks") public interface NetworkSecurityPerimeterLinksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("linkName") String linkName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkName") String linkName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("linkName") String linkName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NspLinkInner parameters, @HeaderParam("Accept") String accept, + @PathParam("linkName") String linkName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NspLinkInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("linkName") String linkName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkName") String linkName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,15 +156,15 @@ public Mono> getWithResponseAsync(String resourceGroupNam final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, linkName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, linkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -201,14 +198,14 @@ private Mono> getWithResponseAsync(String resourceGroupNa final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, linkName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, linkName, accept, context); } /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,7 +222,7 @@ public Mono getAsync(String resourceGroupName, String networkSecur /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -243,7 +240,7 @@ public Response getWithResponse(String resourceGroupName, String n /** * Gets the specified NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,7 +256,7 @@ public NspLinkInner get(String resourceGroupName, String networkSecurityPerimete /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -297,17 +294,19 @@ public Mono> createOrUpdateWithResponseAsync(String resou parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, linkName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, linkName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -346,16 +345,17 @@ private Mono> createOrUpdateWithResponseAsync(String reso parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, linkName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, linkName, contentType, accept, parameters, context); } /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -374,7 +374,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, String n /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -394,7 +394,7 @@ public Response createOrUpdateWithResponse(String resourceGroupNam /** * Creates or updates NSP link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param parameters Parameters that hold the NspLink resource to be created/updated. @@ -413,7 +413,7 @@ public NspLinkInner createOrUpdate(String resourceGroupName, String networkSecur /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -444,17 +444,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter linkName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, linkName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, linkName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -486,16 +485,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter linkName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, linkName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, linkName, context); } /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -515,7 +513,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -537,7 +535,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -554,7 +552,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -573,7 +571,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,7 +588,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -609,7 +607,7 @@ private Mono deleteAsync(String resourceGroupName, String networkSecurityP /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -624,7 +622,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Deletes an NSP Link resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param linkName The name of the NSP link. * @param context The context to associate with this operation. @@ -641,7 +639,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -651,8 +649,8 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NspLink list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -676,8 +674,8 @@ private Mono> listSinglePageAsync(String resourceGro final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -686,7 +684,7 @@ private Mono> listSinglePageAsync(String resourceGro /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -697,8 +695,8 @@ private Mono> listSinglePageAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NspLink list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -723,8 +721,8 @@ private Mono> listSinglePageAsync(String resourceGro final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -732,7 +730,7 @@ private Mono> listSinglePageAsync(String resourceGro /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -742,7 +740,7 @@ private Mono> listSinglePageAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLink list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -755,12 +753,12 @@ public PagedFlux listAsync(String resourceGroupName, String networ /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLink list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName) { @@ -774,7 +772,7 @@ public PagedFlux listAsync(String resourceGroupName, String networ /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -785,7 +783,7 @@ public PagedFlux listAsync(String resourceGroupName, String networ * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedFlux}. + * @return the response of a NspLink list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -798,12 +796,12 @@ private PagedFlux listAsync(String resourceGroupName, String netwo /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedIterable}. + * @return the response of a NspLink list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName) { @@ -815,7 +813,7 @@ public PagedIterable list(String resourceGroupName, String network /** * Lists the NSP Link resources in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -826,7 +824,7 @@ public PagedIterable list(String resourceGroupName, String network * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources as paginated response with {@link PagedIterable}. + * @return the response of a NspLink list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, Integer top, @@ -841,8 +839,8 @@ public PagedIterable list(String resourceGroupName, String network * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NspLink list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -868,8 +866,8 @@ private Mono> listNextSinglePageAsync(String nextLin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP link resources along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a NspLink list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLoggingConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLoggingConfigurationsClientImpl.java index 526df5ca00f1..b14d8af090d3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLoggingConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLoggingConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterLoggingConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.NspLoggingConfigurationInner; -import com.azure.resourcemanager.network.models.NspLoggingConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.NspLoggingConfigurationListResult; import reactor.core.publisher.Mono; /** @@ -64,67 +64,64 @@ public final class NetworkSecurityPerimeterLoggingConfigurationsClientImpl * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterLoggingConfigurations * to be used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterLoggingConfigurations") public interface NetworkSecurityPerimeterLoggingConfigurationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations/{loggingConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("loggingConfigurationName") String loggingConfigurationName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations/{loggingConfigurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, @PathParam("loggingConfigurationName") String loggingConfigurationName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NspLoggingConfigurationInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NspLoggingConfigurationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations/{loggingConfigurationName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("loggingConfigurationName") String loggingConfigurationName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("loggingConfigurationName") String loggingConfigurationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -158,15 +155,15 @@ public Mono> getWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -201,14 +198,14 @@ private Mono> getWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, loggingConfigurationName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, loggingConfigurationName, accept, context); } /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +223,7 @@ public Mono getAsync(String resourceGroupName, Str /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -245,7 +242,7 @@ public Response getWithResponse(String resourceGro /** * Gets the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -263,7 +260,7 @@ public NspLoggingConfigurationInner get(String resourceGroupName, String network /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -301,18 +298,19 @@ public Mono> createOrUpdateWithResponseAs parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, apiVersion, parameters, - accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, + loggingConfigurationName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -352,16 +350,18 @@ private Mono> createOrUpdateWithResponseA parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, loggingConfigurationName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, contentType, accept, parameters, + context); } /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -380,7 +380,7 @@ public Mono createOrUpdateAsync(String resourceGro /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -401,7 +401,7 @@ public Response createOrUpdateWithResponse(String /** * Creates or updates NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param parameters Parameters that hold the NspLoggingConfiguration to be created/updated. @@ -420,7 +420,7 @@ public NspLoggingConfigurationInner createOrUpdate(String resourceGroupName, Str /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -452,17 +452,17 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St new IllegalArgumentException("Parameter loggingConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, loggingConfigurationName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -495,16 +495,15 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S new IllegalArgumentException("Parameter loggingConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, loggingConfigurationName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, loggingConfigurationName, context); } /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -522,7 +521,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @param context The context to associate with this operation. @@ -541,7 +540,7 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Deletes an NSP Logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param loggingConfigurationName The name of the NSP logging configuration. Accepts 'instance' as name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -556,12 +555,12 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration along with {@link PagedResponse} on successful + * @return the response of a NspLoggingConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -586,8 +585,8 @@ private Mono> listSinglePageAsync(St final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -596,13 +595,13 @@ private Mono> listSinglePageAsync(St /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration along with {@link PagedResponse} on successful + * @return the response of a NspLoggingConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -628,8 +627,8 @@ private Mono> listSinglePageAsync(St final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -637,12 +636,12 @@ private Mono> listSinglePageAsync(St /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedFlux}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, @@ -654,13 +653,13 @@ public PagedFlux listAsync(String resourceGroupNam /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedFlux}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, @@ -672,12 +671,13 @@ private PagedFlux listAsync(String resourceGroupNa /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedIterable}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, @@ -688,13 +688,14 @@ public PagedIterable list(String resourceGroupName /** * Lists the NSP logging configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration as paginated response with {@link PagedIterable}. + * @return the response of a NspLoggingConfiguration list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, @@ -709,7 +710,7 @@ public PagedIterable list(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration along with {@link PagedResponse} on successful + * @return the response of a NspLoggingConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -736,7 +737,7 @@ private Mono> listNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP logging configuration along with {@link PagedResponse} on successful + * @return the response of a NspLoggingConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterOperationStatusesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterOperationStatusesClientImpl.java index 3a10ee6dfc41..fc7154ebc2a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterOperationStatusesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterOperationStatusesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -56,23 +56,23 @@ public final class NetworkSecurityPerimeterOperationStatusesClientImpl * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterOperationStatuses to * be used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterOperationStatuses") public interface NetworkSecurityPerimeterOperationStatusesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/networkSecurityPerimeterOperationStatuses/{operationId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @PathParam("operationId") String operationId, @QueryParam("api-version") String apiVersion, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); } /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -99,15 +99,15 @@ public Mono> getWithResponseAsync(String lo final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - operationId, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,14 +136,14 @@ private Mono> getWithResponseAsync(String l final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), location, operationId, - apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, + operationId, accept, context); } /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -158,7 +158,7 @@ public Mono getAsync(String location, String operati /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -174,7 +174,7 @@ public Response getWithResponse(String location, Str /** * Gets the operation status for the given operation id. * - * @param location The location of network security perimeter. + * @param location The name of the Azure region. * @param operationId The operation id of the async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterProfilesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterProfilesClientImpl.java index a8f58e0ba9eb..9fb6bb4a061b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterProfilesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterProfilesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterProfilesClient; import com.azure.resourcemanager.network.fluent.models.NspProfileInner; -import com.azure.resourcemanager.network.models.NspProfileListResult; +import com.azure.resourcemanager.network.implementation.models.NspProfileListResult; import reactor.core.publisher.Mono; /** @@ -62,66 +62,63 @@ public final class NetworkSecurityPerimeterProfilesClientImpl implements Network * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterProfiles to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterProfiles") public interface NetworkSecurityPerimeterProfilesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("profileName") String profileName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("profileName") String profileName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("profileName") String profileName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NspProfileInner parameters, @HeaderParam("Accept") String accept, + @PathParam("profileName") String profileName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NspProfileInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @PathParam("profileName") String profileName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("profileName") String profileName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -154,15 +151,15 @@ public Mono> getWithResponseAsync(String resourceGroup final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, profileName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -196,14 +193,14 @@ private Mono> getWithResponseAsync(String resourceGrou final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, profileName, accept, context); } /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -221,7 +218,7 @@ public Mono getAsync(String resourceGroupName, String networkSe /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -239,7 +236,7 @@ public Response getWithResponse(String resourceGroupName, Strin /** * Gets the specified NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +252,7 @@ public NspProfileInner get(String resourceGroupName, String networkSecurityPerim /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -293,17 +290,19 @@ public Mono> createOrUpdateWithResponseAsync(String re parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, profileName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, profileName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -342,16 +341,17 @@ private Mono> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, profileName, contentType, accept, parameters, context); } /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -370,7 +370,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -390,7 +390,7 @@ public Response createOrUpdateWithResponse(String resourceGroup /** * Creates or updates a network profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param parameters Parameters that hold the NspProfile resource to be created/updated. @@ -409,7 +409,7 @@ public NspProfileInner createOrUpdate(String resourceGroupName, String networkSe /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -440,17 +440,16 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, profileName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, profileName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -482,16 +481,15 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error(new IllegalArgumentException("Parameter profileName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, profileName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, profileName, context); } /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -508,7 +506,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @param context The context to associate with this operation. @@ -526,7 +524,7 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Deletes an NSP profile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param profileName The name of the NSP profile. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -541,7 +539,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -551,7 +549,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles along with {@link PagedResponse} on successful completion of + * @return the response of a NspProfile list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -576,8 +574,8 @@ private Mono> listSinglePageAsync(String resource final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -586,7 +584,7 @@ private Mono> listSinglePageAsync(String resource /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -597,7 +595,7 @@ private Mono> listSinglePageAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles along with {@link PagedResponse} on successful completion of + * @return the response of a NspProfile list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -623,8 +621,8 @@ private Mono> listSinglePageAsync(String resource final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -632,7 +630,7 @@ private Mono> listSinglePageAsync(String resource /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -642,7 +640,7 @@ private Mono> listSinglePageAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedFlux}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -655,12 +653,12 @@ public PagedFlux listAsync(String resourceGroupName, String net /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedFlux}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName) { @@ -674,7 +672,7 @@ public PagedFlux listAsync(String resourceGroupName, String net /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -685,7 +683,7 @@ public PagedFlux listAsync(String resourceGroupName, String net * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedFlux}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkSecurityPerimeterName, @@ -698,12 +696,12 @@ private PagedFlux listAsync(String resourceGroupName, String ne /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedIterable}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName) { @@ -715,7 +713,7 @@ public PagedIterable list(String resourceGroupName, String netw /** * Lists the NSP profiles in the specified network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -726,7 +724,7 @@ public PagedIterable list(String resourceGroupName, String netw * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles as paginated response with {@link PagedIterable}. + * @return the response of a NspProfile list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkSecurityPerimeterName, @@ -741,7 +739,7 @@ public PagedIterable list(String resourceGroupName, String netw * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles along with {@link PagedResponse} on successful completion of + * @return the response of a NspProfile list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -768,7 +766,7 @@ private Mono> listNextSinglePageAsync(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NSP profiles along with {@link PagedResponse} on successful completion of + * @return the response of a NspProfile list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterServiceTagsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterServiceTagsClientImpl.java index 78fa0f8847c9..0a7a57f4f15d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterServiceTagsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterServiceTagsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimeterServiceTagsClient; import com.azure.resourcemanager.network.fluent.models.NspServiceTagsResourceInner; -import com.azure.resourcemanager.network.models.NspServiceTagsListResult; +import com.azure.resourcemanager.network.implementation.models.NspServiceTagsListResult; import reactor.core.publisher.Mono; /** @@ -59,30 +59,30 @@ public final class NetworkSecurityPerimeterServiceTagsClientImpl implements Netw * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeterServiceTags to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeterServiceTags") public interface NetworkSecurityPerimeterServiceTagsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/nspServiceTags") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -105,8 +105,8 @@ private Mono> listSinglePageAsync(Str final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, - apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -115,7 +115,7 @@ private Mono> listSinglePageAsync(Str /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -140,7 +140,7 @@ private Mono> listSinglePageAsync(Str final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), location, apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(Str /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -162,7 +162,7 @@ public PagedFlux listAsync(String location) { /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -178,7 +178,7 @@ private PagedFlux listAsync(String location, Contex /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -192,7 +192,7 @@ public PagedIterable list(String location) { /** * Gets the list of service tags supported by NSP. These service tags can be used to create access rules in NSP. * - * @param location The location of network security perimeter. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimetersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimetersClientImpl.java index 53bad5afaebe..9a9c5f1f5a3b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimetersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimetersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkSecurityPerimetersClient; import com.azure.resourcemanager.network.fluent.models.NetworkSecurityPerimeterInner; -import com.azure.resourcemanager.network.models.NetworkSecurityPerimeterListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkSecurityPerimeterListResult; import com.azure.resourcemanager.network.models.UpdateTagsRequest; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,69 +73,64 @@ public final class NetworkSecurityPerimetersClientImpl implements InnerSupportsG * The interface defining all the services for NetworkManagementClientNetworkSecurityPerimeters to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkSecurityPerimeters") public interface NetworkSecurityPerimetersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetworkSecurityPerimeterInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkSecurityPerimeterInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") - @ExpectedResponses({ 200, 202, 204 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> patch(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @QueryParam("forceDeletion") Boolean forceDeletion, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") UpdateTagsRequest parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> patch(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityPerimeterName") String networkSecurityPerimeterName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") UpdateTagsRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("forceDeletion") Boolean forceDeletion, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @@ -143,23 +138,23 @@ Mono> listByResourceGroup(@HostPara @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -189,16 +184,15 @@ public Mono> getByResourceGroupWithRespo final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,14 +223,14 @@ private Mono> getByResourceGroupWithResp final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, accept, context); } /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -253,7 +247,7 @@ public Mono getByResourceGroupAsync(String resour /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,7 +264,7 @@ public Response getByResourceGroupWithResponse(St /** * Gets the specified network security perimeter by the name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -286,7 +280,7 @@ public NetworkSecurityPerimeterInner getByResourceGroup(String resourceGroupName /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -320,17 +314,19 @@ public Mono> createOrUpdateWithResponseA parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityPerimeterName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @param context The context to associate with this operation. @@ -365,16 +361,17 @@ private Mono> createOrUpdateWithResponse parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, contentType, accept, parameters, context); } /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -392,7 +389,7 @@ public Mono createOrUpdateAsync(String resourceGr /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @param context The context to associate with this operation. @@ -411,7 +408,7 @@ public Response createOrUpdateWithResponse(String /** * Creates or updates a Network Security Perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param parameters Parameter supplied to create or update the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -426,10 +423,154 @@ public NetworkSecurityPerimeterInner createOrUpdate(String resourceGroupName, St .getValue(); } + /** + * Patch Tags for a Network Security Perimeter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Network Security Perimeter resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> patchWithResponseAsync(String resourceGroupName, + String networkSecurityPerimeterName, UpdateTagsRequest parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityPerimeterName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Patch Tags for a Network Security Perimeter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Network Security Perimeter resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> patchWithResponseAsync(String resourceGroupName, + String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityPerimeterName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.patch(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, contentType, accept, parameters, context); + } + + /** + * Patch Tags for a Network Security Perimeter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Network Security Perimeter resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono patchAsync(String resourceGroupName, String networkSecurityPerimeterName, + UpdateTagsRequest parameters) { + return patchWithResponseAsync(resourceGroupName, networkSecurityPerimeterName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Patch Tags for a Network Security Perimeter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Network Security Perimeter resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response patchWithResponse(String resourceGroupName, + String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context) { + return patchWithResponseAsync(resourceGroupName, networkSecurityPerimeterName, parameters, context).block(); + } + + /** + * Patch Tags for a Network Security Perimeter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityPerimeterName The name of the network security perimeter. + * @param parameters Parameter supplied to the network security perimeter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Network Security Perimeter resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecurityPerimeterName, + UpdateTagsRequest parameters) { + return patchWithResponse(resourceGroupName, networkSecurityPerimeterName, parameters, Context.NONE).getValue(); + } + /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -457,17 +598,17 @@ public Mono>> deleteWithResponseAsync(String resourceG new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, forceDeletion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityPerimeterName, forceDeletion, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. @@ -496,16 +637,15 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, forceDeletion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityPerimeterName, forceDeletion, context); } /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -525,7 +665,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -545,7 +685,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. @@ -567,7 +707,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -584,7 +724,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. @@ -603,7 +743,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,7 +761,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -638,7 +778,7 @@ public Mono deleteAsync(String resourceGroupName, String networkSecurityPe /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. @@ -657,7 +797,7 @@ private Mono deleteAsync(String resourceGroupName, String networkSecurityP /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -672,7 +812,7 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName /** * Deletes a network security perimeter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityPerimeterName The name of the network security perimeter. * @param forceDeletion Deletes the resource even if it contains any child associations. * @param context The context to associate with this operation. @@ -687,149 +827,9 @@ public void delete(String resourceGroupName, String networkSecurityPerimeterName } /** - * Patch Tags for a Network Security Perimeter. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> patchWithResponseAsync(String resourceGroupName, - String networkSecurityPerimeterName, UpdateTagsRequest parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityPerimeterName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkSecurityPerimeterName, apiVersion, parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch Tags for a Network Security Perimeter. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> patchWithResponseAsync(String resourceGroupName, - String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityPerimeterName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityPerimeterName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkSecurityPerimeterName, apiVersion, parameters, accept, context); - } - - /** - * Patch Tags for a Network Security Perimeter. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono patchAsync(String resourceGroupName, String networkSecurityPerimeterName, - UpdateTagsRequest parameters) { - return patchWithResponseAsync(resourceGroupName, networkSecurityPerimeterName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Patch Tags for a Network Security Perimeter. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response patchWithResponse(String resourceGroupName, - String networkSecurityPerimeterName, UpdateTagsRequest parameters, Context context) { - return patchWithResponseAsync(resourceGroupName, networkSecurityPerimeterName, parameters, context).block(); - } - - /** - * Patch Tags for a Network Security Perimeter. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityPerimeterName The name of the network security perimeter. - * @param parameters Parameter supplied to the network security perimeter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Security Perimeter resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkSecurityPerimeterInner patch(String resourceGroupName, String networkSecurityPerimeterName, - UpdateTagsRequest parameters) { - return patchWithResponse(resourceGroupName, networkSecurityPerimeterName, parameters, Context.NONE).getValue(); - } - - /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -838,11 +838,12 @@ public NetworkSecurityPerimeterInner patch(String resourceGroupName, String netw * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Integer top, String skipToken) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Integer top, String skipToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -851,19 +852,24 @@ private Mono> listSinglePageAsync(I return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - top, skipToken, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -873,12 +879,12 @@ private Mono> listSinglePageAsync(I * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Integer top, String skipToken, - Context context) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Integer top, String skipToken, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -887,19 +893,24 @@ private Mono> listSinglePageAsync(I return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, top, skipToken, accept, - context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -908,32 +919,36 @@ private Mono> listSinglePageAsync(I * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, + String skipToken) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { final Integer top = null; final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -943,31 +958,36 @@ public PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken, context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, + String skipToken, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { + public PagedIterable listByResourceGroup(String resourceGroupName) { final Integer top = null; final String skipToken = null; - return new PagedIterable<>(listAsync(top, skipToken)); + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken)); } /** - * List all network security perimeters in a subscription. + * List network security perimeters in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -977,17 +997,18 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(top, skipToken, context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Integer top, + String skipToken, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken, context)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -996,12 +1017,11 @@ public PagedIterable list(Integer top, String ski * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Integer top, String skipToken) { + private Mono> listSinglePageAsync(Integer top, String skipToken) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1010,24 +1030,19 @@ public PagedIterable list(Integer top, String ski return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1037,12 +1052,12 @@ public PagedIterable list(Integer top, String ski * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Integer top, String skipToken, Context context) { + private Mono> listSinglePageAsync(Integer top, String skipToken, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1051,24 +1066,19 @@ public PagedIterable list(Integer top, String ski return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), top, skipToken, accept, + context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1077,36 +1087,32 @@ public PagedIterable list(Integer top, String ski * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, - String skipToken) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync(Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + public PagedFlux listAsync() { final Integer top = null; final String skipToken = null; - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1116,35 +1122,32 @@ public PagedFlux listByResourceGroupAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedFlux}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, - String skipToken, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, top, skipToken, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(top, skipToken, context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { + public PagedIterable list() { final Integer top = null; final String skipToken = null; - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken)); + return new PagedIterable<>(listAsync(top, skipToken)); } /** - * List network security perimeters in a resource group. + * List all network security perimeters in a subscription. * - * @param resourceGroupName The name of the resource group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response @@ -1154,12 +1157,12 @@ public PagedIterable listByResourceGroup(String r * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter as paginated response with {@link PagedIterable}. + * @return the response of a NetworkSecurityPerimeter list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Integer top, - String skipToken, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, top, skipToken, context)); + public PagedIterable list(Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(top, skipToken, context)); } /** @@ -1169,11 +1172,11 @@ public PagedIterable listByResourceGroup(String r * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1182,9 +1185,7 @@ private Mono> listBySubscriptionNex new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1198,11 +1199,11 @@ private Mono> listBySubscriptionNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1213,7 +1214,7 @@ private Mono> listBySubscriptionNex } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1225,11 +1226,11 @@ private Mono> listBySubscriptionNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1238,7 +1239,9 @@ private Mono> listNextSinglePageAsy new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1252,11 +1255,11 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list NetworkSecurityPerimeter along with {@link PagedResponse} on successful + * @return the response of a NetworkSecurityPerimeter list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1267,7 +1270,7 @@ private Mono> listNextSinglePageAsy } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java index aa83d549908c..c5433eea5d04 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkVirtualApplianceConnectionsClient; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceConnectionInner; -import com.azure.resourcemanager.network.models.NetworkVirtualApplianceConnectionList; +import com.azure.resourcemanager.network.implementation.models.NetworkVirtualApplianceConnectionList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,68 +67,66 @@ public final class NetworkVirtualApplianceConnectionsClientImpl implements Netwo * The interface defining all the services for NetworkManagementClientNetworkVirtualApplianceConnections to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkVirtualApplianceConnections") public interface NetworkVirtualApplianceConnectionsService { - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, + @PathParam("connectionName") String connectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkVirtualApplianceConnectionInner networkVirtualApplianceConnectionParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,20 +165,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r networkVirtualApplianceConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkVirtualApplianceName, connectionName, apiVersion, - networkVirtualApplianceConnectionParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, connectionName, + contentType, accept, networkVirtualApplianceConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -220,19 +219,20 @@ private Mono>> createOrUpdateWithResponseAsync(String networkVirtualApplianceConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkVirtualApplianceName, connectionName, apiVersion, networkVirtualApplianceConnectionParameters, - accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, connectionName, contentType, accept, + networkVirtualApplianceConnectionParameters, context); } /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,9 +254,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -280,9 +280,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,9 +303,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -327,9 +327,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,9 +348,9 @@ public Mono createOrUpdateAsync(String r /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -370,9 +370,9 @@ private Mono createOrUpdateAsync(String /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -391,9 +391,9 @@ public NetworkVirtualApplianceConnectionInner createOrUpdate(String resourceGrou /** * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param networkVirtualApplianceConnectionParameters Parameters supplied in an NetworkVirtualApplianceConnection * PUT operation. * @param context The context to associate with this operation. @@ -413,9 +413,9 @@ public NetworkVirtualApplianceConnectionInner createOrUpdate(String resourceGrou /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -447,17 +447,17 @@ public Mono> getWithResponseAsy final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkVirtualApplianceName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -490,16 +490,16 @@ private Mono> getWithResponseAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkVirtualApplianceName, connectionName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, connectionName, accept, context); } /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -515,9 +515,9 @@ public Mono getAsync(String resourceGrou /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -533,9 +533,9 @@ public Response getWithResponse(String r /** * Retrieves the details of specified NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -550,9 +550,9 @@ public NetworkVirtualApplianceConnectionInner get(String resourceGroupName, Stri /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -581,19 +581,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkVirtualApplianceName, connectionName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -623,18 +623,17 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkVirtualApplianceName, connectionName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, connectionName, context); } /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -652,9 +651,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -674,9 +673,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -691,9 +690,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -710,9 +709,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -727,9 +726,9 @@ public Mono deleteAsync(String resourceGroupName, String networkVirtualApp /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -746,9 +745,9 @@ private Mono deleteAsync(String resourceGroupName, String networkVirtualAp /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -761,9 +760,9 @@ public void delete(String resourceGroupName, String networkVirtualApplianceName, /** * Deletes a NVA connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. + * @param connectionName The connectionName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -778,8 +777,8 @@ public void delete(String resourceGroupName, String networkVirtualApplianceName, /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -808,8 +807,8 @@ private Mono> listSinglePa final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkVirtualApplianceName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -818,8 +817,8 @@ private Mono> listSinglePa /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -850,8 +849,8 @@ private Mono> listSinglePa final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkVirtualApplianceName, apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -859,8 +858,8 @@ private Mono> listSinglePa /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -876,8 +875,8 @@ public PagedFlux listAsync(String resour /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -894,8 +893,8 @@ private PagedFlux listAsync(String resou /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -910,8 +909,8 @@ public PagedIterable list(String resourc /** * Lists NetworkVirtualApplianceConnections under the NVA. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java index de3416a9c42b..008be58d0187 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,8 +37,8 @@ import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInner; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInstanceIdInner; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInstanceIdsInner; +import com.azure.resourcemanager.network.implementation.models.NetworkVirtualApplianceListResult; import com.azure.resourcemanager.network.models.NetworkVirtualApplianceBootDiagnosticParameters; -import com.azure.resourcemanager.network.models.NetworkVirtualApplianceListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -77,106 +77,105 @@ public final class NetworkVirtualAppliancesClientImpl implements InnerSupportsGe * The interface defining all the services for NetworkManagementClientNetworkVirtualAppliances to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientNetworkVirtualAppliances") public interface NetworkVirtualAppliancesService { @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkVirtualApplianceInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkVirtualApplianceInner parameters, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/restart") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restart(@HostParam("$host") String endpoint, + Mono>> restart(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/reimage") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reimage(@HostParam("$host") String endpoint, + Mono>> reimage(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/getBootDiagnosticLogs") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getBootDiagnosticLogs(@HostParam("$host") String endpoint, + Mono>> getBootDiagnosticLogs(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkVirtualApplianceBootDiagnosticParameters request, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkVirtualApplianceBootDiagnosticParameters request, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -184,27 +183,33 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -213,36 +218,37 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -251,170 +257,90 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Network Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkVirtualApplianceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Network Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkVirtualApplianceName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Network Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, - String networkVirtualApplianceName) { - return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName).getSyncPoller(); - } - - /** - * Deletes the specified Network Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, context).getSyncPoller(); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, expand, accept, context); } /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the specified Network Virtual Appliance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName) { - return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono getByResourceGroupAsync(String resourceGroupName, + String networkVirtualApplianceName) { + final String expand = null; + return getByResourceGroupWithResponseAsync(resourceGroupName, networkVirtualApplianceName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, Context context) { - return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Network Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Network Virtual Appliance along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkVirtualApplianceName) { - deleteAsync(resourceGroupName, networkVirtualApplianceName).block(); + public Response getByResourceGroupWithResponse(String resourceGroupName, + String networkVirtualApplianceName, String expand, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, networkVirtualApplianceName, expand, context) + .block(); } /** - * Deletes the specified Network Virtual Appliance. + * Gets the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Network Virtual Appliance. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkVirtualApplianceName, Context context) { - deleteAsync(resourceGroupName, networkVirtualApplianceName, context).block(); + public NetworkVirtualApplianceInner getByResourceGroup(String resourceGroupName, + String networkVirtualApplianceName) { + final String expand = null; + return getByResourceGroupWithResponse(resourceGroupName, networkVirtualApplianceName, expand, Context.NONE) + .getValue(); } /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of - * {@link Mono}. + * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String expand) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -423,38 +349,44 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance along with {@link Response} on successful completion of - * {@link Mono}. + * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String expand, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -463,77 +395,179 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, contentType, accept, parameters, context); } /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, networkVirtualApplianceName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), NetworkVirtualApplianceInner.class, NetworkVirtualApplianceInner.class, + this.client.getContext()); + } + + /** + * Creates or updates the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, networkVirtualApplianceName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), NetworkVirtualApplianceInner.class, NetworkVirtualApplianceInner.class, + context); + } + + /** + * Creates or updates the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters) + .getSyncPoller(); + } + + /** + * Creates or updates the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( + String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context) + .getSyncPoller(); + } + + /** + * Creates or updates the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String networkVirtualApplianceName) { - final String expand = null; - return getByResourceGroupWithResponseAsync(resourceGroupName, networkVirtualApplianceName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono createOrUpdateAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance along with {@link Response}. + * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String networkVirtualApplianceName, String expand, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, networkVirtualApplianceName, expand, context) - .block(); + private Mono createOrUpdateAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified Network Virtual Appliance. + * Creates or updates the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified Network Virtual Appliance. + * @return networkVirtualAppliance Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkVirtualApplianceInner getByResourceGroup(String resourceGroupName, - String networkVirtualApplianceName) { - final String expand = null; - return getByResourceGroupWithResponse(resourceGroupName, networkVirtualApplianceName, expand, Context.NONE) - .getValue(); + public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInner parameters) { + return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters).block(); + } + + /** + * Creates or updates the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return networkVirtualAppliance Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context).block(); } /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -565,18 +599,20 @@ public Mono> updateTagsWithResponseAsync( parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkVirtualApplianceName, apiVersion, parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -609,17 +645,18 @@ private Mono> updateTagsWithResponseAsync parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkVirtualApplianceName, apiVersion, parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, contentType, accept, parameters, context); } /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -636,8 +673,8 @@ public Mono updateTagsAsync(String resourceGroupNa /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -654,8 +691,8 @@ public Response updateTagsWithResponse(String reso /** * Updates a Network Virtual Appliance. * - * @param resourceGroupName The resource group name of Network Virtual Appliance. - * @param networkVirtualApplianceName The name of Network Virtual Appliance being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param parameters Parameters supplied to Update Network Virtual Appliance Tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -670,23 +707,63 @@ public NetworkVirtualApplianceInner updateTags(String resourceGroupName, String } /** - * Creates or updates the specified Network Virtual Appliance. + * Deletes the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkVirtualApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -695,233 +772,400 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, context); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkVirtualApplianceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkVirtualApplianceName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, + String networkVirtualApplianceName) { + return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName).getSyncPoller(); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, context).getSyncPoller(); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName) { + return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, Context context) { + return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkVirtualApplianceName) { + deleteAsync(resourceGroupName, networkVirtualApplianceName).block(); + } + + /** + * Deletes the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkVirtualApplianceName, Context context) { + deleteAsync(resourceGroupName, networkVirtualApplianceName, context).block(); + } + + /** + * Lists all Network Virtual Appliances in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualAppliance list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates the specified Network Virtual Appliance. + * Lists all Network Virtual Appliances in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a NetworkVirtualAppliance list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, Context context) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkVirtualApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Lists all Network Virtual Appliances in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, networkVirtualApplianceName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), NetworkVirtualApplianceInner.class, NetworkVirtualApplianceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Lists all Network Virtual Appliances in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of networkVirtualAppliance Resource. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, NetworkVirtualApplianceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, networkVirtualApplianceName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), NetworkVirtualApplianceInner.class, NetworkVirtualApplianceInner.class, - context); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Lists all Network Virtual Appliances in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Lists all Network Virtual Appliances in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of networkVirtualAppliance Resource. + * @return the response of a NetworkVirtualAppliance list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, NetworkVirtualApplianceInner> beginCreateOrUpdate( - String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Gets all Network Virtual Appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. + * @return all Network Virtual Appliances in a subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, - String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates the specified Network Virtual Appliance. + * Gets all Network Virtual Appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource on successful completion of {@link Mono}. + * @return all Network Virtual Appliances in a subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Gets all Network Virtual Appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets all Network Virtual Appliances in a subscription. + * + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, - NetworkVirtualApplianceInner parameters) { - return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Creates or updates the specified Network Virtual Appliance. + * Gets all Network Virtual Appliances in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all Network Virtual Appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of Network Virtual Appliance. - * @param parameters Parameters supplied to the create or update Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return networkVirtualAppliance Resource. + * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, - NetworkVirtualApplianceInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> restartWithResponseAsync(String resourceGroupName, @@ -931,6 +1175,10 @@ public Mono>> restartWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -939,26 +1187,22 @@ public Mono>> restartWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (networkVirtualApplianceInstanceIds != null) { networkVirtualApplianceInstanceIds.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.restart(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - apiVersion, this.client.getSubscriptionId(), networkVirtualApplianceInstanceIds, accept, context)) + .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, accept, + networkVirtualApplianceInstanceIds, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -966,8 +1210,7 @@ public Mono>> restartWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, @@ -977,6 +1220,10 @@ private Mono>> restartWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -985,32 +1232,27 @@ private Mono>> restartWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (networkVirtualApplianceInstanceIds != null) { networkVirtualApplianceInstanceIds.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.restart(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, apiVersion, - this.client.getSubscriptionId(), networkVirtualApplianceInstanceIds, accept, context); + return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, accept, networkVirtualApplianceInstanceIds, context); } /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1027,13 +1269,12 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1050,7 +1291,7 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1058,8 +1299,7 @@ private Mono>> restartWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1077,13 +1317,12 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -1097,7 +1336,7 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1105,8 +1344,7 @@ private Mono>> restartWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -1121,15 +1359,14 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono restartAsync(String resourceGroupName, @@ -1143,13 +1380,12 @@ public Mono restartAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono restartAsync(String resourceGroupName, @@ -1163,7 +1399,7 @@ public Mono restartAsync(String resourc /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1171,8 +1407,7 @@ public Mono restartAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono restartAsync(String resourceGroupName, @@ -1185,12 +1420,12 @@ private Mono restartAsync(String resour /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, @@ -1202,7 +1437,7 @@ public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, /** * Restarts one or more VMs belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1210,7 +1445,7 @@ public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName, @@ -1222,15 +1457,14 @@ public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -1240,6 +1474,10 @@ public Mono>> reimageWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1248,26 +1486,22 @@ public Mono>> reimageWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (networkVirtualApplianceInstanceIds != null) { networkVirtualApplianceInstanceIds.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.reimage(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - apiVersion, this.client.getSubscriptionId(), networkVirtualApplianceInstanceIds, accept, context)) + .withContext(context -> service.reimage(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, accept, + networkVirtualApplianceInstanceIds, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1275,8 +1509,7 @@ public Mono>> reimageWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances along - * with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -1286,6 +1519,10 @@ private Mono>> reimageWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1294,32 +1531,27 @@ private Mono>> reimageWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (networkVirtualApplianceInstanceIds != null) { networkVirtualApplianceInstanceIds.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reimage(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, apiVersion, - this.client.getSubscriptionId(), networkVirtualApplianceInstanceIds, accept, context); + return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, accept, networkVirtualApplianceInstanceIds, context); } /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1336,13 +1568,12 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1359,7 +1590,7 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1367,8 +1598,7 @@ private Mono>> reimageWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, NetworkVirtualApplianceInstanceIdsInner> @@ -1386,13 +1616,12 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -1406,7 +1635,7 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1414,8 +1643,7 @@ private Mono>> reimageWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of specifies a list of virtual machine instance IDs from the Network - * Virtual Appliance VM instances. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> @@ -1430,15 +1658,14 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono reimageAsync(String resourceGroupName, @@ -1452,13 +1679,12 @@ public Mono reimageAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono reimageAsync(String resourceGroupName, @@ -1472,7 +1698,7 @@ public Mono reimageAsync(String resourc /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1480,8 +1706,7 @@ public Mono reimageAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on - * successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono reimageAsync(String resourceGroupName, @@ -1494,12 +1719,12 @@ private Mono reimageAsync(String resour /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, @@ -1511,7 +1736,7 @@ public NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, /** * Reimages one VM belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network * Virtual Appliance VM instances. @@ -1519,7 +1744,7 @@ public NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, String networkVirtualApplianceName, @@ -1531,7 +1756,7 @@ public NetworkVirtualApplianceInstanceIdsInner reimage(String resourceGroupName, /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1546,6 +1771,10 @@ public Mono>> getBootDiagnosticLogsWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1554,27 +1783,25 @@ public Mono>> getBootDiagnosticLogsWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); } else { request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getBootDiagnosticLogs(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, apiVersion, this.client.getSubscriptionId(), request, accept, context)) + .withContext(context -> service.getBootDiagnosticLogs(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, contentType, accept, + request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -1590,6 +1817,10 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1598,26 +1829,23 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); } else { request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getBootDiagnosticLogs(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - apiVersion, this.client.getSubscriptionId(), request, accept, context); + return service.getBootDiagnosticLogs(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, contentType, accept, request, context); } /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1639,7 +1867,7 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -1663,7 +1891,7 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1682,7 +1910,7 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -1702,7 +1930,7 @@ private Mono>> getBootDiagnosticLogsWithResponseAsync( /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1720,7 +1948,7 @@ public Mono getBootDiagnosticLogsAsync(S /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -1739,7 +1967,7 @@ private Mono getBootDiagnosticLogsAsync( /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1756,7 +1984,7 @@ public NetworkVirtualApplianceInstanceIdInner getBootDiagnosticLogs(String resou /** * Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual Appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param request Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. * @param context The context to associate with this operation. @@ -1771,249 +1999,6 @@ public NetworkVirtualApplianceInstanceIdInner getBootDiagnosticLogs(String resou return getBootDiagnosticLogsAsync(resourceGroupName, networkVirtualApplianceName, request, context).block(); } - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Lists all Network Virtual Appliances in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Gets all Network Virtual Appliances in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Network Virtual Appliances in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - /** * Get the next page of items. * @@ -2021,7 +2006,7 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call along with {@link PagedResponse} on successful + * @return the response of a NetworkVirtualAppliance list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2050,7 +2035,7 @@ private Mono> listByResourceGroupNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualAppliances API service call along with {@link PagedResponse} on successful + * @return the response of a NetworkVirtualAppliance list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java index 49c4f4d86bc5..861a53798e50 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -45,12 +45,12 @@ import com.azure.resourcemanager.network.fluent.models.TopologyInner; import com.azure.resourcemanager.network.fluent.models.TroubleshootingResultInner; import com.azure.resourcemanager.network.fluent.models.VerificationIpFlowResultInner; +import com.azure.resourcemanager.network.implementation.models.NetworkWatcherListResult; import com.azure.resourcemanager.network.models.AvailableProvidersListParameters; import com.azure.resourcemanager.network.models.AzureReachabilityReportParameters; import com.azure.resourcemanager.network.models.ConnectivityParameters; import com.azure.resourcemanager.network.models.FlowLogStatusParameters; import com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticParameters; -import com.azure.resourcemanager.network.models.NetworkWatcherListResult; import com.azure.resourcemanager.network.models.NextHopParameters; import com.azure.resourcemanager.network.models.QueryTroubleshootingParameters; import com.azure.resourcemanager.network.models.SecurityGroupViewParameters; @@ -95,201 +95,330 @@ public final class NetworkWatchersClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Accept") String accept, + Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkWatcherInner parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkWatcherInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getTopology(@HostParam("$host") String endpoint, + Mono> getTopology(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TopologyParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TopologyParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> verifyIpFlow(@HostParam("$host") String endpoint, + Mono>> verifyIpFlow(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VerificationIpFlowParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VerificationIpFlowParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getNextHop(@HostParam("$host") String endpoint, + Mono>> getNextHop(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NextHopParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NextHopParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getVMSecurityRules(@HostParam("$host") String endpoint, + Mono>> getVMSecurityRules(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") SecurityGroupViewParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SecurityGroupViewParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getTroubleshooting(@HostParam("$host") String endpoint, + Mono>> getTroubleshooting(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TroubleshootingParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TroubleshootingParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getTroubleshootingResult(@HostParam("$host") String endpoint, + Mono>> getTroubleshootingResult(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") QueryTroubleshootingParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") QueryTroubleshootingParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> setFlowLogConfiguration(@HostParam("$host") String endpoint, + Mono>> setFlowLogConfiguration(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FlowLogInformationInner parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FlowLogInformationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getFlowLogStatus(@HostParam("$host") String endpoint, + Mono>> getFlowLogStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") FlowLogStatusParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FlowLogStatusParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> checkConnectivity(@HostParam("$host") String endpoint, + Mono>> checkConnectivity(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ConnectivityParameters parameters, @HeaderParam("Accept") String accept, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ConnectivityParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getAzureReachabilityReport(@HostParam("$host") String endpoint, + Mono>> getAzureReachabilityReport(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") AzureReachabilityReportParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") AzureReachabilityReportParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listAvailableProviders(@HostParam("$host") String endpoint, + Mono>> listAvailableProviders(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") AvailableProvidersListParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") AvailableProvidersListParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getNetworkConfigurationDiagnostic(@HostParam("$host") String endpoint, + Mono>> getNetworkConfigurationDiagnostic(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NetworkConfigurationDiagnosticParameters parameters, + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkConfigurationDiagnosticParameters parameters, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkWatcherName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkWatcherName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkWatcherName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, accept, context); + } + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String networkWatcherName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, networkWatcherName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String networkWatcherName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, networkWatcherName, context).block(); + } + + /** + * Gets the specified network watcher by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified network watcher by resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkWatcherInner getByResourceGroup(String resourceGroupName, String networkWatcherName) { + return getByResourceGroupWithResponse(resourceGroupName, networkWatcherName, Context.NONE).getValue(); + } + /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -304,6 +433,10 @@ public Mono> createOrUpdateWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -312,27 +445,25 @@ public Mono> createOrUpdateWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @param context The context to associate with this operation. @@ -348,6 +479,10 @@ private Mono> createOrUpdateWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -356,26 +491,23 @@ private Mono> createOrUpdateWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -393,7 +525,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @param context The context to associate with this operation. @@ -411,7 +543,7 @@ public Response createOrUpdateWithResponse(String resourceG /** * Creates or updates a network watcher in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the network watcher resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -426,23 +558,27 @@ public NetworkWatcherInner createOrUpdate(String resourceGroupName, String netwo } /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkWatcherName) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkWatcherName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -451,37 +587,44 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String networkWatcherName, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String networkWatcherName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -490,69 +633,75 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group on successful completion of {@link Mono}. + * @return network watcher in a resource group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String networkWatcherName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, networkWatcherName) + public Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group along with {@link Response}. + * @return network watcher in a resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String networkWatcherName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, networkWatcherName, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, parameters, context).block(); } /** - * Gets the specified network watcher by resource group. + * Updates a network watcher tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. + * @param parameters Parameters supplied to update network watcher tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network watcher by resource group. + * @return network watcher in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkWatcherInner getByResourceGroup(String resourceGroupName, String networkWatcherName) { - return getByResourceGroupWithResponse(resourceGroupName, networkWatcherName, Context.NONE).getValue(); + public NetworkWatcherInner updateTags(String resourceGroupName, String networkWatcherName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, networkWatcherName, parameters, Context.NONE).getValue(); } /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -566,6 +715,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -574,22 +727,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -604,6 +752,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -612,21 +764,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, context); } /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -643,7 +790,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -663,7 +810,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -678,7 +825,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -695,7 +842,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -711,7 +858,7 @@ public Mono deleteAsync(String resourceGroupName, String networkWatcherNam /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -728,7 +875,7 @@ private Mono deleteAsync(String resourceGroupName, String networkWatcherNa /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -742,7 +889,7 @@ public void delete(String resourceGroupName, String networkWatcherName) { /** * Deletes the specified network watcher resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -754,148 +901,10 @@ public void delete(String resourceGroupName, String networkWatcherName, Context deleteAsync(resourceGroupName, networkWatcherName, context).block(); } - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkWatcherName, TagsObject parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String networkWatcherName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkWatcherName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); - } - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String networkWatcherName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String networkWatcherName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, networkWatcherName, parameters, context).block(); - } - - /** - * Updates a network watcher tags. - * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher. - * @param parameters Parameters supplied to update network watcher tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return network watcher in a resource group. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkWatcherInner updateTags(String resourceGroupName, String networkWatcherName, TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, networkWatcherName, parameters, Context.NONE).getValue(); - } - /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -908,28 +917,28 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -944,28 +953,28 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -973,13 +982,14 @@ private Mono> listByResourceGroupSinglePageAs */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -988,13 +998,14 @@ public PagedFlux listByResourceGroupAsync(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1008,7 +1019,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets all network watchers by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1044,7 +1055,7 @@ private Mono> listSinglePageAsync() { .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1073,7 +1084,7 @@ private Mono> listSinglePageAsync(Context con context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); + res.getValue().value(), res.getValue().nextLink(), null)); } /** @@ -1085,7 +1096,7 @@ private Mono> listSinglePageAsync(Context con */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync()); + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** @@ -1099,7 +1110,8 @@ public PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** @@ -1131,7 +1143,7 @@ public PagedIterable list(Context context) { /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1147,6 +1159,10 @@ public Mono> getTopologyWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1155,27 +1171,25 @@ public Mono> getTopologyWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getTopology(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.getTopology(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @param context The context to associate with this operation. @@ -1192,6 +1206,10 @@ private Mono> getTopologyWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1200,26 +1218,23 @@ private Mono> getTopologyWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getTopology(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.getTopology(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1237,7 +1252,7 @@ public Mono getTopologyAsync(String resourceGroupName, String net /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @param context The context to associate with this operation. @@ -1255,7 +1270,7 @@ public Response getTopologyWithResponse(String resourceGroupName, /** * Gets the current network topology by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the representation of topology. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1272,7 +1287,7 @@ public TopologyInner getTopology(String resourceGroupName, String networkWatcher /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1288,6 +1303,10 @@ public Mono>> verifyIpFlowWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1296,27 +1315,25 @@ public Mono>> verifyIpFlowWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.verifyIpFlow(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.verifyIpFlow(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -1333,6 +1350,10 @@ private Mono>> verifyIpFlowWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1341,26 +1362,23 @@ private Mono>> verifyIpFlowWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.verifyIpFlow(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.verifyIpFlow(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1381,7 +1399,7 @@ public PollerFlux, VerificationIpFlowR /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -1404,7 +1422,7 @@ private PollerFlux, VerificationIpFlow /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1421,7 +1439,7 @@ public SyncPoller, VerificationIpFlowR /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -1439,7 +1457,7 @@ public SyncPoller, VerificationIpFlowR /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1457,7 +1475,7 @@ public Mono verifyIpFlowAsync(String resourceGrou /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -1476,7 +1494,7 @@ private Mono verifyIpFlowAsync(String resourceGro /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1493,7 +1511,7 @@ public VerificationIpFlowResultInner verifyIpFlow(String resourceGroupName, Stri /** * Verify IP flow from the specified VM to a location given the currently configured NSG rules. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the IP flow to be verified. * @param context The context to associate with this operation. @@ -1511,7 +1529,7 @@ public VerificationIpFlowResultInner verifyIpFlow(String resourceGroupName, Stri /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1526,6 +1544,10 @@ public Mono>> getNextHopWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1534,27 +1556,25 @@ public Mono>> getNextHopWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getNextHop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.getNextHop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -1570,6 +1590,10 @@ private Mono>> getNextHopWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1578,26 +1602,23 @@ private Mono>> getNextHopWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getNextHop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.getNextHop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1617,7 +1638,7 @@ public PollerFlux, NextHopResultInner> beginGetNe /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -1639,7 +1660,7 @@ private PollerFlux, NextHopResultInner> beginGetN /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1656,7 +1677,7 @@ public SyncPoller, NextHopResultInner> beginGetNe /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -1674,7 +1695,7 @@ public SyncPoller, NextHopResultInner> beginGetNe /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1692,7 +1713,7 @@ public Mono getNextHopAsync(String resourceGroupName, String /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -1711,7 +1732,7 @@ private Mono getNextHopAsync(String resourceGroupName, Strin /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1728,7 +1749,7 @@ public NextHopResultInner getNextHop(String resourceGroupName, String networkWat /** * Gets the next hop from the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the source and destination endpoint. * @param context The context to associate with this operation. @@ -1746,7 +1767,7 @@ public NextHopResultInner getNextHop(String resourceGroupName, String networkWat /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1762,6 +1783,10 @@ public Mono>> getVMSecurityRulesWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1770,27 +1795,25 @@ public Mono>> getVMSecurityRulesWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVMSecurityRules(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getVMSecurityRules(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -1807,6 +1830,10 @@ private Mono>> getVMSecurityRulesWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1815,26 +1842,23 @@ private Mono>> getVMSecurityRulesWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getVMSecurityRules(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.getVMSecurityRules(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1857,7 +1881,7 @@ private Mono>> getVMSecurityRulesWithResponseAsync(Str /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -1882,7 +1906,7 @@ private Mono>> getVMSecurityRulesWithResponseAsync(Str /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1900,7 +1924,7 @@ public SyncPoller, SecurityGroupViewRes /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -1920,7 +1944,7 @@ public SyncPoller, SecurityGroupViewRes /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1939,7 +1963,7 @@ public Mono getVMSecurityRulesAsync(String resourc /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -1959,7 +1983,7 @@ private Mono getVMSecurityRulesAsync(String resour /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1976,7 +2000,7 @@ public SecurityGroupViewResultInner getVMSecurityRules(String resourceGroupName, /** * Gets the configured and effective security group rules on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the VM to check security groups for. * @param context The context to associate with this operation. @@ -1994,8 +2018,8 @@ public SecurityGroupViewResultInner getVMSecurityRules(String resourceGroupName, /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2010,6 +2034,10 @@ public Mono>> getTroubleshootingWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2018,28 +2046,26 @@ public Mono>> getTroubleshootingWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getTroubleshooting(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getTroubleshooting(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2055,6 +2081,10 @@ private Mono>> getTroubleshootingWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2063,27 +2093,24 @@ private Mono>> getTroubleshootingWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getTroubleshooting(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.getTroubleshooting(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2103,8 +2130,8 @@ public PollerFlux, TroubleshootingResultI /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2125,8 +2152,8 @@ private PollerFlux, TroubleshootingResult /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2142,8 +2169,8 @@ public SyncPoller, TroubleshootingResultI /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2161,8 +2188,8 @@ public SyncPoller, TroubleshootingResultI /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2179,8 +2206,8 @@ public Mono getTroubleshootingAsync(String resourceG /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2198,8 +2225,8 @@ private Mono getTroubleshootingAsync(String resource /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2215,8 +2242,8 @@ public TroubleshootingResultInner getTroubleshooting(String resourceGroupName, S /** * Initiate troubleshooting on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to troubleshoot. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2233,8 +2260,8 @@ public TroubleshootingResultInner getTroubleshooting(String resourceGroupName, S /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2249,6 +2276,10 @@ public Mono>> getTroubleshootingResultWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2257,28 +2288,26 @@ public Mono>> getTroubleshootingResultWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getTroubleshootingResult(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getTroubleshootingResult(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2294,6 +2323,10 @@ private Mono>> getTroubleshootingResultWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2302,27 +2335,24 @@ private Mono>> getTroubleshootingResultWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getTroubleshootingResult(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.getTroubleshootingResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2343,8 +2373,8 @@ private Mono>> getTroubleshootingResultWithResponseAsy /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2366,8 +2396,8 @@ private Mono>> getTroubleshootingResultWithResponseAsy /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2384,8 +2414,8 @@ public SyncPoller, TroubleshootingResultI /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2404,8 +2434,8 @@ public SyncPoller, TroubleshootingResultI /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2423,8 +2453,8 @@ public Mono getTroubleshootingResultAsync(String res /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2443,8 +2473,8 @@ private Mono getTroubleshootingResultAsync(String re /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2460,8 +2490,8 @@ public TroubleshootingResultInner getTroubleshootingResult(String resourceGroupN /** * Get the last completed troubleshooting result on a specified resource. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the resource to query the troubleshooting result. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2478,8 +2508,8 @@ public TroubleshootingResultInner getTroubleshootingResult(String resourceGroupN /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2494,6 +2524,10 @@ public Mono>> setFlowLogConfigurationWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2502,28 +2536,26 @@ public Mono>> setFlowLogConfigurationWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.setFlowLogConfiguration(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.setFlowLogConfiguration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2539,6 +2571,10 @@ private Mono>> setFlowLogConfigurationWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2547,27 +2583,24 @@ private Mono>> setFlowLogConfigurationWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.setFlowLogConfiguration(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.setFlowLogConfiguration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2588,8 +2621,8 @@ public PollerFlux, FlowLogInformationInner> /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2611,8 +2644,8 @@ private PollerFlux, FlowLogInformationInner> /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2630,8 +2663,8 @@ public SyncPoller, FlowLogInformationInner> /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2650,8 +2683,8 @@ public SyncPoller, FlowLogInformationInner> /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2669,8 +2702,8 @@ public Mono setFlowLogConfigurationAsync(String resourc /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2689,8 +2722,8 @@ private Mono setFlowLogConfigurationAsync(String resour /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2706,8 +2739,8 @@ public FlowLogInformationInner setFlowLogConfiguration(String resourceGroupName, /** * Configures flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define the configuration of flow log. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2724,8 +2757,8 @@ public FlowLogInformationInner setFlowLogConfiguration(String resourceGroupName, /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2740,6 +2773,10 @@ public Mono>> getFlowLogStatusWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2748,28 +2785,26 @@ public Mono>> getFlowLogStatusWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getFlowLogStatus(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getFlowLogStatus(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2785,6 +2820,10 @@ private Mono>> getFlowLogStatusWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2793,27 +2832,24 @@ private Mono>> getFlowLogStatusWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getFlowLogStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.getFlowLogStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2834,8 +2870,8 @@ public PollerFlux, FlowLogInformationInner> /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2857,8 +2893,8 @@ private PollerFlux, FlowLogInformationInner> /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2875,8 +2911,8 @@ private PollerFlux, FlowLogInformationInner> /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2895,8 +2931,8 @@ public SyncPoller, FlowLogInformationInner> /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2914,8 +2950,8 @@ public Mono getFlowLogStatusAsync(String resourceGroupN /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2934,8 +2970,8 @@ private Mono getFlowLogStatusAsync(String resourceGroup /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2951,8 +2987,8 @@ public FlowLogInformationInner getFlowLogStatus(String resourceGroupName, String /** * Queries status of flow log and traffic analytics (optional) on a specified resource. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that define a resource to query flow log and traffic analytics (optional) status. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2970,8 +3006,8 @@ public FlowLogInformationInner getFlowLogStatus(String resourceGroupName, String * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2986,6 +3022,10 @@ public Mono>> checkConnectivityWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2994,20 +3034,18 @@ public Mono>> checkConnectivityWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkConnectivity(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.checkConnectivity(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3015,8 +3053,8 @@ public Mono>> checkConnectivityWithResponseAsync(Strin * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3032,6 +3070,10 @@ private Mono>> checkConnectivityWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3040,28 +3082,25 @@ private Mono>> checkConnectivityWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkConnectivity(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.checkConnectivity(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3083,8 +3122,8 @@ private Mono>> checkConnectivityWithResponseAsync(Stri * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3108,8 +3147,8 @@ private Mono>> checkConnectivityWithResponseAsync(Stri * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3126,8 +3165,8 @@ private Mono>> checkConnectivityWithResponseAsync(Stri * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3146,8 +3185,8 @@ public SyncPoller, ConnectivityInformat * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3165,8 +3204,8 @@ public Mono checkConnectivityAsync(String resource * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3185,8 +3224,8 @@ private Mono checkConnectivityAsync(String resourc * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3203,8 +3242,8 @@ public ConnectivityInformationInner checkConnectivity(String resourceGroupName, * Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint * including another VM or an arbitrary remote server. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine how the connectivity check will be performed. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3222,8 +3261,8 @@ public ConnectivityInformationInner checkConnectivity(String resourceGroupName, * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3237,6 +3276,10 @@ public Mono>> getAzureReachabilityReportWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3245,20 +3288,18 @@ public Mono>> getAzureReachabilityReportWithResponseAs return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getAzureReachabilityReport(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getAzureReachabilityReport(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3266,8 +3307,8 @@ public Mono>> getAzureReachabilityReportWithResponseAs * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3282,6 +3323,10 @@ private Mono>> getAzureReachabilityReportWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3290,28 +3335,26 @@ private Mono>> getAzureReachabilityReportWithResponseA return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getAzureReachabilityReport(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.getAzureReachabilityReport(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context); } /** * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3333,8 +3376,8 @@ private Mono>> getAzureReachabilityReportWithResponseA * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3358,8 +3401,8 @@ private Mono>> getAzureReachabilityReportWithResponseA * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3378,8 +3421,8 @@ private Mono>> getAzureReachabilityReportWithResponseA * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3399,8 +3442,8 @@ private Mono>> getAzureReachabilityReportWithResponseA * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3418,8 +3461,8 @@ public Mono getAzureReachabilityReportAsync(String * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3438,8 +3481,8 @@ private Mono getAzureReachabilityReportAsync(Strin * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3456,8 +3499,8 @@ public AzureReachabilityReportInner getAzureReachabilityReport(String resourceGr * NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score * for internet service providers from a specified location to Azure regions. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that determine Azure reachability report configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3475,8 +3518,8 @@ public AzureReachabilityReportInner getAzureReachabilityReport(String resourceGr * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3491,6 +3534,10 @@ public Mono>> listAvailableProvidersWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3499,20 +3546,18 @@ public Mono>> listAvailableProvidersWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAvailableProviders(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.listAvailableProviders(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3520,8 +3565,8 @@ public Mono>> listAvailableProvidersWithResponseAsync( * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3537,6 +3582,10 @@ private Mono>> listAvailableProvidersWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3545,28 +3594,25 @@ private Mono>> listAvailableProvidersWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAvailableProviders(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.listAvailableProviders(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, contentType, accept, parameters, context); } /** * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3588,8 +3634,8 @@ private Mono>> listAvailableProvidersWithResponseAsync * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3613,8 +3659,8 @@ private Mono>> listAvailableProvidersWithResponseAsync * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3631,8 +3677,8 @@ public SyncPoller, AvailableProvidersLis * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3652,8 +3698,8 @@ public SyncPoller, AvailableProvidersLis * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3671,8 +3717,8 @@ public Mono listAvailableProvidersAsync(String reso * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3691,8 +3737,8 @@ private Mono listAvailableProvidersAsync(String res * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3709,8 +3755,8 @@ public AvailableProvidersListInner listAvailableProviders(String resourceGroupNa * NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet * service providers for a specified Azure region. * - * @param resourceGroupName The name of the network watcher resource group. - * @param networkWatcherName The name of the network watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param parameters Parameters that scope the list of available providers. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3730,7 +3776,7 @@ public AvailableProvidersListInner listAvailableProviders(String resourceGroupNa * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3746,6 +3792,10 @@ public Mono>> getNetworkConfigurationDiagnosticWithRes return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3754,21 +3804,18 @@ public Mono>> getNetworkConfigurationDiagnosticWithRes return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getNetworkConfigurationDiagnostic(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getNetworkConfigurationDiagnostic(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3778,7 +3825,7 @@ public Mono>> getNetworkConfigurationDiagnosticWithRes * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -3796,6 +3843,10 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3804,20 +3855,18 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getNetworkConfigurationDiagnostic(this.client.getEndpoint(), resourceGroupName, - networkWatcherName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.getNetworkConfigurationDiagnostic(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, contentType, accept, parameters, + context); } /** @@ -3826,7 +3875,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3854,7 +3903,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -3884,7 +3933,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3908,7 +3957,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -3934,7 +3983,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3956,7 +4005,7 @@ public Mono getNetworkConfiguration * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -3981,7 +4030,7 @@ private Mono getNetworkConfiguratio * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4001,7 +4050,7 @@ public NetworkConfigurationDiagnosticResponseInner getNetworkConfigurationDiagno * these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns * whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param parameters Parameters to get network configuration diagnostic. * @param context The context to associate with this operation. @@ -4016,4 +4065,111 @@ public NetworkConfigurationDiagnosticResponseInner getNetworkConfigurationDiagno return getNetworkConfigurationDiagnosticAsync(resourceGroupName, networkWatcherName, parameters, context) .block(); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network watchers by resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network watchers by resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network watchers by subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listAllNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all network watchers by subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java index 9128e317aa69..ff68be84fb8a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.OperationsClient; import com.azure.resourcemanager.network.fluent.models.OperationInner; -import com.azure.resourcemanager.network.models.OperationListResult; +import com.azure.resourcemanager.network.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -59,14 +59,14 @@ public final class OperationsClientImpl implements OperationsClient { * The interface defining all the services for NetworkManagementClientOperations to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.Network/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -74,7 +74,7 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -82,8 +82,8 @@ Mono> listNext(@PathParam(value = "nextLink", enco * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -106,8 +106,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -128,7 +128,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedFlux}. + * @return paged collection of Operation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync() { @@ -142,7 +142,7 @@ public PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedFlux}. + * @return paged collection of Operation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -155,7 +155,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedIterable}. + * @return paged collection of Operation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -169,7 +169,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations as paginated response with {@link PagedIterable}. + * @return paged collection of Operation items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -183,8 +183,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -210,8 +210,8 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Network operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java index 9ef04556ae75..cc956d93fc33 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.network.fluent.models.P2SVpnConnectionHealthInner; import com.azure.resourcemanager.network.fluent.models.P2SVpnGatewayInner; import com.azure.resourcemanager.network.fluent.models.VpnProfileResponseInner; -import com.azure.resourcemanager.network.models.ListP2SVpnGatewaysResult; +import com.azure.resourcemanager.network.implementation.models.ListP2SVpnGatewaysResult; import com.azure.resourcemanager.network.models.P2SVpnConnectionHealthRequest; import com.azure.resourcemanager.network.models.P2SVpnConnectionRequest; import com.azure.resourcemanager.network.models.P2SVpnProfileParameters; @@ -79,122 +79,114 @@ public final class P2SVpnGatewaysClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") P2SVpnGatewayInner p2SVpnGatewayParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") P2SVpnGatewayInner p2SVpnGatewayParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject p2SVpnGatewayParameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject p2SVpnGatewayParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reset(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + Mono>> reset(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> generateVpnProfile(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + Mono>> generateVpnProfile(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") P2SVpnProfileParameters parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") P2SVpnProfileParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getP2SVpnConnectionHealth(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + Mono>> getP2SVpnConnectionHealth(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getP2SVpnConnectionHealthDetailed(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getP2SVpnConnectionHealthDetailed(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") P2SVpnConnectionHealthRequest request, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") P2SVpnConnectionHealthRequest request, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> disconnectP2SVpnConnections(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> disconnectP2SVpnConnections(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("p2sVpnGatewayName") String p2SVpnGatewayName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") P2SVpnConnectionRequest request, @HeaderParam("Accept") String accept, - Context context); + @PathParam("p2sVpnGatewayName") String p2sVpnGatewayName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") P2SVpnConnectionRequest request, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -202,14 +194,14 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,15 +229,15 @@ public Mono> getByResourceGroupWithResponseAsync(St final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -274,14 +266,14 @@ private Mono> getByResourceGroupWithResponseAsync(S final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, accept, context); } /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -297,7 +289,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +306,7 @@ public Response getByResourceGroupWithResponse(String resour /** * Retrieves the details of a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -329,7 +321,7 @@ public P2SVpnGatewayInner getByResourceGroup(String resourceGroupName, String ga /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -362,17 +354,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r p2SVpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, p2SVpnGatewayParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, contentType, accept, + p2SVpnGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -406,16 +400,17 @@ private Mono>> createOrUpdateWithResponseAsync(String p2SVpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, p2SVpnGatewayParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, p2SVpnGatewayParameters, context); } /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,7 +430,7 @@ public PollerFlux, P2SVpnGatewayInner> beginCreat /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -457,7 +452,7 @@ private PollerFlux, P2SVpnGatewayInner> beginCrea /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -474,7 +469,7 @@ public SyncPoller, P2SVpnGatewayInner> beginCreat /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -493,7 +488,7 @@ public SyncPoller, P2SVpnGatewayInner> beginCreat /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -511,7 +506,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -530,7 +525,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -547,7 +542,7 @@ public P2SVpnGatewayInner createOrUpdate(String resourceGroupName, String gatewa /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to create or Update a virtual wan p2s vpn gateway. * @param context The context to associate with this operation. @@ -565,7 +560,7 @@ public P2SVpnGatewayInner createOrUpdate(String resourceGroupName, String gatewa /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -598,17 +593,19 @@ public Mono>> updateTagsWithResponseAsync(String resou p2SVpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, p2SVpnGatewayParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, p2SVpnGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -642,16 +639,17 @@ private Mono>> updateTagsWithResponseAsync(String reso p2SVpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, p2SVpnGatewayParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, p2SVpnGatewayParameters, context); } /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -671,7 +669,7 @@ public PollerFlux, P2SVpnGatewayInner> beginUpdat /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -693,7 +691,7 @@ private PollerFlux, P2SVpnGatewayInner> beginUpda /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -710,7 +708,7 @@ public SyncPoller, P2SVpnGatewayInner> beginUpdat /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -729,7 +727,7 @@ public SyncPoller, P2SVpnGatewayInner> beginUpdat /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -747,7 +745,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -766,7 +764,7 @@ private Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -783,7 +781,7 @@ public P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayNam /** * Updates virtual wan p2s vpn gateway tags. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param p2SVpnGatewayParameters Parameters supplied to update a virtual wan p2s vpn gateway tags. * @param context The context to associate with this operation. @@ -801,7 +799,7 @@ public P2SVpnGatewayInner updateTags(String resourceGroupName, String gatewayNam /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -826,17 +824,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -863,16 +860,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, context); } /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -889,7 +885,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -909,7 +905,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -924,7 +920,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -941,7 +937,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -956,7 +952,7 @@ public Mono deleteAsync(String resourceGroupName, String gatewayName) { /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -973,7 +969,7 @@ private Mono deleteAsync(String resourceGroupName, String gatewayName, Con /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -987,7 +983,7 @@ public void delete(String resourceGroupName, String gatewayName) { /** * Deletes a virtual wan p2s vpn gateway. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1002,7 +998,7 @@ public void delete(String resourceGroupName, String gatewayName, Context context /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1026,8 +1022,8 @@ private Mono> listByResourceGroupSinglePageAsy final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1036,7 +1032,7 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1063,8 +1059,8 @@ private Mono> listByResourceGroupSinglePageAsy final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1072,7 +1068,7 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1087,7 +1083,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGro /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1103,7 +1099,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1117,7 +1113,7 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Lists all the P2SVpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1150,7 +1146,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1180,7 +1176,7 @@ private Mono> listSinglePageAsync(Context cont final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1241,12 +1237,12 @@ public PagedIterable list(Context context) { /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName) { @@ -1254,6 +1250,10 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1261,28 +1261,24 @@ public Mono>> resetWithResponseAsync(String resourceGr if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.reset(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, @@ -1291,6 +1287,10 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1298,26 +1298,22 @@ private Mono>> resetWithResponseAsync(String resourceG if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.reset(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, accept, context); } /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of p2SVpnGateway Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, P2SVpnGatewayInner> beginResetAsync(String resourceGroupName, @@ -1330,13 +1326,13 @@ public PollerFlux, P2SVpnGatewayInner> beginReset /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of p2SVpnGateway Resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, P2SVpnGatewayInner> beginResetAsync(String resourceGroupName, @@ -1350,12 +1346,12 @@ private PollerFlux, P2SVpnGatewayInner> beginRese /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of p2SVpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, P2SVpnGatewayInner> beginReset(String resourceGroupName, @@ -1366,13 +1362,13 @@ public SyncPoller, P2SVpnGatewayInner> beginReset /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of p2SVpnGateway Resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, P2SVpnGatewayInner> beginReset(String resourceGroupName, @@ -1383,12 +1379,12 @@ public SyncPoller, P2SVpnGatewayInner> beginReset /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono resetAsync(String resourceGroupName, String gatewayName) { @@ -1398,13 +1394,13 @@ public Mono resetAsync(String resourceGroupName, String gate /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resetAsync(String resourceGroupName, String gatewayName, Context context) { @@ -1415,12 +1411,12 @@ private Mono resetAsync(String resourceGroupName, String gat /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName) { @@ -1430,13 +1426,13 @@ public P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName) { /** * Resets the primary of the p2s vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return p2SVpnGateway Resource. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName, Context context) { @@ -1446,14 +1442,13 @@ public P2SVpnGatewayInner reset(String resourceGroupName, String gatewayName, Co /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> generateVpnProfileWithResponseAsync(String resourceGroupName, @@ -1462,6 +1457,10 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1469,35 +1468,30 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, - gatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + return FluxUtil.withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> generateVpnProfileWithResponseAsync(String resourceGroupName, @@ -1506,6 +1500,10 @@ private Mono>> generateVpnProfileWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1513,32 +1511,29 @@ private Mono>> generateVpnProfileWithResponseAsync(Str if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.generateVpnProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, parameters, context); } /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VpnProfileResponseInner> @@ -1553,14 +1548,14 @@ private Mono>> generateVpnProfileWithResponseAsync(Str /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpn Profile Response for package generation. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VpnProfileResponseInner> beginGenerateVpnProfileAsync( @@ -1575,13 +1570,13 @@ private PollerFlux, VpnProfileResponseInner> /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnProfileResponseInner> @@ -1592,14 +1587,14 @@ private PollerFlux, VpnProfileResponseInner> /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpn Profile Response for package generation. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnProfileResponseInner> beginGenerateVpnProfile( @@ -1610,13 +1605,13 @@ public SyncPoller, VpnProfileResponseInner> /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono generateVpnProfileAsync(String resourceGroupName, String gatewayName, @@ -1628,14 +1623,14 @@ public Mono generateVpnProfileAsync(String resourceGrou /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono generateVpnProfileAsync(String resourceGroupName, String gatewayName, @@ -1647,13 +1642,13 @@ private Mono generateVpnProfileAsync(String resourceGro /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gatewayName, @@ -1664,14 +1659,14 @@ public VpnProfileResponseInner generateVpnProfile(String resourceGroupName, Stri /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param parameters Parameters supplied to the generate P2SVpnGateway VPN client package operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpn Profile Response for package generation. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnProfileResponseInner generateVpnProfile(String resourceGroupName, String gatewayName, @@ -1682,8 +1677,8 @@ public VpnProfileResponseInner generateVpnProfile(String resourceGroupName, Stri /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1697,6 +1692,10 @@ public Mono>> getP2SVpnConnectionHealthWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1704,23 +1703,19 @@ public Mono>> getP2SVpnConnectionHealthWithResponseAsy if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getP2SVpnConnectionHealth(this.client.getEndpoint(), resourceGroupName, - gatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getP2SVpnConnectionHealth(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1735,6 +1730,10 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1742,22 +1741,18 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getP2SVpnConnectionHealth(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getP2SVpnConnectionHealth(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, accept, context); } /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1776,8 +1771,8 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1798,8 +1793,8 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1815,8 +1810,8 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1833,8 +1828,8 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1850,8 +1845,8 @@ public Mono getP2SVpnConnectionHealthAsync(String resourceGr /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1869,8 +1864,8 @@ private Mono getP2SVpnConnectionHealthAsync(String resourceG /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1884,8 +1879,8 @@ public P2SVpnGatewayInner getP2SVpnConnectionHealth(String resourceGroupName, St /** * Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1901,8 +1896,8 @@ public P2SVpnGatewayInner getP2SVpnConnectionHealth(String resourceGroupName, St * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1934,10 +1929,11 @@ public Mono>> getP2SVpnConnectionHealthDetailedWithRes request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, gatewayName, apiVersion, request, accept, context)) + .withContext(context -> service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, contentType, accept, request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1945,8 +1941,8 @@ public Mono>> getP2SVpnConnectionHealthDetailedWithRes * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1979,18 +1975,19 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe request.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, request, accept, context); + return service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, contentType, accept, request, context); } /** * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2013,8 +2010,8 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2039,8 +2036,8 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2060,8 +2057,8 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2082,8 +2079,8 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2102,8 +2099,8 @@ public Mono getP2SVpnConnectionHealthDetailedAsync( * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2123,8 +2120,8 @@ private Mono getP2SVpnConnectionHealthDetailedAsync * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2142,8 +2139,8 @@ public P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String reso * Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the * specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the P2SVpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @param request Request parameters supplied to get p2s vpn connections detailed health. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2161,8 +2158,8 @@ public P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String reso /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2171,7 +2168,7 @@ public P2SVpnConnectionHealthInner getP2SVpnConnectionHealthDetailed(String reso */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> disconnectP2SVpnConnectionsWithResponseAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request) { + String p2sVpnGatewayName, P2SVpnConnectionRequest request) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2184,9 +2181,9 @@ public Mono>> disconnectP2SVpnConnectionsWithResponseA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (p2SVpnGatewayName == null) { + if (p2sVpnGatewayName == null) { return Mono - .error(new IllegalArgumentException("Parameter p2SVpnGatewayName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter p2sVpnGatewayName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -2194,19 +2191,18 @@ public Mono>> disconnectP2SVpnConnectionsWithResponseA request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.disconnectP2SVpnConnections(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, p2SVpnGatewayName, apiVersion, request, accept, - context)) + .withContext(context -> service.disconnectP2SVpnConnections(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, p2sVpnGatewayName, contentType, request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2216,7 +2212,7 @@ public Mono>> disconnectP2SVpnConnectionsWithResponseA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> disconnectP2SVpnConnectionsWithResponseAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request, Context context) { + String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2229,9 +2225,9 @@ private Mono>> disconnectP2SVpnConnectionsWithResponse return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (p2SVpnGatewayName == null) { + if (p2sVpnGatewayName == null) { return Mono - .error(new IllegalArgumentException("Parameter p2SVpnGatewayName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter p2sVpnGatewayName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -2239,17 +2235,17 @@ private Mono>> disconnectP2SVpnConnectionsWithResponse request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.disconnectP2SVpnConnections(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, p2SVpnGatewayName, apiVersion, request, accept, context); + return service.disconnectP2SVpnConnections(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, p2sVpnGatewayName, contentType, request, context); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2258,9 +2254,9 @@ private Mono>> disconnectP2SVpnConnectionsWithResponse */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request) { + String p2sVpnGatewayName, P2SVpnConnectionRequest request) { Mono>> mono - = disconnectP2SVpnConnectionsWithResponseAsync(resourceGroupName, p2SVpnGatewayName, request); + = disconnectP2SVpnConnectionsWithResponseAsync(resourceGroupName, p2sVpnGatewayName, request); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2268,8 +2264,8 @@ public PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync( /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2279,10 +2275,10 @@ public PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request, Context context) { + String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context) { context = this.client.mergeContext(context); Mono>> mono - = disconnectP2SVpnConnectionsWithResponseAsync(resourceGroupName, p2SVpnGatewayName, request, context); + = disconnectP2SVpnConnectionsWithResponseAsync(resourceGroupName, p2sVpnGatewayName, request, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -2290,8 +2286,8 @@ private PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2300,16 +2296,16 @@ private PollerFlux, Void> beginDisconnectP2SVpnConnectionsAsync */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisconnectP2SVpnConnections(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request) { - return this.beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request) + String p2sVpnGatewayName, P2SVpnConnectionRequest request) { + return this.beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request) .getSyncPoller(); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2319,16 +2315,16 @@ public SyncPoller, Void> beginDisconnectP2SVpnConnections(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisconnectP2SVpnConnections(String resourceGroupName, - String p2SVpnGatewayName, P2SVpnConnectionRequest request, Context context) { - return this.beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request, context) + String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context) { + return this.beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request, context) .getSyncPoller(); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2336,17 +2332,17 @@ public SyncPoller, Void> beginDisconnectP2SVpnConnections(Strin * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2SVpnGatewayName, + public Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request) { - return beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request).last() + return beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2355,33 +2351,33 @@ public Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2SVpnGatewayName, + private Mono disconnectP2SVpnConnectionsAsync(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context) { - return beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request, context).last() + return beginDisconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnGatewayName, + public void disconnectP2SVpnConnections(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request) { - disconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request).block(); + disconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request).block(); } /** * Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param p2SVpnGatewayName The name of the P2S Vpn Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param p2sVpnGatewayName The name of the P2S Vpn Gateway. * @param request The parameters are supplied to disconnect p2s vpn connections. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2389,9 +2385,9 @@ public void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnG * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void disconnectP2SVpnConnections(String resourceGroupName, String p2SVpnGatewayName, + public void disconnectP2SVpnConnections(String resourceGroupName, String p2sVpnGatewayName, P2SVpnConnectionRequest request, Context context) { - disconnectP2SVpnConnectionsAsync(resourceGroupName, p2SVpnGatewayName, request, context).block(); + disconnectP2SVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request, context).block(); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java index 63bfd728bac7..e320c448dbca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.network.fluent.models.PacketCaptureInner; import com.azure.resourcemanager.network.fluent.models.PacketCaptureQueryStatusResultInner; import com.azure.resourcemanager.network.fluent.models.PacketCaptureResultInner; -import com.azure.resourcemanager.network.models.PacketCaptureListResult; +import com.azure.resourcemanager.network.implementation.models.PacketCaptureListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -70,75 +70,84 @@ public final class PacketCapturesClientImpl implements PacketCapturesClient { * The interface defining all the services for NetworkManagementClientPacketCaptures to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientPacketCaptures") public interface PacketCapturesService { - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("packetCaptureName") String packetCaptureName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PacketCaptureInner parameters, @HeaderParam("Accept") String accept, + @PathParam("packetCaptureName") String packetCaptureName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PacketCaptureInner parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("packetCaptureName") String packetCaptureName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("packetCaptureName") String packetCaptureName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("packetCaptureName") String packetCaptureName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("packetCaptureName") String packetCaptureName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop(@HostParam("$host") String endpoint, + Mono>> stop(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("packetCaptureName") String packetCaptureName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("packetCaptureName") String packetCaptureName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getStatus(@HostParam("$host") String endpoint, + Mono>> getStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkWatcherName") String networkWatcherName, - @PathParam("packetCaptureName") String packetCaptureName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("packetCaptureName") String packetCaptureName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkWatcherName") String networkWatcherName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("networkWatcherName") String networkWatcherName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -155,6 +164,10 @@ public Mono>> createWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -167,27 +180,25 @@ public Mono>> createWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - packetCaptureName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, packetCaptureName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -205,6 +216,10 @@ private Mono>> createWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -217,26 +232,23 @@ private Mono>> createWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, packetCaptureName, contentType, accept, parameters, context); } /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -258,7 +270,7 @@ public PollerFlux, PacketCaptureResultInner /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -282,7 +294,7 @@ private PollerFlux, PacketCaptureResultInne /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -301,7 +313,7 @@ public SyncPoller, PacketCaptureResultInner /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -322,7 +334,7 @@ public SyncPoller, PacketCaptureResultInner /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -341,7 +353,7 @@ public Mono createAsync(String resourceGroupName, Stri /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -361,7 +373,7 @@ private Mono createAsync(String resourceGroupName, Str /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -379,7 +391,7 @@ public PacketCaptureResultInner create(String resourceGroupName, String networkW /** * Create and start a packet capture on the specified VM. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param parameters Parameters that define the create packet capture operation. @@ -398,7 +410,7 @@ public PacketCaptureResultInner create(String resourceGroupName, String networkW /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -413,6 +425,10 @@ public Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -425,22 +441,18 @@ public Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - packetCaptureName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, packetCaptureName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -456,6 +468,10 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -468,21 +484,17 @@ private Mono> getWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, packetCaptureName, accept, context); } /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -500,7 +512,7 @@ public Mono getAsync(String resourceGroupName, String /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -518,7 +530,7 @@ public Response getWithResponse(String resourceGroupNa /** * Gets a packet capture session by name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -534,7 +546,7 @@ public PacketCaptureResultInner get(String resourceGroupName, String networkWatc /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -549,6 +561,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -561,22 +577,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - packetCaptureName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkWatcherName, packetCaptureName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -592,6 +603,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -604,21 +619,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, packetCaptureName, context); } /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -638,7 +648,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -660,7 +670,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -677,7 +687,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -695,7 +705,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -712,7 +722,7 @@ public Mono deleteAsync(String resourceGroupName, String networkWatcherNam /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -731,7 +741,7 @@ private Mono deleteAsync(String resourceGroupName, String networkWatcherNa /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -746,7 +756,7 @@ public void delete(String resourceGroupName, String networkWatcherName, String p /** * Deletes the specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -762,7 +772,7 @@ public void delete(String resourceGroupName, String networkWatcherName, String p /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -777,6 +787,10 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -789,22 +803,17 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - packetCaptureName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, packetCaptureName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -820,6 +829,10 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -832,21 +845,16 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, packetCaptureName, context); } /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -866,7 +874,7 @@ public PollerFlux, Void> beginStopAsync(String resourceGroupNam /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -888,7 +896,7 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -905,7 +913,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -923,7 +931,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -940,7 +948,7 @@ public Mono stopAsync(String resourceGroupName, String networkWatcherName, /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -959,7 +967,7 @@ private Mono stopAsync(String resourceGroupName, String networkWatcherName /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -974,7 +982,7 @@ public void stop(String resourceGroupName, String networkWatcherName, String pac /** * Stops a specified packet capture session. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkWatcherName The name of the network watcher. * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. @@ -990,9 +998,9 @@ public void stop(String resourceGroupName, String networkWatcherName, String pac /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1005,6 +1013,10 @@ public Mono>> getStatusWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1017,24 +1029,21 @@ public Mono>> getStatusWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - packetCaptureName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.getStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, packetCaptureName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1048,6 +1057,10 @@ private Mono>> getStatusWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1060,23 +1073,19 @@ private Mono>> getStatusWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter packetCaptureName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, packetCaptureName, accept, context); } /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1095,9 +1104,9 @@ private Mono>> getStatusWithResponseAsync(String resou /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1119,9 +1128,9 @@ private Mono>> getStatusWithResponseAsync(String resou /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1136,9 +1145,9 @@ private Mono>> getStatusWithResponseAsync(String resou /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1155,9 +1164,9 @@ private Mono>> getStatusWithResponseAsync(String resou /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1173,9 +1182,9 @@ public Mono getStatusAsync(String resourceG /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1192,9 +1201,9 @@ private Mono getStatusAsync(String resource /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1209,9 +1218,9 @@ public PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, S /** * Query the status of a running packet capture session. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. - * @param packetCaptureName The name given to the packet capture session. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. + * @param packetCaptureName The name of the packet capture session. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1227,8 +1236,8 @@ public PacketCaptureQueryStatusResultInner getStatus(String resourceGroupName, S /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1242,6 +1251,10 @@ private Mono> listSinglePageAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1250,25 +1263,21 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkWatcherName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1283,6 +1292,10 @@ private Mono> listSinglePageAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1291,25 +1304,21 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter networkWatcherName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkWatcherName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), null, null)); + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1317,14 +1326,15 @@ private Mono> listSinglePageAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkWatcherName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1334,14 +1344,15 @@ public PagedFlux listAsync(String resourceGroupName, S @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkWatcherName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName, context)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkWatcherName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1355,8 +1366,8 @@ public PagedIterable list(String resourceGroupName, St /** * Lists all packet capture sessions within the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param networkWatcherName The name of the Network Watcher resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkWatcherName The name of the network watcher. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1368,4 +1379,57 @@ public PagedIterable list(String resourceGroupName, St Context context) { return new PagedIterable<>(listAsync(resourceGroupName, networkWatcherName, context)); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of packet capture sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of packet capture sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java index 1d16b6d015d7..c83a62916307 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.PeerExpressRouteCircuitConnectionsClient; import com.azure.resourcemanager.network.fluent.models.PeerExpressRouteCircuitConnectionInner; -import com.azure.resourcemanager.network.models.PeerExpressRouteCircuitConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.PeerExpressRouteCircuitConnectionListResult; import reactor.core.publisher.Mono; /** @@ -59,44 +59,45 @@ public final class PeerExpressRouteCircuitConnectionsClientImpl implements PeerE * The interface defining all the services for NetworkManagementClientPeerExpressRouteCircuitConnections to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientPeerExpressRouteCircuitConnections") public interface PeerExpressRouteCircuitConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, @PathParam("peeringName") String peeringName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("circuitName") String circuitName, - @PathParam("peeringName") String peeringName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("peeringName") String peeringName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -110,6 +111,10 @@ public Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -123,25 +128,22 @@ public Mono> getWithResponseAsy if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -156,6 +158,10 @@ private Mono> getWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -169,24 +175,21 @@ private Mono> getWithResponseAs if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, connectionName, accept, context); } /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -203,10 +206,11 @@ public Mono getAsync(String resourceGrou /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -223,10 +227,11 @@ public Response getWithResponse(String r /** * Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the express route circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. - * @param connectionName The name of the peer express route circuit connection. + * @param connectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -241,8 +246,8 @@ public PeerExpressRouteCircuitConnectionInner get(String resourceGroupName, Stri /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -257,6 +262,10 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -267,15 +276,11 @@ private Mono> listSinglePa if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, circuitName, peeringName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -284,8 +289,8 @@ private Mono> listSinglePa /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,6 +306,10 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -311,16 +320,12 @@ private Mono> listSinglePa if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + circuitName, peeringName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -328,8 +333,8 @@ private Mono> listSinglePa /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -347,8 +352,8 @@ public PagedFlux listAsync(String resour /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -367,8 +372,8 @@ private PagedFlux listAsync(String resou /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -385,8 +390,8 @@ public PagedIterable list(String resourc /** * Gets all global reach peer connections associated with a private peering in an express route circuit. * - * @param resourceGroupName The name of the resource group. - * @param circuitName The name of the circuit. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param circuitName The name of express route circuit. * @param peeringName The name of the peering. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java index 666c8f06a34a..8806c34beda0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,8 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.PrivateDnsZoneGroupsClient; import com.azure.resourcemanager.network.fluent.models.PrivateDnsZoneGroupInner; -import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.PrivateDnsZoneGroupListResult; +import com.azure.resourcemanager.network.implementation.models.PrivateDnsZoneGroupListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -68,67 +67,66 @@ public final class PrivateDnsZoneGroupsClientImpl implements PrivateDnsZoneGroup * The interface defining all the services for NetworkManagementClientPrivateDnsZoneGroups to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientPrivateDnsZoneGroups") public interface PrivateDnsZoneGroupsService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateEndpointName") String privateEndpointName, - @PathParam("privateDnsZoneGroupName") String privateDnsZoneGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateDnsZoneGroupName") String privateDnsZoneGroupName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateEndpointName") String privateEndpointName, - @PathParam("privateDnsZoneGroupName") String privateDnsZoneGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateDnsZoneGroupName") String privateDnsZoneGroupName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateEndpointName") String privateEndpointName, @PathParam("privateDnsZoneGroupName") String privateDnsZoneGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PrivateDnsZoneGroupInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateDnsZoneGroupInner parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("privateEndpointName") String privateEndpointName, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateEndpointName") String privateEndpointName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ErrorException.class) + @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -141,6 +139,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -153,24 +155,20 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - privateDnsZoneGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, privateDnsZoneGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -184,6 +182,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -196,23 +198,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - privateDnsZoneGroupName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateEndpointName, privateDnsZoneGroupName, context); } /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,9 +227,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -252,9 +249,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -269,9 +266,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -288,9 +285,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -306,9 +303,9 @@ public Mono deleteAsync(String resourceGroupName, String privateEndpointNa /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -325,9 +322,9 @@ private Mono deleteAsync(String resourceGroupName, String privateEndpointN /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -340,9 +337,9 @@ public void delete(String resourceGroupName, String privateEndpointName, String /** * Deletes the specified private dns zone group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -357,9 +354,9 @@ public void delete(String resourceGroupName, String privateEndpointName, String /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -373,6 +370,10 @@ public Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -385,24 +386,20 @@ public Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - privateDnsZoneGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, privateDnsZoneGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -417,6 +414,10 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -429,23 +430,19 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, privateEndpointName, privateDnsZoneGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateEndpointName, privateDnsZoneGroupName, accept, context); } /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -462,9 +459,9 @@ public Mono getAsync(String resourceGroupName, String /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -480,9 +477,9 @@ public Response getWithResponse(String resourceGroupNa /** * Gets the private dns zone group resource by specified private dns zone group name. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -498,9 +495,9 @@ public PrivateDnsZoneGroupInner get(String resourceGroupName, String privateEndp /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -514,6 +511,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -526,30 +527,27 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - privateDnsZoneGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateEndpointName, privateDnsZoneGroupName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -565,6 +563,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -577,28 +579,25 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter privateDnsZoneGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - privateDnsZoneGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, privateDnsZoneGroupName, contentType, accept, parameters, context); } /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -619,9 +618,9 @@ public PollerFlux, PrivateDnsZoneGroupInner /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -643,9 +642,9 @@ private PollerFlux, PrivateDnsZoneGroupInne /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -664,9 +663,9 @@ public SyncPoller, PrivateDnsZoneGroupInner /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -687,9 +686,9 @@ public SyncPoller, PrivateDnsZoneGroupInner /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -707,9 +706,9 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -727,9 +726,9 @@ private Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -745,9 +744,9 @@ public PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String /** * Creates or updates a private dns zone group in the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. - * @param privateDnsZoneGroupName The name of the private dns zone group. + * @param privateDnsZoneGroupName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private dns zone group operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -766,9 +765,9 @@ public PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint along with {@link PagedResponse} on successful * completion of {@link Mono}. @@ -776,10 +775,6 @@ public PrivateDnsZoneGroupInner createOrUpdate(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String privateEndpointName, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (privateEndpointName == null) { return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); @@ -788,15 +783,11 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), privateEndpointName, resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -806,10 +797,10 @@ private Mono> listSinglePageAsync(String * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint along with {@link PagedResponse} on successful * completion of {@link Mono}. @@ -817,10 +808,6 @@ private Mono> listSinglePageAsync(String @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String privateEndpointName, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (privateEndpointName == null) { return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); @@ -829,16 +816,12 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), privateEndpointName, resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateEndpointName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -847,9 +830,9 @@ private Mono> listSinglePageAsync(String * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedFlux}. */ @@ -863,10 +846,10 @@ public PagedFlux listAsync(String privateEndpointName, * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedFlux}. */ @@ -881,9 +864,9 @@ private PagedFlux listAsync(String privateEndpointName * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedIterable}. */ @@ -896,10 +879,10 @@ public PagedIterable list(String privateEndpointName, * Gets all private dns zone groups in a private endpoint. * * @param privateEndpointName The name of the private endpoint. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint as paginated response with {@link PagedIterable}. */ @@ -914,7 +897,7 @@ public PagedIterable list(String privateEndpointName, * * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint along with {@link PagedResponse} on successful * completion of {@link Mono}. @@ -924,10 +907,6 @@ private Mono> listNextSinglePageAsync(St if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -941,7 +920,7 @@ private Mono> listNextSinglePageAsync(St * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private dns zone groups in a private endpoint along with {@link PagedResponse} on successful * completion of {@link Mono}. @@ -951,10 +930,6 @@ private Mono> listNextSinglePageAsync(St if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service.listNext(nextLink, this.client.getEndpoint(), accept, context) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java index 2909b8a79975..c0d2896ceb51 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -32,8 +32,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.PrivateEndpointsClient; import com.azure.resourcemanager.network.fluent.models.PrivateEndpointInner; +import com.azure.resourcemanager.network.implementation.models.PrivateEndpointListResult; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.PrivateEndpointListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -71,52 +71,52 @@ public final class PrivateEndpointsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateEndpointName") String privateEndpointName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateEndpointName") String privateEndpointName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("privateEndpointName") String privateEndpointName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateEndpointName") String privateEndpointName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PrivateEndpointInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("privateEndpointName") String privateEndpointName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateEndpointInner parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ErrorException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateEndpointName") String privateEndpointName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -125,7 +125,7 @@ Mono> list(@HostParam("$host") String endpoi @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -133,220 +133,14 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String privateEndpointName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateEndpointName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String privateEndpointName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateEndpointName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateEndpointName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, privateEndpointName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName) { - return this.beginDeleteAsync(resourceGroupName, privateEndpointName).getSyncPoller(); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, privateEndpointName, context).getSyncPoller(); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String privateEndpointName) { - return beginDeleteAsync(resourceGroupName, privateEndpointName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String privateEndpointName, Context context) { - return beginDeleteAsync(resourceGroupName, privateEndpointName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String privateEndpointName) { - deleteAsync(resourceGroupName, privateEndpointName).block(); - } - - /** - * Deletes the specified private endpoint. - * - * @param resourceGroupName The name of the resource group. - * @param privateEndpointName The name of the private endpoint. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String privateEndpointName, Context context) { - deleteAsync(resourceGroupName, privateEndpointName, context).block(); - } - /** * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -362,6 +156,10 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -370,22 +168,18 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - privateEndpointName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateEndpointName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -402,6 +196,10 @@ private Mono> getByResourceGroupWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -410,21 +208,17 @@ private Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, expand, accept, context); } /** * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -441,7 +235,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNa /** * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -459,7 +253,7 @@ public Response getByResourceGroupWithResponse(String reso /** * Gets the specified private endpoint by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -475,7 +269,7 @@ public PrivateEndpointInner getByResourceGroup(String resourceGroupName, String /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -490,6 +284,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -498,27 +296,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - privateEndpointName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateEndpointName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. @@ -534,6 +330,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -542,26 +342,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateEndpointName, contentType, accept, parameters, context); } /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -581,7 +378,7 @@ public PollerFlux, PrivateEndpointInner> beginC /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. @@ -603,7 +400,7 @@ private PollerFlux, PrivateEndpointInner> begin /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -620,7 +417,7 @@ private PollerFlux, PrivateEndpointInner> begin /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. @@ -639,7 +436,7 @@ public SyncPoller, PrivateEndpointInner> beginC /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -657,7 +454,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. @@ -676,7 +473,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -693,7 +490,7 @@ public PrivateEndpointInner createOrUpdate(String resourceGroupName, String priv /** * Creates or updates an private endpoint in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateEndpointName The name of the private endpoint. * @param parameters Parameters supplied to the create or update private endpoint operation. * @param context The context to associate with this operation. @@ -709,34 +506,238 @@ public PrivateEndpointInner createOrUpdate(String resourceGroupName, String priv } /** - * Gets all private endpoints in a resource group. + * Deletes the specified private endpoint. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private endpoints in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String privateEndpointName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateEndpointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateEndpointName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String privateEndpointName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (privateEndpointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateEndpointName, context); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateEndpointName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateEndpointName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, privateEndpointName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName) { + return this.beginDeleteAsync(resourceGroupName, privateEndpointName).getSyncPoller(); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String privateEndpointName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, privateEndpointName, context).getSyncPoller(); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String privateEndpointName) { + return beginDeleteAsync(resourceGroupName, privateEndpointName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String privateEndpointName, Context context) { + return beginDeleteAsync(resourceGroupName, privateEndpointName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String privateEndpointName) { + deleteAsync(resourceGroupName, privateEndpointName).block(); + } + + /** + * Deletes the specified private endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointName The name of the private endpoint. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String privateEndpointName, Context context) { + deleteAsync(resourceGroupName, privateEndpointName, context).block(); + } + + /** + * Gets all private endpoints in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all private endpoints in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -745,7 +746,7 @@ private Mono> listByResourceGroupSinglePageA /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -760,20 +761,20 @@ private Mono> listByResourceGroupSinglePageA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -781,7 +782,7 @@ private Mono> listByResourceGroupSinglePageA /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -796,7 +797,7 @@ public PagedFlux listByResourceGroupAsync(String resourceG /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -812,7 +813,7 @@ private PagedFlux listByResourceGroupAsync(String resource /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -826,7 +827,7 @@ public PagedIterable listByResourceGroup(String resourceGr /** * Gets all private endpoints in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java index 01444f41cb41..ad81c2c44e80 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,11 +37,11 @@ import com.azure.resourcemanager.network.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.network.fluent.models.PrivateLinkServiceInner; import com.azure.resourcemanager.network.fluent.models.PrivateLinkServiceVisibilityInner; -import com.azure.resourcemanager.network.models.AutoApprovedPrivateLinkServicesResult; +import com.azure.resourcemanager.network.implementation.models.AutoApprovedPrivateLinkServicesResult; +import com.azure.resourcemanager.network.implementation.models.PrivateEndpointConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.PrivateLinkServiceListResult; import com.azure.resourcemanager.network.models.CheckPrivateLinkServiceVisibilityRequest; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.PrivateEndpointConnectionListResult; -import com.azure.resourcemanager.network.models.PrivateLinkServiceListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -79,50 +79,50 @@ public final class PrivateLinkServicesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateLinkServiceInner parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ErrorException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PrivateLinkServiceInner parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -130,69 +130,69 @@ Mono> list(@HostParam("$host") String end @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> getPrivateEndpointConnection(@HostParam("$host") String endpoint, + Mono> getPrivateEndpointConnection( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, - @PathParam("peConnectionName") String peConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("peConnectionName") String peConnectionName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> updatePrivateEndpointConnection( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceName") String serviceName, @PathParam("peConnectionName") String peConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PrivateEndpointConnectionInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, + @PathParam("peConnectionName") String peConnectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateEndpointConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> deletePrivateEndpointConnection(@HostParam("$host") String endpoint, + Mono>> deletePrivateEndpointConnection(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, - @PathParam("peConnectionName") String peConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("peConnectionName") String peConnectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listPrivateEndpointConnections( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceName") String serviceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceName") String serviceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> checkPrivateLinkServiceVisibility(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") CheckPrivateLinkServiceVisibilityRequest parameters, - @HeaderParam("Accept") String accept, Context context); + Mono>> checkPrivateLinkServiceVisibility(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") CheckPrivateLinkServiceVisibilityRequest parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> checkPrivateLinkServiceVisibilityByResourceGroup( - @HostParam("$host") String endpoint, @PathParam("location") String location, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") CheckPrivateLinkServiceVisibilityRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") CheckPrivateLinkServiceVisibilityRequest parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAutoApprovedPrivateLinkServices( - @HostParam("$host") String endpoint, @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -200,16 +200,17 @@ Mono> listAutoApprovedPrivateLin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAutoApprovedPrivateLinkServicesByResourceGroup( - @HostParam("$host") String endpoint, @PathParam("location") String location, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -217,7 +218,7 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -225,7 +226,7 @@ Mono> listBySubscriptionNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listPrivateEndpointConnectionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -233,7 +234,7 @@ Mono> listPrivateEndpointConnectio @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAutoApprovedPrivateLinkServicesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -241,26 +242,33 @@ Mono> listAutoApprovedPrivateLin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAutoApprovedPrivateLinkServicesByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private link service by resource group along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String serviceName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -268,36 +276,38 @@ public Mono>> deleteWithResponseAsync(String resourceG if (serviceName == null) { return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, serviceName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified private link service by resource group along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName, - Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String serviceName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -305,292 +315,319 @@ private Mono>> deleteWithResponseAsync(String resource if (serviceName == null) { return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceName, expand, accept, context); } /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified private link service by resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String serviceName) { + final String expand = null; + return getByResourceGroupWithResponseAsync(resourceGroupName, serviceName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the specified private link service by resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String serviceName, String expand, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, serviceName, expand, context).block(); } /** - * Deletes the specified private link service. + * Gets the specified private link service by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the specified private link service by resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName) { - return this.beginDeleteAsync(resourceGroupName, serviceName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public PrivateLinkServiceInner getByResourceGroup(String resourceGroupName, String serviceName) { + final String expand = null; + return getByResourceGroupWithResponse(resourceGroupName, serviceName, expand, Context.NONE).getValue(); } /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, serviceName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String serviceName, PrivateLinkServiceInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceName == null) { + return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String serviceName) { - return beginDeleteAsync(resourceGroupName, serviceName).last().flatMap(this.client::getLroFinalResultOrError); + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String serviceName, PrivateLinkServiceInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceName == null) { + return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceName, contentType, accept, parameters, context); } /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the {@link PollerFlux} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String serviceName, Context context) { - return beginDeleteAsync(resourceGroupName, serviceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PrivateLinkServiceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, serviceName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PrivateLinkServiceInner.class, PrivateLinkServiceInner.class, + this.client.getContext()); } /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceName) { - deleteAsync(resourceGroupName, serviceName).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, PrivateLinkServiceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, serviceName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PrivateLinkServiceInner.class, PrivateLinkServiceInner.class, context); } /** - * Deletes the specified private link service. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceName, Context context) { - deleteAsync(resourceGroupName, serviceName, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PrivateLinkServiceInner> + beginCreateOrUpdate(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters).getSyncPoller(); } /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of private link service resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String serviceName, String expand) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceName == null) { - return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - serviceName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PrivateLinkServiceInner> beginCreateOrUpdate( + String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters, context).getSyncPoller(); } /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group along with {@link Response} on successful completion - * of {@link Mono}. + * @return private link service resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String serviceName, String expand, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceName == null) { - return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + public Mono createOrUpdateAsync(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group on successful completion of {@link Mono}. + * @return private link service resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String serviceName) { - final String expand = null; - return getByResourceGroupWithResponseAsync(resourceGroupName, serviceName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. + * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group along with {@link Response}. + * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String serviceName, String expand, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, serviceName, expand, context).block(); + public PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters) { + return createOrUpdateAsync(resourceGroupName, serviceName, parameters).block(); } /** - * Gets the specified private link service by resource group. + * Creates or updates an private link service in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. + * @param parameters Parameters supplied to the create or update private link service operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private link service by resource group. + * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkServiceInner getByResourceGroup(String resourceGroupName, String serviceName) { - final String expand = null; - return getByResourceGroupWithResponse(resourceGroupName, serviceName, expand, Context.NONE).getValue(); + public PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, + PrivateLinkServiceInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, serviceName, parameters, context).block(); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String serviceName, PrivateLinkServiceInner parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -598,219 +635,182 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (serviceName == null) { return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String serviceName, PrivateLinkServiceInner parameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String serviceName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceName == null) { - return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceName == null) { + return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceName, context); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of private link service resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, PrivateLinkServiceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, serviceName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PrivateLinkServiceInner.class, PrivateLinkServiceInner.class, + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of private link service resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PrivateLinkServiceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, serviceName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), PrivateLinkServiceInner.class, PrivateLinkServiceInner.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private link service resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PrivateLinkServiceInner> - beginCreateOrUpdate(String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName) { + return this.beginDeleteAsync(resourceGroupName, serviceName).getSyncPoller(); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of private link service resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PrivateLinkServiceInner> beginCreateOrUpdate( - String resourceGroupName, String serviceName, PrivateLinkServiceInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters, context).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, serviceName, context).getSyncPoller(); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono deleteAsync(String resourceGroupName, String serviceName) { + return beginDeleteAsync(resourceGroupName, serviceName).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, serviceName, parameters, context).last() + private Mono deleteAsync(String resourceGroupName, String serviceName, Context context) { + return beginDeleteAsync(resourceGroupName, serviceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters) { - return createOrUpdateAsync(resourceGroupName, serviceName, parameters).block(); + public void delete(String resourceGroupName, String serviceName) { + deleteAsync(resourceGroupName, serviceName).block(); } /** - * Creates or updates an private link service in the specified resource group. + * Deletes the specified private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param parameters Parameters supplied to the create or update private link service operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link service resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkServiceInner createOrUpdate(String resourceGroupName, String serviceName, - PrivateLinkServiceInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, serviceName, parameters, context).block(); + public void delete(String resourceGroupName, String serviceName, Context context) { + deleteAsync(resourceGroupName, serviceName, context).block(); } /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -823,19 +823,19 @@ private Mono> listByResourceGroupSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -844,7 +844,7 @@ private Mono> listByResourceGroupSinglePa /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -859,20 +859,20 @@ private Mono> listByResourceGroupSinglePa return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -880,7 +880,7 @@ private Mono> listByResourceGroupSinglePa /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -895,7 +895,7 @@ public PagedFlux listByResourceGroupAsync(String resour /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -911,7 +911,7 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -925,7 +925,7 @@ public PagedIterable listByResourceGroup(String resourc /** * Gets all private link services in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1050,9 +1050,10 @@ public PagedIterable list(Context context) { /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1067,6 +1068,10 @@ public Mono> getPrivateEndpointConnecti return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1078,24 +1083,22 @@ public Mono> getPrivateEndpointConnecti return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getPrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, - serviceName, peConnectionName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getPrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, expand, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1111,6 +1114,10 @@ private Mono> getPrivateEndpointConnect return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1122,23 +1129,20 @@ private Mono> getPrivateEndpointConnect return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getPrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, - peConnectionName, apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.getPrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, expand, accept, context); } /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1156,9 +1160,10 @@ public Mono getPrivateEndpointConnectionAsync(St /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1177,9 +1182,10 @@ public Response getPrivateEndpointConnectionWith /** * Get the specific private end point connection by specific private link service in the resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1196,9 +1202,10 @@ public PrivateEndpointConnectionInner getPrivateEndpointConnection(String resour /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1213,6 +1220,10 @@ public Mono> updatePrivateEndpointConne return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1224,30 +1235,28 @@ public Mono> updatePrivateEndpointConne return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updatePrivateEndpointConnection(this.client.getEndpoint(), - resourceGroupName, serviceName, peConnectionName, apiVersion, this.client.getSubscriptionId(), - parameters, accept, context)) + .withContext(context -> service.updatePrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1263,6 +1272,10 @@ private Mono> updatePrivateEndpointConn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1274,28 +1287,27 @@ private Mono> updatePrivateEndpointConn return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updatePrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, - peConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.updatePrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, contentType, accept, + parameters, context); } /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1312,9 +1324,10 @@ public Mono updatePrivateEndpointConnectionAsync /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1333,9 +1346,10 @@ public Response updatePrivateEndpointConnectionW /** * Approve or reject private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to approve or reject the private end point connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1352,9 +1366,10 @@ public PrivateEndpointConnectionInner updatePrivateEndpointConnection(String res /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1367,6 +1382,10 @@ public Mono>> deletePrivateEndpointConnectionWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1378,25 +1397,20 @@ public Mono>> deletePrivateEndpointConnectionWithRespo return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.deletePrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, - serviceName, peConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.deletePrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1410,6 +1424,10 @@ private Mono>> deletePrivateEndpointConnectionWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1421,23 +1439,19 @@ private Mono>> deletePrivateEndpointConnectionWithResp return Mono .error(new IllegalArgumentException("Parameter peConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deletePrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, - peConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.deletePrivateEndpointConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, peConnectionName, context); } /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1455,9 +1469,10 @@ public PollerFlux, Void> beginDeletePrivateEndpointConnectionAs /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1477,9 +1492,10 @@ private PollerFlux, Void> beginDeletePrivateEndpointConnectionA /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1495,9 +1511,10 @@ public SyncPoller, Void> beginDeletePrivateEndpointConnection(S /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1514,9 +1531,10 @@ public SyncPoller, Void> beginDeletePrivateEndpointConnection(S /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1532,9 +1550,10 @@ public Mono deletePrivateEndpointConnectionAsync(String resourceGroupName, /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1552,9 +1571,10 @@ private Mono deletePrivateEndpointConnectionAsync(String resourceGroupName /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1567,9 +1587,10 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser /** * Delete private end point connection for a private link service in a subscription. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. - * @param peConnectionName The name of the private end point connection. + * @param peConnectionName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1584,7 +1605,7 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1599,6 +1620,10 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1606,15 +1631,11 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser if (serviceName == null) { return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPrivateEndpointConnections(this.client.getEndpoint(), resourceGroupName, - serviceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listPrivateEndpointConnections(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1623,7 +1644,7 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1639,6 +1660,10 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1646,16 +1671,12 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser if (serviceName == null) { return Mono.error(new IllegalArgumentException("Parameter serviceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listPrivateEndpointConnections(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listPrivateEndpointConnections(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1663,7 +1684,7 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1681,7 +1702,7 @@ public PagedFlux listPrivateEndpointConnectionsA /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1701,7 +1722,7 @@ private PagedFlux listPrivateEndpointConnections /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1718,7 +1739,7 @@ public PagedIterable listPrivateEndpointConnecti /** * Gets all private end point connections for a specific private link service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the private link service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1736,13 +1757,12 @@ public PagedIterable listPrivateEndpointConnecti /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> checkPrivateLinkServiceVisibilityWithResponseAsync(String location, @@ -1751,37 +1771,37 @@ public Mono>> checkPrivateLinkServiceVisibilityWithRes return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), location, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> checkPrivateLinkServiceVisibilityWithResponseAsync(String location, @@ -1790,35 +1810,35 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, contentType, accept, parameters, context); } /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, PrivateLinkServiceVisibilityInner> @@ -1834,14 +1854,13 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateLinkServiceVisibilityInner> @@ -1858,13 +1877,12 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateLinkServiceVisibilityInner> @@ -1875,14 +1893,13 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateLinkServiceVisibilityInner> @@ -1894,13 +1911,12 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono checkPrivateLinkServiceVisibilityAsync(String location, @@ -1912,14 +1928,13 @@ public Mono checkPrivateLinkServiceVisibility /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkPrivateLinkServiceVisibilityAsync(String location, @@ -1931,12 +1946,12 @@ private Mono checkPrivateLinkServiceVisibilit /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, @@ -1947,13 +1962,13 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(Strin /** * Checks whether the subscription is visible to private link service. * - * @param location The location of the domain name. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, @@ -1964,22 +1979,17 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(Strin /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> checkPrivateLinkServiceVisibilityByResourceGroupWithResponseAsync( String location, String resourceGroupName, CheckPrivateLinkServiceVisibilityRequest parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -1987,44 +1997,37 @@ public Mono>> checkPrivateLinkServiceVisibilityByResou return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkPrivateLinkServiceVisibilityByResourceGroup(this.client.getEndpoint(), - location, resourceGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, location, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> checkPrivateLinkServiceVisibilityByResourceGroupWithResponseAsync( String location, String resourceGroupName, CheckPrivateLinkServiceVisibilityRequest parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -2032,33 +2035,29 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkPrivateLinkServiceVisibilityByResourceGroup(this.client.getEndpoint(), location, - resourceGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.checkPrivateLinkServiceVisibilityByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, location, contentType, accept, parameters, context); } /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, PrivateLinkServiceVisibilityInner> @@ -2074,15 +2073,14 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateLinkServiceVisibilityInner> @@ -2099,14 +2097,13 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateLinkServiceVisibilityInner> @@ -2119,15 +2116,14 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for the CheckPrivateLinkServiceVisibility API service - * call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateLinkServiceVisibilityInner> @@ -2142,14 +2138,13 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono checkPrivateLinkServiceVisibilityByResourceGroupAsync( @@ -2162,15 +2157,14 @@ public Mono checkPrivateLinkServiceVisibility /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkPrivateLinkServiceVisibilityByResourceGroupAsync( @@ -2183,13 +2177,13 @@ private Mono checkPrivateLinkServiceVisibilit /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, @@ -2200,14 +2194,14 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso /** * Checks whether the subscription is visible to private link service in the specified resource group. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. - * @param parameters The request body of CheckPrivateLinkService API call. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the CheckPrivateLinkServiceVisibility API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, @@ -2220,7 +2214,7 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2234,18 +2228,18 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAutoApprovedPrivateLinkServices(this.client.getEndpoint(), location, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listAutoApprovedPrivateLinkServices(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2255,7 +2249,7 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2270,19 +2264,19 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listAutoApprovedPrivateLinkServices(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listAutoApprovedPrivateLinkServices(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2291,7 +2285,7 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2308,7 +2302,7 @@ public PagedFlux listAutoApprovedPrivateLin * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2327,7 +2321,7 @@ private PagedFlux listAutoApprovedPrivateLi * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2343,7 +2337,7 @@ public PagedIterable listAutoApprovedPrivat * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2361,8 +2355,8 @@ public PagedIterable listAutoApprovedPrivat * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2372,10 +2366,6 @@ public PagedIterable listAutoApprovedPrivat @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAutoApprovedPrivateLinkServicesByResourceGroupSinglePageAsync(String location, String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -2383,16 +2373,12 @@ public PagedIterable listAutoApprovedPrivat return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil .withContext( context -> service.listAutoApprovedPrivateLinkServicesByResourceGroup(this.client.getEndpoint(), - location, resourceGroupName, apiVersion, this.client.getSubscriptionId(), accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2402,8 +2388,8 @@ public PagedIterable listAutoApprovedPrivat * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2415,10 +2401,6 @@ public PagedIterable listAutoApprovedPrivat private Mono> listAutoApprovedPrivateLinkServicesByResourceGroupSinglePageAsync(String location, String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } @@ -2426,16 +2408,12 @@ public PagedIterable listAutoApprovedPrivat return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listAutoApprovedPrivateLinkServicesByResourceGroup(this.client.getEndpoint(), location, resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context) + .listAutoApprovedPrivateLinkServicesByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2444,8 +2422,8 @@ public PagedIterable listAutoApprovedPrivat * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2464,8 +2442,8 @@ public PagedIterable listAutoApprovedPrivat * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2486,8 +2464,8 @@ private PagedFlux listAutoApprovedPrivateLi * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2505,8 +2483,8 @@ private PagedFlux listAutoApprovedPrivateLi * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this * subscription in this region. * - * @param location The location of the domain name. - * @param resourceGroupName The name of the resource group. + * @param location The location name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2759,10 +2737,6 @@ private Mono> listBySubscriptionNextSingl if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAutoApprovedPrivateLinkServicesByResourceGroupNext(nextLink, @@ -2789,10 +2763,6 @@ private Mono> listBySubscriptionNextSingl if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java index 7e365685bb2c..221c3e4d798c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -36,8 +36,8 @@ import com.azure.resourcemanager.network.fluent.PublicIpAddressesClient; import com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner; import com.azure.resourcemanager.network.fluent.models.PublicIpDdosProtectionStatusResultInner; +import com.azure.resourcemanager.network.implementation.models.PublicIPAddressListResult; import com.azure.resourcemanager.network.models.DisassociateCloudServicePublicIpRequest; -import com.azure.resourcemanager.network.models.PublicIpAddressListResult; import com.azure.resourcemanager.network.models.ReserveCloudServicePublicIpAddressRequest; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -77,234 +77,252 @@ public final class PublicIpAddressesClientImpl implements InnerSupportsGet> listCloudServicePublicIpAddresses(@HostParam("$host") String endpoint, + Mono> getCloudServicePublicIpAddress(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("cloudServiceName") String cloudServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCloudServiceRoleInstancePublicIpAddresses( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("cloudServiceName") String cloudServiceName, @PathParam("roleInstanceName") String roleInstanceName, @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, + @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getCloudServicePublicIpAddress(@HostParam("$host") String endpoint, + Mono> listCloudServiceRoleInstancePublicIpAddresses( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("cloudServiceName") String cloudServiceName, @PathParam("roleInstanceName") String roleInstanceName, @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PublicIpAddressInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("publicIpAddressName") String publicIpAddressName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PublicIpAddressInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("publicIpAddressName") String publicIpAddressName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("publicIpAddressName") String publicIpAddressName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> ddosProtectionStatus(@HostParam("$host") String endpoint, + Mono>> ddosProtectionStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("publicIpAddressName") String publicIpAddressName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/reserveCloudServicePublicIpAddress") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reserveCloudServicePublicIpAddress(@HostParam("$host") String endpoint, + Mono>> reserveCloudServicePublicIpAddress(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("publicIpAddressName") String publicIpAddressName, - @BodyParam("application/json") ReserveCloudServicePublicIpAddressRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ReserveCloudServicePublicIpAddressRequest parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/disassociateCloudServiceReservedPublicIp") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> disassociateCloudServiceReservedPublicIp(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Mono>> disassociateCloudServiceReservedPublicIp( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("publicIpAddressName") String publicIpAddressName, - @BodyParam("application/json") DisassociateCloudServicePublicIpRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DisassociateCloudServicePublicIpRequest parameters, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/cloudServices/{cloudServiceName}/publicipaddresses") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listCloudServicePublicIpAddresses( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("cloudServiceName") String cloudServiceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetPublicIpAddresses( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> listVirtualMachineScaleSetPublicIpAddresses( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetVMPublicIpAddresses( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> getVirtualMachineScaleSetPublicIpAddress( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, @PathParam("virtualmachineIndex") String virtualmachineIndex, @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, + @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVirtualMachineScaleSetPublicIpAddress( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> listVirtualMachineScaleSetVMPublicIpAddresses( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualMachineScaleSetName") String virtualMachineScaleSetName, @PathParam("virtualmachineIndex") String virtualmachineIndex, @PathParam("networkInterfaceName") String networkInterfaceName, - @PathParam("ipConfigurationName") String ipConfigurationName, - @PathParam("publicIpAddressName") String publicIpAddressName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ipConfigurationName") String ipConfigurationName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCloudServicePublicIpAddressesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listCloudServiceRoleInstancePublicIpAddressesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCloudServiceRoleInstancePublicIpAddressesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listCloudServicePublicIpAddressesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetPublicIpAddressesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listVirtualMachineScaleSetPublicIpAddressesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachineScaleSetVMPublicIpAddressesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listVirtualMachineScaleSetVMPublicIpAddressesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about all public IP addresses on a cloud service level. + * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. + * @param publicIpAddressName The name of the public IP Address. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the specified public IP address in a cloud service along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listCloudServicePublicIpAddressesSinglePageAsync(String resourceGroupName, String cloudServiceName) { + public Mono> getCloudServicePublicIpAddressWithResponseAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, + String ipConfigurationName, String publicIpAddressName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -313,39 +331,60 @@ Mono> listVirtualMachineScaleSetVMPublicIpAd return Mono .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (roleInstanceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); + } + if (publicIpAddressName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listCloudServicePublicIpAddresses(this.client.getEndpoint(), - resourceGroupName, cloudServiceName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.getCloudServicePublicIpAddress(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about all public IP addresses on a cloud service level. + * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. + * @param publicIpAddressName The name of the public IP Address. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the specified public IP address in a cloud service along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCloudServicePublicIpAddressesSinglePageAsync( - String resourceGroupName, String cloudServiceName, Context context) { + private Mono> getCloudServicePublicIpAddressWithResponseAsync( + String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, + String ipConfigurationName, String publicIpAddressName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -354,103 +393,108 @@ private Mono> listCloudServicePublicIpAddres return Mono .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (roleInstanceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); + } + if (publicIpAddressName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listCloudServicePublicIpAddresses(this.client.getEndpoint(), resourceGroupName, cloudServiceName, - apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.getCloudServicePublicIpAddress(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context); } /** - * Gets information about all public IP addresses on a cloud service level. + * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. + * @param publicIpAddressName The name of the public IP Address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedFlux}. + * @return the specified public IP address in a cloud service on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, - String cloudServiceName) { - return new PagedFlux<>( - () -> listCloudServicePublicIpAddressesSinglePageAsync(resourceGroupName, cloudServiceName), - nextLink -> listCloudServicePublicIpAddressesNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getCloudServicePublicIpAddressAsync(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, + String publicIpAddressName) { + final String expand = null; + return getCloudServicePublicIpAddressWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about all public IP addresses on a cloud service level. + * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. + * @param publicIpAddressName The name of the public IP Address. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, - String cloudServiceName, Context context) { - return new PagedFlux<>( - () -> listCloudServicePublicIpAddressesSinglePageAsync(resourceGroupName, cloudServiceName, context), - nextLink -> listCloudServicePublicIpAddressesNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets information about all public IP addresses on a cloud service level. - * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedIterable}. + * @return the specified public IP address in a cloud service along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, - String cloudServiceName) { - return new PagedIterable<>(listCloudServicePublicIpAddressesAsync(resourceGroupName, cloudServiceName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCloudServicePublicIpAddressWithResponse(String resourceGroupName, + String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, + String publicIpAddressName, String expand, Context context) { + return getCloudServicePublicIpAddressWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, context).block(); } /** - * Gets information about all public IP addresses on a cloud service level. + * Get the specified public IP address in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param context The context to associate with this operation. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. + * @param publicIpAddressName The name of the public IP Address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level as paginated response with - * {@link PagedIterable}. + * @return the specified public IP address in a cloud service. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, - String cloudServiceName, Context context) { - return new PagedIterable<>( - listCloudServicePublicIpAddressesAsync(resourceGroupName, cloudServiceName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public PublicIpAddressInner getCloudServicePublicIpAddress(String resourceGroupName, String cloudServiceName, + String roleInstanceName, String networkInterfaceName, String ipConfigurationName, String publicIpAddressName) { + final String expand = null; + return getCloudServicePublicIpAddressWithResponse(resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, Context.NONE).getValue(); } /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -465,6 +509,10 @@ private Mono> listCloudServiceRoleInstancePu return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -485,16 +533,12 @@ private Mono> listCloudServiceRoleInstancePu return Mono .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCloudServiceRoleInstancePublicIpAddresses(this.client.getEndpoint(), - resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, ipConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -503,11 +547,11 @@ private Mono> listCloudServiceRoleInstancePu /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -523,6 +567,10 @@ private Mono> listCloudServiceRoleInstancePu return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -543,17 +591,13 @@ private Mono> listCloudServiceRoleInstancePu return Mono .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listCloudServiceRoleInstancePublicIpAddresses(this.client.getEndpoint(), resourceGroupName, - cloudServiceName, roleInstanceName, networkInterfaceName, ipConfigurationName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listCloudServiceRoleInstancePublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, roleInstanceName, + networkInterfaceName, ipConfigurationName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -561,11 +605,11 @@ private Mono> listCloudServiceRoleInstancePu /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -584,11 +628,11 @@ public PagedFlux listCloudServiceRoleInstancePublicIpAddre /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -609,11 +653,11 @@ private PagedFlux listCloudServiceRoleInstancePublicIpAddr /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -630,11 +674,11 @@ public PagedIterable listCloudServiceRoleInstancePublicIpA /** * Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The name of role instance. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param roleInstanceName The role instance name. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the IP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -651,214 +695,156 @@ public PagedIterable listCloudServiceRoleInstancePublicIpA } /** - * Get the specified public IP address in a cloud service. + * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The role instance name. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a cloud service along with {@link Response} on successful completion - * of {@link Mono}. + * @return the specified public IP address in a specified resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getCloudServicePublicIpAddressWithResponseAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, - String ipConfigurationName, String publicIpAddressName, String expand) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String publicIpAddressName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (cloudServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); - } - if (roleInstanceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } if (publicIpAddressName == null) { return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getCloudServicePublicIpAddress(this.client.getEndpoint(), resourceGroupName, - cloudServiceName, roleInstanceName, networkInterfaceName, ipConfigurationName, publicIpAddressName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the specified public IP address in a cloud service. + * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The role instance name. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a cloud service along with {@link Response} on successful completion - * of {@link Mono}. + * @return the specified public IP address in a specified resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getCloudServicePublicIpAddressWithResponseAsync( - String resourceGroupName, String cloudServiceName, String roleInstanceName, String networkInterfaceName, - String ipConfigurationName, String publicIpAddressName, String expand, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String publicIpAddressName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (cloudServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); - } - if (roleInstanceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter roleInstanceName is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } if (publicIpAddressName == null) { return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getCloudServicePublicIpAddress(this.client.getEndpoint(), resourceGroupName, cloudServiceName, - roleInstanceName, networkInterfaceName, ipConfigurationName, publicIpAddressName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpAddressName, expand, accept, context); } /** - * Get the specified public IP address in a cloud service. + * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The role instance name. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a cloud service on successful completion of {@link Mono}. + * @return the specified public IP address in a specified resource group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getCloudServicePublicIpAddressAsync(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, - String publicIpAddressName) { + public Mono getByResourceGroupAsync(String resourceGroupName, String publicIpAddressName) { final String expand = null; - return getCloudServicePublicIpAddressWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, ipConfigurationName, publicIpAddressName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get the specified public IP address in a cloud service. + * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The role instance name. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a cloud service along with {@link Response}. + * @return the specified public IP address in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getCloudServicePublicIpAddressWithResponse(String resourceGroupName, - String cloudServiceName, String roleInstanceName, String networkInterfaceName, String ipConfigurationName, + public Response getByResourceGroupWithResponse(String resourceGroupName, String publicIpAddressName, String expand, Context context) { - return getCloudServicePublicIpAddressWithResponseAsync(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, context).block(); + return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand, context).block(); } /** - * Get the specified public IP address in a cloud service. + * Gets the specified public IP address in a specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param cloudServiceName The name of the cloud service. - * @param roleInstanceName The role instance name. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a cloud service. + * @return the specified public IP address in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner getCloudServicePublicIpAddress(String resourceGroupName, String cloudServiceName, - String roleInstanceName, String networkInterfaceName, String ipConfigurationName, String publicIpAddressName) { + public PublicIpAddressInner getByResourceGroup(String resourceGroupName, String publicIpAddressName) { final String expand = null; - return getCloudServicePublicIpAddressWithResponse(resourceGroupName, cloudServiceName, roleInstanceName, - networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, Context.NONE).getValue(); + return getByResourceGroupWithResponse(resourceGroupName, publicIpAddressName, expand, Context.NONE).getValue(); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String publicIpAddressName) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String publicIpAddressName, PublicIpAddressInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -867,36 +853,44 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String publicIpAddressName, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String publicIpAddressName, PublicIpAddressInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -905,168 +899,191 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpAddressName, contentType, accept, parameters, context); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of public IP address resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpAddressName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + public PollerFlux, PublicIpAddressInner> beginCreateOrUpdateAsync( + String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, publicIpAddressName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + PublicIpAddressInner.class, PublicIpAddressInner.class, this.client.getContext()); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of public IP address resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName, - Context context) { + private PollerFlux, PublicIpAddressInner> beginCreateOrUpdateAsync( + String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceGroupName, publicIpAddressName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + = createOrUpdateWithResponseAsync(resourceGroupName, publicIpAddressName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + PublicIpAddressInner.class, PublicIpAddressInner.class, context); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of public IP address resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName) { - return this.beginDeleteAsync(resourceGroupName, publicIpAddressName).getSyncPoller(); + public SyncPoller, PublicIpAddressInner> + beginCreateOrUpdate(String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).getSyncPoller(); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of public IP address resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, publicIpAddressName, context).getSyncPoller(); + public SyncPoller, PublicIpAddressInner> beginCreateOrUpdate( + String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context) + .getSyncPoller(); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return public IP address resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String publicIpAddressName) { - return beginDeleteAsync(resourceGroupName, publicIpAddressName).last() + public Mono createOrUpdateAsync(String resourceGroupName, String publicIpAddressName, + PublicIpAddressInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return public IP address resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String publicIpAddressName, Context context) { - return beginDeleteAsync(resourceGroupName, publicIpAddressName, context).last() + private Mono createOrUpdateAsync(String resourceGroupName, String publicIpAddressName, + PublicIpAddressInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return public IP address resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String publicIpAddressName) { - deleteAsync(resourceGroupName, publicIpAddressName).block(); + public PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAddressName, + PublicIpAddressInner parameters) { + return createOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).block(); } /** - * Deletes the specified public IP address. + * Creates or updates a static or dynamic public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return public IP address resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String publicIpAddressName, Context context) { - deleteAsync(resourceGroupName, publicIpAddressName, context).block(); + public PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAddressName, + PublicIpAddressInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context).block(); } /** - * Gets the specified public IP address in a specified resource group. + * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a specified resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String publicIpAddressName, String expand) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String publicIpAddressName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1075,38 +1092,44 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - publicIpAddressName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpAddressName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified public IP address in a specified resource group. + * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update public IP address tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a specified resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String publicIpAddressName, String expand, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String publicIpAddressName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1115,86 +1138,93 @@ private Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpAddressName, contentType, accept, parameters, context); } /** - * Gets the specified public IP address in a specified resource group. + * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a specified resource group on successful completion of {@link Mono}. + * @return public IP address resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String publicIpAddressName) { - final String expand = null; - return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand) + public Mono updateTagsAsync(String resourceGroupName, String publicIpAddressName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, publicIpAddressName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the specified public IP address in a specified resource group. + * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param expand Expands referenced resources. + * @param parameters Parameters supplied to update public IP address tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a specified resource group along with {@link Response}. + * @return public IP address resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String publicIpAddressName, String expand, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, publicIpAddressName, expand, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, String publicIpAddressName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, publicIpAddressName, parameters, context).block(); } /** - * Gets the specified public IP address in a specified resource group. + * Updates public IP address tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a specified resource group. + * @return public IP address resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner getByResourceGroup(String resourceGroupName, String publicIpAddressName) { - final String expand = null; - return getByResourceGroupWithResponse(resourceGroupName, publicIpAddressName, expand, Context.NONE).getValue(); + public PublicIpAddressInner updateTags(String resourceGroupName, String publicIpAddressName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, publicIpAddressName, parameters, Context.NONE).getValue(); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String publicIpAddressName, PublicIpAddressInner parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String publicIpAddressName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1203,42 +1233,35 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - publicIpAddressName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String publicIpAddressName, PublicIpAddressInner parameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String publicIpAddressName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1247,309 +1270,272 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + publicIpAddressName, context); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of public IP address resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, PublicIpAddressInner> beginCreateOrUpdateAsync( - String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, publicIpAddressName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - PublicIpAddressInner.class, PublicIpAddressInner.class, this.client.getContext()); + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpAddressName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of public IP address resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, PublicIpAddressInner> beginCreateOrUpdateAsync( - String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpAddressName, + Context context) { context = this.client.mergeContext(context); Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, publicIpAddressName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - PublicIpAddressInner.class, PublicIpAddressInner.class, context); + = deleteWithResponseAsync(resourceGroupName, publicIpAddressName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of public IP address resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PublicIpAddressInner> - beginCreateOrUpdate(String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName) { + return this.beginDeleteAsync(resourceGroupName, publicIpAddressName).getSyncPoller(); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of public IP address resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, PublicIpAddressInner> beginCreateOrUpdate( - String resourceGroupName, String publicIpAddressName, PublicIpAddressInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpAddressName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, publicIpAddressName, context).getSyncPoller(); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String publicIpAddressName, - PublicIpAddressInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).last() + public Mono deleteAsync(String resourceGroupName, String publicIpAddressName) { + return beginDeleteAsync(resourceGroupName, publicIpAddressName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String publicIpAddressName, - PublicIpAddressInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context).last() + private Mono deleteAsync(String resourceGroupName, String publicIpAddressName, Context context) { + return beginDeleteAsync(resourceGroupName, publicIpAddressName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAddressName, - PublicIpAddressInner parameters) { - return createOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters).block(); + public void delete(String resourceGroupName, String publicIpAddressName) { + deleteAsync(resourceGroupName, publicIpAddressName).block(); } /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified public IP address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to the create or update public IP address operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner createOrUpdate(String resourceGroupName, String publicIpAddressName, - PublicIpAddressInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, publicIpAddressName, parameters, context).block(); + public void delete(String resourceGroupName, String publicIpAddressName, Context context) { + deleteAsync(resourceGroupName, publicIpAddressName, context).block(); } /** - * Updates public IP address tags. + * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to update public IP address tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. + * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, - String publicIpAddressName, TagsObject parameters) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (publicIpAddressName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - publicIpAddressName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates public IP address tags. + * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to update public IP address tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource along with {@link Response} on successful completion of {@link Mono}. + * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String publicIpAddressName, TagsObject parameters, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (publicIpAddressName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Updates public IP address tags. + * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to update public IP address tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource on successful completion of {@link Mono}. + * @return all public IP addresses in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String publicIpAddressName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, publicIpAddressName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Updates public IP address tags. + * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to update public IP address tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource along with {@link Response}. + * @return all public IP addresses in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String publicIpAddressName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, publicIpAddressName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Updates public IP address tags. + * Gets all public IP addresses in a resource group. * - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param parameters Parameters supplied to update public IP address tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return public IP address resource. + * @return all public IP addresses in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner updateTags(String resourceGroupName, String publicIpAddressName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, publicIpAddressName, parameters, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Gets all public IP addresses in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all public IP addresses in a resource group as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** @@ -1661,140 +1647,10 @@ public PagedIterable list(Context context) { return new PagedIterable<>(listAsync(context)); } - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Gets all public IP addresses in a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1809,6 +1665,10 @@ public Mono>> ddosProtectionStatusWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1817,22 +1677,18 @@ public Mono>> ddosProtectionStatusWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.ddosProtectionStatus(this.client.getEndpoint(), resourceGroupName, - publicIpAddressName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.ddosProtectionStatus(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1848,6 +1704,10 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1856,21 +1716,17 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.ddosProtectionStatus(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.ddosProtectionStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpAddressName, accept, context); } /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1891,7 +1747,7 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1914,7 +1770,7 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1930,7 +1786,7 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1947,7 +1803,7 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1964,7 +1820,7 @@ public Mono ddosProtectionStatusAsync(S /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1982,7 +1838,7 @@ private Mono ddosProtectionStatusAsync( /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1998,7 +1854,7 @@ public PublicIpDdosProtectionStatusResultInner ddosProtectionStatus(String resou /** * Gets the Ddos Protection Status of a Public IP Address. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2016,7 +1872,7 @@ public PublicIpDdosProtectionStatusResultInner ddosProtectionStatus(String resou * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2050,10 +1906,12 @@ public Mono>> reserveCloudServicePublicIpAddressWithRe parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.reserveCloudServicePublicIpAddress(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, parameters, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2061,7 +1919,7 @@ public Mono>> reserveCloudServicePublicIpAddressWithRe * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2097,17 +1955,19 @@ private Mono>> reserveCloudServicePublicIpAddressWithR parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.reserveCloudServicePublicIpAddress(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, parameters, accept, context); + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, accept, parameters, + context); } /** * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2130,7 +1990,7 @@ private Mono>> reserveCloudServicePublicIpAddressWithR * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2155,7 +2015,7 @@ private Mono>> reserveCloudServicePublicIpAddressWithR * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2175,7 +2035,7 @@ public SyncPoller, PublicIpAddressInner> beginR * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2198,7 +2058,7 @@ public SyncPoller, PublicIpAddressInner> beginR * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2218,7 +2078,7 @@ public Mono reserveCloudServicePublicIpAddressAsync(String * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2240,7 +2100,7 @@ private Mono reserveCloudServicePublicIpAddressAsync(Strin * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2259,7 +2119,7 @@ public PublicIpAddressInner reserveCloudServicePublicIpAddress(String resourceGr * Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If rollback is * requested, reverts the allocation method to Dynamic. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2280,7 +2140,7 @@ public PublicIpAddressInner reserveCloudServicePublicIpAddress(String resourceGr * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2314,11 +2174,12 @@ public Mono>> disassociateCloudServiceReservedPublicIp parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.disassociateCloudServiceReservedPublicIp(this.client.getEndpoint(), - apiVersion, this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, parameters, accept, - context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2326,7 +2187,7 @@ public Mono>> disassociateCloudServiceReservedPublicIp * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2362,17 +2223,19 @@ private Mono>> disassociateCloudServiceReservedPublicI parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.disassociateCloudServiceReservedPublicIp(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, parameters, accept, context); + this.client.getSubscriptionId(), resourceGroupName, publicIpAddressName, contentType, accept, parameters, + context); } /** * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2395,7 +2258,7 @@ private Mono>> disassociateCloudServiceReservedPublicI * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2420,7 +2283,7 @@ private Mono>> disassociateCloudServiceReservedPublicI * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2442,7 +2305,7 @@ private Mono>> disassociateCloudServiceReservedPublicI * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2466,7 +2329,7 @@ private Mono>> disassociateCloudServiceReservedPublicI * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2487,7 +2350,7 @@ public Mono disassociateCloudServiceReservedPublicIpAsync( * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2508,7 +2371,7 @@ private Mono disassociateCloudServiceReservedPublicIpAsync * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2528,7 +2391,7 @@ public PublicIpAddressInner disassociateCloudServiceReservedPublicIp(String reso * Disassociates the Cloud Service reserved Public IP and associates the specified Standalone Public IP to the same * Cloud Service frontend. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameter that define which Public IP Address should be associated in place of given Public IP * Address. @@ -2546,52 +2409,166 @@ public PublicIpAddressInner disassociateCloudServiceReservedPublicIp(String reso } /** - * Gets information about all public IP addresses on a virtual machine scale set level. + * Gets information about all public IP addresses on a cloud service level. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a virtual machine scale set level along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVirtualMachineScaleSetPublicIpAddressesSinglePageAsync( - String resourceGroupName, String virtualMachineScaleSetName) { + private Mono> + listCloudServicePublicIpAddressesSinglePageAsync(String resourceGroupName, String cloudServiceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (cloudServiceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); } - final String apiVersion = "2018-10-01"; + final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVirtualMachineScaleSetPublicIpAddresses(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, apiVersion, this.client.getSubscriptionId(), accept, - context)) + .withContext(context -> service.listCloudServicePublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, cloudServiceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets information about all public IP addresses on a cloud service level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listCloudServicePublicIpAddressesSinglePageAsync( + String resourceGroupName, String cloudServiceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (cloudServiceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cloudServiceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listCloudServicePublicIpAddresses(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, cloudServiceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets information about all public IP addresses on a cloud service level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a cloud service level as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, + String cloudServiceName) { + return new PagedFlux<>( + () -> listCloudServicePublicIpAddressesSinglePageAsync(resourceGroupName, cloudServiceName), + nextLink -> listCloudServicePublicIpAddressesNextSinglePageAsync(nextLink)); + } + + /** + * Gets information about all public IP addresses on a cloud service level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a cloud service level as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listCloudServicePublicIpAddressesAsync(String resourceGroupName, + String cloudServiceName, Context context) { + return new PagedFlux<>( + () -> listCloudServicePublicIpAddressesSinglePageAsync(resourceGroupName, cloudServiceName, context), + nextLink -> listCloudServicePublicIpAddressesNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets information about all public IP addresses on a cloud service level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a cloud service level as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, + String cloudServiceName) { + return new PagedIterable<>(listCloudServicePublicIpAddressesAsync(resourceGroupName, cloudServiceName)); + } + + /** + * Gets information about all public IP addresses on a cloud service level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudServiceName The name of the cloud service. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a cloud service level as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listCloudServicePublicIpAddresses(String resourceGroupName, + String cloudServiceName, Context context) { + return new PagedIterable<>( + listCloudServicePublicIpAddressesAsync(resourceGroupName, cloudServiceName, context)); + } + /** * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2600,11 +2577,15 @@ private Mono> listVirtualMachineScaleSetPubl */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listVirtualMachineScaleSetPublicIpAddressesSinglePageAsync( - String resourceGroupName, String virtualMachineScaleSetName, Context context) { + String resourceGroupName, String virtualMachineScaleSetName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2613,16 +2594,54 @@ private Mono> listVirtualMachineScaleSetPubl return Mono.error( new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listVirtualMachineScaleSetPublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets information about all public IP addresses on a virtual machine scale set level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The name of the virtual machine scale set. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses on a virtual machine scale set level along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listVirtualMachineScaleSetPublicIpAddressesSinglePageAsync( + String resourceGroupName, String virtualMachineScaleSetName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2018-10-01"; + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listVirtualMachineScaleSetPublicIpAddresses(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, apiVersion, this.client.getSubscriptionId(), accept, context) + .listVirtualMachineScaleSetPublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2630,7 +2649,7 @@ private Mono> listVirtualMachineScaleSetPubl /** * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2650,7 +2669,7 @@ public PagedFlux listVirtualMachineScaleSetPublicIpAddress /** * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2671,7 +2690,7 @@ private PagedFlux listVirtualMachineScaleSetPublicIpAddres /** * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2689,7 +2708,7 @@ public PagedIterable listVirtualMachineScaleSetPublicIpAdd /** * Gets information about all public IP addresses on a virtual machine scale set level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineScaleSetName The name of the virtual machine scale set. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2706,28 +2725,33 @@ public PagedIterable listVirtualMachineScaleSetPublicIpAdd } /** - * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale - * set. + * Get the specified public IP address in a virtual machine scale set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine - * scale set along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVirtualMachineScaleSetVMPublicIpAddressesSinglePageAsync( + public Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync( String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName) { + String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2748,16 +2772,208 @@ private Mono> listVirtualMachineScaleSetVMPu return Mono .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } + if (publicIpAddressName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the specified public IP address in a virtual machine scale set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2018-10-01"; + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); + } + if (virtualmachineIndex == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); + } + if (publicIpAddressName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, accept, context); + } + + /** + * Get the specified public IP address in a virtual machine scale set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified public IP address in a virtual machine scale set on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getVirtualMachineScaleSetPublicIpAddressAsync(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, String publicIpAddressName) { + final String expand = null; + return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get the specified public IP address in a virtual machine scale set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. + * @param expand Expands referenced resources. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified public IP address in a virtual machine scale set along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getVirtualMachineScaleSetPublicIpAddressWithResponse(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, String publicIpAddressName, String expand, Context context) { + return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, context) + .block(); + } + + /** + * Get the specified public IP address in a virtual machine scale set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @param publicIpAddressName The publicIpAddressName parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified public IP address in a virtual machine scale set. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName, + String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, + String ipConfigurationName, String publicIpAddressName) { + final String expand = null; + return getVirtualMachineScaleSetPublicIpAddressWithResponse(resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, Context.NONE) + .getValue(); + } + + /** + * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale + * set. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return information about all public IP addresses in a virtual machine IP configuration in a virtual machine + * scale set along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listVirtualMachineScaleSetVMPublicIpAddressesSinglePageAsync( + String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, + String networkInterfaceName, String ipConfigurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualMachineScaleSetName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); + } + if (virtualmachineIndex == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); + } + if (networkInterfaceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); + } + if (ipConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listVirtualMachineScaleSetVMPublicIpAddresses(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, - ipConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, + virtualmachineIndex, networkInterfaceName, ipConfigurationName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2767,11 +2983,11 @@ private Mono> listVirtualMachineScaleSetVMPu * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale * set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2787,6 +3003,10 @@ private Mono> listVirtualMachineScaleSetVMPu return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2807,17 +3027,13 @@ private Mono> listVirtualMachineScaleSetVMPu return Mono .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2018-10-01"; + final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listVirtualMachineScaleSetVMPublicIpAddresses(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listVirtualMachineScaleSetVMPublicIpAddresses(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, + networkInterfaceName, ipConfigurationName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2826,11 +3042,11 @@ private Mono> listVirtualMachineScaleSetVMPu * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale * set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2851,11 +3067,11 @@ public PagedFlux listVirtualMachineScaleSetVMPublicIpAddre * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale * set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2877,11 +3093,11 @@ private PagedFlux listVirtualMachineScaleSetVMPublicIpAddr * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale * set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2900,11 +3116,11 @@ public PagedIterable listVirtualMachineScaleSetVMPublicIpA * Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale * set. * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The network interface name. - * @param ipConfigurationName The IP configuration name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualMachineScaleSetName The virtualMachineScaleSetName parameter. + * @param virtualmachineIndex The virtualmachineIndex parameter. + * @param networkInterfaceName The networkInterfaceName parameter. + * @param ipConfigurationName The ipConfigurationName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2920,203 +3136,6 @@ public PagedIterable listVirtualMachineScaleSetVMPublicIpA virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName, context)); } - /** - * Get the specified public IP address in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. - * @param expand Expands referenced resources. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (publicIpAddressName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2018-10-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), - resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, - ipConfigurationName, publicIpAddressName, apiVersion, this.client.getSubscriptionId(), expand, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the specified public IP address in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a virtual machine scale set along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVirtualMachineScaleSetPublicIpAddressWithResponseAsync( - String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, - String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, String expand, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualMachineScaleSetName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); - } - if (virtualmachineIndex == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualmachineIndex is required and cannot be null.")); - } - if (networkInterfaceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null.")); - } - if (ipConfigurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ipConfigurationName is required and cannot be null.")); - } - if (publicIpAddressName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpAddressName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2018-10-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getVirtualMachineScaleSetPublicIpAddress(this.client.getEndpoint(), resourceGroupName, - virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName, - publicIpAddressName, apiVersion, this.client.getSubscriptionId(), expand, accept, context); - } - - /** - * Get the specified public IP address in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a virtual machine scale set on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getVirtualMachineScaleSetPublicIpAddressAsync(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, String publicIpAddressName) { - final String expand = null; - return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the specified public IP address in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. - * @param expand Expands referenced resources. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a virtual machine scale set along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVirtualMachineScaleSetPublicIpAddressWithResponse(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, String publicIpAddressName, String expand, Context context) { - return getVirtualMachineScaleSetPublicIpAddressWithResponseAsync(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, context) - .block(); - } - - /** - * Get the specified public IP address in a virtual machine scale set. - * - * @param resourceGroupName The name of the resource group. - * @param virtualMachineScaleSetName The name of the virtual machine scale set. - * @param virtualmachineIndex The virtual machine index. - * @param networkInterfaceName The name of the network interface. - * @param ipConfigurationName The name of the IP configuration. - * @param publicIpAddressName The name of the public IP Address. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified public IP address in a virtual machine scale set. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String resourceGroupName, - String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, - String ipConfigurationName, String publicIpAddressName) { - final String expand = null; - return getVirtualMachineScaleSetPublicIpAddressWithResponse(resourceGroupName, virtualMachineScaleSetName, - virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, Context.NONE) - .getValue(); - } - /** * Get the next page of items. * @@ -3124,12 +3143,12 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return information about all public IP addresses in a role instance IP configuration in a cloud service along + * with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listCloudServicePublicIpAddressesNextSinglePageAsync(String nextLink) { + listCloudServiceRoleInstancePublicIpAddressesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3139,8 +3158,8 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listCloudServicePublicIpAddressesNext(nextLink, this.client.getEndpoint(), - accept, context)) + .withContext(context -> service.listCloudServiceRoleInstancePublicIpAddressesNext(nextLink, + this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3154,12 +3173,12 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return information about all public IP addresses in a role instance IP configuration in a cloud service along + * with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listCloudServicePublicIpAddressesNextSinglePageAsync(String nextLink, Context context) { + listCloudServiceRoleInstancePublicIpAddressesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3169,7 +3188,8 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listCloudServicePublicIpAddressesNext(nextLink, this.client.getEndpoint(), accept, context) + return service + .listCloudServiceRoleInstancePublicIpAddressesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3181,12 +3201,11 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a role instance IP configuration in a cloud service along - * with {@link PagedResponse} on successful completion of {@link Mono}. + * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listCloudServiceRoleInstancePublicIpAddressesNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3195,9 +3214,7 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listCloudServiceRoleInstancePublicIpAddressesNext(nextLink, - this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3211,12 +3228,11 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about all public IP addresses in a role instance IP configuration in a cloud service along - * with {@link PagedResponse} on successful completion of {@link Mono}. + * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listCloudServiceRoleInstancePublicIpAddressesNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3226,8 +3242,7 @@ public PublicIpAddressInner getVirtualMachineScaleSetPublicIpAddress(String reso } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listCloudServiceRoleInstancePublicIpAddressesNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3293,11 +3308,12 @@ private Mono> listAllNextSinglePageAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> + listCloudServicePublicIpAddressesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3306,7 +3322,9 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listCloudServicePublicIpAddressesNext(nextLink, this.client.getEndpoint(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -3320,11 +3338,12 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP addresses in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return information about all public IP addresses on a cloud service level along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> + listCloudServicePublicIpAddressesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -3334,7 +3353,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listCloudServicePublicIpAddressesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java index c2fd48545b4e..8e515657d4a9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.PublicIpPrefixesClient; import com.azure.resourcemanager.network.fluent.models.PublicIpPrefixInner; -import com.azure.resourcemanager.network.models.PublicIpPrefixListResult; +import com.azure.resourcemanager.network.implementation.models.PublicIPPrefixListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,291 +73,86 @@ public final class PublicIpPrefixesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpPrefixName") String publicIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpPrefixName") String publicIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("publicIpPrefixName") String publicIpPrefixName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpPrefixName") String publicIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") PublicIpPrefixInner parameters, @HeaderParam("Accept") String accept, + @PathParam("publicIpPrefixName") String publicIpPrefixName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PublicIpPrefixInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("publicIpPrefixName") String publicIpPrefixName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("publicIpPrefixName") String publicIpPrefixName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("publicIpPrefixName") String publicIpPrefixName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String publicIpPrefixName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (publicIpPrefixName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String publicIpPrefixName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (publicIpPrefixName == null) { - return Mono - .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpPrefixName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpPrefixName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName) { - return this.beginDeleteAsync(resourceGroupName, publicIpPrefixName).getSyncPoller(); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, publicIpPrefixName, context).getSyncPoller(); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String publicIpPrefixName) { - return beginDeleteAsync(resourceGroupName, publicIpPrefixName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String publicIpPrefixName, Context context) { - return beginDeleteAsync(resourceGroupName, publicIpPrefixName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String publicIpPrefixName) { - deleteAsync(resourceGroupName, publicIpPrefixName).block(); - } - - /** - * Deletes the specified public IP prefix. - * - * @param resourceGroupName The name of the resource group. - * @param publicIpPrefixName The name of the PublicIpPrefix. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String publicIpPrefixName, Context context) { - deleteAsync(resourceGroupName, publicIpPrefixName, context).block(); - } - /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,6 +168,10 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -381,22 +180,18 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - publicIpPrefixName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpPrefixName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -413,6 +208,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -421,21 +220,17 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpPrefixName, expand, accept, context); } /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -452,7 +247,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -470,7 +265,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets the specified public IP prefix in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -486,7 +281,7 @@ public PublicIpPrefixInner getByResourceGroup(String resourceGroupName, String p /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -501,6 +296,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -509,27 +308,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - publicIpPrefixName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpPrefixName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -545,6 +342,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -553,26 +354,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpPrefixName, contentType, accept, parameters, context); } /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -592,7 +390,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -614,7 +412,7 @@ private PollerFlux, PublicIpPrefixInner> beginCr /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -631,7 +429,7 @@ private PollerFlux, PublicIpPrefixInner> beginCr /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -650,7 +448,7 @@ public SyncPoller, PublicIpPrefixInner> beginCre /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -668,7 +466,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -687,7 +485,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,7 +502,7 @@ public PublicIpPrefixInner createOrUpdate(String resourceGroupName, String publi /** * Creates or updates a static or dynamic public IP prefix. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to the create or update public IP prefix operation. * @param context The context to associate with this operation. @@ -722,7 +520,7 @@ public PublicIpPrefixInner createOrUpdate(String resourceGroupName, String publi /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -737,6 +535,10 @@ public Mono> updateTagsWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -745,27 +547,25 @@ public Mono> updateTagsWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpPrefixName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @param context The context to associate with this operation. @@ -781,6 +581,10 @@ private Mono> updateTagsWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -789,26 +593,23 @@ private Mono> updateTagsWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, publicIpPrefixName, contentType, accept, parameters, context); } /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -826,7 +627,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @param context The context to associate with this operation. @@ -844,7 +645,7 @@ public Response updateTagsWithResponse(String resourceGroup /** * Updates public IP prefix tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param publicIpPrefixName The name of the public IP prefix. * @param parameters Parameters supplied to update public IP prefix tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -858,15 +659,18 @@ public PublicIpPrefixInner updateTags(String resourceGroupName, String publicIpP } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String publicIpPrefixName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -875,28 +679,35 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (publicIpPrefixName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, publicIpPrefixName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String publicIpPrefixName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -905,71 +716,155 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (publicIpPrefixName == null) { + return Mono + .error(new IllegalArgumentException("Parameter publicIpPrefixName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + publicIpPrefixName, context); } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpPrefixName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String publicIpPrefixName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, publicIpPrefixName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName) { + return this.beginDeleteAsync(resourceGroupName, publicIpPrefixName).getSyncPoller(); + } + + /** + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String publicIpPrefixName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, publicIpPrefixName, context).getSyncPoller(); } /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified public IP prefix. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String publicIpPrefixName) { + return beginDeleteAsync(resourceGroupName, publicIpPrefixName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String publicIpPrefixName, Context context) { + return beginDeleteAsync(resourceGroupName, publicIpPrefixName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String publicIpPrefixName) { + deleteAsync(resourceGroupName, publicIpPrefixName).block(); + } + + /** + * Deletes the specified public IP prefix. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIpPrefixName The name of the public IP prefix. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String publicIpPrefixName, Context context) { + deleteAsync(resourceGroupName, publicIpPrefixName, context).block(); } /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -982,19 +877,19 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1003,7 +898,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1018,20 +913,20 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1039,7 +934,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1054,7 +949,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1070,7 +965,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1084,7 +979,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets all public IP prefixes in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1096,6 +991,115 @@ public PagedIterable listByResourceGroup(String resourceGro return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } + /** + * Gets all the public IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the public IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets all the public IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the public IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the public IP prefixes in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the public IP prefixes in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the public IP prefixes in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -1103,11 +1107,11 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * @return all public IP prefixes in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1116,8 +1120,7 @@ private Mono> listAllNextSinglePageAsync(Stri new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1131,11 +1134,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of + * @return all public IP prefixes in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1145,7 +1148,7 @@ private Mono> listAllNextSinglePageAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1157,11 +1160,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP prefixes in a resource group along with {@link PagedResponse} on successful completion of + * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1170,7 +1173,8 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1184,11 +1188,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all public IP prefixes in a resource group along with {@link PagedResponse} on successful completion of + * @return all the public IP prefixes in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1198,7 +1202,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisIntentsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisIntentsClientImpl.java index 726684de0ad7..2f4000da71a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisIntentsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisIntentsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ReachabilityAnalysisIntentsClient; import com.azure.resourcemanager.network.fluent.models.ReachabilityAnalysisIntentInner; -import com.azure.resourcemanager.network.models.ReachabilityAnalysisIntentListResult; +import com.azure.resourcemanager.network.implementation.models.ReachabilityAnalysisIntentListResult; import reactor.core.publisher.Mono; /** @@ -62,26 +62,14 @@ public final class ReachabilityAnalysisIntentsClientImpl implements Reachability * The interface defining all the services for NetworkManagementClientReachabilityAnalysisIntents to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientReachabilityAnalysisIntents") public interface ReachabilityAnalysisIntentsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("workspaceName") String workspaceName, @QueryParam("skipToken") String skipToken, - @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, - @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -89,267 +77,56 @@ Mono> get(@HostParam("$host") String e @PathParam("reachabilityAnalysisIntentName") String reachabilityAnalysisIntentName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create(@HostParam("$host") String endpoint, + Mono> create(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, @PathParam("reachabilityAnalysisIntentName") String reachabilityAnalysisIntentName, - @BodyParam("application/json") ReachabilityAnalysisIntentInner body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ReachabilityAnalysisIntentInner body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, - @PathParam("reachabilityAnalysisIntentName") String reachabilityAnalysisIntentName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("reachabilityAnalysisIntentName") String reachabilityAnalysisIntentName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("workspaceName") String workspaceName, @QueryParam("skipToken") String skipToken, + @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, + @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, - context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue)); - } - - /** - * Gets list of Reachability Analysis Intents . - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, - sortKey, sortValue, context)); - } - /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -393,9 +170,9 @@ public Mono> getWithResponseAsync(Stri /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -439,9 +216,9 @@ private Mono> getWithResponseAsync(Str /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -458,9 +235,9 @@ public Mono getAsync(String resourceGroupName, /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -478,9 +255,9 @@ public Response getWithResponse(String resource /** * Get the Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,9 +274,9 @@ public ReachabilityAnalysisIntentInner get(String resourceGroupName, String netw /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -541,20 +318,21 @@ public Mono> createWithResponseAsync(S body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, workspaceName, - reachabilityAnalysisIntentName, body, accept, context)) + reachabilityAnalysisIntentName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @param context The context to associate with this operation. @@ -597,18 +375,19 @@ private Mono> createWithResponseAsync( body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, reachabilityAnalysisIntentName, body, accept, context); + networkManagerName, workspaceName, reachabilityAnalysisIntentName, contentType, accept, body, context); } /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -627,9 +406,9 @@ public Mono createAsync(String resourceGroupNam /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @param context The context to associate with this operation. @@ -649,9 +428,9 @@ public Response createWithResponse(String resou /** * Creates Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param body Reachability Analysis Intent object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -669,9 +448,9 @@ public ReachabilityAnalysisIntentInner create(String resourceGroupName, String n /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -705,20 +484,19 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St "Parameter reachabilityAnalysisIntentName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, workspaceName, - reachabilityAnalysisIntentName, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -753,18 +531,17 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S "Parameter reachabilityAnalysisIntentName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, reachabilityAnalysisIntentName, accept, context); + networkManagerName, workspaceName, reachabilityAnalysisIntentName, context); } /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -781,9 +558,9 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -801,9 +578,9 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Deletes Reachability Analysis Intent. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -816,6 +593,227 @@ public void delete(String resourceGroupName, String networkManagerName, String w Context.NONE); } + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue)); + } + + /** + * Gets list of Reachability Analysis Intents . + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Intents as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, + sortKey, sortValue, context)); + } + /** * Gets list of Reachability Analysis Intents . * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisRunsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisRunsClientImpl.java index c22f97b81657..df228390c464 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisRunsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisRunsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ReachabilityAnalysisRunsClient; import com.azure.resourcemanager.network.fluent.models.ReachabilityAnalysisRunInner; -import com.azure.resourcemanager.network.models.ReachabilityAnalysisRunListResult; +import com.azure.resourcemanager.network.implementation.models.ReachabilityAnalysisRunListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,26 +67,14 @@ public final class ReachabilityAnalysisRunsClientImpl implements ReachabilityAna * The interface defining all the services for NetworkManagementClientReachabilityAnalysisRuns to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientReachabilityAnalysisRuns") public interface ReachabilityAnalysisRunsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("workspaceName") String workspaceName, @QueryParam("skipToken") String skipToken, - @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, - @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -94,267 +82,56 @@ Mono> get(@HostParam("$host") String endp @PathParam("reachabilityAnalysisRunName") String reachabilityAnalysisRunName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create(@HostParam("$host") String endpoint, + Mono> create(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, @PathParam("reachabilityAnalysisRunName") String reachabilityAnalysisRunName, - @BodyParam("application/json") ReachabilityAnalysisRunInner body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ReachabilityAnalysisRunInner body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, - @PathParam("reachabilityAnalysisRunName") String reachabilityAnalysisRunName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("reachabilityAnalysisRunName") String reachabilityAnalysisRunName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("workspaceName") String workspaceName, @QueryParam("skipToken") String skipToken, + @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, + @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, - context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, - skipToken, skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue)); - } - - /** - * Gets list of Reachability Analysis Runs. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, - sortKey, sortValue, context)); - } - /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -398,9 +175,9 @@ public Mono> getWithResponseAsync(String /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -444,9 +221,9 @@ private Mono> getWithResponseAsync(String /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -463,9 +240,9 @@ public Mono getAsync(String resourceGroupName, Str /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -483,9 +260,9 @@ public Response getWithResponse(String resourceGro /** * Gets Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -502,9 +279,9 @@ public ReachabilityAnalysisRunInner get(String resourceGroupName, String network /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -546,20 +323,21 @@ public Mono> createWithResponseAsync(Stri body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, workspaceName, - reachabilityAnalysisRunName, body, accept, context)) + reachabilityAnalysisRunName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @param context The context to associate with this operation. @@ -602,18 +380,19 @@ private Mono> createWithResponseAsync(Str body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, reachabilityAnalysisRunName, body, accept, context); + networkManagerName, workspaceName, reachabilityAnalysisRunName, contentType, accept, body, context); } /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -631,9 +410,9 @@ public Mono createAsync(String resourceGroupName, /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @param context The context to associate with this operation. @@ -653,9 +432,9 @@ public Response createWithResponse(String resource /** * Creates Reachability Analysis Runs. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param body Analysis Run resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -673,9 +452,9 @@ public ReachabilityAnalysisRunInner create(String resourceGroupName, String netw /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -709,20 +488,19 @@ public Mono>> deleteWithResponseAsync(String resourceG new IllegalArgumentException("Parameter reachabilityAnalysisRunName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName, accept, context)) + resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -757,18 +535,17 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter reachabilityAnalysisRunName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, reachabilityAnalysisRunName, accept, context); + networkManagerName, workspaceName, reachabilityAnalysisRunName, context); } /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -787,9 +564,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -810,9 +587,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -829,9 +606,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -851,9 +628,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -871,9 +648,9 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -891,9 +668,9 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -908,9 +685,9 @@ public void delete(String resourceGroupName, String networkManagerName, String w /** * Deletes Reachability Analysis Run. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param reachabilityAnalysisRunName Reachability Analysis Run name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -923,6 +700,227 @@ public void delete(String resourceGroupName, String networkManagerName, String w deleteAsync(resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName, context).block(); } + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, workspaceName, + skipToken, skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue)); + } + + /** + * Gets list of Reachability Analysis Runs. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param workspaceName The name of the resource. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Reachability Analysis Runs as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String workspaceName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, + sortKey, sortValue, context)); + } + /** * Gets list of Reachability Analysis Runs. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java index 4bd21686825f..462eaa3b16c6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -54,24 +54,24 @@ public final class ResourceNavigationLinksClientImpl implements ResourceNavigati * The interface defining all the services for NetworkManagementClientResourceNavigationLinks to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientResourceNavigationLinks") public interface ResourceNavigationLinksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ResourceNavigationLinks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/resourceNavigationLinks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); } /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,6 +87,10 @@ public Mono> listWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -98,22 +102,18 @@ public Mono> listWithResponseAs if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -130,6 +130,10 @@ private Mono> listWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -141,21 +145,17 @@ private Mono> listWithResponseA if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, subnetName, accept, context); } /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,7 +173,7 @@ public Mono listAsync(String resourceGro /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -191,7 +191,7 @@ public Response listWithResponse(String /** * Gets a list of resource navigation links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java index 0c648e2a15b5..0c28887ebcbc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RouteFilterRulesClient; import com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner; -import com.azure.resourcemanager.network.models.RouteFilterRuleListResult; +import com.azure.resourcemanager.network.implementation.models.RouteFilterRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,64 +67,64 @@ public final class RouteFilterRulesClientImpl implements RouteFilterRulesClient * The interface defining all the services for NetworkManagementClientRouteFilterRules to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRouteFilterRules") public interface RouteFilterRulesService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("routeFilterName") String routeFilterName, @PathParam("ruleName") String ruleName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("routeFilterName") String routeFilterName, @PathParam("ruleName") String ruleName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("routeFilterName") String routeFilterName, @PathParam("ruleName") String ruleName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") RouteFilterRuleInner routeFilterRuleParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") RouteFilterRuleInner routeFilterRuleParameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByRouteFilter(@HostParam("$host") String endpoint, + Mono> listByRouteFilter(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeFilterName") String routeFilterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("routeFilterName") String routeFilterName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByRouteFilterNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -137,6 +137,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -148,24 +152,19 @@ public Mono>> deleteWithResponseAsync(String resourceG if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, - ruleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, ruleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -179,6 +178,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -190,23 +193,18 @@ private Mono>> deleteWithResponseAsync(String resource if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeFilterName, ruleName, context); } /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -223,9 +221,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -245,9 +243,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -262,9 +260,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -280,9 +278,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -297,9 +295,9 @@ public Mono deleteAsync(String resourceGroupName, String routeFilterName, /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -315,9 +313,9 @@ private Mono deleteAsync(String resourceGroupName, String routeFilterName, /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -330,9 +328,9 @@ public void delete(String resourceGroupName, String routeFilterName, String rule /** * Deletes the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -346,9 +344,9 @@ public void delete(String resourceGroupName, String routeFilterName, String rule /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -362,6 +360,10 @@ public Mono> getWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -373,24 +375,20 @@ public Mono> getWithResponseAsync(String resource if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, ruleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -405,6 +403,10 @@ private Mono> getWithResponseAsync(String resourc return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -416,23 +418,19 @@ private Mono> getWithResponseAsync(String resourc if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeFilterName, ruleName, accept, context); } /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -447,9 +445,9 @@ public Mono getAsync(String resourceGroupName, String rout /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -465,9 +463,9 @@ public Response getWithResponse(String resourceGroupName, /** * Gets the specified rule from a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. - * @param ruleName The name of the rule. + * @param ruleName The name of the route filter rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -481,7 +479,7 @@ public RouteFilterRuleInner get(String resourceGroupName, String routeFilterName /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -497,6 +495,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -508,10 +510,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeFilterRuleParameters == null) { return Mono.error( new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null.")); @@ -519,18 +517,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r routeFilterRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeFilterName, - ruleName, apiVersion, this.client.getSubscriptionId(), routeFilterRuleParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, ruleName, contentType, accept, + routeFilterRuleParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -547,6 +546,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -558,10 +561,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeFilterRuleParameters == null) { return Mono.error( new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null.")); @@ -569,16 +568,17 @@ private Mono>> createOrUpdateWithResponseAsync(String routeFilterRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, - apiVersion, this.client.getSubscriptionId(), routeFilterRuleParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, ruleName, contentType, accept, routeFilterRuleParameters, context); } /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -600,7 +600,7 @@ public PollerFlux, RouteFilterRuleInner> beginC /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -624,7 +624,7 @@ private PollerFlux, RouteFilterRuleInner> begin /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -644,7 +644,7 @@ public SyncPoller, RouteFilterRuleInner> beginC /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -666,7 +666,7 @@ public SyncPoller, RouteFilterRuleInner> beginC /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -685,7 +685,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -705,7 +705,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -723,7 +723,7 @@ public RouteFilterRuleInner createOrUpdate(String resourceGroupName, String rout /** * Creates or updates a route in the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param ruleName The name of the route filter rule. * @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation. @@ -743,7 +743,7 @@ public RouteFilterRuleInner createOrUpdate(String resourceGroupName, String rout /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -758,6 +758,10 @@ private Mono> listByRouteFilterSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -766,15 +770,11 @@ private Mono> listByRouteFilterSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByRouteFilter(this.client.getEndpoint(), resourceGroupName, - routeFilterName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByRouteFilter(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -783,7 +783,7 @@ private Mono> listByRouteFilterSinglePageAsy /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -799,6 +799,10 @@ private Mono> listByRouteFilterSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -807,16 +811,12 @@ private Mono> listByRouteFilterSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByRouteFilter(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByRouteFilter(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -824,7 +824,7 @@ private Mono> listByRouteFilterSinglePageAsy /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -840,7 +840,7 @@ public PagedFlux listByRouteFilterAsync(String resourceGro /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -858,7 +858,7 @@ private PagedFlux listByRouteFilterAsync(String resourceGr /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -873,7 +873,7 @@ public PagedIterable listByRouteFilter(String resourceGrou /** * Gets all RouteFilterRules in a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java index 81d40a829aa9..cbcffc700220 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RouteFiltersClient; import com.azure.resourcemanager.network.fluent.models.RouteFilterInner; -import com.azure.resourcemanager.network.models.RouteFilterListResult; +import com.azure.resourcemanager.network.implementation.models.RouteFilterListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,62 +73,62 @@ public final class RouteFiltersClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeFilterName") String routeFilterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeFilterName") String routeFilterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("routeFilterName") String routeFilterName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeFilterName") String routeFilterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") RouteFilterInner routeFilterParameters, @HeaderParam("Accept") String accept, + @PathParam("routeFilterName") String routeFilterName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") RouteFilterInner routeFilterParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeFilterName") String routeFilterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("routeFilterName") String routeFilterName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("routeFilterName") String routeFilterName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -137,7 +137,7 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -145,217 +145,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeFilterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeFilterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeFilterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeFilterName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName) { - return this.beginDeleteAsync(resourceGroupName, routeFilterName).getSyncPoller(); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, routeFilterName, context).getSyncPoller(); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String routeFilterName) { - return beginDeleteAsync(resourceGroupName, routeFilterName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String routeFilterName, Context context) { - return beginDeleteAsync(resourceGroupName, routeFilterName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeFilterName) { - deleteAsync(resourceGroupName, routeFilterName).block(); - } - - /** - * Deletes the specified route filter. - * - * @param resourceGroupName The name of the resource group. - * @param routeFilterName The name of the route filter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeFilterName, Context context) { - deleteAsync(resourceGroupName, routeFilterName, context).block(); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param expand Expands referenced express route bgp peering resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -370,6 +166,10 @@ public Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -378,22 +178,18 @@ public Mono> getByResourceGroupWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - routeFilterName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param expand Expands referenced express route bgp peering resources. * @param context The context to associate with this operation. @@ -409,6 +205,10 @@ private Mono> getByResourceGroupWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -417,21 +217,17 @@ private Mono> getByResourceGroupWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, expand, accept, context); } /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -448,7 +244,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param expand Expands referenced express route bgp peering resources. * @param context The context to associate with this operation. @@ -466,7 +262,7 @@ public Response getByResourceGroupWithResponse(String resource /** * Gets the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -482,7 +278,7 @@ public RouteFilterInner getByResourceGroup(String resourceGroupName, String rout /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -497,6 +293,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -505,10 +305,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeFilterParameters == null) { return Mono .error(new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null.")); @@ -516,17 +312,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r routeFilterParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - routeFilterName, apiVersion, this.client.getSubscriptionId(), routeFilterParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, contentType, accept, + routeFilterParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -542,6 +340,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -550,10 +352,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeFilterParameters == null) { return Mono .error(new IllegalArgumentException("Parameter routeFilterParameters is required and cannot be null.")); @@ -561,16 +359,17 @@ private Mono>> createOrUpdateWithResponseAsync(String routeFilterParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, - this.client.getSubscriptionId(), routeFilterParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, contentType, accept, routeFilterParameters, context); } /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -590,7 +389,7 @@ public PollerFlux, RouteFilterInner> beginCreateOrU /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -612,7 +411,7 @@ private PollerFlux, RouteFilterInner> beginCreateOr /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,7 +428,7 @@ public SyncPoller, RouteFilterInner> beginCreateOrU /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -648,7 +447,7 @@ public SyncPoller, RouteFilterInner> beginCreateOrU /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -666,7 +465,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -685,7 +484,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -702,7 +501,7 @@ public RouteFilterInner createOrUpdate(String resourceGroupName, String routeFil /** * Creates or updates a route filter in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param routeFilterParameters Parameters supplied to the create or update route filter operation. * @param context The context to associate with this operation. @@ -720,7 +519,7 @@ public RouteFilterInner createOrUpdate(String resourceGroupName, String routeFil /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -735,6 +534,10 @@ public Mono> updateTagsWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -743,27 +546,25 @@ public Mono> updateTagsWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, routeFilterName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @param context The context to associate with this operation. @@ -779,6 +580,10 @@ private Mono> updateTagsWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -787,26 +592,23 @@ private Mono> updateTagsWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeFilterName, contentType, accept, parameters, context); } /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -824,7 +626,7 @@ public Mono updateTagsAsync(String resourceGroupName, String r /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @param context The context to associate with this operation. @@ -842,7 +644,7 @@ public Response updateTagsWithResponse(String resourceGroupNam /** * Updates tags of a route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeFilterName The name of the route filter. * @param parameters Parameters supplied to update route filter tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -856,34 +658,236 @@ public RouteFilterInner updateTags(String resourceGroupName, String routeFilterN } /** - * Gets all route filters in a resource group. + * Deletes the specified route filter. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all route filters in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (routeFilterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeFilterName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeFilterName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (routeFilterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeFilterName, context); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeFilterName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeFilterName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeFilterName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName) { + return this.beginDeleteAsync(resourceGroupName, routeFilterName).getSyncPoller(); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeFilterName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, routeFilterName, context).getSyncPoller(); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String routeFilterName) { + return beginDeleteAsync(resourceGroupName, routeFilterName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String routeFilterName, Context context) { + return beginDeleteAsync(resourceGroupName, routeFilterName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeFilterName) { + deleteAsync(resourceGroupName, routeFilterName).block(); + } + + /** + * Deletes the specified route filter. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeFilterName The name of the route filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeFilterName, Context context) { + deleteAsync(resourceGroupName, routeFilterName, context).block(); + } + + /** + * Gets all route filters in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all route filters in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -892,7 +896,7 @@ private Mono> listByResourceGroupSinglePageAsync /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -907,20 +911,20 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -928,7 +932,7 @@ private Mono> listByResourceGroupSinglePageAsync /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -943,7 +947,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroup /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -959,7 +963,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -973,7 +977,7 @@ public PagedIterable listByResourceGroup(String resourceGroupN /** * Gets all route filters in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java index 623f3eb5dc70..cd761eaa3e02 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RouteMapsClient; import com.azure.resourcemanager.network.fluent.models.RouteMapInner; -import com.azure.resourcemanager.network.models.ListRouteMapsResult; +import com.azure.resourcemanager.network.implementation.models.ListRouteMapsResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,65 +67,63 @@ public final class RouteMapsClientImpl implements RouteMapsClient { * The interface defining all the services for NetworkManagementClientRouteMaps to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRouteMaps") public interface RouteMapsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeMapName") String routeMapName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeMapName") String routeMapName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RouteMapInner routeMapParameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") RouteMapInner routeMapParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeMapName") String routeMapName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -156,17 +154,18 @@ public Mono> getWithResponseAsync(String resourceGroupNa final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeMapName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeMapName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -198,16 +197,17 @@ private Mono> getWithResponseAsync(String resourceGroupN final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeMapName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeMapName, accept, context); } /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -222,9 +222,10 @@ public Mono getAsync(String resourceGroupName, String virtualHubN /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -240,9 +241,10 @@ public Response getWithResponse(String resourceGroupName, String /** * Retrieves the details of a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -256,9 +258,10 @@ public RouteMapInner get(String resourceGroupName, String virtualHubName, String /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -294,19 +297,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r routeMapParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeMapName, apiVersion, routeMapParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeMapName, contentType, accept, + routeMapParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,18 +349,20 @@ private Mono>> createOrUpdateWithResponseAsync(String routeMapParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeMapName, apiVersion, routeMapParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeMapName, contentType, accept, routeMapParameters, context); } /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -373,9 +381,10 @@ public PollerFlux, RouteMapInner> beginCreateOrUpdateA /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -396,9 +405,10 @@ private PollerFlux, RouteMapInner> beginCreateOrUpdate /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -415,9 +425,10 @@ public SyncPoller, RouteMapInner> beginCreateOrUpdate( /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -436,9 +447,10 @@ public SyncPoller, RouteMapInner> beginCreateOrUpdate( /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -455,9 +467,10 @@ public Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -476,9 +489,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -494,9 +508,10 @@ public RouteMapInner createOrUpdate(String resourceGroupName, String virtualHubN /** * Creates a RouteMap if it doesn't exist else updates the existing one. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param routeMapParameters Parameters supplied to create or update a RouteMap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -514,9 +529,10 @@ public RouteMapInner createOrUpdate(String resourceGroupName, String virtualHubN /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -544,19 +560,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeMapName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeMapName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -585,18 +601,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeMapName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeMapName, context); } /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -614,9 +630,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -636,9 +653,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -653,9 +671,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -671,9 +690,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -688,9 +708,10 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -707,9 +728,10 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -722,9 +744,10 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Deletes a RouteMap. * - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routeMapName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -738,8 +761,8 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -766,8 +789,8 @@ private Mono> listSinglePageAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -776,8 +799,8 @@ private Mono> listSinglePageAsync(String resourceGr /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -807,8 +830,8 @@ private Mono> listSinglePageAsync(String resourceGr final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -816,8 +839,8 @@ private Mono> listSinglePageAsync(String resourceGr /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -833,8 +856,8 @@ public PagedFlux listAsync(String resourceGroupName, String virtu /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -851,8 +874,8 @@ private PagedFlux listAsync(String resourceGroupName, String virt /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -867,8 +890,8 @@ public PagedIterable list(String resourceGroupName, String virtua /** * Retrieves the details of all RouteMaps. * - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java index fa0b63bb8290..deb0cb42b4d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RouteTablesClient; import com.azure.resourcemanager.network.fluent.models.RouteTableInner; -import com.azure.resourcemanager.network.models.RouteTableListResult; +import com.azure.resourcemanager.network.implementation.models.RouteTableListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,62 +73,62 @@ public final class RouteTablesClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("routeTableName") String routeTableName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") RouteTableInner parameters, @HeaderParam("Accept") String accept, + @PathParam("routeTableName") String routeTableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") RouteTableInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("routeTableName") String routeTableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("routeTableName") String routeTableName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -137,222 +137,20 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName) { - return this.beginDeleteAsync(resourceGroupName, routeTableName).getSyncPoller(); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, routeTableName, context).getSyncPoller(); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String routeTableName) { - return beginDeleteAsync(resourceGroupName, routeTableName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String routeTableName, Context context) { - return beginDeleteAsync(resourceGroupName, routeTableName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeTableName) { - deleteAsync(resourceGroupName, routeTableName).block(); - } - - /** - * Deletes the specified route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeTableName, Context context) { - deleteAsync(resourceGroupName, routeTableName, context).block(); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -367,6 +165,10 @@ public Mono> getByResourceGroupWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -374,22 +176,18 @@ public Mono> getByResourceGroupWithResponseAsync(Strin if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - routeTableName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeTableName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -405,6 +203,10 @@ private Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -412,21 +214,17 @@ private Mono> getByResourceGroupWithResponseAsync(Stri if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, expand, accept, context); } /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -443,7 +241,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, S /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -461,7 +259,7 @@ public Response getByResourceGroupWithResponse(String resourceG /** * Gets the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,7 +275,7 @@ public RouteTableInner getByResourceGroup(String resourceGroupName, String route /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -492,6 +290,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -499,27 +301,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeTableName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -535,6 +335,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -542,26 +346,23 @@ private Mono>> createOrUpdateWithResponseAsync(String if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, contentType, accept, parameters, context); } /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -581,7 +382,7 @@ public PollerFlux, RouteTableInner> beginCreateOrUpd /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -603,7 +404,7 @@ private PollerFlux, RouteTableInner> beginCreateOrUp /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -620,7 +421,7 @@ public SyncPoller, RouteTableInner> beginCreateOrUpd /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -638,7 +439,7 @@ public SyncPoller, RouteTableInner> beginCreateOrUpd /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -656,7 +457,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -675,7 +476,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -691,7 +492,7 @@ public RouteTableInner createOrUpdate(String resourceGroupName, String routeTabl /** * Create or updates a route table in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to the create or update route table operation. * @param context The context to associate with this operation. @@ -709,7 +510,7 @@ public RouteTableInner createOrUpdate(String resourceGroupName, String routeTabl /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -724,6 +525,10 @@ public Mono> updateTagsWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -731,27 +536,25 @@ public Mono> updateTagsWithResponseAsync(String resour if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, routeTableName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @param context The context to associate with this operation. @@ -767,6 +570,10 @@ private Mono> updateTagsWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -774,26 +581,23 @@ private Mono> updateTagsWithResponseAsync(String resou if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, contentType, accept, parameters, context); } /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -811,7 +615,7 @@ public Mono updateTagsAsync(String resourceGroupName, String ro /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @param context The context to associate with this operation. @@ -829,7 +633,7 @@ public Response updateTagsWithResponse(String resourceGroupName /** * Updates a route table tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param parameters Parameters supplied to update route table tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -843,34 +647,234 @@ public RouteTableInner updateTags(String resourceGroupName, String routeTableNam } /** - * Gets all route tables in a resource group. + * Deletes the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all route tables in a resource group along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeTableName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeTableName, context); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName) { + return this.beginDeleteAsync(resourceGroupName, routeTableName).getSyncPoller(); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, routeTableName, context).getSyncPoller(); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String routeTableName) { + return beginDeleteAsync(resourceGroupName, routeTableName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String routeTableName, Context context) { + return beginDeleteAsync(resourceGroupName, routeTableName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeTableName) { + deleteAsync(resourceGroupName, routeTableName).block(); + } + + /** + * Deletes the specified route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeTableName, Context context) { + deleteAsync(resourceGroupName, routeTableName, context).block(); + } + + /** + * Gets all route tables in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all route tables in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -879,7 +883,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -894,20 +898,20 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -915,7 +919,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -930,7 +934,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupN /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -946,7 +950,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroup /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -960,7 +964,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNa /** * Gets all route tables in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java index 117229159974..779ce79eb171 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RoutesClient; import com.azure.resourcemanager.network.fluent.models.RouteInner; -import com.azure.resourcemanager.network.models.RouteListResult; +import com.azure.resourcemanager.network.implementation.models.RouteListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -66,283 +66,60 @@ public final class RoutesClientImpl implements RoutesClient { * The interface defining all the services for NetworkManagementClientRoutes to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRoutes") public interface RoutesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @PathParam("routeName") String routeName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("routeTableName") String routeTableName, @PathParam("routeName") String routeName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("routeTableName") String routeTableName, @PathParam("routeName") String routeName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") RouteInner routeParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") RouteInner routeParameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("routeTableName") String routeTableName, @PathParam("routeName") String routeName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("routeTableName") String routeTableName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("routeTableName") String routeTableName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, - String routeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - if (routeName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, - routeName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, - String routeName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (routeTableName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); - } - if (routeName == null) { - return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, - String routeName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, - String routeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, - String routeName) { - return this.beginDeleteAsync(resourceGroupName, routeTableName, routeName).getSyncPoller(); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, - String routeName, Context context) { - return this.beginDeleteAsync(resourceGroupName, routeTableName, routeName, context).getSyncPoller(); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName) { - return beginDeleteAsync(resourceGroupName, routeTableName, routeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName, Context context) { - return beginDeleteAsync(resourceGroupName, routeTableName, routeName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeTableName, String routeName) { - deleteAsync(resourceGroupName, routeTableName, routeName).block(); - } - - /** - * Deletes the specified route from a route table. - * - * @param resourceGroupName The name of the resource group. - * @param routeTableName The name of the route table. - * @param routeName The name of the route. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String routeTableName, String routeName, Context context) { - deleteAsync(resourceGroupName, routeTableName, routeName, context).block(); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -358,6 +135,10 @@ public Mono> getWithResponseAsync(String resourceGroupName, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -368,22 +149,18 @@ public Mono> getWithResponseAsync(String resourceGroupName, if (routeName == null) { return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, routeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param context The context to associate with this operation. @@ -400,6 +177,10 @@ private Mono> getWithResponseAsync(String resourceGroupName return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -410,21 +191,17 @@ private Mono> getWithResponseAsync(String resourceGroupName if (routeName == null) { return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeTableName, routeName, accept, context); } /** * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -441,7 +218,7 @@ public Mono getAsync(String resourceGroupName, String routeTableName /** * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param context The context to associate with this operation. @@ -459,7 +236,7 @@ public Response getWithResponse(String resourceGroupName, String rou /** * Gets the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -475,7 +252,7 @@ public RouteInner get(String resourceGroupName, String routeTableName, String ro /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -491,6 +268,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -501,10 +282,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (routeName == null) { return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeParameters == null) { return Mono .error(new IllegalArgumentException("Parameter routeParameters is required and cannot be null.")); @@ -512,17 +289,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r routeParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, - routeName, apiVersion, this.client.getSubscriptionId(), routeParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeTableName, routeName, contentType, accept, + routeParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -539,6 +318,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -549,10 +332,6 @@ private Mono>> createOrUpdateWithResponseAsync(String if (routeName == null) { return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (routeParameters == null) { return Mono .error(new IllegalArgumentException("Parameter routeParameters is required and cannot be null.")); @@ -560,16 +339,17 @@ private Mono>> createOrUpdateWithResponseAsync(String routeParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, - apiVersion, this.client.getSubscriptionId(), routeParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, routeName, contentType, accept, routeParameters, context); } /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -590,7 +370,7 @@ public PollerFlux, RouteInner> beginCreateOrUpdateAsync(S /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -613,7 +393,7 @@ private PollerFlux, RouteInner> beginCreateOrUpdateAsync( /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -632,7 +412,7 @@ public SyncPoller, RouteInner> beginCreateOrUpdate(String /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -652,7 +432,7 @@ public SyncPoller, RouteInner> beginCreateOrUpdate(String /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -671,7 +451,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, String rou /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -691,7 +471,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String ro /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -709,7 +489,7 @@ public RouteInner createOrUpdate(String resourceGroupName, String routeTableName /** * Creates or updates a route in the specified route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @param routeParameters Parameters supplied to the create or update route operation. @@ -726,21 +506,67 @@ public RouteInner createOrUpdate(String resourceGroupName, String routeTableName } /** - * Gets all routes in a route table. + * Deletes the specified route from a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. + * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all routes in a route table along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String routeTableName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, + String routeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } + if (routeName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, routeTableName, routeName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, + String routeName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -748,15 +574,189 @@ private Mono> listSinglePageAsync(String resourceGroup if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } + if (routeName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeTableName, routeName, context); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, + String routeName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String routeTableName, + String routeName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, + String routeName) { + return this.beginDeleteAsync(resourceGroupName, routeTableName, routeName).getSyncPoller(); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String routeTableName, + String routeName, Context context) { + return this.beginDeleteAsync(resourceGroupName, routeTableName, routeName, context).getSyncPoller(); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName) { + return beginDeleteAsync(resourceGroupName, routeTableName, routeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String routeTableName, String routeName, Context context) { + return beginDeleteAsync(resourceGroupName, routeTableName, routeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeTableName, String routeName) { + deleteAsync(resourceGroupName, routeTableName, routeName).block(); + } + + /** + * Deletes the specified route from a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String routeTableName, String routeName, Context context) { + deleteAsync(resourceGroupName, routeTableName, routeName, context).block(); + } + + /** + * Gets all routes in a route table. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routeTableName The name of the route table. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all routes in a route table along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String routeTableName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (routeTableName == null) { + return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, routeTableName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, routeTableName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -765,7 +765,7 @@ private Mono> listSinglePageAsync(String resourceGroup /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -780,6 +780,10 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -787,16 +791,12 @@ private Mono> listSinglePageAsync(String resourceGroup if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + routeTableName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -804,7 +804,7 @@ private Mono> listSinglePageAsync(String resourceGroup /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -820,7 +820,7 @@ public PagedFlux listAsync(String resourceGroupName, String routeTab /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -837,7 +837,7 @@ private PagedFlux listAsync(String resourceGroupName, String routeTa /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -852,7 +852,7 @@ public PagedIterable list(String resourceGroupName, String routeTabl /** * Gets all routes in a route table. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param routeTableName The name of the route table. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java index 3b817c8a94df..a47b08e6b38f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RoutingIntentsClient; import com.azure.resourcemanager.network.fluent.models.RoutingIntentInner; -import com.azure.resourcemanager.network.models.ListRoutingIntentResult; +import com.azure.resourcemanager.network.implementation.models.ListRoutingIntentResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,67 +67,206 @@ public final class RoutingIntentsClientImpl implements RoutingIntentsClient { * The interface defining all the services for NetworkManagementClientRoutingIntents to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRoutingIntents") public interface RoutingIntentsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, - @PathParam("routingIntentName") String routingIntentName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") RoutingIntentInner routingIntentParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("routingIntentName") String routingIntentName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, - @PathParam("routingIntentName") String routingIntentName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("routingIntentName") String routingIntentName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") RoutingIntentInner routingIntentParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, - @PathParam("routingIntentName") String routingIntentName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("routingIntentName") String routingIntentName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Retrieves the details of a RoutingIntent. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routingIntentName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); + } + if (routingIntentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routingIntentName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the details of a RoutingIntent. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, + String routingIntentName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualHubName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); + } + if (routingIntentName == null) { + return Mono + .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routingIntentName, accept, context); + } + + /** + * Retrieves the details of a RoutingIntent. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the routing intent child resource of a Virtual hub on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String virtualHubName, + String routingIntentName) { + return getWithResponseAsync(resourceGroupName, virtualHubName, routingIntentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the details of a RoutingIntent. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the routing intent child resource of a Virtual hub along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String virtualHubName, + String routingIntentName, Context context) { + return getWithResponseAsync(resourceGroupName, virtualHubName, routingIntentName, context).block(); + } + + /** + * Retrieves the details of a RoutingIntent. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the VirtualHub. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the routing intent child resource of a Virtual hub. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RoutingIntentInner get(String resourceGroupName, String virtualHubName, String routingIntentName) { + return getWithResponse(resourceGroupName, virtualHubName, routingIntentName, Context.NONE).getValue(); } /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -164,20 +303,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r routingIntentParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routingIntentName, apiVersion, routingIntentParameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routingIntentName, contentType, + accept, routingIntentParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -215,18 +356,21 @@ private Mono>> createOrUpdateWithResponseAsync(String routingIntentParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routingIntentName, apiVersion, routingIntentParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routingIntentName, contentType, accept, routingIntentParameters, + context); } /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -246,9 +390,10 @@ public PollerFlux, RoutingIntentInner> beginCreat /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,9 +415,10 @@ private PollerFlux, RoutingIntentInner> beginCrea /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -290,9 +436,10 @@ public SyncPoller, RoutingIntentInner> beginCreat /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -312,9 +459,10 @@ public SyncPoller, RoutingIntentInner> beginCreat /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -332,9 +480,10 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -352,9 +501,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -371,9 +521,10 @@ public RoutingIntentInner createOrUpdate(String resourceGroupName, String virtua /** * Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the per VirtualHub singleton Routing Intent resource. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param routingIntentParameters Parameters supplied to create or update RoutingIntent. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -388,148 +539,13 @@ public RoutingIntentInner createOrUpdate(String resourceGroupName, String virtua context).block(); } - /** - * Retrieves the details of a RoutingIntent. - * - * @param resourceGroupName The resource group name of the RoutingIntent. - * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routingIntentName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualHubName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); - } - if (routingIntentName == null) { - return Mono - .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routingIntentName, apiVersion, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the details of a RoutingIntent. - * - * @param resourceGroupName The resource group name of the RoutingIntent. - * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String virtualHubName, - String routingIntentName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualHubName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); - } - if (routingIntentName == null) { - return Mono - .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routingIntentName, apiVersion, accept, context); - } - - /** - * Retrieves the details of a RoutingIntent. - * - * @param resourceGroupName The resource group name of the RoutingIntent. - * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String virtualHubName, - String routingIntentName) { - return getWithResponseAsync(resourceGroupName, virtualHubName, routingIntentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the details of a RoutingIntent. - * - * @param resourceGroupName The resource group name of the RoutingIntent. - * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String virtualHubName, - String routingIntentName, Context context) { - return getWithResponseAsync(resourceGroupName, virtualHubName, routingIntentName, context).block(); - } - - /** - * Retrieves the details of a RoutingIntent. - * - * @param resourceGroupName The resource group name of the RoutingIntent. - * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the routing intent child resource of a Virtual hub. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public RoutingIntentInner get(String resourceGroupName, String virtualHubName, String routingIntentName) { - return getWithResponse(resourceGroupName, virtualHubName, routingIntentName, Context.NONE).getValue(); - } - /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -558,19 +574,19 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routingIntentName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routingIntentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -600,18 +616,18 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routingIntentName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routingIntentName, context); } /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -629,9 +645,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -651,9 +668,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -668,9 +686,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -686,9 +705,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -703,9 +723,10 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -722,9 +743,10 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -737,9 +759,10 @@ public void delete(String resourceGroupName, String virtualHubName, String routi /** * Deletes a RoutingIntent. * - * @param resourceGroupName The resource group name of the RoutingIntent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param routingIntentName The name of the RoutingIntent. + * @param routingIntentName The name of the resource that is unique within a resource group. This name can be used + * to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -753,7 +776,7 @@ public void delete(String resourceGroupName, String virtualHubName, String routi /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -782,8 +805,8 @@ private Mono> listSinglePageAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -792,7 +815,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -823,8 +846,8 @@ private Mono> listSinglePageAsync(String resou final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -832,7 +855,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -849,7 +872,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -867,7 +890,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -883,7 +906,7 @@ public PagedIterable list(String resourceGroupName, String v /** * Retrieves the details of all RoutingIntent child resources of the VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRuleCollectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRuleCollectionsClientImpl.java index 996aabc56d70..3fc1d0e5cc99 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRuleCollectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRuleCollectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RoutingRuleCollectionsClient; import com.azure.resourcemanager.network.fluent.models.RoutingRuleCollectionInner; -import com.azure.resourcemanager.network.models.RoutingRuleCollectionListResult; +import com.azure.resourcemanager.network.implementation.models.RoutingRuleCollectionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,25 +67,14 @@ public final class RoutingRuleCollectionsClientImpl implements RoutingRuleCollec * The interface defining all the services for NetworkManagementClientRoutingRuleCollections to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRoutingRuleCollections") public interface RoutingRuleCollectionsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -93,253 +82,50 @@ Mono> get(@HostParam("$host") String endpoi @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, - @BodyParam("application/json") RoutingRuleCollectionInner ruleCollection, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") RoutingRuleCollectionInner ruleCollection, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, - skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); - } - - /** - * Lists all the rule collections in a routing configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); - } - /** * Gets a network manager routing configuration rule collection. * @@ -541,11 +327,12 @@ public Mono> createOrUpdateWithResponseAsyn ruleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleCollection, accept, context)) + ruleCollectionName, contentType, accept, ruleCollection, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -597,11 +384,12 @@ private Mono> createOrUpdateWithResponseAsy ruleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleCollection, accept, - context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, contentType, accept, + ruleCollection, context); } /** @@ -708,11 +496,10 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, force, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -760,10 +547,9 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, force, context); } /** @@ -985,6 +771,219 @@ public void delete(String resourceGroupName, String networkManagerName, String c .block(); } + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, + skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); + } + + /** + * Lists all the rule collections in a routing configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRuleCollection list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -992,7 +991,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result along with {@link PagedResponse} on successful + * @return the response of a RoutingRuleCollection list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1019,7 +1018,7 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule collection list result along with {@link PagedResponse} on successful + * @return the response of a RoutingRuleCollection list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRulesClientImpl.java index 90f4a6b16d00..c1b5d279c38a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.RoutingRulesClient; import com.azure.resourcemanager.network.fluent.models.RoutingRuleInner; -import com.azure.resourcemanager.network.models.RoutingRuleListResult; +import com.azure.resourcemanager.network.implementation.models.RoutingRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,26 +67,14 @@ public final class RoutingRulesClientImpl implements RoutingRulesClient { * The interface defining all the services for NetworkManagementClientRoutingRules to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientRoutingRules") public interface RoutingRulesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -94,266 +82,48 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @BodyParam("application/json") RoutingRuleInner routingRule, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") RoutingRuleInner routingRule, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @QueryParam("force") Boolean force, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, + @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, - context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); - } - - /** - * List all network manager routing configuration routing rules. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Routing Configuration. - * @param ruleCollectionName The name of the network manager routing Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context)); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -573,11 +343,12 @@ public Mono> createOrUpdateWithResponseAsync(String r routingRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, routingRule, accept, context)) + ruleCollectionName, ruleName, contentType, accept, routingRule, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -633,11 +404,12 @@ private Mono> createOrUpdateWithResponseAsync(String routingRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, routingRule, accept, - context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, contentType, accept, + routingRule, context); } /** @@ -751,11 +523,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, force, accept, context)) + ruleCollectionName, ruleName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -807,10 +578,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, ruleName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, ruleName, force, context); } /** @@ -1042,6 +812,235 @@ public void delete(String resourceGroupName, String networkManagerName, String c context).block(); } + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); + } + + /** + * List all network manager routing configuration routing rules. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Routing Configuration. + * @param ruleCollectionName The name of the network manager routing Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a RoutingRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -1049,7 +1048,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result along with {@link PagedResponse} on successful completion of + * @return the response of a RoutingRule list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1076,7 +1075,7 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return routing configuration rule list result along with {@link PagedResponse} on successful completion of + * @return the response of a RoutingRule list operation along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java index 07871b9f1141..8d98c3914a4e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ScopeConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ScopeConnectionInner; -import com.azure.resourcemanager.network.models.ScopeConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.ScopeConnectionListResult; import reactor.core.publisher.Mono; /** @@ -62,78 +62,75 @@ public final class ScopeConnectionsClientImpl implements ScopeConnectionsClient * The interface defining all the services for NetworkManagementClientScopeConnections to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientScopeConnections") public interface ScopeConnectionsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("scopeConnectionName") String scopeConnectionName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ScopeConnectionInner parameters, @HeaderParam("Accept") String accept, + @PathParam("scopeConnectionName") String scopeConnectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("scopeConnectionName") String scopeConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("scopeConnectionName") String scopeConnectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ScopeConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("scopeConnectionName") String scopeConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("scopeConnectionName") String scopeConnectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. + * @return specified scope connection created by this Network Manager along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters) { + public Mono> getWithResponseAsync(String resourceGroupName, + String networkManagerName, String scopeConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -154,35 +151,30 @@ public Mono> createOrUpdateWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, scopeConnectionName, apiVersion, parameters, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, scopeConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. + * @return specified scope connection created by this Network Manager along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String networkManagerName, String scopeConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -203,91 +195,80 @@ private Mono> createOrUpdateWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, scopeConnectionName, apiVersion, parameters, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, scopeConnectionName, accept, context); } /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource on successful completion of {@link Mono}. + * @return specified scope connection created by this Network Manager on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String networkManagerName, - String scopeConnectionName, ScopeConnectionInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, parameters) + public Mono getAsync(String resourceGroupName, String networkManagerName, + String scopeConnectionName) { + return getWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource along with {@link Response}. + * @return specified scope connection created by this Network Manager along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String resourceGroupName, - String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, parameters, - context).block(); + public Response getWithResponse(String resourceGroupName, String networkManagerName, + String scopeConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, context).block(); } /** - * Creates or updates scope connection from Network Manager. + * Get specified scope connection created by this Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. - * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Scope Connections resource. + * @return specified scope connection created by this Network Manager. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScopeConnectionInner createOrUpdate(String resourceGroupName, String networkManagerName, - String scopeConnectionName, ScopeConnectionInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, networkManagerName, scopeConnectionName, parameters, - Context.NONE).getValue(); + public ScopeConnectionInner get(String resourceGroupName, String networkManagerName, String scopeConnectionName) { + return getWithResponse(resourceGroupName, networkManagerName, scopeConnectionName, Context.NONE).getValue(); } /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkManagerName, String scopeConnectionName) { + public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -308,30 +289,37 @@ public Mono> getWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, scopeConnectionName, apiVersion, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, scopeConnectionName, + contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager along with {@link Response} on successful - * completion of {@link Mono}. + * @return the Scope Connections resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String networkManagerName, String scopeConnectionName, Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -352,69 +340,81 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, scopeConnectionName, apiVersion, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, scopeConnectionName, contentType, accept, parameters, context); } /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager on successful completion of {@link Mono}. + * @return the Scope Connections resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkManagerName, - String scopeConnectionName) { - return getWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName) + public Mono createOrUpdateAsync(String resourceGroupName, String networkManagerName, + String scopeConnectionName, ScopeConnectionInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager along with {@link Response}. + * @return the Scope Connections resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkManagerName, - String scopeConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, context).block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String networkManagerName, String scopeConnectionName, ScopeConnectionInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, networkManagerName, scopeConnectionName, parameters, + context).block(); } /** - * Get specified scope connection created by this Network Manager. + * Creates or updates scope connection from Network Manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return specified scope connection created by this Network Manager. + * @return the Scope Connections resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ScopeConnectionInner get(String resourceGroupName, String networkManagerName, String scopeConnectionName) { - return getWithResponse(resourceGroupName, networkManagerName, scopeConnectionName, Context.NONE).getValue(); + public ScopeConnectionInner createOrUpdate(String resourceGroupName, String networkManagerName, + String scopeConnectionName, ScopeConnectionInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, networkManagerName, scopeConnectionName, parameters, + Context.NONE).getValue(); } /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -446,17 +446,16 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, scopeConnectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, scopeConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @param context The context to associate with this operation. @@ -489,16 +488,15 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, scopeConnectionName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, scopeConnectionName, context); } /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -515,7 +513,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @param context The context to associate with this operation. @@ -533,7 +531,7 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Delete the pending scope connection created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param scopeConnectionName Name for the cross-tenant connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -548,7 +546,7 @@ public void delete(String resourceGroupName, String networkManagerName, String s /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -558,7 +556,8 @@ public void delete(String resourceGroupName, String networkManagerName, String s * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ScopeConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -582,8 +581,8 @@ private Mono> listSinglePageAsync(String res final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -592,7 +591,7 @@ private Mono> listSinglePageAsync(String res /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -603,7 +602,8 @@ private Mono> listSinglePageAsync(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ScopeConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -628,8 +628,8 @@ private Mono> listSinglePageAsync(String res final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, networkManagerName, - apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -637,7 +637,7 @@ private Mono> listSinglePageAsync(String res /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -647,7 +647,7 @@ private Mono> listSinglePageAsync(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedFlux}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -659,12 +659,12 @@ public PagedFlux listAsync(String resourceGroupName, Strin /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedFlux}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { @@ -677,7 +677,7 @@ public PagedFlux listAsync(String resourceGroupName, Strin /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -688,7 +688,7 @@ public PagedFlux listAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedFlux}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkManagerName, Integer top, @@ -701,12 +701,12 @@ private PagedFlux listAsync(String resourceGroupName, Stri /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedIterable}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName) { @@ -718,7 +718,7 @@ public PagedIterable list(String resourceGroupName, String /** * List all scope connections created by this network manager. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param top An optional query parameter which specifies the maximum number of records to be returned by the * server. @@ -729,7 +729,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections as paginated response with {@link PagedIterable}. + * @return the response of a ScopeConnection list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName, Integer top, @@ -744,7 +744,8 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ScopeConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -770,7 +771,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of scope connections along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a ScopeConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java index 641c03a95d15..5370e3f541b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityAdminConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.SecurityAdminConfigurationInner; -import com.azure.resourcemanager.network.models.SecurityAdminConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityAdminConfigurationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,260 +67,65 @@ public final class SecurityAdminConfigurationsClientImpl implements SecurityAdmi * The interface defining all the services for NetworkManagementClientSecurityAdminConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityAdminConfigurations") public interface SecurityAdminConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @BodyParam("application/json") SecurityAdminConfigurationInner securityAdminConfiguration, - @HeaderParam("Accept") String accept, Context context); + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityAdminConfigurationInner securityAdminConfiguration, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, top, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); - } - - /** - * Lists all the network manager security admin configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); - } - /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -363,7 +168,7 @@ public Mono> getWithResponseAsync(Stri /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param context The context to associate with this operation. @@ -406,7 +211,7 @@ private Mono> getWithResponseAsync(Str /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -424,7 +229,7 @@ public Mono getAsync(String resourceGroupName, /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param context The context to associate with this operation. @@ -442,7 +247,7 @@ public Response getWithResponse(String resource /** * Retrieves a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -459,7 +264,7 @@ public SecurityAdminConfigurationInner get(String resourceGroupName, String netw /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -500,18 +305,19 @@ public Mono> createOrUpdateWithRespons securityAdminConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - securityAdminConfiguration, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, contentType, + accept, securityAdminConfiguration, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -553,16 +359,18 @@ private Mono> createOrUpdateWithRespon securityAdminConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, securityAdminConfiguration, accept, context); + resourceGroupName, networkManagerName, configurationName, contentType, accept, securityAdminConfiguration, + context); } /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -582,7 +390,7 @@ public Mono createOrUpdateAsync(String resource /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -603,7 +411,7 @@ public Response createOrUpdateWithResponse(Stri /** * Creates or updates a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param securityAdminConfiguration The security admin configuration to create or update. @@ -622,7 +430,7 @@ public SecurityAdminConfigurationInner createOrUpdate(String resourceGroupName, /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -656,18 +464,17 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, force, accept, context)) + resourceGroupName, networkManagerName, configurationName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -702,16 +509,15 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, force, accept, context); + networkManagerName, configurationName, force, context); } /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -733,7 +539,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -754,7 +560,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -778,7 +584,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -796,7 +602,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -817,7 +623,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -837,7 +643,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -855,7 +661,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -876,7 +682,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -892,7 +698,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Deletes a network manager security admin configuration. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. * @param force Deletes the resource even if it is part of a deployed configuration. If the configuration has been @@ -908,6 +714,202 @@ public void delete(String resourceGroupName, String networkManagerName, String c deleteAsync(resourceGroupName, networkManagerName, configurationName, force, context).block(); } + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, skipToken, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityAdminConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -915,8 +917,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a SecurityAdminConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -942,8 +944,8 @@ private Mono> listNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security admin configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a SecurityAdminConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java index 09d3258d3116..fcaea02adc59 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityPartnerProvidersClient; import com.azure.resourcemanager.network.fluent.models.SecurityPartnerProviderInner; -import com.azure.resourcemanager.network.models.SecurityPartnerProviderListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityPartnerProviderListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,64 +73,62 @@ public final class SecurityPartnerProvidersClientImpl implements InnerSupportsGe * The interface defining all the services for NetworkManagementClientSecurityPartnerProviders to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityPartnerProviders") public interface SecurityPartnerProvidersService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("securityPartnerProviderName") String securityPartnerProviderName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("securityPartnerProviderName") String securityPartnerProviderName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("securityPartnerProviderName") String securityPartnerProviderName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") SecurityPartnerProviderInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityPartnerProviderInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("securityPartnerProviderName") String securityPartnerProviderName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("securityPartnerProviderName") String securityPartnerProviderName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/securityPartnerProviders") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -139,7 +137,7 @@ Mono> list(@HostParam("$host") Strin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -147,222 +145,14 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String securityPartnerProviderName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (securityPartnerProviderName == null) { - return Mono.error( - new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - securityPartnerProviderName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String securityPartnerProviderName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (securityPartnerProviderName == null) { - return Mono.error( - new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String securityPartnerProviderName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, securityPartnerProviderName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String securityPartnerProviderName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, securityPartnerProviderName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, - String securityPartnerProviderName) { - return this.beginDeleteAsync(resourceGroupName, securityPartnerProviderName).getSyncPoller(); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, securityPartnerProviderName, context).getSyncPoller(); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName) { - return beginDeleteAsync(resourceGroupName, securityPartnerProviderName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName, Context context) { - return beginDeleteAsync(resourceGroupName, securityPartnerProviderName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String securityPartnerProviderName) { - deleteAsync(resourceGroupName, securityPartnerProviderName).block(); - } - - /** - * Deletes the specified Security Partner Provider. - * - * @param resourceGroupName The name of the resource group. - * @param securityPartnerProviderName The name of the Security Partner Provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String securityPartnerProviderName, Context context) { - deleteAsync(resourceGroupName, securityPartnerProviderName, context).block(); - } - /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,6 +167,10 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -385,22 +179,18 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - securityPartnerProviderName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, securityPartnerProviderName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -416,6 +206,10 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -424,21 +218,17 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, securityPartnerProviderName, accept, context); } /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -455,7 +245,7 @@ public Mono getByResourceGroupAsync(String resourc /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -472,7 +262,7 @@ public Response getByResourceGroupWithResponse(Str /** * Gets the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -488,7 +278,7 @@ public SecurityPartnerProviderInner getByResourceGroup(String resourceGroupName, /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -503,6 +293,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -511,27 +305,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - securityPartnerProviderName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, securityPartnerProviderName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -547,6 +339,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -555,26 +351,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, securityPartnerProviderName, contentType, accept, parameters, context); } /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -595,7 +388,7 @@ public PollerFlux, SecurityPartnerProvi /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -619,7 +412,7 @@ private PollerFlux, SecurityPartnerProv /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -637,7 +430,7 @@ public SyncPoller, SecurityPartnerProvi /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -657,7 +450,7 @@ public SyncPoller, SecurityPartnerProvi /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -675,7 +468,7 @@ public Mono createOrUpdateAsync(String resourceGro /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -694,7 +487,7 @@ private Mono createOrUpdateAsync(String resourceGr /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -711,7 +504,7 @@ public SecurityPartnerProviderInner createOrUpdate(String resourceGroupName, Str /** * Creates or updates the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to the create or update Security Partner Provider operation. * @param context The context to associate with this operation. @@ -729,7 +522,7 @@ public SecurityPartnerProviderInner createOrUpdate(String resourceGroupName, Str /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -744,6 +537,10 @@ public Mono> updateTagsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -752,27 +549,25 @@ public Mono> updateTagsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - securityPartnerProviderName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, securityPartnerProviderName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @param context The context to associate with this operation. @@ -788,6 +583,10 @@ private Mono> updateTagsWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -796,26 +595,23 @@ private Mono> updateTagsWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, securityPartnerProviderName, contentType, accept, parameters, context); } /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -833,7 +629,7 @@ public Mono updateTagsAsync(String resourceGroupNa /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @param context The context to associate with this operation. @@ -851,7 +647,7 @@ public Response updateTagsWithResponse(String reso /** * Updates tags of a Security Partner Provider resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param securityPartnerProviderName The name of the Security Partner Provider. * @param parameters Parameters supplied to update Security Partner Provider tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -867,35 +663,241 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String } /** - * Lists all Security Partner Providers in a resource group. + * Deletes the specified Security Partner Provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String securityPartnerProviderName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (securityPartnerProviderName == null) { + return Mono.error( + new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, securityPartnerProviderName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String securityPartnerProviderName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (securityPartnerProviderName == null) { + return Mono.error( + new IllegalArgumentException("Parameter securityPartnerProviderName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + securityPartnerProviderName, context); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String securityPartnerProviderName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, securityPartnerProviderName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String securityPartnerProviderName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, securityPartnerProviderName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, + String securityPartnerProviderName) { + return this.beginDeleteAsync(resourceGroupName, securityPartnerProviderName).getSyncPoller(); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String securityPartnerProviderName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, securityPartnerProviderName, context).getSyncPoller(); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName) { + return beginDeleteAsync(resourceGroupName, securityPartnerProviderName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String securityPartnerProviderName, Context context) { + return beginDeleteAsync(resourceGroupName, securityPartnerProviderName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String securityPartnerProviderName) { + deleteAsync(resourceGroupName, securityPartnerProviderName).block(); + } + + /** + * Deletes the specified Security Partner Provider. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityPartnerProviderName The name of the Security Partner Provider. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String securityPartnerProviderName, Context context) { + deleteAsync(resourceGroupName, securityPartnerProviderName, context).block(); + } + + /** + * Lists all Security Partner Providers in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityPartnerProvider list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -904,12 +906,12 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call along with {@link PagedResponse} on successful + * @return the response of a SecurityPartnerProvider list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -919,20 +921,20 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -940,11 +942,11 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with {@link PagedFlux}. + * @return the response of a SecurityPartnerProvider list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -955,12 +957,12 @@ public PagedFlux listByResourceGroupAsync(String r /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with {@link PagedFlux}. + * @return the response of a SecurityPartnerProvider list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, @@ -972,11 +974,11 @@ private PagedFlux listByResourceGroupAsync(String /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with + * @return the response of a SecurityPartnerProvider list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -987,12 +989,12 @@ public PagedIterable listByResourceGroup(String re /** * Lists all Security Partner Providers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call as paginated response with + * @return the response of a SecurityPartnerProvider list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1116,7 +1118,7 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call along with {@link PagedResponse} on successful + * @return the response of a SecurityPartnerProvider list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1145,7 +1147,7 @@ private Mono> listByResourceGroupNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListSecurityPartnerProviders API service call along with {@link PagedResponse} on successful + * @return the response of a SecurityPartnerProvider list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java index e3378f6f0ea4..7a351eb92310 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityRulesClient; import com.azure.resourcemanager.network.fluent.models.SecurityRuleInner; -import com.azure.resourcemanager.network.models.SecurityRuleListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,49 +67,49 @@ public final class SecurityRulesClientImpl implements SecurityRulesClient { * The interface defining all the services for NetworkManagementClientSecurityRules to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityRules") public interface SecurityRulesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @PathParam("securityRuleName") String securityRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @PathParam("securityRuleName") String securityRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("securityRuleName") String securityRuleName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @PathParam("securityRuleName") String securityRuleName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") SecurityRuleInner securityRuleParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("securityRuleName") String securityRuleName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityRuleInner securityRuleParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkSecurityGroupName") String networkSecurityGroupName, + @PathParam("securityRuleName") String securityRuleName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkSecurityGroupName") String networkSecurityGroupName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -117,258 +117,31 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified network security rule. + * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified network security rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); - } - if (securityRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - securityRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkSecurityGroupName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); - } - if (securityRuleName == null) { - return Mono - .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, securityRuleName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName) { - return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).getSyncPoller(); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, - String securityRuleName, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) { - return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, - Context context) { - return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) { - deleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).block(); - } - - /** - * Deletes the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, - Context context) { - deleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context).block(); - } - - /** - * Get the specified network security rule. - * - * @param resourceGroupName The name of the resource group. - * @param networkSecurityGroupName The name of the network security group. - * @param securityRuleName The name of the security rule. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified network security rule along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String networkSecurityGroupName, String securityRuleName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -381,22 +154,18 @@ public Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - securityRuleName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, securityRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param context The context to associate with this operation. @@ -412,6 +181,10 @@ private Mono> getWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -424,21 +197,17 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, securityRuleName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, securityRuleName, accept, context); } /** * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -456,7 +225,7 @@ public Mono getAsync(String resourceGroupName, String network /** * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param context The context to associate with this operation. @@ -474,7 +243,7 @@ public Response getWithResponse(String resourceGroupName, Str /** * Get the specified network security rule. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -490,7 +259,7 @@ public SecurityRuleInner get(String resourceGroupName, String networkSecurityGro /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -506,6 +275,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -518,10 +291,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (securityRuleParameters == null) { return Mono.error( new IllegalArgumentException("Parameter securityRuleParameters is required and cannot be null.")); @@ -529,18 +298,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r securityRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkSecurityGroupName, securityRuleName, apiVersion, this.client.getSubscriptionId(), - securityRuleParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkSecurityGroupName, securityRuleName, + contentType, accept, securityRuleParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -558,6 +328,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -570,10 +344,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (securityRuleParameters == null) { return Mono.error( new IllegalArgumentException("Parameter securityRuleParameters is required and cannot be null.")); @@ -581,16 +351,18 @@ private Mono>> createOrUpdateWithResponseAsync(String securityRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - securityRuleName, apiVersion, this.client.getSubscriptionId(), securityRuleParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, securityRuleName, contentType, accept, securityRuleParameters, + context); } /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -612,7 +384,7 @@ public PollerFlux, SecurityRuleInner> beginCreateO /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -636,7 +408,7 @@ private PollerFlux, SecurityRuleInner> beginCreate /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -657,7 +429,7 @@ public SyncPoller, SecurityRuleInner> beginCreateO /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -680,7 +452,7 @@ public SyncPoller, SecurityRuleInner> beginCreateO /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -699,7 +471,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -719,7 +491,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -738,7 +510,7 @@ public SecurityRuleInner createOrUpdate(String resourceGroupName, String network /** * Creates or updates a security rule in the specified network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param securityRuleName The name of the security rule. * @param securityRuleParameters Parameters supplied to the create or update network security rule operation. @@ -755,10 +527,239 @@ public SecurityRuleInner createOrUpdate(String resourceGroupName, String network securityRuleParameters, context).block(); } + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); + } + if (securityRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, securityRuleName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkSecurityGroupName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); + } + if (securityRuleName == null) { + return Mono + .error(new IllegalArgumentException("Parameter securityRuleName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, securityRuleName, context); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkSecurityGroupName, String securityRuleName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName) { + return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).getSyncPoller(); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkSecurityGroupName, + String securityRuleName, Context context) { + return this.beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) { + return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, + Context context) { + return beginDeleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) { + deleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName).block(); + } + + /** + * Deletes the specified network security rule. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, + Context context) { + deleteAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, context).block(); + } + /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -773,6 +774,10 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -781,15 +786,11 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkSecurityGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -798,7 +799,7 @@ private Mono> listSinglePageAsync(String resour /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -814,6 +815,10 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -822,16 +827,12 @@ private Mono> listSinglePageAsync(String resour return Mono.error( new IllegalArgumentException("Parameter networkSecurityGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkSecurityGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -839,7 +840,7 @@ private Mono> listSinglePageAsync(String resour /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -855,7 +856,7 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -873,7 +874,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -888,7 +889,7 @@ public PagedIterable list(String resourceGroupName, String ne /** * Gets all security rules in a network security group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkSecurityGroupName The name of the network security group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserConfigurationsClientImpl.java index f2663745b949..d2703dca2129 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityUserConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.SecurityUserConfigurationInner; -import com.azure.resourcemanager.network.models.SecurityUserConfigurationListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityUserConfigurationListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,256 +67,61 @@ public final class SecurityUserConfigurationsClientImpl implements SecurityUserC * The interface defining all the services for NetworkManagementClientSecurityUserConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityUserConfigurations") public interface SecurityUserConfigurationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @BodyParam("application/json") SecurityUserConfigurationInner securityUserConfiguration, - @HeaderParam("Accept") String accept, Context context); + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityUserConfigurationInner securityUserConfiguration, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, top, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); - } - - /** - * Lists all the network manager security user configurations in a network manager, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); - } - /** * Retrieves a network manager security user configuration. * @@ -499,11 +304,12 @@ public Mono> createOrUpdateWithResponse securityUserConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - securityUserConfiguration, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, contentType, + accept, securityUserConfiguration, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -552,10 +358,12 @@ private Mono> createOrUpdateWithRespons securityUserConfiguration.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, securityUserConfiguration, accept, context); + resourceGroupName, networkManagerName, configurationName, contentType, accept, securityUserConfiguration, + context); } /** @@ -654,11 +462,10 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, force, accept, context)) + resourceGroupName, networkManagerName, configurationName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -700,10 +507,9 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, force, accept, context); + networkManagerName, configurationName, force, context); } /** @@ -906,6 +712,202 @@ public void delete(String resourceGroupName, String networkManagerName, String c deleteAsync(resourceGroupName, networkManagerName, configurationName, force, context).block(); } + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, top, skipToken, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, top, skipToken, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken)); + } + + /** + * Lists all the network manager security user configurations in a network manager, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -913,7 +915,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations along with {@link PagedResponse} on successful + * @return the response of a SecurityUserConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -940,7 +942,7 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of network manager security user configurations along with {@link PagedResponse} on successful + * @return the response of a SecurityUserConfiguration list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRuleCollectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRuleCollectionsClientImpl.java index 69b7fbd678a6..6d03cbada25a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRuleCollectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRuleCollectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityUserRuleCollectionsClient; import com.azure.resourcemanager.network.fluent.models.SecurityUserRuleCollectionInner; -import com.azure.resourcemanager.network.models.SecurityUserRuleCollectionListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityUserRuleCollectionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,25 +67,14 @@ public final class SecurityUserRuleCollectionsClientImpl implements SecurityUser * The interface defining all the services for NetworkManagementClientSecurityUserRuleCollections to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityUserRuleCollections") public interface SecurityUserRuleCollectionsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -93,253 +82,50 @@ Mono> get(@HostParam("$host") String e @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, - @BodyParam("application/json") SecurityUserRuleCollectionInner securityUserRuleCollection, - @HeaderParam("Accept") String accept, Context context); + @PathParam("ruleCollectionName") String ruleCollectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityUserRuleCollectionInner securityUserRuleCollection, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("force") Boolean force, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, - skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); - } - - /** - * Lists all the security user rule collections in a security configuration, in a paginated format. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, Integer top, String skipToken, Context context) { - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); - } - /** * Gets a network manager security user configuration rule collection. * @@ -543,11 +329,12 @@ public Mono> createOrUpdateWithRespons securityUserRuleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, securityUserRuleCollection, accept, context)) + ruleCollectionName, contentType, accept, securityUserRuleCollection, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -601,11 +388,12 @@ private Mono> createOrUpdateWithRespon securityUserRuleCollection.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, securityUserRuleCollection, - accept, context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, contentType, accept, + securityUserRuleCollection, context); } /** @@ -714,11 +502,10 @@ public Mono>> deleteWithResponseAsync(String resourceG .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, force, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -766,10 +553,9 @@ private Mono>> deleteWithResponseAsync(String resource .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, force, context); } /** @@ -991,6 +777,221 @@ public void delete(String resourceGroupName, String networkManagerName, String c .block(); } + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, top, skipToken, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, Integer top, String skipToken, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, top, + skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken)); + } + + /** + * Lists all the security user rule collections in a security configuration, in a paginated format. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRuleCollection list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, Integer top, String skipToken, Context context) { + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -998,8 +999,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a SecurityUserRuleCollection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1025,8 +1026,8 @@ private Mono> listNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user configuration rule collection list result along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a SecurityUserRuleCollection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRulesClientImpl.java index 822294370561..ed47ee5639e1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SecurityUserRulesClient; import com.azure.resourcemanager.network.fluent.models.SecurityUserRuleInner; -import com.azure.resourcemanager.network.models.SecurityUserRuleListResult; +import com.azure.resourcemanager.network.implementation.models.SecurityUserRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,26 +67,14 @@ public final class SecurityUserRulesClientImpl implements SecurityUserRulesClien * The interface defining all the services for NetworkManagementClientSecurityUserRules to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSecurityUserRules") public interface SecurityUserRulesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, - @PathParam("configurationName") String configurationName, - @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, - @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @@ -94,267 +82,51 @@ Mono> get(@HostParam("$host") String endpoint, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @BodyParam("application/json") SecurityUserRuleInner securityUserRule, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SecurityUserRuleInner securityUserRule, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("configurationName") String configurationName, @PathParam("ruleCollectionName") String ruleCollectionName, @PathParam("ruleName") String ruleName, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @QueryParam("force") Boolean force, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, + @PathParam("configurationName") String configurationName, + @PathParam("ruleCollectionName") String ruleCollectionName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, - context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - if (configurationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); - } - if (ruleCollectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName) { - final Integer top = null; - final String skipToken = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); - } - - /** - * Lists all Security User Rules in a rule collection. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkManagerName The name of the network manager. - * @param configurationName The name of the network manager Security Configuration. - * @param ruleCollectionName The name of the network manager security Configuration rule collection. - * @param top An optional query parameter which specifies the maximum number of records to be returned by the - * server. - * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response - * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies - * a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, top, skipToken, context)); - } - /** * Gets a security user rule. * @@ -572,11 +344,12 @@ public Mono> createOrUpdateWithResponseAsync(Str securityUserRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, securityUserRule, accept, context)) + ruleCollectionName, ruleName, contentType, accept, securityUserRule, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -633,11 +406,12 @@ private Mono> createOrUpdateWithResponseAsync(St securityUserRule.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, securityUserRule, - accept, context); + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, contentType, accept, + securityUserRule, context); } /** @@ -751,11 +525,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, networkManagerName, configurationName, - ruleCollectionName, ruleName, force, accept, context)) + ruleCollectionName, ruleName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -807,10 +580,9 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, configurationName, ruleCollectionName, ruleName, force, accept, context); + networkManagerName, configurationName, ruleCollectionName, ruleName, force, context); } /** @@ -1042,6 +814,235 @@ public void delete(String resourceGroupName, String networkManagerName, String c context).block(); } + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String configurationName, String ruleCollectionName, Integer top, String skipToken, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (ruleCollectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, configurationName, ruleCollectionName, top, skipToken, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName) { + final Integer top = null; + final String skipToken = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, top, skipToken)); + } + + /** + * Lists all Security User Rules in a rule collection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param top An optional query parameter which specifies the maximum number of records to be returned by the + * server. + * @param skipToken SkipToken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies + * a starting point to use for subsequent calls. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a SecurityUserRule list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String configurationName, String ruleCollectionName, Integer top, String skipToken, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, configurationName, + ruleCollectionName, top, skipToken, context)); + } + /** * Get the next page of items. * @@ -1049,7 +1050,8 @@ public void delete(String resourceGroupName, String networkManagerName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a SecurityUserRule list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1075,7 +1077,8 @@ private Mono> listNextSinglePageAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return security user rule list result along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response of a SecurityUserRule list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java index ed059010fbc9..027c7cd537e4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -54,24 +54,24 @@ public final class ServiceAssociationLinksClientImpl implements ServiceAssociati * The interface defining all the services for NetworkManagementClientServiceAssociationLinks to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientServiceAssociationLinks") public interface ServiceAssociationLinksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/ServiceAssociationLinks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/serviceAssociationLinks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); } /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,6 +87,10 @@ public Mono> listWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -98,22 +102,18 @@ public Mono> listWithResponseAs if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -130,6 +130,10 @@ private Mono> listWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -141,21 +145,17 @@ private Mono> listWithResponseA if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, subnetName, accept, context); } /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,7 +173,7 @@ public Mono listAsync(String resourceGro /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param context The context to associate with this operation. @@ -191,7 +191,7 @@ public Response listWithResponse(String /** * Gets a list of service association links for a subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java index d114b2df70d2..2e809e832ffa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ServiceEndpointPoliciesClient; import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner; -import com.azure.resourcemanager.network.models.ServiceEndpointPolicyListResult; +import com.azure.resourcemanager.network.implementation.models.ServiceEndpointPolicyListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,295 +73,86 @@ public final class ServiceEndpointPoliciesClientImpl implements InnerSupportsGet * The interface defining all the services for NetworkManagementClientServiceEndpointPolicies to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientServiceEndpointPolicies") public interface ServiceEndpointPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ServiceEndpointPolicyInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ServiceEndpointPolicyInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/serviceEndpointPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceEndpointPolicyName == null) { - return Mono.error( - new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceEndpointPolicyName == null) { - return Mono.error( - new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String serviceEndpointPolicyName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String serviceEndpointPolicyName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName) { - return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName).getSyncPoller(); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, context).getSyncPoller(); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName) { - return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, Context context) { - return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceEndpointPolicyName) { - deleteAsync(resourceGroupName, serviceEndpointPolicyName).block(); - } - - /** - * Deletes the specified service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context) { - deleteAsync(resourceGroupName, serviceEndpointPolicyName, context).block(); - } - /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -377,6 +168,10 @@ public Mono> getByResourceGroupWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -385,22 +180,18 @@ public Mono> getByResourceGroupWithResponse return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceEndpointPolicyName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -417,6 +208,10 @@ private Mono> getByResourceGroupWithRespons return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -425,21 +220,17 @@ private Mono> getByResourceGroupWithRespons return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - apiVersion, this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, expand, accept, context); } /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -458,7 +249,7 @@ public Mono getByResourceGroupAsync(String resourceG /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -477,7 +268,7 @@ public Response getByResourceGroupWithResponse(Strin /** * Gets the specified service Endpoint Policies in a specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -494,7 +285,7 @@ public ServiceEndpointPolicyInner getByResourceGroup(String resourceGroupName, S /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -509,6 +300,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -517,27 +312,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceEndpointPolicyName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -553,6 +346,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -561,26 +358,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, contentType, accept, parameters, context); } /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -601,7 +395,7 @@ public PollerFlux, ServiceEndpointPolicyI /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -624,7 +418,7 @@ private PollerFlux, ServiceEndpointPolicy /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -641,7 +435,7 @@ public SyncPoller, ServiceEndpointPolicyI /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -661,7 +455,7 @@ public SyncPoller, ServiceEndpointPolicyI /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -679,7 +473,7 @@ public Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -698,7 +492,7 @@ private Mono createOrUpdateAsync(String resourceGrou /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -715,7 +509,7 @@ public ServiceEndpointPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Creates or updates a service Endpoint Policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to the create or update service endpoint policy operation. * @param context The context to associate with this operation. @@ -733,7 +527,7 @@ public ServiceEndpointPolicyInner createOrUpdate(String resourceGroupName, Strin /** * Updates tags of a service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -748,6 +542,10 @@ public Mono> updateTagsWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -756,130 +554,337 @@ public Mono> updateTagsWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates tags of a service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param parameters Parameters supplied to update service endpoint policy tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return service End point policy resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceEndpointPolicyName == null) { + return Mono.error( + new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, contentType, accept, parameters, context); + } + + /** + * Updates tags of a service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param parameters Parameters supplied to update service endpoint policy tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return service End point policy resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String serviceEndpointPolicyName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates tags of a service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param parameters Parameters supplied to update service endpoint policy tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return service End point policy resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String serviceEndpointPolicyName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, parameters, context).block(); + } + + /** + * Updates tags of a service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param parameters Parameters supplied to update service endpoint policy tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return service End point policy resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEndpointPolicyName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, serviceEndpointPolicyName, parameters, Context.NONE) + .getValue(); + } + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceEndpointPolicyName == null) { + return Mono.error( + new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceEndpointPolicyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates tags of a service endpoint policy. + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceEndpointPolicyName == null) { + return Mono.error( + new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceEndpointPolicyName, context); + } + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String serviceEndpointPolicyName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String serviceEndpointPolicyName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName) { + return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName).getSyncPoller(); + } + + /** + * Deletes the specified service endpoint policy. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param parameters Parameters supplied to update service endpoint policy tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return service End point policy resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceEndpointPolicyName == null) { - return Mono.error( - new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, context).getSyncPoller(); } /** - * Updates tags of a service endpoint policy. + * Deletes the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return service End point policy resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String serviceEndpointPolicyName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName) { + return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates tags of a service endpoint policy. + * Deletes the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param parameters Parameters supplied to update service endpoint policy tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return service End point policy resource along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String serviceEndpointPolicyName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, parameters, context).block(); + private Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, Context context) { + return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates tags of a service endpoint policy. + * Deletes the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param parameters Parameters supplied to update service endpoint policy tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return service End point policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServiceEndpointPolicyInner updateTags(String resourceGroupName, String serviceEndpointPolicyName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, serviceEndpointPolicyName, parameters, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String serviceEndpointPolicyName) { + deleteAsync(resourceGroupName, serviceEndpointPolicyName).block(); } /** - * Gets all the service endpoint policies in a subscription. + * Deletes the specified service endpoint policy. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String serviceEndpointPolicyName, Context context) { + deleteAsync(resourceGroupName, serviceEndpointPolicyName, context).block(); + } + + /** + * Gets all service endpoint Policies in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -888,28 +893,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the service endpoint policies in a subscription. + * Gets all service endpoint Policies in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful + * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -918,88 +929,94 @@ private Mono> listSinglePageAsync(Cont return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the service endpoint policies in a subscription. + * Gets all service endpoint Policies in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. + * @return all service endpoint Policies in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Gets all the service endpoint policies in a subscription. + * Gets all service endpoint Policies in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. + * @return all service endpoint Policies in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** - * Gets all the service endpoint policies in a subscription. + * Gets all service endpoint Policies in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + * @return all service endpoint Policies in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all the service endpoint policies in a subscription. + * Gets all service endpoint Policies in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. + * @return all service endpoint Policies in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful + * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1007,35 +1024,29 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful + * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1043,71 +1054,62 @@ private Mono> listByResourceGroupSingl final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group as paginated response with {@link PagedFlux}. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group as paginated response with {@link PagedFlux}. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group as paginated response with {@link PagedIterable}. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all service endpoint Policies in a resource group. + * Gets all the service endpoint policies in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group as paginated response with {@link PagedIterable}. + * @return all the service endpoint policies in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1117,11 +1119,11 @@ public PagedIterable listByResourceGroup(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful + * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1130,7 +1132,9 @@ private Mono> listNextSinglePageAsync( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1144,11 +1148,12 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful + * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1158,7 +1163,7 @@ private Mono> listNextSinglePageAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1170,11 +1175,11 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful + * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1183,9 +1188,7 @@ private Mono> listByResourceGroupNextS new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1199,12 +1202,11 @@ private Mono> listByResourceGroupNextS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all service endpoint Policies in a resource group along with {@link PagedResponse} on successful + * @return all the service endpoint policies in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1214,7 +1216,7 @@ private Mono> listByResourceGroupNextS } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java index bd4058c63400..62fd62621fef 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.ServiceEndpointPolicyDefinitionsClient; import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionInner; -import com.azure.resourcemanager.network.models.ServiceEndpointPolicyDefinitionListResult; +import com.azure.resourcemanager.network.implementation.models.ServiceEndpointPolicyDefinitionListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,51 +67,52 @@ public final class ServiceEndpointPolicyDefinitionsClientImpl implements Service * The interface defining all the services for NetworkManagementClientServiceEndpointPolicyDefinitions to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientServiceEndpointPolicyDefinitions") public interface ServiceEndpointPolicyDefinitionsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, - @PathParam("serviceEndpointPolicyDefinitionName") String serviceEndpointPolicyDefinitionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, @PathParam("serviceEndpointPolicyDefinitionName") String serviceEndpointPolicyDefinitionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, @PathParam("serviceEndpointPolicyDefinitionName") String serviceEndpointPolicyDefinitionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions, - @HeaderParam("Accept") String accept, Context context); + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, + @PathParam("serviceEndpointPolicyDefinitionName") String serviceEndpointPolicyDefinitionName, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serviceEndpointPolicyName") String serviceEndpointPolicyName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -119,72 +120,33 @@ Mono> listByResourceGroup( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified ServiceEndpoint policy definitions. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a ServiceEndpointPolicyDefinition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getWithResponseAsync(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceEndpointPolicyName == null) { - return Mono.error( - new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); - } - if (serviceEndpointPolicyDefinitionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -197,224 +159,26 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName) { - return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) - .getSyncPoller(); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName, Context context) { - return this - .beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, - context) - .getSyncPoller(); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName) { - return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName, Context context) { - return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName) { - deleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName).block(); - } - - /** - * Deletes the specified ServiceEndpoint policy definitions. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the Service Endpoint Policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceEndpointPolicyName, - String serviceEndpointPolicyDefinitionName, Context context) { - deleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, context).block(); - } - - /** - * Get the specified service endpoint policy definitions from service endpoint policy. - * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceEndpointPolicyName == null) { - return Mono.error( - new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); - } - if (serviceEndpointPolicyDefinitionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy along with - * {@link Response} on successful completion of {@link Mono}. + * @return a ServiceEndpointPolicyDefinition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -423,6 +187,10 @@ private Mono> getWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -435,28 +203,24 @@ private Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, accept, context); } /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy on successful completion - * of {@link Mono}. + * @return a ServiceEndpointPolicyDefinition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getAsync(String resourceGroupName, @@ -466,17 +230,17 @@ public Mono getAsync(String resourceGroupN } /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy along with - * {@link Response}. + * @return a ServiceEndpointPolicyDefinition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, @@ -486,15 +250,16 @@ public Response getWithResponse(String res } /** - * Get the specified service endpoint policy definitions from service endpoint policy. + * Get a ServiceEndpointPolicyDefinition. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service endpoint policy definitions from service endpoint policy. + * @return a ServiceEndpointPolicyDefinition. */ @ServiceMethod(returns = ReturnType.SINGLE) public ServiceEndpointPolicyDefinitionInner get(String resourceGroupName, String serviceEndpointPolicyName, @@ -506,9 +271,10 @@ public ServiceEndpointPolicyDefinitionInner get(String resourceGroupName, String /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -524,6 +290,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -536,10 +306,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (serviceEndpointPolicyDefinitions == null) { return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitions is required and cannot be null.")); @@ -547,20 +313,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r serviceEndpointPolicyDefinitions.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, apiVersion, - this.client.getSubscriptionId(), serviceEndpointPolicyDefinitions, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceEndpointPolicyName, + serviceEndpointPolicyDefinitionName, contentType, accept, serviceEndpointPolicyDefinitions, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -577,6 +345,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -589,10 +361,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (serviceEndpointPolicyDefinitions == null) { return Mono.error(new IllegalArgumentException( "Parameter serviceEndpointPolicyDefinitions is required and cannot be null.")); @@ -600,19 +368,21 @@ private Mono>> createOrUpdateWithResponseAsync(String serviceEndpointPolicyDefinitions.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, apiVersion, this.client.getSubscriptionId(), - serviceEndpointPolicyDefinitions, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, contentType, accept, + serviceEndpointPolicyDefinitions, context); } /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -635,9 +405,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -662,9 +433,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -686,9 +458,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -711,9 +484,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,9 +507,10 @@ public Mono createOrUpdateAsync(String res /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -756,9 +531,10 @@ private Mono createOrUpdateAsync(String re /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -777,9 +553,10 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN /** * Creates or updates a service endpoint policy definition in the specified service endpoint policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceEndpointPolicyName The name of the service endpoint policy. - * @param serviceEndpointPolicyDefinitionName The name of the service endpoint policy definition name. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. * @param serviceEndpointPolicyDefinitions Parameters supplied to the create or update service endpoint policy * operation. * @param context The context to associate with this operation. @@ -796,11 +573,256 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN serviceEndpointPolicyDefinitions, context).block(); } + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceEndpointPolicyName == null) { + return Mono.error( + new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); + } + if (serviceEndpointPolicyDefinitionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceEndpointPolicyName == null) { + return Mono.error( + new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); + } + if (serviceEndpointPolicyDefinitionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter serviceEndpointPolicyDefinitionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, context); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, + serviceEndpointPolicyDefinitionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceEndpointPolicyName, + serviceEndpointPolicyDefinitionName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName) { + return this.beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) + .getSyncPoller(); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName, Context context) { + return this + .beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, + context) + .getSyncPoller(); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName) { + return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName, Context context) { + return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName) { + deleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName).block(); + } + + /** + * Deletes the specified ServiceEndpoint policy definitions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. + * @param serviceEndpointPolicyDefinitionName The name of the resource that is unique within a resource group. This + * name can be used to access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String serviceEndpointPolicyName, + String serviceEndpointPolicyDefinitionName, Context context) { + deleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, context).block(); + } + /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -814,6 +836,10 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -822,15 +848,11 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - serviceEndpointPolicyName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceEndpointPolicyName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -839,8 +861,8 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -855,6 +877,10 @@ private Mono> listByResource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -863,16 +889,12 @@ private Mono> listByResource return Mono.error( new IllegalArgumentException("Parameter serviceEndpointPolicyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceEndpointPolicyName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -880,8 +902,8 @@ private Mono> listByResource /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -898,8 +920,8 @@ public PagedFlux listByResourceGroupAsync( /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -918,8 +940,8 @@ private PagedFlux listByResourceGroupAsync /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -935,8 +957,8 @@ public PagedIterable listByResourceGroup(S /** * Gets all service endpoint policy definitions in a service end point policy. * - * @param resourceGroupName The name of the resource group. - * @param serviceEndpointPolicyName The name of the service endpoint policy name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceEndpointPolicyName The name of the service endpoint policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceGatewaysClientImpl.java index 64b3e8f8050d..e341ef2cf2d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,9 +37,9 @@ import com.azure.resourcemanager.network.fluent.models.ServiceGatewayAddressLocationResponseInner; import com.azure.resourcemanager.network.fluent.models.ServiceGatewayInner; import com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceInner; -import com.azure.resourcemanager.network.models.GetServiceGatewayAddressLocationsResult; -import com.azure.resourcemanager.network.models.GetServiceGatewayServicesResult; -import com.azure.resourcemanager.network.models.ServiceGatewayListResult; +import com.azure.resourcemanager.network.implementation.models.GetServiceGatewayAddressLocationsResult; +import com.azure.resourcemanager.network.implementation.models.GetServiceGatewayServicesResult; +import com.azure.resourcemanager.network.implementation.models.ServiceGatewayListResult; import com.azure.resourcemanager.network.models.ServiceGatewayUpdateAddressLocationsRequest; import com.azure.resourcemanager.network.models.ServiceGatewayUpdateServicesRequest; import com.azure.resourcemanager.network.models.TagsObject; @@ -80,118 +80,120 @@ public final class ServiceGatewaysClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ServiceGatewayInner parameters, @HeaderParam("Accept") String accept, + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ServiceGatewayInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/serviceGateways") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("serviceGatewayName") String serviceGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/serviceGateways") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/updateAddressLocations") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateAddressLocations(@HostParam("$host") String endpoint, + Mono>> updateAddressLocations(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ServiceGatewayUpdateAddressLocationsRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ServiceGatewayUpdateAddressLocationsRequest parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/updateServices") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateServices(@HostParam("$host") String endpoint, + Mono>> updateServices(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ServiceGatewayUpdateServicesRequest parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ServiceGatewayUpdateServicesRequest parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/addressLocations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getAddressLocations(@HostParam("$host") String endpoint, + Mono> getAddressLocations( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/services") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServices(@HostParam("$host") String endpoint, + Mono> getServices(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("serviceGatewayName") String serviceGatewayName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("serviceGatewayName") String serviceGatewayName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -199,7 +201,7 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getAddressLocationsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -207,232 +209,31 @@ Mono> getAddressLocationsNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getServicesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified service gateway. + * Gets the specified service gateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceGatewayName The name of the service gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified service gateway along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String serviceGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceGatewayName == null) { - return Mono - .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String serviceGatewayName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (serviceGatewayName == null) { - return Mono - .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceGatewayName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceGatewayName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName) { - return this.beginDeleteAsync(resourceGroupName, serviceGatewayName).getSyncPoller(); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, serviceGatewayName, context).getSyncPoller(); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String serviceGatewayName) { - return beginDeleteAsync(resourceGroupName, serviceGatewayName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String serviceGatewayName, Context context) { - return beginDeleteAsync(resourceGroupName, serviceGatewayName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceGatewayName) { - deleteAsync(resourceGroupName, serviceGatewayName).block(); - } - - /** - * Deletes the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String serviceGatewayName, Context context) { - deleteAsync(resourceGroupName, serviceGatewayName, context).block(); - } - - /** - * Gets the specified service gateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serviceGatewayName The name of the service gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified service gateway along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String serviceGatewayName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -441,15 +242,11 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -471,6 +268,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -479,15 +280,11 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, accept, context); } /** @@ -556,6 +353,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -564,20 +365,18 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -600,6 +399,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -608,20 +411,17 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, contentType, accept, parameters, context); } /** @@ -792,6 +592,10 @@ public Mono> updateTagsWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -800,20 +604,18 @@ public Mono> updateTagsWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -836,6 +638,10 @@ private Mono> updateTagsWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -844,20 +650,17 @@ private Mono> updateTagsWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, contentType, accept, parameters, context); } /** @@ -879,49 +682,254 @@ public Mono updateTagsAsync(String resourceGroupName, Strin } /** - * Updates a service gateway tags. + * Updates a service gateway tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param parameters Parameters supplied to update service gateway tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return serviceGateway resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, String serviceGatewayName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, serviceGatewayName, parameters, context).block(); + } + + /** + * Updates a service gateway tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param parameters Parameters supplied to update service gateway tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return serviceGateway resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ServiceGatewayInner updateTags(String resourceGroupName, String serviceGatewayName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, serviceGatewayName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceGatewayName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceGatewayName == null) { + return Mono + .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String serviceGatewayName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (serviceGatewayName == null) { + return Mono + .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceGatewayName, context); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceGatewayName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serviceGatewayName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, serviceGatewayName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName) { + return this.beginDeleteAsync(resourceGroupName, serviceGatewayName).getSyncPoller(); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String serviceGatewayName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, serviceGatewayName, context).getSyncPoller(); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String serviceGatewayName) { + return beginDeleteAsync(resourceGroupName, serviceGatewayName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified service gateway. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceGatewayName The name of the service gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String serviceGatewayName, Context context) { + return beginDeleteAsync(resourceGroupName, serviceGatewayName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified service gateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceGatewayName The name of the service gateway. - * @param parameters Parameters supplied to update service gateway tags. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return serviceGateway resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String serviceGatewayName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, serviceGatewayName, parameters, context).block(); + public void delete(String resourceGroupName, String serviceGatewayName) { + deleteAsync(resourceGroupName, serviceGatewayName).block(); } /** - * Updates a service gateway tags. + * Deletes the specified service gateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceGatewayName The name of the service gateway. - * @param parameters Parameters supplied to update service gateway tags. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return serviceGateway resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServiceGatewayInner updateTags(String resourceGroupName, String serviceGatewayName, TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, serviceGatewayName, parameters, Context.NONE).getValue(); + public void delete(String resourceGroupName, String serviceGatewayName, Context context) { + deleteAsync(resourceGroupName, serviceGatewayName, context).block(); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -930,28 +938,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -960,87 +974,94 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. + * @return all the service gateways in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. + * @return all the service gateways in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + * @return all the service gateways in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all the service gateways in a subscription. + * Gets all the service gateways in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. + * @return all the service gateways in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1048,35 +1069,29 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1084,71 +1099,62 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group as paginated response with {@link PagedFlux}. + * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group as paginated response with {@link PagedFlux}. + * @return all the service gateways in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group as paginated response with {@link PagedIterable}. + * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all the service gateways in a resource group. + * Gets all the service gateways in a subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group as paginated response with {@link PagedIterable}. + * @return all the service gateways in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1180,6 +1186,10 @@ public Mono>> updateAddressLocationsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1188,20 +1198,15 @@ public Mono>> updateAddressLocationsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateAddressLocations(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + final String contentType = "application/json"; + return FluxUtil.withContext(context -> service.updateAddressLocations(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1235,6 +1240,10 @@ private Mono>> updateAddressLocationsWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1243,20 +1252,16 @@ private Mono>> updateAddressLocationsWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.updateAddressLocations(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.updateAddressLocations(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, contentType, parameters, context); } /** @@ -1517,6 +1522,10 @@ public Mono>> updateServicesWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1525,20 +1534,15 @@ public Mono>> updateServicesWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.updateServices(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + final String contentType = "application/json"; + return FluxUtil.withContext(context -> service.updateServices(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1565,6 +1569,10 @@ private Mono>> updateServicesWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1573,20 +1581,16 @@ private Mono>> updateServicesWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.updateServices(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateServices(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, contentType, parameters, context); } /** @@ -1787,6 +1791,10 @@ public void updateServices(String resourceGroupName, String serviceGatewayName, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1795,15 +1803,11 @@ public void updateServices(String resourceGroupName, String serviceGatewayName, return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getAddressLocations(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getAddressLocations(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1829,6 +1833,10 @@ public void updateServices(String resourceGroupName, String serviceGatewayName, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1837,16 +1845,12 @@ public void updateServices(String resourceGroupName, String serviceGatewayName, return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .getAddressLocations(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .getAddressLocations(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, serviceGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1936,6 +1940,10 @@ private Mono> getServicesSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1944,15 +1952,11 @@ private Mono> getServicesSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getServices(this.client.getEndpoint(), resourceGroupName, - serviceGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getServices(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, serviceGatewayName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1976,6 +1980,10 @@ private Mono> getServicesSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1984,16 +1992,12 @@ private Mono> getServicesSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter serviceGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .getServices(this.client.getEndpoint(), resourceGroupName, serviceGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .getServices(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + serviceGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2071,11 +2075,11 @@ public PagedIterable getServices(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2084,8 +2088,7 @@ private Mono> listAllNextSinglePageAsync(Stri new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2099,11 +2102,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2113,7 +2116,7 @@ private Mono> listAllNextSinglePageAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2125,11 +2128,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2138,7 +2141,8 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -2152,11 +2156,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the service gateways in a resource group along with {@link PagedResponse} on successful completion of + * @return all the service gateways in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -2166,7 +2170,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java index f23956f2b7f1..fd9c085be1ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.ServiceTagInformationsClient; import com.azure.resourcemanager.network.fluent.models.ServiceTagInformationInner; -import com.azure.resourcemanager.network.models.ServiceTagInformationListResult; +import com.azure.resourcemanager.network.implementation.models.ServiceTagInformationListResult; import reactor.core.publisher.Mono; /** @@ -59,34 +59,31 @@ public final class ServiceTagInformationsClientImpl implements ServiceTagInforma * The interface defining all the services for NetworkManagementClientServiceTagInformations to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientServiceTagInformations") public interface ServiceTagInformationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("noAddressPrefixes") Boolean noAddressPrefixes, @QueryParam("tagName") String tagName, - @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @QueryParam("noAddressPrefixes") Boolean noAddressPrefixes, + @QueryParam("tagName") String tagName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,18 +99,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), noAddressPrefixes, tagName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, noAddressPrefixes, tagName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -122,9 +119,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @param context The context to associate with this operation. @@ -141,18 +136,18 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), noAddressPrefixes, + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, noAddressPrefixes, tagName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -161,9 +156,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -180,9 +173,7 @@ public PagedFlux listAsync(String location, Boolean /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -199,9 +190,7 @@ public PagedFlux listAsync(String location) { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @param context The context to associate with this operation. @@ -220,9 +209,7 @@ private PagedFlux listAsync(String location, Boolean /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -239,9 +226,7 @@ public PagedIterable list(String location) { /** * Gets a list of service tag information resources with pagination. * - * @param location The location that will be used as a reference for cloud (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param noAddressPrefixes Do not return address prefixes for the tag(s). * @param tagName Return tag information for a particular tag. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java index b52052db8721..6b88a6fbdb4c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -54,24 +54,22 @@ public final class ServiceTagsClientImpl implements ServiceTagsClient { * The interface defining all the services for NetworkManagementClientServiceTags to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientServiceTags") public interface ServiceTagsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTags") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); } /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -84,27 +82,25 @@ public Mono> listWithResponseAsync(String l return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -118,26 +114,24 @@ private Mono> listWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context); } /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -151,9 +145,7 @@ public Mono listAsync(String location) { /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -168,9 +160,7 @@ public Response listWithResponse(String location, Co /** * Gets a list of service tag information resources. * - * @param location The location that will be used as a reference for version (not as a filter based on location, you - * will get the list of service tags with prefix details across all regions but limited to the cloud that your - * subscription belongs to). + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticCidrsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticCidrsClientImpl.java index adc176ac0df3..083d767ab3fd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticCidrsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticCidrsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.StaticCidrsClient; import com.azure.resourcemanager.network.fluent.models.StaticCidrInner; -import com.azure.resourcemanager.network.models.StaticCidrList; +import com.azure.resourcemanager.network.implementation.models.StaticCidrList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,52 +67,50 @@ public final class StaticCidrsClientImpl implements StaticCidrsClient { * The interface defining all the services for NetworkManagementClientStaticCidrs to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientStaticCidrs") public interface StaticCidrsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @QueryParam("skipToken") String skipToken, @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, - @QueryParam("sortKey") String sortKey, @QueryParam("sortValue") String sortValue, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("staticCidrName") String staticCidrName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @PathParam("staticCidrName") String staticCidrName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") StaticCidrInner body, @HeaderParam("Accept") String accept, Context context); + @PathParam("staticCidrName") String staticCidrName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") StaticCidrInner body, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @PathParam("staticCidrName") String staticCidrName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("staticCidrName") String staticCidrName, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("poolName") String poolName, - @PathParam("staticCidrName") String staticCidrName, @QueryParam("api-version") String apiVersion, + @QueryParam("skipToken") String skipToken, @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, + @QueryParam("sortKey") String sortKey, @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -120,30 +118,24 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String poolName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue) { + public Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -163,39 +155,33 @@ private Mono> listSinglePageAsync(String resource if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } + if (staticCidrName == null) { + return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue, apiVersion, - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, staticCidrName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param staticCidrName StaticCidr resource name to retrieve. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String poolName, String skipToken, Integer skip, Integer top, String sortKey, - String sortValue, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -215,138 +201,80 @@ private Mono> listSinglePageAsync(String resource if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } + if (staticCidrName == null) { + return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, networkManagerName, - poolName, skipToken, skip, top, sortKey, sortValue, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, staticCidrName, accept, context); } /** - * Gets list of Static CIDR resources at Network Manager level. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, - skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. + * @return the specific Static CIDR resource on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, - skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName) { + return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. + * @param staticCidrName StaticCidr resource name to retrieve. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, - skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets list of Static CIDR resources at Network Manager level. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Static CIDR resource along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, String poolName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName, Context context) { + return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).block(); } /** - * Gets list of Static CIDR resources at Network Manager level. + * Gets the specific Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. + * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. + * @return the specific Static CIDR resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, String poolName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, poolName, skipToken, skip, top, - sortKey, sortValue, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public StaticCidrInner get(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName) { + return getWithResponse(resourceGroupName, networkManagerName, poolName, staticCidrName, Context.NONE) + .getValue(); } /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @param body StaticCidr resource object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -384,18 +312,19 @@ public Mono> createWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, staticCidrName, apiVersion, body, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, staticCidrName, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @param body StaticCidr resource object to create/update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -434,17 +363,17 @@ private Mono> createWithResponseAsync(String resourceG final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, staticCidrName, apiVersion, body, accept, context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, staticCidrName, accept, body, context); } /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -461,10 +390,10 @@ public Mono createAsync(String resourceGroupName, String networ /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @param body StaticCidr resource object to create/update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -482,10 +411,10 @@ public Response createWithResponse(String resourceGroupName, St /** * Creates/Updates the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName IP Address Manager Pool resource name. - * @param staticCidrName Static Cidr allocation name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The networkManagerName parameter. + * @param poolName The name of the IPAM pool. + * @param staticCidrName Name for the static CIDR. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -500,19 +429,19 @@ public StaticCidrInner create(String resourceGroupName, String networkManagerNam } /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, + public Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -537,17 +466,17 @@ public Mono> getWithResponseAsync(String resourceGroup return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, staticCidrName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, staticCidrName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. @@ -555,11 +484,11 @@ public Mono> getWithResponseAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkManagerName, String poolName, String staticCidrName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -583,35 +512,116 @@ private Mono> getWithResponseAsync(String resourceGrou return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, staticCidrName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, staticCidrName, context); } /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete the Static CIDR resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete the Static CIDR resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName) { + return this.beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).getSyncPoller(); + } + + /** + * Delete the Static CIDR resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, + String poolName, String staticCidrName, Context context) { + return this.beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context) + .getSyncPoller(); + } + + /** + * Delete the Static CIDR resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String networkManagerName, String poolName, + public Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName) { - return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. @@ -619,48 +629,70 @@ public Mono getAsync(String resourceGroupName, String networkMa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName, Context context) { - return getWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).block(); + private Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, + String staticCidrName, Context context) { + return beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specific Static CIDR resource. + * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. * @param staticCidrName StaticCidr resource name to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Static CIDR resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StaticCidrInner get(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName) { - return getWithResponse(resourceGroupName, networkManagerName, poolName, staticCidrName, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName) { + deleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).block(); } /** * Delete the Static CIDR resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName) { + public void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName, + Context context) { + deleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).block(); + } + + /** + * Gets list of Static CIDR resources at Network Manager level. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Static CIDR resources at Network Manager level along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String poolName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -680,33 +712,39 @@ public Mono>> deleteWithResponseAsync(String resourceG if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - if (staticCidrName == null) { - return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, poolName, staticCidrName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return list of Static CIDR resources at Network Manager level along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkManagerName, String poolName, String staticCidrName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String poolName, String skipToken, Integer skip, Integer top, String sortKey, + String sortValue, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -726,169 +764,129 @@ private Mono>> deleteWithResponseAsync(String resource if (poolName == null) { return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); } - if (staticCidrName == null) { - return Mono.error(new IllegalArgumentException("Parameter staticCidrName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, poolName, staticCidrName, apiVersion, accept, context); - } - - /** - * Delete the Static CIDR resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the Static CIDR resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Delete the Static CIDR resource. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName) { - return this.beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).getSyncPoller(); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. - * @param context The context to associate with this operation. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, - String poolName, String staticCidrName, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, + skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName) { - return beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, + skip, top, sortKey, sortValue), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkManagerName, String poolName, - String staticCidrName, Context context) { - return beginDeleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, String poolName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, poolName, skipToken, + skip, top, sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName) { - deleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, String poolName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue)); } /** - * Delete the Static CIDR resource. + * Gets list of Static CIDR resources at Network Manager level. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param poolName Pool resource name. - * @param staticCidrName StaticCidr resource name to delete. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Static CIDR resources at Network Manager level as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkManagerName, String poolName, String staticCidrName, - Context context) { - deleteAsync(resourceGroupName, networkManagerName, poolName, staticCidrName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, String poolName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, networkManagerName, poolName, skipToken, skip, top, + sortKey, sortValue, context)); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java index 9a18748c97ae..325ac369df7f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.StaticMembersClient; import com.azure.resourcemanager.network.fluent.models.StaticMemberInner; -import com.azure.resourcemanager.network.models.StaticMemberListResult; +import com.azure.resourcemanager.network.implementation.models.StaticMemberListResult; import reactor.core.publisher.Mono; /** @@ -62,70 +62,67 @@ public final class StaticMembersClientImpl implements StaticMembersClient { * The interface defining all the services for NetworkManagementClientStaticMembers to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientStaticMembers") public interface StaticMembersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("networkGroupName") String networkGroupName, - @PathParam("staticMemberName") String staticMemberName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("staticMemberName") String staticMemberName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("networkGroupName") String networkGroupName, - @PathParam("staticMemberName") String staticMemberName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") StaticMemberInner parameters, @HeaderParam("Accept") String accept, + @PathParam("staticMemberName") String staticMemberName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") StaticMemberInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("networkGroupName") String networkGroupName, - @PathParam("staticMemberName") String staticMemberName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("staticMemberName") String staticMemberName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("networkGroupName") String networkGroupName, @QueryParam("api-version") String apiVersion, - @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("networkGroupName") String networkGroupName, @QueryParam("$top") Integer top, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -164,15 +161,15 @@ public Mono> getWithResponseAsync(String resourceGro final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, staticMemberName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, staticMemberName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -212,14 +209,14 @@ private Mono> getWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, staticMemberName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, networkGroupName, staticMemberName, accept, context); } /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -238,7 +235,7 @@ public Mono getAsync(String resourceGroupName, String network /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -258,7 +255,7 @@ public Response getWithResponse(String resourceGroupName, Str /** * Gets the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -277,7 +274,7 @@ public StaticMemberInner get(String resourceGroupName, String networkManagerName /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -320,18 +317,19 @@ public Mono> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, staticMemberName, apiVersion, parameters, - accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkManagerName, networkGroupName, + staticMemberName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -376,16 +374,18 @@ private Mono> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, staticMemberName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, staticMemberName, contentType, accept, parameters, + context); } /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -405,7 +405,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -426,7 +426,7 @@ public Response createOrUpdateWithResponse(String resourceGro /** * Creates or updates a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -446,7 +446,7 @@ public StaticMemberInner createOrUpdate(String resourceGroupName, String network /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -483,17 +483,17 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, staticMemberName, apiVersion, accept, context)) + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, staticMemberName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -531,16 +531,15 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, networkGroupName, staticMemberName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, networkGroupName, staticMemberName, context); } /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -559,7 +558,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -579,7 +578,7 @@ public Response deleteWithResponse(String resourceGroupName, String networ /** * Deletes a static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param staticMemberName The name of the static member. @@ -596,7 +595,7 @@ public void delete(String resourceGroupName, String networkManagerName, String n /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -607,8 +606,8 @@ public void delete(String resourceGroupName, String networkManagerName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a StaticMember list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -636,8 +635,8 @@ private Mono> listSinglePageAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, networkGroupName, apiVersion, top, skipToken, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, networkGroupName, top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -646,7 +645,7 @@ private Mono> listSinglePageAsync(String resour /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -658,8 +657,8 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a StaticMember list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -688,8 +687,8 @@ private Mono> listSinglePageAsync(String resour final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, networkManagerName, - networkGroupName, apiVersion, top, skipToken, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, networkGroupName, top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -697,7 +696,7 @@ private Mono> listSinglePageAsync(String resour /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -708,7 +707,7 @@ private Mono> listSinglePageAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedFlux}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -721,13 +720,13 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedFlux}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -742,7 +741,7 @@ public PagedFlux listAsync(String resourceGroupName, String n /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -754,7 +753,7 @@ public PagedFlux listAsync(String resourceGroupName, String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedFlux}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkManagerName, @@ -767,13 +766,13 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedIterable}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName, @@ -786,7 +785,7 @@ public PagedIterable list(String resourceGroupName, String ne /** * Lists the specified static member. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. * @param networkGroupName The name of the network group. * @param top An optional query parameter which specifies the maximum number of records to be returned by the @@ -798,7 +797,7 @@ public PagedIterable list(String resourceGroupName, String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember as paginated response with {@link PagedIterable}. + * @return the response of a StaticMember list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkManagerName, @@ -814,8 +813,8 @@ public PagedIterable list(String resourceGroupName, String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a StaticMember list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -841,8 +840,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list StaticMember along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a StaticMember list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java index 53296d897b4c..9c8e2c90320b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,8 +34,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.SubnetsClient; import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.implementation.models.SubnetListResult; import com.azure.resourcemanager.network.models.PrepareNetworkPoliciesRequest; -import com.azure.resourcemanager.network.models.SubnetListResult; import com.azure.resourcemanager.network.models.UnprepareNetworkPoliciesRequest; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -69,97 +69,105 @@ public final class SubnetsClientImpl implements SubnetsClient { * The interface defining all the services for NetworkManagementClientSubnets to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSubnets") public interface SubnetsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SubnetInner subnetParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") SubnetInner subnetParameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/PrepareNetworkPolicies") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkName") String virtualNetworkName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/prepareNetworkPolicies") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> prepareNetworkPolicies(@HostParam("$host") String endpoint, + Mono>> prepareNetworkPolicies(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/UnprepareNetworkPolicies") + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/unprepareNetworkPolicies") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> unprepareNetworkPolicies(@HostParam("$host") String endpoint, + Mono>> unprepareNetworkPolicies(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("subnetName") String subnetName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified subnet by virtual network and resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String subnetName) { + public Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String subnetName, String expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -171,37 +179,39 @@ public Mono>> deleteWithResponseAsync(String resourceG if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified subnet by virtual network and resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String subnetName, String expand, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -213,181 +223,91 @@ private Mono>> deleteWithResponseAsync(String resource if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String subnetName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String subnetName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String subnetName) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName).getSyncPoller(); - } - - /** - * Deletes the specified subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String subnetName, Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).getSyncPoller(); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, subnetName, expand, accept, context); } /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the specified subnet by virtual network and resource group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono getAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { + final String expand = null; + return getWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param expand Expands referenced resources. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName, - Context context) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified subnet. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified subnet by virtual network and resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName, String subnetName) { - deleteAsync(resourceGroupName, virtualNetworkName, subnetName).block(); + public Response getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, + String expand, Context context) { + return getWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, expand, context).block(); } /** - * Deletes the specified subnet. + * Gets the specified subnet by virtual network and resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified subnet by virtual network and resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context) { - deleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).block(); + public SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName) { + final String expand = null; + return getWithResponse(resourceGroupName, virtualNetworkName, subnetName, expand, Context.NONE).getValue(); } /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param expand Expands referenced resources. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return subnet in a virtual network resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String subnetName, String expand) { + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -399,39 +319,47 @@ public Mono> getWithResponseAsync(String resourceGroupName if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (subnetParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter subnetParameters is required and cannot be null.")); + } else { + subnetParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, subnetName, contentType, accept, + subnetParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param expand Expands referenced resources. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return subnet in a virtual network resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String subnetName, String expand, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -443,91 +371,204 @@ private Mono> getWithResponseAsync(String resourceGroupNam if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (subnetParameters == null) { + return Mono + .error(new IllegalArgumentException("Parameter subnetParameters is required and cannot be null.")); + } else { + subnetParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, contentType, accept, subnetParameters, context); } /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { - final String expand = null; - return getWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, expand) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specified subnet by virtual network and resource group. - * - * @param resourceGroupName The name of the resource group. + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubnetInner.class, SubnetInner.class, this.client.getContext()); + } + + /** + * Creates or updates a subnet in the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param expand Expands referenced resources. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group along with {@link Response}. + * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkName, + subnetName, subnetParameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SubnetInner.class, SubnetInner.class, context); + } + + /** + * Creates or updates a subnet in the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters) + .getSyncPoller(); + } + + /** + * Creates or updates a subnet in the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, + String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) + .getSyncPoller(); + } + + /** + * Creates or updates a subnet in the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subnet in a virtual network resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, - String expand, Context context) { - return getWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, expand, context).block(); + public Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified subnet by virtual network and resource group. + * Creates or updates a subnet in the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return subnet in a virtual network resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, + String subnetName, SubnetInner subnetParameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified subnet by virtual network and resource group. + * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName) { - final String expand = null; - return getWithResponse(resourceGroupName, virtualNetworkName, subnetName, expand, Context.NONE).getValue(); + public SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters) { + return createOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters).block(); } /** * Creates or updates a subnet in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return subnet in a virtual network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { + public SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, + SubnetInner subnetParameters, Context context) { + return createOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) + .block(); + } + + /** + * Deletes the specified subnet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String subnetName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -539,46 +580,36 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (subnetParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter subnetParameters is required and cannot be null.")); - } else { - subnetParameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), subnetParameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, subnetName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkName, String subnetName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -590,189 +621,304 @@ private Mono>> createOrUpdateWithResponseAsync(String if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (subnetParameters == null) { - return Mono - .error(new IllegalArgumentException("Parameter subnetParameters is required and cannot be null.")); - } else { - subnetParameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, - apiVersion, this.client.getSubscriptionId(), subnetParameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, subnetName, context); } /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String subnetName) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SubnetInner.class, SubnetInner.class, this.client.getContext()); + = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of subnet in a virtual network resource. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String subnetName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkName, - subnetName, subnetParameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - SubnetInner.class, SubnetInner.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, subnetName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String subnetName) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName).getSyncPoller(); } /** - * Creates or updates a subnet in the specified virtual network. + * Deletes the specified subnet. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of subnet in a virtual network resource. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SubnetInner> beginCreateOrUpdate(String resourceGroupName, - String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String subnetName, Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).getSyncPoller(); + } + + /** + * Deletes the specified subnet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified subnet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName, + Context context) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified subnet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkName, String subnetName) { + deleteAsync(resourceGroupName, virtualNetworkName, subnetName).block(); + } + + /** + * Deletes the specified subnet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context) { + deleteAsync(resourceGroupName, virtualNetworkName, subnetName, context).block(); + } + + /** + * Gets all subnets in a virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all subnets in a virtual network along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String virtualNetworkName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all subnets in a virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all subnets in a virtual network along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String virtualNetworkName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Creates or updates a subnet in the specified virtual network. + * Gets all subnets in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource on successful completion of {@link Mono}. + * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String virtualNetworkName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, virtualNetworkName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Creates or updates a subnet in the specified virtual network. + * Gets all subnets in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource on successful completion of {@link Mono}. + * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, - String subnetName, SubnetInner subnetParameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String virtualNetworkName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, virtualNetworkName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Creates or updates a subnet in the specified virtual network. + * Gets all subnets in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource. + * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters) { - return createOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String virtualNetworkName) { + return new PagedIterable<>(listAsync(resourceGroupName, virtualNetworkName)); } /** - * Creates or updates a subnet in the specified virtual network. + * Gets all subnets in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param subnetName The name of the subnet. - * @param subnetParameters Parameters supplied to the create or update subnet operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subnet in a virtual network resource. + * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, - SubnetInner subnetParameters, Context context) { - return createOrUpdateAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, context) - .block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String virtualNetworkName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, virtualNetworkName, context)); } /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -790,6 +936,10 @@ public Mono>> prepareNetworkPoliciesWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -801,10 +951,6 @@ public Mono>> prepareNetworkPoliciesWithResponseAsync( if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (prepareNetworkPoliciesRequestParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter prepareNetworkPoliciesRequestParameters is required and cannot be null.")); @@ -812,18 +958,18 @@ public Mono>> prepareNetworkPoliciesWithResponseAsync( prepareNetworkPoliciesRequestParameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.prepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, subnetName, apiVersion, this.client.getSubscriptionId(), - prepareNetworkPoliciesRequestParameters, accept, context)) + .withContext(context -> service.prepareNetworkPolicies(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, subnetName, contentType, + prepareNetworkPoliciesRequestParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -842,6 +988,10 @@ private Mono>> prepareNetworkPoliciesWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -853,10 +1003,6 @@ private Mono>> prepareNetworkPoliciesWithResponseAsync if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (prepareNetworkPoliciesRequestParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter prepareNetworkPoliciesRequestParameters is required and cannot be null.")); @@ -864,17 +1010,17 @@ private Mono>> prepareNetworkPoliciesWithResponseAsync prepareNetworkPoliciesRequestParameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.prepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), prepareNetworkPoliciesRequestParameters, accept, + return service.prepareNetworkPolicies(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, contentType, prepareNetworkPoliciesRequestParameters, context); } /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -897,7 +1043,7 @@ public PollerFlux, Void> beginPrepareNetworkPoliciesAsync(Strin /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -922,7 +1068,7 @@ private PollerFlux, Void> beginPrepareNetworkPoliciesAsync(Stri /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -945,7 +1091,7 @@ public SyncPoller, Void> beginPrepareNetworkPolicies(String res /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -969,7 +1115,7 @@ public SyncPoller, Void> beginPrepareNetworkPolicies(String res /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -989,7 +1135,7 @@ public Mono prepareNetworkPoliciesAsync(String resourceGroupName, String v /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -1010,7 +1156,7 @@ private Mono prepareNetworkPoliciesAsync(String resourceGroupName, String /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -1029,7 +1175,7 @@ public void prepareNetworkPolicies(String resourceGroupName, String virtualNetwo /** * Prepares a subnet by applying network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param prepareNetworkPoliciesRequestParameters Parameters supplied to prepare subnet by applying network intent @@ -1049,7 +1195,7 @@ public void prepareNetworkPolicies(String resourceGroupName, String virtualNetwo /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1067,6 +1213,10 @@ public Mono>> unprepareNetworkPoliciesWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1078,10 +1228,6 @@ public Mono>> unprepareNetworkPoliciesWithResponseAsyn if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (unprepareNetworkPoliciesRequestParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter unprepareNetworkPoliciesRequestParameters is required and cannot be null.")); @@ -1089,18 +1235,18 @@ public Mono>> unprepareNetworkPoliciesWithResponseAsyn unprepareNetworkPoliciesRequestParameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.unprepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, subnetName, apiVersion, this.client.getSubscriptionId(), - unprepareNetworkPoliciesRequestParameters, accept, context)) + .withContext(context -> service.unprepareNetworkPolicies(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, subnetName, contentType, + unprepareNetworkPoliciesRequestParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1119,6 +1265,10 @@ private Mono>> unprepareNetworkPoliciesWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1130,10 +1280,6 @@ private Mono>> unprepareNetworkPoliciesWithResponseAsy if (subnetName == null) { return Mono.error(new IllegalArgumentException("Parameter subnetName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (unprepareNetworkPoliciesRequestParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter unprepareNetworkPoliciesRequestParameters is required and cannot be null.")); @@ -1141,17 +1287,17 @@ private Mono>> unprepareNetworkPoliciesWithResponseAsy unprepareNetworkPoliciesRequestParameters.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.unprepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - subnetName, apiVersion, this.client.getSubscriptionId(), unprepareNetworkPoliciesRequestParameters, accept, + return service.unprepareNetworkPolicies(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, subnetName, contentType, unprepareNetworkPoliciesRequestParameters, context); } /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1174,7 +1320,7 @@ public PollerFlux, Void> beginUnprepareNetworkPoliciesAsync(Str /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1199,7 +1345,7 @@ private PollerFlux, Void> beginUnprepareNetworkPoliciesAsync(St /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1222,7 +1368,7 @@ public SyncPoller, Void> beginUnprepareNetworkPolicies(String r /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1246,7 +1392,7 @@ public SyncPoller, Void> beginUnprepareNetworkPolicies(String r /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1266,7 +1412,7 @@ public Mono unprepareNetworkPoliciesAsync(String resourceGroupName, String /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1287,7 +1433,7 @@ private Mono unprepareNetworkPoliciesAsync(String resourceGroupName, Strin /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1306,7 +1452,7 @@ public void unprepareNetworkPolicies(String resourceGroupName, String virtualNet /** * Unprepares a subnet by removing network intent policies. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param subnetName The name of the subnet. * @param unprepareNetworkPoliciesRequestParameters Parameters supplied to unprepare subnet to remove network intent @@ -1323,150 +1469,6 @@ public void unprepareNetworkPolicies(String resourceGroupName, String virtualNet unprepareNetworkPoliciesRequestParameters, context).block(); } - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String virtualNetworkName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String virtualNetworkName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String virtualNetworkName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, virtualNetworkName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String virtualNetworkName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, virtualNetworkName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String virtualNetworkName) { - return new PagedIterable<>(listAsync(resourceGroupName, virtualNetworkName)); - } - - /** - * Gets all subnets in a virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all subnets in a virtual network as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String virtualNetworkName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, virtualNetworkName, context)); - } - /** * Get the next page of items. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java index 7976360efb5d..ec6072c807e0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.SubscriptionNetworkManagerConnectionsClient; import com.azure.resourcemanager.network.fluent.models.NetworkManagerConnectionInner; -import com.azure.resourcemanager.network.models.NetworkManagerConnectionListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkManagerConnectionListResult; import reactor.core.publisher.Mono; /** @@ -64,44 +64,41 @@ public final class SubscriptionNetworkManagerConnectionsClientImpl * The interface defining all the services for NetworkManagementClientSubscriptionNetworkManagerConnections to be * used by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientSubscriptionNetworkManagerConnections") public interface SubscriptionNetworkManagerConnectionsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") NetworkManagerConnectionInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NetworkManagerConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("networkManagerConnectionName") String networkManagerConnectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("networkManagerConnectionName") String networkManagerConnectionName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @QueryParam("$top") Integer top, @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @@ -110,24 +107,22 @@ Mono> list(@HostParam("$host") Stri @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this subscription along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - createOrUpdateWithResponseAsync(String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { + public Mono> getWithResponseAsync(String networkManagerConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -140,34 +135,28 @@ Mono> listNext( return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - networkManagerConnectionName, apiVersion, parameters, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + networkManagerConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response} on successful completion of - * {@link Mono}. + * @return a specified connection created by this subscription along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { + private Mono> getWithResponseAsync(String networkManagerConnectionName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -180,80 +169,71 @@ private Mono> createOrUpdateWithResponse return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - networkManagerConnectionName, apiVersion, parameters, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + networkManagerConnectionName, accept, context); } /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource on successful completion of {@link Mono}. + * @return a specified connection created by this subscription on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters) { - return createOrUpdateWithResponseAsync(networkManagerConnectionName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono getAsync(String networkManagerConnectionName) { + return getWithResponseAsync(networkManagerConnectionName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource along with {@link Response}. + * @return a specified connection created by this subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters, Context context) { - return createOrUpdateWithResponseAsync(networkManagerConnectionName, parameters, context).block(); + public Response getWithResponse(String networkManagerConnectionName, + Context context) { + return getWithResponseAsync(networkManagerConnectionName, context).block(); } /** - * Create a network manager connection on this subscription. + * Get a specified connection created by this subscription. * * @param networkManagerConnectionName Name for the network manager connection. - * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Network Manager Connection resource. + * @return a specified connection created by this subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName, - NetworkManagerConnectionInner parameters) { - return createOrUpdateWithResponse(networkManagerConnectionName, parameters, Context.NONE).getValue(); + public NetworkManagerConnectionInner get(String networkManagerConnectionName) { + return getWithResponse(networkManagerConnectionName, Context.NONE).getValue(); } /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription along with {@link Response} on successful completion - * of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String networkManagerConnectionName) { + public Mono> + createOrUpdateWithResponseAsync(String networkManagerConnectionName, NetworkManagerConnectionInner parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -266,28 +246,34 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - networkManagerConnectionName, apiVersion, accept, context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), networkManagerConnectionName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription along with {@link Response} on successful completion - * of {@link Mono}. + * @return the Network Manager Connection resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String networkManagerConnectionName, - Context context) { + private Mono> createOrUpdateWithResponseAsync( + String networkManagerConnectionName, NetworkManagerConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -300,55 +286,67 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), networkManagerConnectionName, - apiVersion, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + networkManagerConnectionName, contentType, accept, parameters, context); } /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription on successful completion of {@link Mono}. + * @return the Network Manager Connection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String networkManagerConnectionName) { - return getWithResponseAsync(networkManagerConnectionName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono createOrUpdateAsync(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters) { + return createOrUpdateWithResponseAsync(networkManagerConnectionName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription along with {@link Response}. + * @return the Network Manager Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String networkManagerConnectionName, - Context context) { - return getWithResponseAsync(networkManagerConnectionName, context).block(); + public Response createOrUpdateWithResponse(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters, Context context) { + return createOrUpdateWithResponseAsync(networkManagerConnectionName, parameters, context).block(); } /** - * Get a specified connection created by this subscription. + * Create a network manager connection on this subscription. * * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specified connection created by this subscription. + * @return the Network Manager Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkManagerConnectionInner get(String networkManagerConnectionName) { - return getWithResponse(networkManagerConnectionName, Context.NONE).getValue(); + public NetworkManagerConnectionInner createOrUpdate(String networkManagerConnectionName, + NetworkManagerConnectionInner parameters) { + return createOrUpdateWithResponse(networkManagerConnectionName, parameters, Context.NONE).getValue(); } /** @@ -375,10 +373,9 @@ public Mono> deleteWithResponseAsync(String networkManagerConnect new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - networkManagerConnectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), networkManagerConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -407,10 +404,9 @@ private Mono> deleteWithResponseAsync(String networkManagerConnec new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), networkManagerConnectionName, - apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + networkManagerConnectionName, context); } /** @@ -466,8 +462,8 @@ public void delete(String networkManagerConnectionName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String skipToken) { @@ -482,7 +478,7 @@ private Mono> listSinglePageAsync(I final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), top, skipToken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -501,8 +497,8 @@ private Mono> listSinglePageAsync(I * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String skipToken, @@ -519,7 +515,7 @@ private Mono> listSinglePageAsync(I final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, top, skipToken, accept, + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), top, skipToken, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); @@ -536,7 +532,7 @@ private Mono> listSinglePageAsync(I * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(Integer top, String skipToken) { @@ -549,7 +545,7 @@ public PagedFlux listAsync(Integer top, String sk * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync() { @@ -571,7 +567,7 @@ public PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedFlux}. + * @return the response of a NetworkManagerConnection list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, String skipToken, Context context) { @@ -584,7 +580,8 @@ private PagedFlux listAsync(Integer top, String s * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -605,7 +602,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections as paginated response with {@link PagedIterable}. + * @return the response of a NetworkManagerConnection list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, String skipToken, Context context) { @@ -619,8 +617,8 @@ public PagedIterable list(Integer top, String ski * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -646,8 +644,8 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of network manager connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response of a NetworkManagerConnection list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java index d0f8151c7c12..2486f5302304 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.UsagesClient; import com.azure.resourcemanager.network.fluent.models.UsageInner; -import com.azure.resourcemanager.network.models.UsagesListResult; +import com.azure.resourcemanager.network.implementation.models.UsagesListResult; import reactor.core.publisher.Mono; /** @@ -58,29 +58,29 @@ public final class UsagesClientImpl implements UsagesClient { * The interface defining all the services for NetworkManagementClientUsages to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientUsages") public interface UsagesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("location") String location, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -93,18 +93,18 @@ private Mono> listSinglePageAsync(String location) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -113,7 +113,7 @@ private Mono> listSinglePageAsync(String location) { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -127,18 +127,18 @@ private Mono> listSinglePageAsync(String location, Con return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -146,7 +146,7 @@ private Mono> listSinglePageAsync(String location, Con /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -160,7 +160,7 @@ public PagedFlux listAsync(String location) { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -176,7 +176,7 @@ private PagedFlux listAsync(String location, Context context) { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -190,7 +190,7 @@ public PagedIterable list(String location) { /** * List network usages for a subscription. * - * @param location The location where resource usage is queried. + * @param location The location name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VerifierWorkspacesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VerifierWorkspacesClientImpl.java index 4ff115fe164f..10621d56ce7d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VerifierWorkspacesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VerifierWorkspacesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VerifierWorkspacesClient; import com.azure.resourcemanager.network.fluent.models.VerifierWorkspaceInner; -import com.azure.resourcemanager.network.models.VerifierWorkspaceListResult; +import com.azure.resourcemanager.network.implementation.models.VerifierWorkspaceListResult; import com.azure.resourcemanager.network.models.VerifierWorkspaceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -69,282 +69,78 @@ public final class VerifierWorkspacesClientImpl implements VerifierWorkspacesCli * The interface defining all the services for NetworkManagementClientVerifierWorkspaces to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVerifierWorkspaces") public interface VerifierWorkspacesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkManagerName") String networkManagerName, @QueryParam("skipToken") String skipToken, - @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, - @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create(@HostParam("$host") String endpoint, + Mono> create(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") VerifierWorkspaceInner body, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VerifierWorkspaceInner body, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, @PathParam("workspaceName") String workspaceName, @HeaderParam("If-Match") String ifMatch, - @BodyParam("application/json") VerifierWorkspaceUpdate body, @HeaderParam("Accept") String accept, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VerifierWorkspaceUpdate body, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkManagerName") String networkManagerName, - @PathParam("workspaceName") String workspaceName, @HeaderParam("If-Match") String ifMatch, - @HeaderParam("Accept") String accept, Context context); + @PathParam("workspaceName") String workspaceName, @HeaderParam("If-Match") String ifMatch, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkManagerName") String networkManagerName, @QueryParam("skipToken") String skipToken, + @QueryParam("skip") Integer skip, @QueryParam("top") Integer top, @QueryParam("sortKey") String sortKey, + @QueryParam("sortValue") String sortValue, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkManagerName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkManagerName == null) { - return Mono - .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String networkManagerName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, - sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName) { - final String skipToken = null; - final Integer skip = null; - final Integer top = null; - final String sortKey = null; - final String sortValue = null; - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue)); - } - - /** - * Gets list of Verifier Workspaces. - * - * @param resourceGroupName The name of the resource group. - * @param networkManagerName The name of the network manager. - * @param skipToken Optional skip token. - * @param skip Optional num entries to skip. - * @param top Optional num entries to show. - * @param sortKey Optional key by which to sort. - * @param sortValue Optional sort value for pagination. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String networkManagerName, - String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { - return new PagedIterable<>( - listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, context)); - } - /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -383,9 +179,9 @@ public Mono> getWithResponseAsync(String resour /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -424,9 +220,9 @@ private Mono> getWithResponseAsync(String resou /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -442,9 +238,9 @@ public Mono getAsync(String resourceGroupName, String ne /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -460,9 +256,9 @@ public Response getWithResponse(String resourceGroupName /** * Gets Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -476,9 +272,9 @@ public VerifierWorkspaceInner get(String resourceGroupName, String networkManage /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -515,20 +311,21 @@ public Mono> createWithResponseAsync(String res body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext( context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, ifMatch, body, accept, context)) + resourceGroupName, networkManagerName, workspaceName, ifMatch, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -566,18 +363,19 @@ private Mono> createWithResponseAsync(String re body.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, ifMatch, body, accept, context); + networkManagerName, workspaceName, ifMatch, contentType, accept, body, context); } /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -595,9 +393,9 @@ public Mono createAsync(String resourceGroupName, String /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. @@ -617,9 +415,9 @@ public Response createWithResponse(String resourceGroupN /** * Creates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param body Verifier Workspace object to create/update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -637,9 +435,9 @@ public VerifierWorkspaceInner create(String resourceGroupName, String networkMan /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Verifier Workspace object to create/update. @@ -678,16 +476,16 @@ public Mono> updateWithResponseAsync(String res return FluxUtil .withContext( context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, ifMatch, body, accept, context)) + resourceGroupName, networkManagerName, workspaceName, ifMatch, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Verifier Workspace object to create/update. @@ -727,15 +525,15 @@ private Mono> updateWithResponseAsync(String re final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, ifMatch, body, accept, context); + networkManagerName, workspaceName, ifMatch, accept, body, context); } /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -753,9 +551,9 @@ public Mono updateAsync(String resourceGroupName, String /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param body Verifier Workspace object to create/update. @@ -775,9 +573,9 @@ public Response updateWithResponse(String resourceGroupN /** * Updates Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -794,9 +592,9 @@ public VerifierWorkspaceInner update(String resourceGroupName, String networkMan /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -827,20 +625,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, networkManagerName, workspaceName, ifMatch, accept, context)) + resourceGroupName, networkManagerName, workspaceName, ifMatch, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -872,18 +669,17 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - networkManagerName, workspaceName, ifMatch, accept, context); + networkManagerName, workspaceName, ifMatch, context); } /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -903,9 +699,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -924,9 +720,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -948,9 +744,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -966,9 +762,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -987,9 +783,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1007,9 +803,9 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1025,9 +821,9 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -1046,9 +842,9 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1062,9 +858,9 @@ public void delete(String resourceGroupName, String networkManagerName, String w /** * Deletes Verifier Workspace. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param networkManagerName The name of the network manager. - * @param workspaceName Workspace name. + * @param workspaceName The name of the resource. * @param ifMatch The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to * apply the operation unconditionally. * @param context The context to associate with this operation. @@ -1078,6 +874,208 @@ public void delete(String resourceGroupName, String networkManagerName, String w deleteAsync(resourceGroupName, networkManagerName, workspaceName, ifMatch, context).block(); } + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkManagerName, String skipToken, Integer skip, Integer top, String sortKey, String sortValue, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkManagerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkManagerName, skipToken, skip, top, sortKey, sortValue, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String networkManagerName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String networkManagerName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, networkManagerName, skipToken, skip, top, + sortKey, sortValue, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName) { + final String skipToken = null; + final Integer skip = null; + final Integer top = null; + final String sortKey = null; + final String sortValue = null; + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue)); + } + + /** + * Gets list of Verifier Workspaces. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkManagerName The name of the network manager. + * @param skipToken Optional skip token. + * @param skip Optional num entries to skip. + * @param top Optional num entries to show. + * @param sortKey Optional key by which to sort. + * @param sortValue Optional sort value for pagination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Verifier Workspaces as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String networkManagerName, + String skipToken, Integer skip, Integer top, String sortKey, String sortValue, Context context) { + return new PagedIterable<>( + listAsync(resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue, context)); + } + /** * Gets list of Verifier Workspaces. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java index 48907f68607b..7d2d9a9d91dd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -61,36 +61,36 @@ public final class VipSwapsClientImpl implements VipSwapsClient { * The interface defining all the services for NetworkManagementClientVipSwaps to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVipSwaps") public interface VipSwapsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("groupName") String groupName, @PathParam("resourceName") String resourceName, - @PathParam("singletonResource") String singletonResource, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("singletonResource") String singletonResource, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}") + @Headers({ "Accept: application/json;q=0.9" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create(@HostParam("$host") String endpoint, + Mono>> create(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("groupName") String groupName, @PathParam("resourceName") String resourceName, - @PathParam("singletonResource") String singletonResource, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") SwapResourceInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("singletonResource") String singletonResource, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") SwapResourceInner parameters, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("groupName") String groupName, @PathParam("resourceName") String resourceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("groupName") String groupName, @PathParam("resourceName") String resourceName, @HeaderParam("Accept") String accept, Context context); } @@ -98,7 +98,7 @@ Mono> list(@HostParam("$host") String endp * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -112,22 +112,22 @@ public Mono> getWithResponseAsync(String groupName, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String singletonResource = "swap"; final String apiVersion = "2025-05-01"; + final String singletonResource = "swap"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), groupName, resourceName, singletonResource, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + groupName, resourceName, singletonResource, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -135,7 +135,7 @@ public Mono> getWithResponseAsync(String groupName, * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,29 +151,29 @@ private Mono> getWithResponseAsync(String groupName, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String singletonResource = "swap"; final String apiVersion = "2025-05-01"; + final String singletonResource = "swap"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), groupName, resourceName, singletonResource, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), groupName, + resourceName, singletonResource, accept, context); } /** * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -190,7 +190,7 @@ public Mono getAsync(String groupName, String resourceName) { * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,7 +208,7 @@ public Response getWithResponse(String groupName, String reso * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud * service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -223,7 +223,7 @@ public SwapResourceInner get(String groupName, String resourceName) { /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -239,34 +239,35 @@ public Mono>> createWithResponseAsync(String groupName return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } - final String singletonResource = "swap"; final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String singletonResource = "swap"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.create(this.client.getEndpoint(), groupName, resourceName, - singletonResource, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + groupName, resourceName, singletonResource, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -283,33 +284,33 @@ private Mono>> createWithResponseAsync(String groupNam return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } - final String singletonResource = "swap"; final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String singletonResource = "swap"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.create(this.client.getEndpoint(), groupName, resourceName, singletonResource, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), groupName, + resourceName, singletonResource, contentType, parameters, context); } /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -329,7 +330,7 @@ public PollerFlux, Void> beginCreateAsync(String groupName, Str /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -351,7 +352,7 @@ private PollerFlux, Void> beginCreateAsync(String groupName, St /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -369,7 +370,7 @@ public SyncPoller, Void> beginCreate(String groupName, String r /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -388,7 +389,7 @@ public SyncPoller, Void> beginCreate(String groupName, String r /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -406,7 +407,7 @@ public Mono createAsync(String groupName, String resourceName, SwapResourc /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -426,7 +427,7 @@ private Mono createAsync(String groupName, String resourceName, SwapResour /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -442,7 +443,7 @@ public void create(String groupName, String resourceName, SwapResourceInner para /** * Performs vip swap operation on swappable cloud services. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param parameters SwapResource object where slot type should be the target slot after vip swap for the specified * cloud service. @@ -460,7 +461,7 @@ public void create(String groupName, String resourceName, SwapResourceInner para * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -474,21 +475,21 @@ public Mono> listWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), groupName, resourceName, apiVersion, - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + groupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -496,7 +497,7 @@ public Mono> listWithResponseAsync(String * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -512,28 +513,28 @@ private Mono> listWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (groupName == null) { return Mono.error(new IllegalArgumentException("Parameter groupName is required and cannot be null.")); } if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), groupName, resourceName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), groupName, + resourceName, accept, context); } /** * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -550,7 +551,7 @@ public Mono listAsync(String groupName, String reso * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -569,7 +570,7 @@ public Response listWithResponse(String groupName, * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a * cloud service can either be Staging or Production. * - * @param groupName The name of the resource group. + * @param groupName The groupName parameter. * @param resourceName The name of the cloud service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java index d6b203248ca1..3237b37fa25a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualApplianceSitesClient; import com.azure.resourcemanager.network.fluent.models.VirtualApplianceSiteInner; -import com.azure.resourcemanager.network.models.NetworkVirtualApplianceSiteListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkVirtualApplianceSiteListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,49 +67,48 @@ public final class VirtualApplianceSitesClientImpl implements VirtualApplianceSi * The interface defining all the services for NetworkManagementClientVirtualApplianceSites to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualApplianceSites") public interface VirtualApplianceSitesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("siteName") String siteName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("siteName") String siteName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("siteName") String siteName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @PathParam("siteName") String siteName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualApplianceSiteInner parameters, @HeaderParam("Accept") String accept, + @PathParam("siteName") String siteName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualApplianceSiteInner parameters, Context context); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + @PathParam("siteName") String siteName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -117,242 +116,17 @@ Mono> list(@HostParam("$host") S @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String siteName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkVirtualApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); - } - if (siteName == null) { - return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, siteName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String networkVirtualApplianceName, String siteName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (networkVirtualApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); - } - if (siteName == null) { - return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, siteName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkVirtualApplianceName, String siteName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, siteName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String networkVirtualApplianceName, String siteName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, siteName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - String siteName) { - return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).getSyncPoller(); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, - String siteName, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).getSyncPoller(); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName) { - return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName, - Context context) { - return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName) { - deleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).block(); - } - - /** - * Deletes the specified site from a Virtual Appliance. - * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName, Context context) { - deleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).block(); - } - /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -366,6 +140,10 @@ public Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -377,24 +155,21 @@ public Mono> getWithResponseAsync(String res if (siteName == null) { return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, siteName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, siteName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -409,6 +184,10 @@ private Mono> getWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -420,23 +199,20 @@ private Mono> getWithResponseAsync(String re if (siteName == null) { return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, siteName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, siteName, accept, context); } /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -452,9 +228,10 @@ public Mono getAsync(String resourceGroupName, String /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -470,9 +247,10 @@ public Response getWithResponse(String resourceGroupN /** * Gets the specified Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -487,9 +265,10 @@ public VirtualApplianceSiteInner get(String resourceGroupName, String networkVir /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -503,6 +282,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -514,30 +297,28 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (siteName == null) { return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, siteName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, siteName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -552,6 +333,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -563,28 +348,26 @@ private Mono>> createOrUpdateWithResponseAsync(String if (siteName == null) { return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, - siteName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, siteName, contentType, accept, parameters, context); } /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -605,9 +388,10 @@ public PollerFlux, VirtualApplianceSiteInn /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,9 +413,10 @@ private PollerFlux, VirtualApplianceSiteIn /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -649,9 +434,10 @@ public SyncPoller, VirtualApplianceSiteInn /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -671,9 +457,10 @@ public SyncPoller, VirtualApplianceSiteInn /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -690,9 +477,10 @@ public Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -711,9 +499,10 @@ private Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -729,9 +518,10 @@ public VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String /** * Creates or updates the specified Network Virtual Appliance Site. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param siteName The name of the site. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @param parameters Parameters supplied to the create or update Network Virtual Appliance Site operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -747,23 +537,28 @@ public VirtualApplianceSiteInner createOrUpdate(String resourceGroupName, String } /** - * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. + * Deletes the specified site from a Virtual Appliance. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String networkVirtualApplianceName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String siteName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -772,15 +567,244 @@ private Mono> listSinglePageAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } + if (siteName == null) { + return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, networkVirtualApplianceName, siteName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, String siteName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkVirtualApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); + } + if (siteName == null) { + return Mono.error(new IllegalArgumentException("Parameter siteName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, siteName, context); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkVirtualApplianceName, String siteName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, siteName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String networkVirtualApplianceName, String siteName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, networkVirtualApplianceName, siteName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, + String siteName) { + return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).getSyncPoller(); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkVirtualApplianceName, + String siteName, Context context) { + return this.beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).getSyncPoller(); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName) { + return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName, + Context context) { + return beginDeleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName) { + deleteAsync(resourceGroupName, networkVirtualApplianceName, siteName).block(); + } + + /** + * Deletes the specified site from a Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @param siteName The name of the resource that is unique within a resource group. This name can be used to access + * the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkVirtualApplianceName, String siteName, Context context) { + deleteAsync(resourceGroupName, networkVirtualApplianceName, siteName, context).block(); + } + + /** + * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of VirtualApplianceSite items along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String networkVirtualApplianceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (networkVirtualApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, - networkVirtualApplianceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, networkVirtualApplianceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -789,14 +813,14 @@ private Mono> listSinglePageAsync(Strin /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of VirtualApplianceSite items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, @@ -805,6 +829,10 @@ private Mono> listSinglePageAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -813,16 +841,12 @@ private Mono> listSinglePageAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + networkVirtualApplianceName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -830,13 +854,12 @@ private Mono> listSinglePageAsync(Strin /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, @@ -848,14 +871,13 @@ public PagedFlux listAsync(String resourceGroupName, /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedFlux}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String networkVirtualApplianceName, @@ -867,13 +889,12 @@ private PagedFlux listAsync(String resourceGroupName, /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkVirtualApplianceName) { @@ -883,14 +904,13 @@ public PagedIterable list(String resourceGroupName, S /** * Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkVirtualApplianceName The name of Network Virtual Appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call as paginated response with - * {@link PagedIterable}. + * @return paged collection of VirtualApplianceSite items as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String networkVirtualApplianceName, @@ -905,8 +925,8 @@ public PagedIterable list(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of VirtualApplianceSite items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -932,8 +952,8 @@ private Mono> listNextSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSites API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of VirtualApplianceSite items along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java index dbceb97613cf..5c04ef3a19f0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.VirtualApplianceSkusClient; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceSkuInner; -import com.azure.resourcemanager.network.models.NetworkVirtualApplianceSkuListResult; +import com.azure.resourcemanager.network.implementation.models.NetworkVirtualApplianceSkuListResult; import reactor.core.publisher.Mono; /** @@ -59,44 +59,46 @@ public final class VirtualApplianceSkusClientImpl implements VirtualApplianceSku * The interface defining all the services for NetworkManagementClientVirtualApplianceSkus to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualApplianceSkus") public interface VirtualApplianceSkusService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("skuName") String skuName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @PathParam("skuName") String skuName, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * List all SKUs available for a virtual appliance. + * Retrieves a single available sku for network virtual appliance. * + * @param skuName Name of the Sku. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return available NetworkVirtualApplianceSkus along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + public Mono> getWithResponseAsync(String skuName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -105,28 +107,30 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (skuName == null) { + return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + skuName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List all SKUs available for a virtual appliance. + * Retrieves a single available sku for network virtual appliance. * + * @param skuName Name of the Sku. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return available NetworkVirtualApplianceSkus along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> getWithResponseAsync(String skuName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -135,83 +139,69 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (skuName == null) { + return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), skuName, accept, + context); } /** - * List all SKUs available for a virtual appliance. + * Retrieves a single available sku for network virtual appliance. * + * @param skuName Name of the Sku. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedFlux}. + * @return available NetworkVirtualApplianceSkus on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String skuName) { + return getWithResponseAsync(skuName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List all SKUs available for a virtual appliance. + * Retrieves a single available sku for network virtual appliance. * + * @param skuName Name of the Sku. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List all SKUs available for a virtual appliance. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedIterable}. + * @return available NetworkVirtualApplianceSkus along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String skuName, Context context) { + return getWithResponseAsync(skuName, context).block(); } /** - * List all SKUs available for a virtual appliance. + * Retrieves a single available sku for network virtual appliance. * - * @param context The context to associate with this operation. + * @param skuName Name of the Sku. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call as paginated response with - * {@link PagedIterable}. + * @return available NetworkVirtualApplianceSkus. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkVirtualApplianceSkuInner get(String skuName) { + return getWithResponse(skuName, Context.NONE).getValue(); } /** - * Retrieves a single available sku for network virtual appliance. + * List all SKUs available for a virtual appliance. * - * @param skuName Name of the Sku. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return available NetworkVirtualApplianceSkus along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a NetworkVirtualApplianceSku list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String skuName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -220,30 +210,28 @@ public Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (skuName == null) { - return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - skuName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Retrieves a single available sku for network virtual appliance. + * List all SKUs available for a virtual appliance. * - * @param skuName Name of the Sku. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return available NetworkVirtualApplianceSkus along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a NetworkVirtualApplianceSku list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String skuName, Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -252,57 +240,67 @@ private Mono> getWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (skuName == null) { - return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, skuName, accept, - context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Retrieves a single available sku for network virtual appliance. + * List all SKUs available for a virtual appliance. * - * @param skuName Name of the Sku. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return available NetworkVirtualApplianceSkus on successful completion of {@link Mono}. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String skuName) { - return getWithResponseAsync(skuName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Retrieves a single available sku for network virtual appliance. + * List all SKUs available for a virtual appliance. * - * @param skuName Name of the Sku. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return available NetworkVirtualApplianceSkus along with {@link Response}. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String skuName, Context context) { - return getWithResponseAsync(skuName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Retrieves a single available sku for network virtual appliance. + * List all SKUs available for a virtual appliance. * - * @param skuName Name of the Sku. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * List all SKUs available for a virtual appliance. + * + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return available NetworkVirtualApplianceSkus. + * @return the response of a NetworkVirtualApplianceSku list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public NetworkVirtualApplianceSkuInner get(String skuName) { - return getWithResponse(skuName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -312,7 +310,7 @@ public NetworkVirtualApplianceSkuInner get(String skuName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call along with {@link PagedResponse} on + * @return the response of a NetworkVirtualApplianceSku list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -339,7 +337,7 @@ private Mono> listNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListNetworkVirtualApplianceSkus API service call along with {@link PagedResponse} on + * @return the response of a NetworkVirtualApplianceSku list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java index 38432a52082e..215e927be349 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -35,7 +35,7 @@ import com.azure.core.util.serializer.TypeReference; import com.azure.resourcemanager.network.fluent.VirtualHubBgpConnectionsClient; import com.azure.resourcemanager.network.fluent.models.BgpConnectionInner; -import com.azure.resourcemanager.network.models.ListVirtualHubBgpConnectionResults; +import com.azure.resourcemanager.network.implementation.models.ListVirtualHubBgpConnectionResults; import com.azure.resourcemanager.network.models.PeerRoute; import java.nio.ByteBuffer; import java.util.List; @@ -72,81 +72,79 @@ public final class VirtualHubBgpConnectionsClientImpl implements VirtualHubBgpCo * The interface defining all the services for NetworkManagementClientVirtualHubBgpConnections to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualHubBgpConnections") public interface VirtualHubBgpConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") BgpConnectionInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BgpConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("connectionName") String connectionName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/learnedRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listLearnedRoutes(@HostParam("$host") String endpoint, + Mono>> listLearnedRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("hubName") String hubName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{hubName}/bgpConnections/{connectionName}/advertisedRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listAdvertisedRoutes(@HostParam("$host") String endpoint, + Mono>> listAdvertisedRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("hubName") String hubName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,15 +176,15 @@ public Mono> getWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -219,14 +217,14 @@ private Mono> getWithResponseAsync(String resourceG final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, connectionName, accept, context); } /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -243,7 +241,7 @@ public Mono getAsync(String resourceGroupName, String virtua /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -261,7 +259,7 @@ public Response getWithResponse(String resourceGroupName, St /** * Retrieves the details of a Virtual Hub Bgp Connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -277,7 +275,7 @@ public BgpConnectionInner get(String resourceGroupName, String virtualHubName, S /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -313,17 +311,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, connectionName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -360,16 +360,17 @@ private Mono>> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, connectionName, contentType, accept, parameters, context); } /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -390,7 +391,7 @@ public PollerFlux, BgpConnectionInner> beginCreat /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -414,7 +415,7 @@ private PollerFlux, BgpConnectionInner> beginCrea /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -433,7 +434,7 @@ public SyncPoller, BgpConnectionInner> beginCreat /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -453,7 +454,7 @@ public SyncPoller, BgpConnectionInner> beginCreat /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -472,7 +473,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -492,7 +493,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -510,7 +511,7 @@ public BgpConnectionInner createOrUpdate(String resourceGroupName, String virtua /** * Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param parameters Parameters of Bgp connection. @@ -529,7 +530,7 @@ public BgpConnectionInner createOrUpdate(String resourceGroupName, String virtua /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -559,17 +560,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -600,16 +600,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, connectionName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, connectionName, context); } /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -629,7 +628,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -651,7 +650,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -668,7 +667,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -686,7 +685,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -703,7 +702,7 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -722,7 +721,7 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -737,7 +736,7 @@ public void delete(String resourceGroupName, String virtualHubName, String conne /** * Deletes a VirtualHubBgpConnection. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param connectionName The name of the connection. * @param context The context to associate with this operation. @@ -753,7 +752,7 @@ public void delete(String resourceGroupName, String virtualHubName, String conne /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -781,8 +780,8 @@ private Mono> listSinglePageAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -791,7 +790,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -821,8 +820,8 @@ private Mono> listSinglePageAsync(String resou final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -830,7 +829,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -846,7 +845,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -863,7 +862,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -878,7 +877,7 @@ public PagedIterable list(String resourceGroupName, String v /** * Retrieves the details of all VirtualHubBgpConnections. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -894,14 +893,13 @@ public PagedIterable list(String resourceGroupName, String v /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listLearnedRoutesWithResponseAsync(String resourceGroupName, String hubName, @@ -910,6 +908,10 @@ public Mono>> listLearnedRoutesWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -920,30 +922,25 @@ public Mono>> listLearnedRoutesWithResponseAsync(Strin if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listLearnedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listLearnedRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, hubName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listLearnedRoutesWithResponseAsync(String resourceGroupName, @@ -952,6 +949,10 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -962,27 +963,23 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listLearnedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listLearnedRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, hubName, connectionName, accept, context); } /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux>>, Map>> @@ -998,14 +995,14 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux>>, Map>> @@ -1022,13 +1019,13 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller>>, Map>> @@ -1039,14 +1036,14 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller>>, Map>> @@ -1057,13 +1054,13 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listLearnedRoutesAsync(String resourceGroupName, String hubName, @@ -1075,14 +1072,14 @@ public Mono>> listLearnedRoutesAsync(String resource /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listLearnedRoutesAsync(String resourceGroupName, String hubName, @@ -1094,13 +1091,13 @@ private Mono>> listLearnedRoutesAsync(String resourc /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Map> listLearnedRoutes(String resourceGroupName, String hubName, @@ -1111,14 +1108,14 @@ public Map> listLearnedRoutes(String resourceGroupName, /** * Retrieves a list of routes the virtual hub bgp connection has learned. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Map> listLearnedRoutes(String resourceGroupName, String hubName, @@ -1129,14 +1126,13 @@ public Map> listLearnedRoutes(String resourceGroupName, /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listAdvertisedRoutesWithResponseAsync(String resourceGroupName, @@ -1145,6 +1141,10 @@ public Mono>> listAdvertisedRoutesWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1155,30 +1155,25 @@ public Mono>> listAdvertisedRoutesWithResponseAsync(St if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, - connectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listAdvertisedRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, hubName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes along with {@link Response} on successful - * completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listAdvertisedRoutesWithResponseAsync(String resourceGroupName, @@ -1187,6 +1182,10 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1197,27 +1196,23 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, connectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listAdvertisedRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, hubName, connectionName, accept, context); } /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux>>, Map>> @@ -1233,14 +1228,14 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of map from virtual router instance to list of peer routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux>>, Map>> @@ -1258,13 +1253,13 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller>>, Map>> @@ -1275,14 +1270,14 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of map from virtual router instance to list of peer routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller>>, Map>> @@ -1293,13 +1288,13 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listAdvertisedRoutesAsync(String resourceGroupName, String hubName, @@ -1311,14 +1306,14 @@ public Mono>> listAdvertisedRoutesAsync(String resou /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listAdvertisedRoutesAsync(String resourceGroupName, String hubName, @@ -1330,13 +1325,13 @@ private Mono>> listAdvertisedRoutesAsync(String reso /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Map> listAdvertisedRoutes(String resourceGroupName, String hubName, @@ -1347,14 +1342,14 @@ public Map> listAdvertisedRoutes(String resourceGroupNam /** * Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param hubName The name of the virtual hub. - * @param connectionName The name of the virtual hub bgp connection. + * @param connectionName The name of the bgp connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return map from virtual router instance to list of peer routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Map> listAdvertisedRoutes(String resourceGroupName, String hubName, @@ -1412,4 +1407,8 @@ private Mono> listNextSinglePageAsync(String n .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + + private static final TypeReference>> TYPE_REFERENCE_MAP_STRING_LIST_PEER_ROUTE + = new TypeReference>>() { + }; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java index c0bea0dd5b5f..abe2ef03fa8f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualHubIpConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.HubIpConfigurationInner; -import com.azure.resourcemanager.network.models.ListVirtualHubIpConfigurationResults; +import com.azure.resourcemanager.network.implementation.models.ListVirtualHubIpConfigurationResults; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,66 +67,64 @@ public final class VirtualHubIpConfigurationsClientImpl implements VirtualHubIpC * The interface defining all the services for NetworkManagementClientVirtualHubIpConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualHubIpConfigurations") public interface VirtualHubIpConfigurationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("ipConfigName") String ipConfigName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("ipConfigName") String ipConfigName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") HubIpConfigurationInner parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") HubIpConfigurationInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("ipConfigName") String ipConfigName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -156,17 +154,18 @@ public Mono> getWithResponseAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, ipConfigName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, ipConfigName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -197,16 +196,17 @@ private Mono> getWithResponseAsync(String reso final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, ipConfigName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, ipConfigName, accept, context); } /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -222,9 +222,10 @@ public Mono getAsync(String resourceGroupName, String v /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -240,9 +241,10 @@ public Response getWithResponse(String resourceGroupNam /** * Retrieves the details of a Virtual Hub Ip configuration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -257,9 +259,10 @@ public HubIpConfigurationInner get(String resourceGroupName, String virtualHubNa * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -293,10 +296,12 @@ public Mono>> createOrUpdateWithResponseAsync(String r parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, ipConfigName, apiVersion, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, ipConfigName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -304,9 +309,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,19 +347,21 @@ private Mono>> createOrUpdateWithResponseAsync(String parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, ipConfigName, apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, ipConfigName, contentType, accept, parameters, context); } /** * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -374,9 +382,10 @@ public PollerFlux, HubIpConfigurationInner> * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,9 +408,10 @@ private PollerFlux, HubIpConfigurationInner> * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -419,9 +429,10 @@ public SyncPoller, HubIpConfigurationInner> * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -441,9 +452,10 @@ public SyncPoller, HubIpConfigurationInner> * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -461,9 +473,10 @@ public Mono createOrUpdateAsync(String resourceGroupNam * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -482,9 +495,10 @@ private Mono createOrUpdateAsync(String resourceGroupNa * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -501,9 +515,10 @@ public HubIpConfigurationInner createOrUpdate(String resourceGroupName, String v * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing * VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Hub Ip Configuration parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -520,9 +535,10 @@ public HubIpConfigurationInner createOrUpdate(String resourceGroupName, String v /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -550,19 +566,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, ipConfigName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, ipConfigName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -591,18 +607,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, ipConfigName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, ipConfigName, context); } /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -620,9 +636,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -642,9 +659,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -659,9 +677,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -677,9 +696,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -694,9 +714,10 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -713,9 +734,10 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -728,9 +750,10 @@ public void delete(String resourceGroupName, String virtualHubName, String ipCon /** * Deletes a VirtualHubIpConfiguration. * - * @param resourceGroupName The resource group name of the VirtualHubBgpConnection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. - * @param ipConfigName The name of the ipconfig. + * @param ipConfigName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -744,7 +767,7 @@ public void delete(String resourceGroupName, String virtualHubName, String ipCon /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -773,8 +796,8 @@ private Mono> listSinglePageAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -783,7 +806,7 @@ private Mono> listSinglePageAsync(String /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -814,8 +837,8 @@ private Mono> listSinglePageAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -823,7 +846,7 @@ private Mono> listSinglePageAsync(String /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -839,7 +862,7 @@ public PagedFlux listAsync(String resourceGroupName, St /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -857,7 +880,7 @@ private PagedFlux listAsync(String resourceGroupName, S /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -872,7 +895,7 @@ public PagedIterable list(String resourceGroupName, Str /** * Retrieves the details of all VirtualHubIpConfigurations. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java index 33a01fceff06..64168780242c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,8 +33,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualHubRouteTableV2SClient; import com.azure.resourcemanager.network.fluent.models.VirtualHubRouteTableV2Inner; +import com.azure.resourcemanager.network.implementation.models.ListVirtualHubRouteTableV2sResult; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.ListVirtualHubRouteTableV2SResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -68,65 +68,63 @@ public final class VirtualHubRouteTableV2SClientImpl implements VirtualHubRouteT * The interface defining all the services for NetworkManagementClientVirtualHubRouteTableV2S to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualHubRouteTableV2S") public interface VirtualHubRouteTableV2SService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualHubRouteTableV2Inner virtualHubRouteTableV2Parameters, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualHubName") String virtualHubName, @PathParam("routeTableName") String routeTableName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -157,16 +155,16 @@ public Mono> getWithResponseAsync(String r final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeTableName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,15 +196,15 @@ private Mono> getWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeTableName, accept, context); } /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -223,8 +221,8 @@ public Mono getAsync(String resourceGroupName, Stri /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -241,8 +239,8 @@ public Response getWithResponse(String resourceGrou /** * Retrieves the details of a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -257,8 +255,8 @@ public VirtualHubRouteTableV2Inner get(String resourceGroupName, String virtualH /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,19 +292,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r virtualHubRouteTableV2Parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, virtualHubRouteTableV2Parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeTableName, contentType, accept, + virtualHubRouteTableV2Parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -344,17 +343,19 @@ private Mono>> createOrUpdateWithResponseAsync(String virtualHubRouteTableV2Parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, virtualHubRouteTableV2Parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, routeTableName, contentType, accept, virtualHubRouteTableV2Parameters, + context); } /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -376,8 +377,8 @@ public PollerFlux, VirtualHubRouteTableV /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -401,8 +402,8 @@ private PollerFlux, VirtualHubRouteTable /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -423,8 +424,8 @@ public SyncPoller, VirtualHubRouteTableV /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -446,8 +447,8 @@ public SyncPoller, VirtualHubRouteTableV /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -465,8 +466,8 @@ public Mono createOrUpdateAsync(String resourceGrou /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -485,8 +486,8 @@ private Mono createOrUpdateAsync(String resourceGro /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,8 +505,8 @@ public VirtualHubRouteTableV2Inner createOrUpdate(String resourceGroupName, Stri /** * Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param virtualHubRouteTableV2Parameters Parameters supplied to create or update VirtualHubRouteTableV2. * @param context The context to associate with this operation. @@ -524,8 +525,8 @@ public VirtualHubRouteTableV2Inner createOrUpdate(String resourceGroupName, Stri /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -554,18 +555,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, routeTableName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, routeTableName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -595,17 +595,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, routeTableName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, routeTableName, context); } /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -624,8 +623,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -646,8 +645,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -663,8 +662,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -681,8 +680,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -698,8 +697,8 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -717,8 +716,8 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -732,8 +731,8 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Deletes a VirtualHubRouteTableV2. * - * @param resourceGroupName The resource group name of the VirtualHubRouteTableV2. - * @param virtualHubName The name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHubName The name of the Virtual Hub. * @param routeTableName The name of the VirtualHubRouteTableV2. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -748,7 +747,7 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -777,8 +776,8 @@ private Mono> listSinglePageAsync(Str final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -787,7 +786,7 @@ private Mono> listSinglePageAsync(Str /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -818,8 +817,8 @@ private Mono> listSinglePageAsync(Str final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualHubName, - apiVersion, accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -827,7 +826,7 @@ private Mono> listSinglePageAsync(Str /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -844,7 +843,7 @@ public PagedFlux listAsync(String resourceGroupName /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -863,7 +862,7 @@ private PagedFlux listAsync(String resourceGroupNam /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -879,7 +878,7 @@ public PagedIterable list(String resourceGroupName, /** * Retrieves the details of all VirtualHubRouteTableV2s. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java index 3f636b748310..ad2cd6980c77 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,10 +37,10 @@ import com.azure.resourcemanager.network.fluent.models.EffectiveRouteMapRouteListInner; import com.azure.resourcemanager.network.fluent.models.VirtualHubEffectiveRouteListInner; import com.azure.resourcemanager.network.fluent.models.VirtualHubInner; +import com.azure.resourcemanager.network.implementation.models.ListVirtualHubsResult; import com.azure.resourcemanager.network.models.EffectiveRoutesParameters; import com.azure.resourcemanager.network.models.GetInboundRoutesParameters; import com.azure.resourcemanager.network.models.GetOutboundRoutesParameters; -import com.azure.resourcemanager.network.models.ListVirtualHubsResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -79,107 +79,100 @@ public final class VirtualHubsClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VirtualHubInner virtualHubParameters, @HeaderParam("Accept") String accept, + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualHubInner virtualHubParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject virtualHubParameters, @HeaderParam("Accept") String accept, + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject virtualHubParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getEffectiveVirtualHubRoutes(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getEffectiveVirtualHubRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") EffectiveRoutesParameters effectiveRoutesParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EffectiveRoutesParameters effectiveRoutesParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getInboundRoutes(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getInboundRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetInboundRoutesParameters getInboundRoutesParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetInboundRoutesParameters getInboundRoutesParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getOutboundRoutes(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getOutboundRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualHubName") String virtualHubName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetOutboundRoutesParameters getOutboundRoutesParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualHubName") String virtualHubName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetOutboundRoutesParameters getOutboundRoutesParameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -187,13 +180,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -221,15 +214,15 @@ public Mono> getByResourceGroupWithResponseAsync(Strin final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,14 +251,14 @@ private Mono> getByResourceGroupWithResponseAsync(Stri final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, accept, context); } /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -281,7 +274,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, S /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,7 +291,7 @@ public Response getByResourceGroupWithResponse(String resourceG /** * Retrieves the details of a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -313,7 +306,7 @@ public VirtualHubInner getByResourceGroup(String resourceGroupName, String virtu /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -346,17 +339,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r virtualHubParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, contentType, accept, + virtualHubParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -390,16 +385,17 @@ private Mono>> createOrUpdateWithResponseAsync(String virtualHubParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, virtualHubParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, contentType, accept, virtualHubParameters, context); } /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -419,7 +415,7 @@ public PollerFlux, VirtualHubInner> beginCreateOrUpd /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -441,7 +437,7 @@ private PollerFlux, VirtualHubInner> beginCreateOrUp /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -458,7 +454,7 @@ public SyncPoller, VirtualHubInner> beginCreateOrUpd /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -477,7 +473,7 @@ public SyncPoller, VirtualHubInner> beginCreateOrUpd /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -495,7 +491,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -514,7 +510,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -531,7 +527,7 @@ public VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHu /** * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to create or update VirtualHub. * @param context The context to associate with this operation. @@ -549,7 +545,7 @@ public VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHu /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -582,17 +578,19 @@ public Mono> updateTagsWithResponseAsync(String resour virtualHubParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, contentType, accept, virtualHubParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @param context The context to associate with this operation. @@ -626,16 +624,17 @@ private Mono> updateTagsWithResponseAsync(String resou virtualHubParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, virtualHubParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, contentType, accept, virtualHubParameters, context); } /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -653,7 +652,7 @@ public Mono updateTagsAsync(String resourceGroupName, String vi /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @param context The context to associate with this operation. @@ -671,7 +670,7 @@ public Response updateTagsWithResponse(String resourceGroupName /** * Updates VirtualHub tags. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param virtualHubParameters Parameters supplied to update VirtualHub tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -688,7 +687,7 @@ public VirtualHubInner updateTags(String resourceGroupName, String virtualHubNam /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -713,17 +712,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -750,16 +748,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualHubName, context); } /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -776,7 +773,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -796,7 +793,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -811,7 +808,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -828,7 +825,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -844,7 +841,7 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName) { /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -861,7 +858,7 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -875,7 +872,7 @@ public void delete(String resourceGroupName, String virtualHubName) { /** * Deletes a VirtualHub. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -890,7 +887,7 @@ public void delete(String resourceGroupName, String virtualHubName, Context cont /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -914,8 +911,8 @@ private Mono> listByResourceGroupSinglePageAsync( final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -924,7 +921,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -951,8 +948,8 @@ private Mono> listByResourceGroupSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -960,7 +957,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -975,7 +972,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupN /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -991,7 +988,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroup /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1005,7 +1002,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNa /** * Lists all the VirtualHubs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1038,7 +1035,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1068,7 +1065,7 @@ private Mono> listSinglePageAsync(Context context final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1129,7 +1126,7 @@ public PagedIterable list(Context context) { /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1162,16 +1159,16 @@ public Mono>> getEffectiveVirtualHubRoutesWithResponse final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, virtualHubName, apiVersion, - effectiveRoutesParameters, accept, context)) + .withContext(context -> service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, accept, effectiveRoutesParameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -1205,14 +1202,15 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, effectiveRoutesParameters, accept, context); + return service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, accept, effectiveRoutesParameters, + context); } /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1235,7 +1233,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1257,7 +1255,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -1282,7 +1280,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1301,7 +1299,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -1324,7 +1322,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1344,7 +1342,7 @@ public Mono getEffectiveVirtualHubRoutesAsync /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1364,7 +1362,7 @@ public Mono getEffectiveVirtualHubRoutesAsync /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -1384,7 +1382,7 @@ private Mono getEffectiveVirtualHubRoutesAsyn /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1401,7 +1399,7 @@ public VirtualHubEffectiveRouteListInner getEffectiveVirtualHubRoutes(String res /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param effectiveRoutesParameters Parameters supplied to get the effective routes for a specific resource. * @param context The context to associate with this operation. @@ -1420,7 +1418,7 @@ public VirtualHubEffectiveRouteListInner getEffectiveVirtualHubRoutes(String res /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1454,17 +1452,19 @@ public Mono>> getInboundRoutesWithResponseAsync(String getInboundRoutesParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getInboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, getInboundRoutesParameters, accept, context)) + .withContext(context -> service.getInboundRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, contentType, accept, + getInboundRoutesParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1499,16 +1499,17 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin getInboundRoutesParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getInboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, getInboundRoutesParameters, accept, context); + return service.getInboundRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, contentType, accept, getInboundRoutesParameters, context); } /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1531,7 +1532,7 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1556,7 +1557,7 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1576,7 +1577,7 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1597,7 +1598,7 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1616,7 +1617,7 @@ public Mono getInboundRoutesAsync(String resour /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1636,7 +1637,7 @@ private Mono getInboundRoutesAsync(String resou /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1653,7 +1654,7 @@ public EffectiveRouteMapRouteListInner getInboundRoutes(String resourceGroupName /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1671,7 +1672,7 @@ public EffectiveRouteMapRouteListInner getInboundRoutes(String resourceGroupName /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1705,18 +1706,19 @@ public Mono>> getOutboundRoutesWithResponseAsync(Strin getOutboundRoutesParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getOutboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualHubName, apiVersion, getOutboundRoutesParameters, accept, context)) + .withContext(context -> service.getOutboundRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualHubName, contentType, accept, + getOutboundRoutesParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1751,16 +1753,17 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri getOutboundRoutesParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getOutboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualHubName, apiVersion, getOutboundRoutesParameters, accept, context); + return service.getOutboundRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualHubName, contentType, accept, getOutboundRoutesParameters, context); } /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1783,7 +1786,7 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1808,7 +1811,7 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1828,7 +1831,7 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1849,7 +1852,7 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1868,7 +1871,7 @@ public Mono getOutboundRoutesAsync(String resou /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. @@ -1889,7 +1892,7 @@ private Mono getOutboundRoutesAsync(String reso /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1906,7 +1909,7 @@ public EffectiveRouteMapRouteListInner getOutboundRoutes(String resourceGroupNam /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * - * @param resourceGroupName The resource group name of the VirtualHub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualHubName The name of the VirtualHub. * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection resource. * @param context The context to associate with this operation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkAppliancesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkAppliancesClientImpl.java index 53b7b326f145..beecfe86a774 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkAppliancesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkAppliancesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,8 +34,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualNetworkAppliancesClient; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkApplianceInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkApplianceListResult; import com.azure.resourcemanager.network.models.TagsObject; -import com.azure.resourcemanager.network.models.VirtualNetworkApplianceListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -73,296 +73,86 @@ public final class VirtualNetworkAppliancesClientImpl implements InnerSupportsGe * The interface defining all the services for NetworkManagementClientVirtualNetworkAppliances to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualNetworkAppliances") public interface VirtualNetworkAppliancesService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkApplianceName") String virtualNetworkApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkApplianceName") String virtualNetworkApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkApplianceName") String virtualNetworkApplianceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkApplianceInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkApplianceInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkApplianceName") String virtualNetworkApplianceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkApplianceName") String virtualNetworkApplianceName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkAppliances") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkAppliances") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkApplianceName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - virtualNetworkApplianceName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkApplianceName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkApplianceName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String virtualNetworkApplianceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkApplianceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String virtualNetworkApplianceName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, - String virtualNetworkApplianceName) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName).getSyncPoller(); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName, context).getSyncPoller(); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName) { - return beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkApplianceName) { - deleteAsync(resourceGroupName, virtualNetworkApplianceName).block(); - } - - /** - * Deletes the specified virtual network appliance. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkApplianceName, Context context) { - deleteAsync(resourceGroupName, virtualNetworkApplianceName, context).block(); - } - /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,6 +167,10 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -385,22 +179,18 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualNetworkApplianceName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkApplianceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -416,6 +206,10 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -424,21 +218,17 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualNetworkApplianceName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkApplianceName, accept, context); } /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -455,7 +245,7 @@ public Mono getByResourceGroupAsync(String resourc /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -472,7 +262,7 @@ public Response getByResourceGroupWithResponse(Str /** * Gets information about the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -488,7 +278,7 @@ public VirtualNetworkApplianceInner getByResourceGroup(String resourceGroupName, /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,6 +294,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -512,27 +306,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualNetworkApplianceName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkApplianceName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -549,6 +341,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -557,26 +353,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkApplianceName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkApplianceName, contentType, accept, parameters, context); } /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -597,7 +390,7 @@ public PollerFlux, VirtualNetworkApplia /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -621,7 +414,7 @@ private PollerFlux, VirtualNetworkAppli /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -639,7 +432,7 @@ public SyncPoller, VirtualNetworkApplia /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -659,7 +452,7 @@ public SyncPoller, VirtualNetworkApplia /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -677,7 +470,7 @@ public Mono createOrUpdateAsync(String resourceGro /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -696,7 +489,7 @@ private Mono createOrUpdateAsync(String resourceGr /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -713,7 +506,7 @@ public VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, Str /** * Creates or updates a virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to the create or update virtual network appliance operation. * @param context The context to associate with this operation. @@ -731,7 +524,7 @@ public VirtualNetworkApplianceInner createOrUpdate(String resourceGroupName, Str /** * Updates a virtual network appliance tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -747,6 +540,10 @@ public Mono> updateTagsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -755,131 +552,339 @@ public Mono> updateTagsWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkApplianceName, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a virtual network appliance tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param parameters Parameters supplied to update virtual network appliance tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a virtual network appliance in a resource group along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkApplianceName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); + } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkApplianceName, contentType, accept, parameters, context); + } + + /** + * Updates a virtual network appliance tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param parameters Parameters supplied to update virtual network appliance tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a virtual network appliance in a resource group on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, + String virtualNetworkApplianceName, TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates a virtual network appliance tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param parameters Parameters supplied to update virtual network appliance tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a virtual network appliance in a resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String virtualNetworkApplianceName, TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, parameters, context).block(); + } + + /** + * Updates a virtual network appliance tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param parameters Parameters supplied to update virtual network appliance tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a virtual network appliance in a resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtualNetworkApplianceName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, virtualNetworkApplianceName, parameters, Context.NONE) + .getValue(); + } + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkApplianceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - virtualNetworkApplianceName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkApplianceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates a virtual network appliance tags. + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkApplianceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkApplianceName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkApplianceName, context); + } + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String virtualNetworkApplianceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkApplianceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String virtualNetworkApplianceName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, + String virtualNetworkApplianceName) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName).getSyncPoller(); + } + + /** + * Deletes the specified virtual network appliance. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param parameters Parameters supplied to update virtual network appliance tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a virtual network appliance in a resource group along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkApplianceName, TagsObject parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkApplianceName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkApplianceName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkApplianceName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkApplianceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName, context).getSyncPoller(); } /** - * Updates a virtual network appliance tags. + * Deletes the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a virtual network appliance in a resource group on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, - String virtualNetworkApplianceName, TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName) { + return beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network appliance tags. + * Deletes the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param parameters Parameters supplied to update virtual network appliance tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a virtual network appliance in a resource group along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, - String virtualNetworkApplianceName, TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkApplianceName, parameters, context).block(); + private Mono deleteAsync(String resourceGroupName, String virtualNetworkApplianceName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualNetworkApplianceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network appliance tags. + * Deletes the specified virtual network appliance. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkApplianceName The name of the virtual network appliance. - * @param parameters Parameters supplied to update virtual network appliance tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a virtual network appliance in a resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkApplianceInner updateTags(String resourceGroupName, String virtualNetworkApplianceName, - TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, virtualNetworkApplianceName, parameters, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String virtualNetworkApplianceName) { + deleteAsync(resourceGroupName, virtualNetworkApplianceName).block(); } /** - * Gets all virtual network appliances in a subscription. + * Deletes the specified virtual network appliance. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkApplianceName The name of the virtual network appliance. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkApplianceName, Context context) { + deleteAsync(resourceGroupName, virtualNetworkApplianceName, context).block(); + } + + /** + * Gets all virtual network appliances in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -888,28 +893,34 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all virtual network appliances in a subscription. + * Gets all virtual network appliances in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful + * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -918,88 +929,95 @@ private Mono> listSinglePageAsync(Co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all virtual network appliances in a subscription. + * Gets all virtual network appliances in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. + * @return all virtual network appliances in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all virtual network appliances in a subscription. + * Gets all virtual network appliances in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. + * @return all virtual network appliances in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all virtual network appliances in a subscription. + * Gets all virtual network appliances in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + * @return all virtual network appliances in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all virtual network appliances in a subscription. + * Gets all virtual network appliances in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. + * @return all virtual network appliances in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful + * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1007,35 +1025,29 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful + * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1043,72 +1055,62 @@ public PagedIterable list(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group as paginated response with {@link PagedFlux}. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group as paginated response with {@link PagedFlux}. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group as paginated response with {@link PagedIterable}. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all virtual network appliances in a resource group. + * Gets all virtual network appliances in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group as paginated response with {@link PagedIterable}. + * @return all virtual network appliances in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1118,11 +1120,11 @@ public PagedIterable listByResourceGroup(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful + * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1131,8 +1133,7 @@ private Mono> listAllNextSinglePageA new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1146,11 +1147,11 @@ private Mono> listAllNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful + * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1161,7 +1162,7 @@ private Mono> listAllNextSinglePageA } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1173,11 +1174,11 @@ private Mono> listAllNextSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful + * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1186,7 +1187,8 @@ private Mono> listNextSinglePageAsyn new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1200,11 +1202,11 @@ private Mono> listNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual network appliances in a resource group along with {@link PagedResponse} on successful + * @return all virtual network appliances in a subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -1215,7 +1217,7 @@ private Mono> listNextSinglePageAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java index a24de0dfc755..a2d5a3173f5e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -37,9 +37,9 @@ import com.azure.resourcemanager.network.fluent.models.ConnectionResetSharedKeyInner; import com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyInner; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayConnectionInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkGatewayConnectionListResult; import com.azure.resourcemanager.network.models.ErrorException; import com.azure.resourcemanager.network.models.TagsObject; -import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionListResult; import com.azure.resourcemanager.network.models.VpnPacketCaptureStartParameters; import com.azure.resourcemanager.network.models.VpnPacketCaptureStopParameters; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -79,147 +79,271 @@ public final class VirtualNetworkGatewayConnectionsClientImpl * The interface defining all the services for NetworkManagementClientVirtualNetworkGatewayConnections to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualNetworkGatewayConnections") public interface VirtualNetworkGatewayConnectionsService { - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkGatewayConnectionInner parameters, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") - @ExpectedResponses({ 200, 202, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkGatewayConnectionInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") - @ExpectedResponses({ 200, 201 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> setSharedKey(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ConnectionSharedKeyInner parameters, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSharedKey(@HostParam("$host") String endpoint, + Mono> listByResourceGroup( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> setSharedKey(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionSharedKeyInner parameters, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, + Mono> getSharedKey(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetSharedKey(@HostParam("$host") String endpoint, + Mono>> resetSharedKey(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ConnectionResetSharedKeyInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionResetSharedKeyInner parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/startPacketCapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> startPacketCapture(@HostParam("$host") String endpoint, + Mono>> startPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnPacketCaptureStartParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnPacketCaptureStartParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/stopPacketCapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> stopPacketCapture(@HostParam("$host") String endpoint, + Mono>> stopPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnPacketCaptureStopParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnPacketCaptureStopParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/getikesas") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getIkeSas(@HostParam("$host") String endpoint, + Mono>> getIkeSas(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetConnection(@HostParam("$host") String endpoint, + Mono>> resetConnection(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> + getByResourceGroupWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync( + String resourceGroupName, String virtualNetworkGatewayConnectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, context); + } + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String virtualNetworkGatewayConnectionName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context) + .block(); + } + + /** + * Gets the specified virtual network gateway connection by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified virtual network gateway connection by resource group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkGatewayConnectionInner getByResourceGroup(String resourceGroupName, + String virtualNetworkGatewayConnectionName) { + return getByResourceGroupWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, Context.NONE) + .getValue(); + } + /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -235,6 +359,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -243,28 +371,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -281,6 +406,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -289,26 +418,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context); } /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -330,7 +456,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -354,7 +480,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,7 +499,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -394,7 +520,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -412,7 +538,7 @@ public Mono createOrUpdateAsync(String res /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -432,7 +558,7 @@ private Mono createOrUpdateAsync(String re /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -449,7 +575,7 @@ public VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupN /** * Creates or updates a virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the create or update virtual network gateway connection operation. * @param context The context to associate with this operation. @@ -465,23 +591,28 @@ public VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupN } /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group along with {@link Response} on - * successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getByResourceGroupWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + public Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -490,37 +621,45 @@ public VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupN return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group along with {@link Response} on - * successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String virtualNetworkGatewayConnectionName, Context context) { + private Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -529,74 +668,179 @@ private Mono> getByResourceGroupW return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context); } /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, VirtualNetworkGatewayConnectionInner> + beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, + TagsObject parameters) { + Mono>> mono + = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), VirtualNetworkGatewayConnectionInner.class, + VirtualNetworkGatewayConnectionInner.class, this.client.getContext()); + } + /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group along with {@link Response}. + * @return the {@link PollerFlux} for polling of a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, VirtualNetworkGatewayConnectionInner> + beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, + TagsObject parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), VirtualNetworkGatewayConnectionInner.class, + VirtualNetworkGatewayConnectionInner.class, context); + } + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VirtualNetworkGatewayConnectionInner> + beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters) { + return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters) + .getSyncPoller(); + } + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VirtualNetworkGatewayConnectionInner> + beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters, + Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) + .getSyncPoller(); + } + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String virtualNetworkGatewayConnectionName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context) - .block(); + public Mono updateTagsAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters) { + return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified virtual network gateway connection by resource group. + * Updates a virtual network gateway connection tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway connection by resource group. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayConnectionInner getByResourceGroup(String resourceGroupName, - String virtualNetworkGatewayConnectionName) { - return getByResourceGroupWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, Context.NONE) - .getValue(); + private Mono updateTagsAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { + return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters) { + return updateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).block(); + } + + /** + * Updates a virtual network gateway connection tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, + String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { + return updateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).block(); } /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -610,6 +854,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -618,22 +866,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -648,6 +891,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -656,21 +903,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayConnectionName, context); } /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -689,7 +931,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -710,7 +952,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -726,7 +968,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -743,7 +985,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -759,7 +1001,7 @@ public Mono deleteAsync(String resourceGroupName, String virtualNetworkGat /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -777,7 +1019,7 @@ private Mono deleteAsync(String resourceGroupName, String virtualNetworkGa /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -791,7 +1033,7 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayConnect /** * Deletes the specified virtual network Gateway connection. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -804,256 +1046,154 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayConnect } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); - } - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, VirtualNetworkGatewayConnectionInner> - beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, - TagsObject parameters) { - Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters); - return this.client.getLroResult( - mono, this.client.getHttpPipeline(), VirtualNetworkGatewayConnectionInner.class, - VirtualNetworkGatewayConnectionInner.class, this.client.getContext()); - } - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VirtualNetworkGatewayConnectionInner> - beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, - TagsObject parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context); - return this.client.getLroResult( - mono, this.client.getHttpPipeline(), VirtualNetworkGatewayConnectionInner.class, - VirtualNetworkGatewayConnectionInner.class, context); - } - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayConnectionInner> - beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters) - .getSyncPoller(); - } - - /** - * Updates a virtual network gateway connection tags. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayConnectionInner> - beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayConnectionName, TagsObject parameters, - Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .getSyncPoller(); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Updates a virtual network gateway connection tags. + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections + * created. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. - * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response of a VirtualNetworkGatewayConnection list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayConnectionInner updateTags(String resourceGroupName, - String virtualNetworkGatewayConnectionName, TagsObject parameters, Context context) { - return updateTagsAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1069,6 +1209,10 @@ public Mono>> setSharedKeyWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1077,21 +1221,18 @@ public Mono>> setSharedKeyWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.setSharedKey(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext( + context -> service.setSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1099,8 +1240,8 @@ public Mono>> setSharedKeyWithResponseAsync(String res * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -1117,6 +1258,10 @@ private Mono>> setSharedKeyWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1125,28 +1270,25 @@ private Mono>> setSharedKeyWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.setSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.setSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context); } /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1168,8 +1310,8 @@ public PollerFlux, ConnectionSharedKeyInner * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -1193,8 +1335,8 @@ private PollerFlux, ConnectionSharedKeyInne * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1213,8 +1355,8 @@ public SyncPoller, ConnectionSharedKeyInner * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -1235,8 +1377,8 @@ public SyncPoller, ConnectionSharedKeyInner * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1255,8 +1397,8 @@ public Mono setSharedKeyAsync(String resourceGroupName * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @param context The context to associate with this operation. @@ -1277,8 +1419,8 @@ private Mono setSharedKeyAsync(String resourceGroupNam * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation * throughNetwork resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1292,298 +1434,156 @@ public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String vi return setSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters).block(); } - /** - * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key - * for passed virtual network gateway connection in the specified resource group through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. - * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation - * throughNetwork resource provider. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetConnectionSharedKey API service call. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, - ConnectionSharedKeyInner parameters, Context context) { - return setSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).block(); - } - - /** - * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual - * network gateway connection shared key through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetConnectionSharedKey API service call along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getSharedKeyWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getSharedKey(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual - * network gateway connection shared key through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetConnectionSharedKey API service call along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSharedKeyWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual - * network gateway connection shared key through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetConnectionSharedKey API service call on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getSharedKeyAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName) { - return getSharedKeyWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual - * network gateway connection shared key through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for GetConnectionSharedKey API service call along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSharedKeyWithResponse(String resourceGroupName, - String virtualNetworkGatewayConnectionName, Context context) { - return getSharedKeyWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context).block(); - } - - /** - * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual - * network gateway connection shared key through Network resource provider. + /** + * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key + * for passed virtual network gateway connection in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation + * throughNetwork resource provider. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response for GetConnectionSharedKey API service call. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyInner getSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName) { - return getSharedKeyWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, Context.NONE) - .getValue(); + public ConnectionSharedKeyInner setSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName, + ConnectionSharedKeyInner parameters, Context context) { + return setSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context).block(); } /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual + * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call along with {@link PagedResponse} - * on successful completion of {@link Mono}. + * @return response for GetConnectionSharedKey API service call along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono> getSharedKeyWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { + if (virtualNetworkGatewayConnectionName == null) { return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext( + context -> service.getSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual + * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call along with {@link PagedResponse} - * on successful completion of {@link Mono}. + * @return response for GetConnectionSharedKey API service call along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + private Mono> getSharedKeyWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { + if (virtualNetworkGatewayConnectionName == null) { return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.getSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, context); } /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual + * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedFlux}. + * @return response for GetConnectionSharedKey API service call on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getSharedKeyAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName) { + return getSharedKeyWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual + * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedIterable}. + * @return response for GetConnectionSharedKey API service call along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSharedKeyWithResponse(String resourceGroupName, + String virtualNetworkGatewayConnectionName, Context context) { + return getSharedKeyWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, context).block(); } /** - * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections - * created. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual + * network gateway connection shared key through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call as paginated response with - * {@link PagedIterable}. + * @return response for GetConnectionSharedKey API service call. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, - Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionSharedKeyInner getSharedKey(String resourceGroupName, String virtualNetworkGatewayConnectionName) { + return getSharedKeyWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, Context.NONE) + .getValue(); } /** @@ -1591,15 +1591,14 @@ public PagedIterable listByResourceGroup(S * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> resetSharedKeyWithResponseAsync(String resourceGroupName, @@ -1608,6 +1607,10 @@ public Mono>> resetSharedKeyWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1616,21 +1619,18 @@ public Mono>> resetSharedKeyWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resetSharedKey(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.resetSharedKey(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1639,16 +1639,15 @@ public Mono>> resetSharedKeyWithResponseAsync(String r * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resetSharedKeyWithResponseAsync(String resourceGroupName, @@ -1657,6 +1656,10 @@ private Mono>> resetSharedKeyWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1665,20 +1668,17 @@ private Mono>> resetSharedKeyWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resetSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.resetSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context); } /** @@ -1686,14 +1686,14 @@ private Mono>> resetSharedKeyWithResponseAsync(String * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the virtual network connection reset shared key. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ConnectionResetSharedKeyInner> @@ -1711,15 +1711,15 @@ private Mono>> resetSharedKeyWithResponseAsync(String * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the virtual network connection reset shared key. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConnectionResetSharedKeyInner> @@ -1738,14 +1738,14 @@ private Mono>> resetSharedKeyWithResponseAsync(String * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the virtual network connection reset shared key. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConnectionResetSharedKeyInner> beginResetSharedKey( @@ -1760,15 +1760,15 @@ public SyncPoller, ConnectionResetShar * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the virtual network connection reset shared key. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConnectionResetSharedKeyInner> beginResetSharedKey( @@ -1784,14 +1784,14 @@ public SyncPoller, ConnectionResetShar * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono resetSharedKeyAsync(String resourceGroupName, @@ -1805,15 +1805,15 @@ public Mono resetSharedKeyAsync(String resourceGr * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resetSharedKeyAsync(String resourceGroupName, @@ -1828,14 +1828,14 @@ private Mono resetSharedKeyAsync(String resourceG * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, @@ -1848,15 +1848,15 @@ public ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, * key for passed virtual network gateway connection in the specified resource group through Network resource * provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared key Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Parameters supplied to the begin reset virtual network gateway connection shared key operation * through network resource provider. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the virtual network connection reset shared key. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, @@ -1867,7 +1867,7 @@ public ConnectionResetSharedKeyInner resetSharedKey(String resourceGroupName, /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -1883,6 +1883,10 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1891,26 +1895,22 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -1927,6 +1927,10 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1935,25 +1939,20 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context); + return service.startPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, parameters, context); } /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -1974,7 +1973,7 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1994,7 +1993,7 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -2017,7 +2016,7 @@ private PollerFlux, String> beginStartPacketCaptureAsync(Stri /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -2035,7 +2034,7 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -2056,7 +2055,7 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -2075,7 +2074,7 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String vir /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -2092,7 +2091,7 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String vir /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -2113,7 +2112,7 @@ private Mono startPacketCaptureAsync(String resourceGroupName, String vi /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -2129,7 +2128,7 @@ public String startPacketCapture(String resourceGroupName, String virtualNetwork /** * Starts packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway * connection. @@ -2149,8 +2148,8 @@ public String startPacketCapture(String resourceGroupName, String virtualNetwork /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2165,6 +2164,10 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2173,29 +2176,26 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -2211,6 +2211,10 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2219,28 +2223,24 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context); + return service.stopPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, contentType, accept, parameters, context); } /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2260,8 +2260,8 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -2283,8 +2283,8 @@ private PollerFlux, String> beginStopPacketCaptureAsync(Strin /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2302,8 +2302,8 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -2323,8 +2323,8 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2342,8 +2342,8 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String virt /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -2363,8 +2363,8 @@ private Mono stopPacketCaptureAsync(String resourceGroupName, String vir /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2381,8 +2381,8 @@ public String stopPacketCapture(String resourceGroupName, String virtualNetworkG /** * Stops packet capture on virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway * connection. * @param context The context to associate with this operation. @@ -2401,8 +2401,8 @@ public String stopPacketCapture(String resourceGroupName, String virtualNetworkG /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2415,6 +2415,10 @@ public Mono>> getIkeSasWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2423,23 +2427,20 @@ public Mono>> getIkeSasWithResponseAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getIkeSas(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.getIkeSas(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2453,6 +2454,10 @@ private Mono>> getIkeSasWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2461,22 +2466,18 @@ private Mono>> getIkeSasWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getIkeSas(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getIkeSas(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, accept, context); } /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2494,8 +2495,8 @@ public PollerFlux, String> beginGetIkeSasAsync(String resourc /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2515,8 +2516,8 @@ private PollerFlux, String> beginGetIkeSasAsync(String resour /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2531,8 +2532,8 @@ public SyncPoller, String> beginGetIkeSas(String resourceGrou /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2549,8 +2550,8 @@ public SyncPoller, String> beginGetIkeSas(String resourceGrou /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2565,8 +2566,8 @@ public Mono getIkeSasAsync(String resourceGroupName, String virtualNetwo /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2583,8 +2584,8 @@ private Mono getIkeSasAsync(String resourceGroupName, String virtualNetw /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2598,8 +2599,8 @@ public String getIkeSas(String resourceGroupName, String virtualNetworkGatewayCo /** * Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2614,8 +2615,8 @@ public String getIkeSas(String resourceGroupName, String virtualNetworkGatewayCo /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2628,6 +2629,10 @@ public Mono>> resetConnectionWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2636,23 +2641,18 @@ public Mono>> resetConnectionWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resetConnection(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.resetConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2666,6 +2666,10 @@ private Mono>> resetConnectionWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2674,22 +2678,17 @@ private Mono>> resetConnectionWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resetConnection(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.resetConnection(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayConnectionName, context); } /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2707,8 +2706,8 @@ public PollerFlux, Void> beginResetConnectionAsync(String resou /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2728,8 +2727,8 @@ private PollerFlux, Void> beginResetConnectionAsync(String reso /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2744,8 +2743,8 @@ public SyncPoller, Void> beginResetConnection(String resourceGr /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2762,8 +2761,8 @@ public SyncPoller, Void> beginResetConnection(String resourceGr /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2778,8 +2777,8 @@ public Mono resetConnectionAsync(String resourceGroupName, String virtualN /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2796,8 +2795,8 @@ private Mono resetConnectionAsync(String resourceGroupName, String virtual /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2810,8 +2809,8 @@ public void resetConnection(String resourceGroupName, String virtualNetworkGatew /** * Resets the virtual network gateway connection specified. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2829,8 +2828,8 @@ public void resetConnection(String resourceGroupName, String virtualNetworkGatew * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call along with {@link PagedResponse} - * on successful completion of {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -2856,8 +2855,8 @@ private Mono> listNextSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for the ListVirtualNetworkGatewayConnections API service call along with {@link PagedResponse} - * on successful completion of {@link Mono}. + * @return the response of a VirtualNetworkGatewayConnection list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java index 00334b9d2b44..0e9e87a01af7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualNetworkGatewayNatRulesClient; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayNatRuleInner; -import com.azure.resourcemanager.network.models.ListVirtualNetworkGatewayNatRulesResult; +import com.azure.resourcemanager.network.implementation.models.ListVirtualNetworkGatewayNatRulesResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,68 +67,67 @@ public final class VirtualNetworkGatewayNatRulesClientImpl implements VirtualNet * The interface defining all the services for NetworkManagementClientVirtualNetworkGatewayNatRules to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualNetworkGatewayNatRules") public interface VirtualNetworkGatewayNatRulesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VirtualNetworkGatewayNatRuleInner natRuleParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkGatewayNatRuleInner natRuleParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @PathParam("natRuleName") String natRuleName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("natRuleName") String natRuleName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVirtualNetworkGateway( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVirtualNetworkGatewayNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -160,17 +159,18 @@ public Mono> getWithResponseAsync(St final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, natRuleName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, natRuleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -203,16 +203,17 @@ private Mono> getWithResponseAsync(S final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualNetworkGatewayName, natRuleName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayName, natRuleName, accept, context); } /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -228,9 +229,10 @@ public Mono getAsync(String resourceGroupName /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -246,9 +248,10 @@ public Response getWithResponse(String resour /** * Retrieves the details of a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -263,9 +266,10 @@ public VirtualNetworkGatewayNatRuleInner get(String resourceGroupName, String vi /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -302,20 +306,22 @@ public Mono>> createOrUpdateWithResponseAsync(String r natRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, natRuleName, apiVersion, natRuleParameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, natRuleName, contentType, + accept, natRuleParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -354,18 +360,20 @@ private Mono>> createOrUpdateWithResponseAsync(String natRuleParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualNetworkGatewayName, natRuleName, apiVersion, natRuleParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, natRuleName, contentType, accept, natRuleParameters, context); } /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -386,9 +394,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -411,9 +420,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -432,9 +442,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,9 +466,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -475,9 +487,10 @@ public Mono createOrUpdateAsync(String resour /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,9 +509,10 @@ private Mono createOrUpdateAsync(String resou /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -515,9 +529,10 @@ public VirtualNetworkGatewayNatRuleInner createOrUpdate(String resourceGroupName /** * Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param natRuleParameters Parameters supplied to create or Update a Nat Rule. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -535,9 +550,10 @@ public VirtualNetworkGatewayNatRuleInner createOrUpdate(String resourceGroupName /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -566,19 +582,19 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, natRuleName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, natRuleName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -608,18 +624,18 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualNetworkGatewayName, natRuleName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayName, natRuleName, context); } /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -637,9 +653,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -659,9 +676,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -676,9 +694,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -695,9 +714,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -712,9 +732,10 @@ public Mono deleteAsync(String resourceGroupName, String virtualNetworkGat /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -731,9 +752,10 @@ private Mono deleteAsync(String resourceGroupName, String virtualNetworkGa /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -746,9 +768,10 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayName, S /** * Deletes a nat rule. * - * @param resourceGroupName The resource group name of the Virtual Network Gateway. - * @param virtualNetworkGatewayName The name of the gateway. - * @param natRuleName The name of the nat rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param natRuleName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -763,8 +786,8 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayName, S /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -792,8 +815,9 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayName, S } final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listByVirtualNetworkGateway(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context)) + return FluxUtil + .withContext(context -> service.listByVirtualNetworkGateway(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -802,8 +826,8 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayName, S /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -834,8 +858,8 @@ private Mono> listByVirtualNetw final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVirtualNetworkGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, accept, context) + .listByVirtualNetworkGateway(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -843,8 +867,8 @@ private Mono> listByVirtualNetw /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -862,8 +886,8 @@ public PagedFlux listByVirtualNetworkGatewayA /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -882,8 +906,8 @@ private PagedFlux listByVirtualNetworkGateway /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -899,8 +923,8 @@ public PagedIterable listByVirtualNetworkGate /** * Retrieves all nat rules for a particular virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java index 6f8b5e0c2fa9..4c55f6044c18 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -46,12 +46,12 @@ import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayInner; import com.azure.resourcemanager.network.fluent.models.VpnClientConnectionHealthDetailListResultInner; import com.azure.resourcemanager.network.fluent.models.VpnClientIPsecParametersInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkGatewayListConnectionsResult; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkGatewayListResult; import com.azure.resourcemanager.network.models.ErrorException; import com.azure.resourcemanager.network.models.ExpressRouteFailoverStopApiParameters; import com.azure.resourcemanager.network.models.P2SVpnConnectionRequest; import com.azure.resourcemanager.network.models.TagsObject; -import com.azure.resourcemanager.network.models.VirtualNetworkGatewayListConnectionsResult; -import com.azure.resourcemanager.network.models.VirtualNetworkGatewayListResult; import com.azure.resourcemanager.network.models.VirtualNetworkGatewayMigrationParameters; import com.azure.resourcemanager.network.models.VpnClientParameters; import com.azure.resourcemanager.network.models.VpnDeviceScriptParameters; @@ -94,357 +94,348 @@ public final class VirtualNetworkGatewaysClientImpl * The interface defining all the services for NetworkManagementClientVirtualNetworkGateways to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualNetworkGateways") public interface VirtualNetworkGatewaysService { - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkGatewayInner parameters, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") - @ExpectedResponses({ 200, 202, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkGatewayInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listConnections(@HostParam("$host") String endpoint, + Mono> listConnections( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reset(@HostParam("$host") String endpoint, + Mono>> reset(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("gatewayVip") String gatewayVip, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("gatewayVip") String gatewayVip, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetVpnClientSharedKey(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, + Mono>> resetVpnClientSharedKey(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> generatevpnclientpackage(@HostParam("$host") String endpoint, + Mono>> generatevpnclientpackage(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnClientParameters parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnClientParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> generateVpnProfile(@HostParam("$host") String endpoint, + Mono>> generateVpnProfile(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnClientParameters parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnClientParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getVpnProfilePackageUrl(@HostParam("$host") String endpoint, + Mono>> getVpnProfilePackageUrl(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getBgpPeerStatus(@HostParam("$host") String endpoint, + Mono>> getBgpPeerStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, @QueryParam("peer") String peer, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> supportedVpnDevices(@HostParam("$host") String endpoint, + Mono> supportedVpnDevices(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/listRadiusSecrets") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listRadiusSecrets(@HostParam("$host") String endpoint, + Mono> listRadiusSecrets(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getLearnedRoutes(@HostParam("$host") String endpoint, + Mono>> getLearnedRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getAdvertisedRoutes(@HostParam("$host") String endpoint, + Mono>> getAdvertisedRoutes(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, @QueryParam("peer") String peer, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getResiliencyInformation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getResiliencyInformation(@HostParam("$host") String endpoint, + Mono>> getResiliencyInformation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("attemptRefresh") Boolean attemptRefresh, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("attemptRefresh") Boolean attemptRefresh, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getRoutesInformation") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getRoutesInformation(@HostParam("$host") String endpoint, + Mono>> getRoutesInformation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("attemptRefresh") Boolean attemptRefresh, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("attemptRefresh") Boolean attemptRefresh, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> setVpnclientIpsecParameters(@HostParam("$host") String endpoint, + Mono>> setVpnclientIpsecParameters(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnClientIPsecParametersInner vpnclientIpsecParams, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnClientIPsecParametersInner vpnclientIpsecParams, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getVpnclientIpsecParameters(@HostParam("$host") String endpoint, + Mono>> getVpnclientIpsecParameters(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> vpnDeviceConfigurationScript(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnDeviceScriptParameters parameters, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startPacketCapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> startPacketCapture(@HostParam("$host") String endpoint, + Mono>> startPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnPacketCaptureStartParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnPacketCaptureStartParameters parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopPacketCapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> stopPacketCapture(@HostParam("$host") String endpoint, + Mono>> stopPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnPacketCaptureStopParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnPacketCaptureStopParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverAllTestsDetails") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getFailoverAllTestDetails(@HostParam("$host") String endpoint, + Mono>> getFailoverAllTestDetails(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, @QueryParam("type") String type, - @QueryParam("fetchLatest") boolean fetchLatest, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("fetchLatest") boolean fetchLatest, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverSingleTestDetails") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getFailoverSingleTestDetails(@HostParam("$host") String endpoint, + Mono>> getFailoverSingleTestDetails(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, @QueryParam("peeringLocation") String peeringLocation, @QueryParam("failoverTestId") String failoverTestId, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startSiteFailoverTest") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> startExpressRouteSiteFailoverSimulation(@HostParam("$host") String endpoint, + Mono>> startExpressRouteSiteFailoverSimulation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("peeringLocation") String peeringLocation, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("peeringLocation") String peeringLocation, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopSiteFailoverTest") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stopExpressRouteSiteFailoverSimulation(@HostParam("$host") String endpoint, + Mono>> stopExpressRouteSiteFailoverSimulation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") ExpressRouteFailoverStopApiParameters stopParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ExpressRouteFailoverStopApiParameters stopParameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getVpnclientConnectionHealth(@HostParam("$host") String endpoint, + Mono>> getVpnclientConnectionHealth(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> disconnectVirtualNetworkGatewayVpnConnections( - @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") P2SVpnConnectionRequest request, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") P2SVpnConnectionRequest request, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/prepareMigration") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> invokePrepareMigration(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> invokePrepareMigration(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VirtualNetworkGatewayMigrationParameters migrationParams, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") VirtualNetworkGatewayMigrationParameters migrationParams, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/executeMigration") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> invokeExecuteMigration(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> invokeExecuteMigration(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/commitMigration") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> invokeCommitMigration(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> invokeCommitMigration(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/abortMigration") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> invokeAbortMigration(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> invokeAbortMigration(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkGatewayName") String virtualNetworkGatewayName, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> vpnDeviceConfigurationScript(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnDeviceScriptParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -452,29 +443,32 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listConnectionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Creates or updates a virtual network gateway in the specified resource group. + * Gets the specified virtual network gateway by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified virtual network gateway by resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -483,43 +477,37 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a virtual network gateway in the specified resource group. + * Gets the specified virtual network gateway by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the specified virtual network gateway by resource group along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -528,317 +516,329 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context); } /** - * Creates or updates a virtual network gateway in the specified resource group. + * Gets the specified virtual network gateway by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the specified virtual network gateway by resource group on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, VirtualNetworkGatewayInner> beginCreateOrUpdateAsync( - String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String virtualNetworkGatewayName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Creates or updates a virtual network gateway in the specified resource group. + * Gets the specified virtual network gateway by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VirtualNetworkGatewayInner> beginCreateOrUpdateAsync( - String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, context); - } - - /** - * Creates or updates a virtual network gateway in the specified resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the specified virtual network gateway by resource group along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayInner> beginCreateOrUpdate( - String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); } /** - * Creates or updates a virtual network gateway in the specified resource group. + * Gets the specified virtual network gateway by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the specified virtual network gateway by resource group. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayInner> beginCreateOrUpdate( - String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkGatewayInner getByResourceGroup(String resourceGroupName, String virtualNetworkGatewayName) { + return getByResourceGroupWithResponse(resourceGroupName, virtualNetworkGatewayName, Context.NONE).getValue(); } /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates or updates a virtual network gateway in the specified resource group. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to create or update virtual network gateway operation. - * @param context The context to associate with this operation. + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a virtual network gateway in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context); } /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtualNetworkGatewayName, - VirtualNetworkGatewayInner parameters) { - return createOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, VirtualNetworkGatewayInner> beginCreateOrUpdateAsync( + String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, + this.client.getContext()); } /** * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtualNetworkGatewayName, - VirtualNetworkGatewayInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).block(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, VirtualNetworkGatewayInner> beginCreateOrUpdateAsync( + String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, context); } /** - * Gets the specified virtual network gateway by resource group. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VirtualNetworkGatewayInner> beginCreateOrUpdate( + String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).getSyncPoller(); } /** - * Gets the specified virtual network gateway by resource group. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, VirtualNetworkGatewayInner> beginCreateOrUpdate( + String resourceGroupName, String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context) + .getSyncPoller(); } /** - * Gets the specified virtual network gateway by resource group. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group on successful completion of {@link Mono}. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String virtualNetworkGatewayName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono createOrUpdateAsync(String resourceGroupName, + String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified virtual network gateway by resource group. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group along with {@link Response}. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); + private Mono createOrUpdateAsync(String resourceGroupName, + String virtualNetworkGatewayName, VirtualNetworkGatewayInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the specified virtual network gateway by resource group. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified virtual network gateway by resource group. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayInner getByResourceGroup(String resourceGroupName, String virtualNetworkGatewayName) { - return getByResourceGroupWithResponse(resourceGroupName, virtualNetworkGatewayName, Context.NONE).getValue(); + public VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtualNetworkGatewayName, + VirtualNetworkGatewayInner parameters) { + return createOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters).block(); } /** - * Deletes the specified virtual network gateway. + * Creates or updates a virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName) { + public VirtualNetworkGatewayInner createOrUpdate(String resourceGroupName, String virtualNetworkGatewayName, + VirtualNetworkGatewayInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).block(); + } + + /** + * Updates a virtual network gateway tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -847,36 +847,45 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a common class for general resource information along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { + private Mono>> updateTagsWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName, TagsObject parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -885,169 +894,191 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String virtualNetworkGatewayName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkGatewayName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + public PollerFlux, VirtualNetworkGatewayInner> + beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters) { + Mono>> mono + = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, this.client.getContext()); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { + private PollerFlux, VirtualNetworkGatewayInner> beginUpdateTagsAsync( + String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, context); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName).getSyncPoller(); + public SyncPoller, VirtualNetworkGatewayInner> + beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters) { + return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).getSyncPoller(); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of a common class for general resource information. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName, context).getSyncPoller(); + public SyncPoller, VirtualNetworkGatewayInner> beginUpdateTags( + String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context) + .getSyncPoller(); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName) { - return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName).last() + public Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters) { + return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return a common class for general resource information on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName, context).last() + private Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters, Context context) { + return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkGatewayName) { - deleteAsync(resourceGroupName, virtualNetworkGatewayName).block(); + public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters) { + return updateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).block(); } /** - * Deletes the specified virtual network gateway. + * Updates a virtual network gateway tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkGatewayName, Context context) { - deleteAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); + public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, + TagsObject parameters, Context context) { + return updateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).block(); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, TagsObject parameters) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1056,43 +1087,35 @@ public Mono>> updateTagsWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateTagsWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayName, TagsObject parameters, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1101,177 +1124,149 @@ private Mono>> updateTagsWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayName, context); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, VirtualNetworkGatewayInner> - beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters) { - Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String virtualNetworkGatewayName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkGatewayName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VirtualNetworkGatewayInner> beginUpdateTagsAsync( - String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), VirtualNetworkGatewayInner.class, VirtualNetworkGatewayInner.class, context); + = deleteWithResponseAsync(resourceGroupName, virtualNetworkGatewayName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayInner> - beginUpdateTags(String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName).getSyncPoller(); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VirtualNetworkGatewayInner> beginUpdateTags( - String resourceGroupName, String virtualNetworkGatewayName, TagsObject parameters, Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkGatewayName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName, context).getSyncPoller(); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).last() + public Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName) { + return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).last() + private Mono deleteAsync(String resourceGroupName, String virtualNetworkGatewayName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualNetworkGatewayName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters) { - return updateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters).block(); + public void delete(String resourceGroupName, String virtualNetworkGatewayName) { + deleteAsync(resourceGroupName, virtualNetworkGatewayName).block(); } /** - * Updates a virtual network gateway tags. + * Deletes the specified virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. - * @param parameters Parameters supplied to update virtual network gateway tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String virtualNetworkGatewayName, - TagsObject parameters, Context context) { - return updateTagsAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context).block(); + public void delete(String resourceGroupName, String virtualNetworkGatewayName, Context context) { + deleteAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); } /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1285,19 +1280,19 @@ public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String vi return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1306,7 +1301,7 @@ public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String vi /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1321,20 +1316,20 @@ private Mono> listByResourceGroupSingl return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1342,7 +1337,7 @@ private Mono> listByResourceGroupSingl /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1357,7 +1352,7 @@ public PagedFlux listByResourceGroupAsync(String res /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1373,7 +1368,7 @@ private PagedFlux listByResourceGroupAsync(String re /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1387,7 +1382,7 @@ public PagedIterable listByResourceGroup(String reso /** * Gets all virtual network gateways by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1402,7 +1397,7 @@ public PagedIterable listByResourceGroup(String reso /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1417,6 +1412,10 @@ public PagedIterable listByResourceGroup(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1425,15 +1424,11 @@ public PagedIterable listByResourceGroup(String reso return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listConnections(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listConnections(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1443,7 +1438,7 @@ public PagedIterable listByResourceGroup(String reso /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1459,6 +1454,10 @@ public PagedIterable listByResourceGroup(String reso return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1467,16 +1466,12 @@ public PagedIterable listByResourceGroup(String reso return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listConnections(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listConnections(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1484,7 +1479,7 @@ public PagedIterable listByResourceGroup(String reso /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1501,7 +1496,7 @@ public PagedFlux listConnections /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1520,7 +1515,7 @@ private PagedFlux listConnection /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1536,7 +1531,7 @@ public PagedIterable listConnect /** * Gets all the connections in a virtual network gateway. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1553,15 +1548,14 @@ public PagedIterable listConnect /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> resetWithResponseAsync(String resourceGroupName, @@ -1570,6 +1564,10 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1578,22 +1576,19 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, gatewayVip, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext( + context -> service.reset(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, gatewayVip, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -1601,8 +1596,7 @@ public Mono>> resetWithResponseAsync(String resourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> resetWithResponseAsync(String resourceGroupName, @@ -1611,6 +1605,10 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1619,28 +1617,24 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reset(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, gatewayVip, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.reset(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkGatewayName, gatewayVip, accept, context); } /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VirtualNetworkGatewayInner> @@ -1655,12 +1649,12 @@ private Mono>> resetWithResponseAsync(String resourceG /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VirtualNetworkGatewayInner> @@ -1676,7 +1670,7 @@ private Mono>> resetWithResponseAsync(String resourceG /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -1684,7 +1678,7 @@ private Mono>> resetWithResponseAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of a common class for general resource information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualNetworkGatewayInner> beginResetAsync( @@ -1699,12 +1693,12 @@ private PollerFlux, VirtualNetworkGateway /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualNetworkGatewayInner> @@ -1716,7 +1710,7 @@ private PollerFlux, VirtualNetworkGateway /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -1724,7 +1718,7 @@ private PollerFlux, VirtualNetworkGateway * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of a common class for general resource information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualNetworkGatewayInner> @@ -1735,14 +1729,14 @@ private PollerFlux, VirtualNetworkGateway /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono resetAsync(String resourceGroupName, String virtualNetworkGatewayName, @@ -1754,12 +1748,12 @@ public Mono resetAsync(String resourceGroupName, Str /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono resetAsync(String resourceGroupName, String virtualNetworkGatewayName) { @@ -1771,7 +1765,7 @@ public Mono resetAsync(String resourceGroupName, Str /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -1779,7 +1773,7 @@ public Mono resetAsync(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resetAsync(String resourceGroupName, String virtualNetworkGatewayName, @@ -1791,12 +1785,12 @@ private Mono resetAsync(String resourceGroupName, St /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VirtualNetworkGatewayInner reset(String resourceGroupName, String virtualNetworkGatewayName) { @@ -1807,7 +1801,7 @@ public VirtualNetworkGatewayInner reset(String resourceGroupName, String virtual /** * Resets the primary of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param gatewayVip Virtual network gateway vip address supplied to the begin reset of the active-active feature * enabled gateway. @@ -1815,7 +1809,7 @@ public VirtualNetworkGatewayInner reset(String resourceGroupName, String virtual * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a common class for general resource information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VirtualNetworkGatewayInner reset(String resourceGroupName, String virtualNetworkGatewayName, @@ -1826,7 +1820,7 @@ public VirtualNetworkGatewayInner reset(String resourceGroupName, String virtual /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1840,6 +1834,10 @@ public Mono>> resetVpnClientSharedKeyWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1848,22 +1846,17 @@ public Mono>> resetVpnClientSharedKeyWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resetVpnClientSharedKey(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.resetVpnClientSharedKey(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1878,6 +1871,10 @@ private Mono>> resetVpnClientSharedKeyWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1886,21 +1883,16 @@ private Mono>> resetVpnClientSharedKeyWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resetVpnClientSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.resetVpnClientSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, context); } /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1919,7 +1911,7 @@ public PollerFlux, Void> beginResetVpnClientSharedKeyAsync(Stri /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1940,7 +1932,7 @@ private PollerFlux, Void> beginResetVpnClientSharedKeyAsync(Str /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1956,7 +1948,7 @@ public SyncPoller, Void> beginResetVpnClientSharedKey(String re /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1974,7 +1966,7 @@ public SyncPoller, Void> beginResetVpnClientSharedKey(String re /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1990,7 +1982,7 @@ public Mono resetVpnClientSharedKeyAsync(String resourceGroupName, String /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2008,7 +2000,7 @@ private Mono resetVpnClientSharedKeyAsync(String resourceGroupName, String /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2022,7 +2014,7 @@ public void resetVpnClientSharedKey(String resourceGroupName, String virtualNetw /** * Resets the VPN client shared key of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2037,7 +2029,7 @@ public void resetVpnClientSharedKey(String resourceGroupName, String virtualNetw /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2052,6 +2044,10 @@ public Mono>> generatevpnclientpackageWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2060,27 +2056,25 @@ public Mono>> generatevpnclientpackageWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.generatevpnclientpackage(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.generatevpnclientpackage(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2096,6 +2090,10 @@ private Mono>> generatevpnclientpackageWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2104,26 +2102,23 @@ private Mono>> generatevpnclientpackageWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.generatevpnclientpackage(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.generatevpnclientpackage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context); } /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2143,7 +2138,7 @@ public PollerFlux, String> beginGeneratevpnclientpackageAsync /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2165,7 +2160,7 @@ private PollerFlux, String> beginGeneratevpnclientpackageAsyn /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2183,7 +2178,7 @@ public SyncPoller, String> beginGeneratevpnclientpackage(Stri /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2203,7 +2198,7 @@ public SyncPoller, String> beginGeneratevpnclientpackage(Stri /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2221,7 +2216,7 @@ public Mono generatevpnclientpackageAsync(String resourceGroupName, Stri /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2241,7 +2236,7 @@ private Mono generatevpnclientpackageAsync(String resourceGroupName, Str /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2258,7 +2253,7 @@ public String generatevpnclientpackage(String resourceGroupName, String virtualN /** * Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2277,7 +2272,7 @@ public String generatevpnclientpackage(String resourceGroupName, String virtualN * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2292,6 +2287,10 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2300,20 +2299,18 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2321,7 +2318,7 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2337,6 +2334,10 @@ private Mono>> generateVpnProfileWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2345,27 +2346,24 @@ private Mono>> generateVpnProfileWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.generateVpnProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context); } /** * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2386,7 +2384,7 @@ public PollerFlux, String> beginGenerateVpnProfileAsync(Strin * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2409,7 +2407,7 @@ private PollerFlux, String> beginGenerateVpnProfileAsync(Stri * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2428,7 +2426,7 @@ public SyncPoller, String> beginGenerateVpnProfile(String res * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2448,7 +2446,7 @@ public SyncPoller, String> beginGenerateVpnProfile(String res * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2467,7 +2465,7 @@ public Mono generateVpnProfileAsync(String resourceGroupName, String vir * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2487,7 +2485,7 @@ private Mono generateVpnProfileAsync(String resourceGroupName, String vi * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2505,7 +2503,7 @@ public String generateVpnProfile(String resourceGroupName, String virtualNetwork * Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for * IKEV2 and radius based authentication. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Parameters supplied to the generate virtual network gateway VPN client package operation. * @param context The context to associate with this operation. @@ -2524,7 +2522,7 @@ public String generateVpnProfile(String resourceGroupName, String virtualNetwork * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2539,6 +2537,10 @@ public Mono>> getVpnProfilePackageUrlWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2547,15 +2549,11 @@ public Mono>> getVpnProfilePackageUrlWithResponseAsync return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVpnProfilePackageUrl(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getVpnProfilePackageUrl(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2563,7 +2561,7 @@ public Mono>> getVpnProfilePackageUrlWithResponseAsync * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2579,6 +2577,10 @@ private Mono>> getVpnProfilePackageUrlWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2587,22 +2589,18 @@ private Mono>> getVpnProfilePackageUrlWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getVpnProfilePackageUrl(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getVpnProfilePackageUrl(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context); } /** * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2623,7 +2621,7 @@ public PollerFlux, String> beginGetVpnProfilePackageUrlAsync( * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2646,7 +2644,7 @@ private PollerFlux, String> beginGetVpnProfilePackageUrlAsync * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2664,7 +2662,7 @@ public SyncPoller, String> beginGetVpnProfilePackageUrl(Strin * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2684,7 +2682,7 @@ public SyncPoller, String> beginGetVpnProfilePackageUrl(Strin * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2702,7 +2700,7 @@ public Mono getVpnProfilePackageUrlAsync(String resourceGroupName, Strin * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2722,7 +2720,7 @@ private Mono getVpnProfilePackageUrlAsync(String resourceGroupName, Stri * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2738,7 +2736,7 @@ public String getVpnProfilePackageUrl(String resourceGroupName, String virtualNe * Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The * profile needs to be generated first using generateVpnProfile. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2754,14 +2752,13 @@ public String getVpnProfilePackageUrl(String resourceGroupName, String virtualNe /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call along with {@link Response} on successful completion - * of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getBgpPeerStatusWithResponseAsync(String resourceGroupName, @@ -2770,6 +2767,10 @@ public Mono>> getBgpPeerStatusWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2778,30 +2779,25 @@ public Mono>> getBgpPeerStatusWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getBgpPeerStatus(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, peer, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getBgpPeerStatus(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, peer, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call along with {@link Response} on successful completion - * of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getBgpPeerStatusWithResponseAsync(String resourceGroupName, @@ -2810,6 +2806,10 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -2818,27 +2818,23 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getBgpPeerStatus(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, peer, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getBgpPeerStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, peer, accept, context); } /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list BGP peer status API service call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, BgpPeerStatusListResultInner> @@ -2853,12 +2849,12 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list BGP peer status API service call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, BgpPeerStatusListResultInner> @@ -2874,14 +2870,14 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of response for list BGP peer status API service call. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BgpPeerStatusListResultInner> @@ -2898,12 +2894,12 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list BGP peer status API service call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BgpPeerStatusListResultInner> @@ -2915,14 +2911,14 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of response for list BGP peer status API service call. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BgpPeerStatusListResultInner> beginGetBgpPeerStatus( @@ -2934,13 +2930,13 @@ public SyncPoller, BgpPeerStatusListRes /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getBgpPeerStatusAsync(String resourceGroupName, @@ -2952,12 +2948,12 @@ public Mono getBgpPeerStatusAsync(String resourceG /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getBgpPeerStatusAsync(String resourceGroupName, @@ -2970,14 +2966,14 @@ public Mono getBgpPeerStatusAsync(String resourceG /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getBgpPeerStatusAsync(String resourceGroupName, @@ -2989,12 +2985,12 @@ private Mono getBgpPeerStatusAsync(String resource /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, String virtualNetworkGatewayName) { @@ -3005,14 +3001,14 @@ public BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, S /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer to retrieve the status of. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for list BGP peer status API service call. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, String virtualNetworkGatewayName, @@ -3023,7 +3019,7 @@ public BgpPeerStatusListResultInner getBgpPeerStatus(String resourceGroupName, S /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3038,6 +3034,10 @@ public Mono> supportedVpnDevicesWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3046,22 +3046,18 @@ public Mono> supportedVpnDevicesWithResponseAsync(String resour return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.supportedVpnDevices(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.supportedVpnDevices(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3077,6 +3073,10 @@ private Mono> supportedVpnDevicesWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3085,21 +3085,17 @@ private Mono> supportedVpnDevicesWithResponseAsync(String resou return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.supportedVpnDevices(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.supportedVpnDevices(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context); } /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3115,7 +3111,7 @@ public Mono supportedVpnDevicesAsync(String resourceGroupName, String vi /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3132,7 +3128,7 @@ public Response supportedVpnDevicesWithResponse(String resourceGroupName /** * Gets a xml format representation for supported vpn devices. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3162,6 +3158,10 @@ public Mono> listRadiusSecretsWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3170,15 +3170,11 @@ public Mono> listRadiusSecretsWithResp return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRadiusSecrets(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listRadiusSecrets(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3201,6 +3197,10 @@ private Mono> listRadiusSecretsWithRes return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3209,15 +3209,11 @@ private Mono> listRadiusSecretsWithRes return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRadiusSecrets(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listRadiusSecrets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context); } /** @@ -3274,13 +3270,12 @@ public RadiusAuthServerListResultInner listRadiusSecrets(String resourceGroupNam * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getLearnedRoutesWithResponseAsync(String resourceGroupName, @@ -3289,6 +3284,10 @@ public Mono>> getLearnedRoutesWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3297,15 +3296,11 @@ public Mono>> getLearnedRoutesWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getLearnedRoutes(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getLearnedRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3313,14 +3308,13 @@ public Mono>> getLearnedRoutesWithResponseAsync(String * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getLearnedRoutesWithResponseAsync(String resourceGroupName, @@ -3329,6 +3323,10 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3337,27 +3335,23 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getLearnedRoutes(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getLearnedRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, context); } /** * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayRouteListResultInner> @@ -3373,13 +3367,13 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GatewayRouteListResultInner> @@ -3396,12 +3390,12 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteListResultInner> @@ -3413,13 +3407,13 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteListResultInner> @@ -3431,12 +3425,12 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getLearnedRoutesAsync(String resourceGroupName, @@ -3449,13 +3443,13 @@ public Mono getLearnedRoutesAsync(String resourceGr * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getLearnedRoutesAsync(String resourceGroupName, @@ -3468,12 +3462,12 @@ private Mono getLearnedRoutesAsync(String resourceG * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, String virtualNetworkGatewayName) { @@ -3484,13 +3478,13 @@ public GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, St * This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from * BGP peers. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -3501,14 +3495,13 @@ public GatewayRouteListResultInner getLearnedRoutes(String resourceGroupName, St /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getAdvertisedRoutesWithResponseAsync(String resourceGroupName, @@ -3517,6 +3510,10 @@ public Mono>> getAdvertisedRoutesWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3528,30 +3525,25 @@ public Mono>> getAdvertisedRoutesWithResponseAsync(Str if (peer == null) { return Mono.error(new IllegalArgumentException("Parameter peer is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, peer, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getAdvertisedRoutes(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, peer, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getAdvertisedRoutesWithResponseAsync(String resourceGroupName, @@ -3560,6 +3552,10 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3571,27 +3567,23 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St if (peer == null) { return Mono.error(new IllegalArgumentException("Parameter peer is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - peer, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getAdvertisedRoutes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, peer, accept, context); } /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayRouteListResultInner> @@ -3606,14 +3598,14 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of list of virtual network gateway routes. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GatewayRouteListResultInner> @@ -3630,13 +3622,13 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteListResultInner> @@ -3647,14 +3639,14 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of list of virtual network gateway routes. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteListResultInner> beginGetAdvertisedRoutes( @@ -3666,13 +3658,13 @@ public SyncPoller, GatewayRouteListResul /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getAdvertisedRoutesAsync(String resourceGroupName, @@ -3684,14 +3676,14 @@ public Mono getAdvertisedRoutesAsync(String resourc /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAdvertisedRoutesAsync(String resourceGroupName, @@ -3703,13 +3695,13 @@ private Mono getAdvertisedRoutesAsync(String resour /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -3720,14 +3712,14 @@ public GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, /** * This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peer The IP address of the peer. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of virtual network gateway routes. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String virtualNetworkGatewayName, @@ -3739,13 +3731,13 @@ public GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getResiliencyInformationWithResponseAsync(String resourceGroupName, @@ -3754,6 +3746,10 @@ public Mono>> getResiliencyInformationWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3762,15 +3758,11 @@ public Mono>> getResiliencyInformationWithResponseAsyn return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getResiliencyInformation(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, attemptRefresh, apiVersion, this.client.getSubscriptionId(), accept, + .withContext(context -> service.getResiliencyInformation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, attemptRefresh, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3779,14 +3771,14 @@ public Mono>> getResiliencyInformationWithResponseAsyn * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getResiliencyInformationWithResponseAsync(String resourceGroupName, @@ -3795,6 +3787,10 @@ private Mono>> getResiliencyInformationWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -3803,28 +3799,24 @@ private Mono>> getResiliencyInformationWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getResiliencyInformation(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - attemptRefresh, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getResiliencyInformation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, attemptRefresh, accept, context); } /** * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Resiliency Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayResiliencyInformationInner> @@ -3841,12 +3833,12 @@ private Mono>> getResiliencyInformationWithResponseAsy * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Resiliency Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayResiliencyInformationInner> @@ -3863,14 +3855,14 @@ private Mono>> getResiliencyInformationWithResponseAsy * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Resiliency Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GatewayResiliencyInformationInner> @@ -3888,12 +3880,12 @@ private Mono>> getResiliencyInformationWithResponseAsy * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Resiliency Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayResiliencyInformationInner> @@ -3907,14 +3899,14 @@ private Mono>> getResiliencyInformationWithResponseAsy * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Resiliency Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayResiliencyInformationInner> @@ -3929,13 +3921,13 @@ private Mono>> getResiliencyInformationWithResponseAsy * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getResiliencyInformationAsync(String resourceGroupName, @@ -3948,12 +3940,12 @@ public Mono getResiliencyInformationAsync(Str * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getResiliencyInformationAsync(String resourceGroupName, @@ -3967,14 +3959,14 @@ public Mono getResiliencyInformationAsync(Str * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getResiliencyInformationAsync(String resourceGroupName, @@ -3988,12 +3980,12 @@ private Mono getResiliencyInformationAsync(St * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupName, @@ -4006,14 +3998,14 @@ public GatewayResiliencyInformationInner getResiliencyInformation(String resourc * This operation retrieves the resiliency information for an Express Route Gateway, including the gateway's current * resiliency score and recommendations to further improve the score. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Resiliency Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Resiliency Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayResiliencyInformationInner getResiliencyInformation(String resourceGroupName, @@ -4025,13 +4017,13 @@ public GatewayResiliencyInformationInner getResiliencyInformation(String resourc /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getRoutesInformationWithResponseAsync(String resourceGroupName, @@ -4040,23 +4032,23 @@ public Mono>> getRoutesInformationWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualNetworkGatewayName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (virtualNetworkGatewayName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getRoutesInformation(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, attemptRefresh, apiVersion, this.client.getSubscriptionId(), accept, + .withContext(context -> service.getRoutesInformation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, attemptRefresh, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4064,14 +4056,14 @@ public Mono>> getRoutesInformationWithResponseAsync(St /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getRoutesInformationWithResponseAsync(String resourceGroupName, @@ -4080,6 +4072,10 @@ private Mono>> getRoutesInformationWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4088,27 +4084,23 @@ private Mono>> getRoutesInformationWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getRoutesInformation(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - attemptRefresh, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getRoutesInformation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, attemptRefresh, accept, context); } /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Route Sets Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayRouteSetsInformationInner> @@ -4124,12 +4116,12 @@ private Mono>> getRoutesInformationWithResponseAsync(S /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Route Sets Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, GatewayRouteSetsInformationInner> @@ -4145,14 +4137,14 @@ private Mono>> getRoutesInformationWithResponseAsync(S /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Route Sets Information. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, GatewayRouteSetsInformationInner> @@ -4169,12 +4161,12 @@ private Mono>> getRoutesInformationWithResponseAsync(S /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Route Sets Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteSetsInformationInner> @@ -4187,14 +4179,14 @@ private Mono>> getRoutesInformationWithResponseAsync(S /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Route Sets Information. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, GatewayRouteSetsInformationInner> @@ -4208,13 +4200,13 @@ private Mono>> getRoutesInformationWithResponseAsync(S /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getRoutesInformationAsync(String resourceGroupName, @@ -4226,12 +4218,12 @@ public Mono getRoutesInformationAsync(String r /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getRoutesInformationAsync(String resourceGroupName, @@ -4244,14 +4236,14 @@ public Mono getRoutesInformationAsync(String r /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getRoutesInformationAsync(String resourceGroupName, @@ -4264,12 +4256,12 @@ private Mono getRoutesInformationAsync(String /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteSetsInformationInner getRoutesInformation(String resourceGroupName, @@ -4281,14 +4273,14 @@ public GatewayRouteSetsInformationInner getRoutesInformation(String resourceGrou /** * This operation retrieves the route set information for an Express Route Gateway based on their resiliency. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param attemptRefresh Attempt to recalculate the Route Sets Information for the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Route Sets Information. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public GatewayRouteSetsInformationInner getRoutesInformation(String resourceGroupName, @@ -4300,15 +4292,14 @@ public GatewayRouteSetsInformationInner getRoutesInformation(String resourceGrou * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> setVpnclientIpsecParametersWithResponseAsync(String resourceGroupName, @@ -4317,6 +4308,10 @@ public Mono>> setVpnclientIpsecParametersWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4325,10 +4320,6 @@ public Mono>> setVpnclientIpsecParametersWithResponseA return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (vpnclientIpsecParams == null) { return Mono .error(new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null.")); @@ -4336,11 +4327,12 @@ public Mono>> setVpnclientIpsecParametersWithResponseA vpnclientIpsecParams.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.setVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), vpnclientIpsecParams, accept, - context)) + .withContext(context -> service.setVpnclientIpsecParameters(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + vpnclientIpsecParams, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4348,7 +4340,7 @@ public Mono>> setVpnclientIpsecParametersWithResponseA * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -4356,8 +4348,7 @@ public Mono>> setVpnclientIpsecParametersWithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> setVpnclientIpsecParametersWithResponseAsync(String resourceGroupName, @@ -4366,6 +4357,10 @@ private Mono>> setVpnclientIpsecParametersWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4374,10 +4369,6 @@ private Mono>> setVpnclientIpsecParametersWithResponse return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (vpnclientIpsecParams == null) { return Mono .error(new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null.")); @@ -4385,25 +4376,26 @@ private Mono>> setVpnclientIpsecParametersWithResponse vpnclientIpsecParams.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.setVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), vpnclientIpsecParams, accept, - context); + return service.setVpnclientIpsecParameters(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + vpnclientIpsecParams, context); } /** * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VpnClientIPsecParametersInner> @@ -4420,7 +4412,7 @@ private Mono>> setVpnclientIpsecParametersWithResponse * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -4428,7 +4420,7 @@ private Mono>> setVpnclientIpsecParametersWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VpnClientIPsecParametersInner> @@ -4446,14 +4438,14 @@ private Mono>> setVpnclientIpsecParametersWithResponse * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnClientIPsecParametersInner> @@ -4468,7 +4460,7 @@ private Mono>> setVpnclientIpsecParametersWithResponse * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -4476,7 +4468,7 @@ private Mono>> setVpnclientIpsecParametersWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of an IPSec parameters for a virtual network gateway P2S connection. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnClientIPsecParametersInner> @@ -4492,15 +4484,14 @@ private Mono>> setVpnclientIpsecParametersWithResponse * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono setVpnclientIpsecParametersAsync(String resourceGroupName, @@ -4514,7 +4505,7 @@ public Mono setVpnclientIpsecParametersAsync(Stri * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -4522,8 +4513,7 @@ public Mono setVpnclientIpsecParametersAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono setVpnclientIpsecParametersAsync(String resourceGroupName, @@ -4536,14 +4526,14 @@ private Mono setVpnclientIpsecParametersAsync(Str * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, @@ -4556,7 +4546,7 @@ public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resource * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network * gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network * Gateway P2S client operation through Network resource provider. @@ -4564,7 +4554,7 @@ public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, @@ -4577,8 +4567,8 @@ public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resource * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4592,6 +4582,10 @@ public Mono>> getVpnclientIpsecParametersWithResponseA return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4600,15 +4594,11 @@ public Mono>> getVpnclientIpsecParametersWithResponseA return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getVpnclientIpsecParameters(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4616,8 +4606,8 @@ public Mono>> getVpnclientIpsecParametersWithResponseA * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4632,6 +4622,10 @@ private Mono>> getVpnclientIpsecParametersWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4640,23 +4634,19 @@ private Mono>> getVpnclientIpsecParametersWithResponse return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getVpnclientIpsecParameters(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context); } /** * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4676,8 +4666,8 @@ private Mono>> getVpnclientIpsecParametersWithResponse * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4700,8 +4690,8 @@ private Mono>> getVpnclientIpsecParametersWithResponse * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4717,8 +4707,8 @@ private Mono>> getVpnclientIpsecParametersWithResponse * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4736,230 +4726,80 @@ private Mono>> getVpnclientIpsecParametersWithResponse * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getVpnclientIpsecParametersAsync(String resourceGroupName, - String virtualNetworkGatewayName) { - return beginGetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client - * of virtual network gateway in the specified resource group through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getVpnclientIpsecParametersAsync(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { - return beginGetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client - * of virtual network gateway in the specified resource group through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, - String virtualNetworkGatewayName) { - return getVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName).block(); - } - - /** - * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client - * of virtual network gateway in the specified resource group through Network resource provider. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayName The virtual network gateway name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an IPSec parameters for a virtual network gateway P2S connection. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, - String virtualNetworkGatewayName, Context context) { - return getVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); - } - - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.vpnDeviceConfigurationScript(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a xml format representation for vpn device configuration script. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkGatewayConnectionName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.vpnDeviceConfigurationScript(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, - context); + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getVpnclientIpsecParametersAsync(String resourceGroupName, + String virtualNetworkGatewayName) { + return beginGetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets a xml format representation for vpn device configuration script. + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client + * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script on successful completion of {@link Mono}. + * @return an IPSec parameters for a virtual network gateway P2S connection on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono vpnDeviceConfigurationScriptAsync(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { - return vpnDeviceConfigurationScriptWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, - parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getVpnclientIpsecParametersAsync(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { + return beginGetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets a xml format representation for vpn device configuration script. + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client + * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script along with {@link Response}. + * @return an IPSec parameters for a virtual network gateway P2S connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response vpnDeviceConfigurationScriptWithResponse(String resourceGroupName, - String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context) { - return vpnDeviceConfigurationScriptWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, - parameters, context).block(); + public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, + String virtualNetworkGatewayName) { + return getVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName).block(); } /** - * Gets a xml format representation for vpn device configuration script. + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client + * of virtual network gateway in the specified resource group through Network resource provider. * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the - * configuration script is generated. - * @param parameters Parameters supplied to the generate vpn device script operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a xml format representation for vpn device configuration script. + * @return an IPSec parameters for a virtual network gateway P2S connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public String vpnDeviceConfigurationScript(String resourceGroupName, String virtualNetworkGatewayConnectionName, - VpnDeviceScriptParameters parameters) { - return vpnDeviceConfigurationScriptWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, - parameters, Context.NONE).getValue(); + public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, + String virtualNetworkGatewayName, Context context) { + return getVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); } /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4974,6 +4814,10 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -4982,25 +4826,20 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + return FluxUtil.withContext(context -> service.startPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -5016,6 +4855,10 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5024,24 +4867,20 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.startPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, accept, parameters, context); } /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5061,7 +4900,7 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -5081,7 +4920,7 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -5103,7 +4942,7 @@ private PollerFlux, String> beginStartPacketCaptureAsync(Stri /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -5121,7 +4960,7 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -5140,7 +4979,7 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5158,7 +4997,7 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String vir /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -5175,7 +5014,7 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String vir /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -5194,7 +5033,7 @@ private Mono startPacketCaptureAsync(String resourceGroupName, String vi /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -5210,7 +5049,7 @@ public String startPacketCapture(String resourceGroupName, String virtualNetwork /** * Starts packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to start packet capture on gateway. * @param context The context to associate with this operation. @@ -5228,7 +5067,7 @@ public String startPacketCapture(String resourceGroupName, String virtualNetwork /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5243,6 +5082,10 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5251,27 +5094,25 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -5287,6 +5128,10 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5295,26 +5140,23 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.stopPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, accept, parameters, context); } /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5334,7 +5176,7 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -5356,7 +5198,7 @@ private PollerFlux, String> beginStopPacketCaptureAsync(Strin /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5374,7 +5216,7 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -5393,7 +5235,7 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5411,7 +5253,7 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String virt /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -5430,7 +5272,7 @@ private Mono stopPacketCaptureAsync(String resourceGroupName, String vir /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5447,7 +5289,7 @@ public String stopPacketCapture(String resourceGroupName, String virtualNetworkG /** * Stops packet capture on virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param parameters Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. * @param context The context to associate with this operation. @@ -5466,14 +5308,14 @@ public String stopPacketCapture(String resourceGroupName, String virtualNetworkG * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getFailoverAllTestDetailsWithResponseAsync(String resourceGroupName, @@ -5482,6 +5324,10 @@ public Mono>> getFailoverAllTestDetailsWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5493,16 +5339,12 @@ public Mono>> getFailoverAllTestDetailsWithResponseAsy if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getFailoverAllTestDetails(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, type, fetchLatest, apiVersion, this.client.getSubscriptionId(), accept, - context)) + .withContext(context -> service.getFailoverAllTestDetails(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, type, fetchLatest, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5510,7 +5352,7 @@ public Mono>> getFailoverAllTestDetailsWithResponseAsy * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -5518,7 +5360,7 @@ public Mono>> getFailoverAllTestDetailsWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getFailoverAllTestDetailsWithResponseAsync(String resourceGroupName, @@ -5527,6 +5369,10 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5538,29 +5384,25 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getFailoverAllTestDetails(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, type, fetchLatest, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getFailoverAllTestDetails(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, type, fetchLatest, accept, context); } /** * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover All Test Details. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5580,7 +5422,7 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -5588,7 +5430,7 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover All Test Details. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private @@ -5609,14 +5451,14 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover All Test Details. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5631,7 +5473,7 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -5639,7 +5481,7 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover All Test Details. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5656,14 +5498,14 @@ private Mono>> getFailoverAllTestDetailsWithResponseAs * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getFailoverAllTestDetailsAsync(String resourceGroupName, @@ -5677,7 +5519,7 @@ public Mono> getFailoverAllTestDetail * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -5685,7 +5527,7 @@ public Mono> getFailoverAllTestDetail * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getFailoverAllTestDetailsAsync(String resourceGroupName, @@ -5698,14 +5540,14 @@ private Mono> getFailoverAllTestDetai * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public List getFailoverAllTestDetails(String resourceGroupName, @@ -5717,7 +5559,7 @@ public List getFailoverAllTestDetails(Stri * This operation retrieves the details of all the failover tests performed on the gateway for different peering * locations. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param type The type of failover test. * @param fetchLatest Fetch only the latest tests for each peering location. @@ -5725,7 +5567,7 @@ public List getFailoverAllTestDetails(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover All Test Details. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public List getFailoverAllTestDetails(String resourceGroupName, @@ -5738,15 +5580,14 @@ public List getFailoverAllTestDetails(Stri * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> getFailoverSingleTestDetailsWithResponseAsync(String resourceGroupName, @@ -5755,6 +5596,10 @@ public Mono>> getFailoverSingleTestDetailsWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5770,16 +5615,12 @@ public Mono>> getFailoverSingleTestDetailsWithResponse if (failoverTestId == null) { return Mono.error(new IllegalArgumentException("Parameter failoverTestId is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getFailoverSingleTestDetails(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, peeringLocation, failoverTestId, apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.getFailoverSingleTestDetails(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, peeringLocation, + failoverTestId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5787,7 +5628,7 @@ public Mono>> getFailoverSingleTestDetailsWithResponse * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -5795,8 +5636,7 @@ public Mono>> getFailoverSingleTestDetailsWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object along with {@link Response} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getFailoverSingleTestDetailsWithResponseAsync(String resourceGroupName, @@ -5805,6 +5645,10 @@ private Mono>> getFailoverSingleTestDetailsWithRespons return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -5820,30 +5664,26 @@ private Mono>> getFailoverSingleTestDetailsWithRespons if (failoverTestId == null) { return Mono.error(new IllegalArgumentException("Parameter failoverTestId is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getFailoverSingleTestDetails(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, peeringLocation, failoverTestId, apiVersion, this.client.getSubscriptionId(), - accept, context); + return service.getFailoverSingleTestDetails(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, peeringLocation, + failoverTestId, accept, context); } /** * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover Single Test Details Object. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5864,7 +5704,7 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -5872,7 +5712,7 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of gateway Failover Single Test Details Object. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private @@ -5894,14 +5734,14 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover Single Test Details Object. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5918,7 +5758,7 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -5926,7 +5766,7 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of gateway Failover Single Test Details Object. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public @@ -5943,14 +5783,14 @@ private Mono>> getFailoverSingleTestDetailsWithRespons * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getFailoverSingleTestDetailsAsync( @@ -5963,7 +5803,7 @@ public Mono> getFailoverSingleT * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -5971,7 +5811,7 @@ public Mono> getFailoverSingleT * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getFailoverSingleTestDetailsAsync( @@ -5985,14 +5825,14 @@ private Mono> getFailoverSingle * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public List getFailoverSingleTestDetails(String resourceGroupName, @@ -6005,7 +5845,7 @@ public List getFailoverSingleTestDet * This operation retrieves the details of a particular failover test performed on the gateway based on the test * Guid. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param failoverTestId The unique Guid value which identifies the test. @@ -6013,7 +5853,7 @@ public List getFailoverSingleTestDet * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return gateway Failover Single Test Details Object. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public List getFailoverSingleTestDetails(String resourceGroupName, @@ -6025,7 +5865,7 @@ public List getFailoverSingleTestDet /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6040,6 +5880,10 @@ public Mono>> startExpressRouteSiteFailoverSimulationW return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6052,23 +5896,19 @@ public Mono>> startExpressRouteSiteFailoverSimulationW return Mono .error(new IllegalArgumentException("Parameter peeringLocation is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.startExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), - resourceGroupName, virtualNetworkGatewayName, peeringLocation, apiVersion, - this.client.getSubscriptionId(), accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, + peeringLocation, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -6084,6 +5924,10 @@ private Mono>> startExpressRouteSiteFailoverSimulation return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6096,21 +5940,18 @@ private Mono>> startExpressRouteSiteFailoverSimulation return Mono .error(new IllegalArgumentException("Parameter peeringLocation is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, peeringLocation, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.startExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, peeringLocation, accept, + context); } /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6130,7 +5971,7 @@ public PollerFlux, String> beginStartExpressRouteSiteFailover /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -6152,7 +5993,7 @@ private PollerFlux, String> beginStartExpressRouteSiteFailove /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6172,7 +6013,7 @@ public SyncPoller, String> beginStartExpressRouteSiteFailover /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -6193,7 +6034,7 @@ public SyncPoller, String> beginStartExpressRouteSiteFailover /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6211,7 +6052,7 @@ public Mono startExpressRouteSiteFailoverSimulationAsync(String resource /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -6230,7 +6071,7 @@ private Mono startExpressRouteSiteFailoverSimulationAsync(String resourc /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6248,7 +6089,7 @@ public String startExpressRouteSiteFailoverSimulation(String resourceGroupName, /** * This operation starts failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param peeringLocation Peering location of the test. * @param context The context to associate with this operation. @@ -6267,7 +6108,7 @@ public String startExpressRouteSiteFailoverSimulation(String resourceGroupName, /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6284,6 +6125,10 @@ public Mono>> stopExpressRouteSiteFailoverSimulationWi return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6292,28 +6137,25 @@ public Mono>> stopExpressRouteSiteFailoverSimulationWi return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (stopParameters == null) { return Mono.error(new IllegalArgumentException("Parameter stopParameters is required and cannot be null.")); } else { stopParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stopExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), - stopParameters, accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, + accept, stopParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6331,6 +6173,10 @@ private Mono>> stopExpressRouteSiteFailoverSimulationW return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6339,26 +6185,24 @@ private Mono>> stopExpressRouteSiteFailoverSimulationW return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (stopParameters == null) { return Mono.error(new IllegalArgumentException("Parameter stopParameters is required and cannot be null.")); } else { stopParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stopExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), stopParameters, accept, context); + return service.stopExpressRouteSiteFailoverSimulation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, accept, + stopParameters, context); } /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6380,7 +6224,7 @@ public PollerFlux, String> beginStopExpressRouteSiteFailoverS /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6404,7 +6248,7 @@ private PollerFlux, String> beginStopExpressRouteSiteFailover /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6425,7 +6269,7 @@ public SyncPoller, String> beginStopExpressRouteSiteFailoverS /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6447,7 +6291,7 @@ public SyncPoller, String> beginStopExpressRouteSiteFailoverS /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6466,7 +6310,7 @@ public Mono stopExpressRouteSiteFailoverSimulationAsync(String resourceG /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6486,7 +6330,7 @@ private Mono stopExpressRouteSiteFailoverSimulationAsync(String resource /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6505,7 +6349,7 @@ public String stopExpressRouteSiteFailoverSimulation(String resourceGroupName, S /** * This operation stops failover simulation on the gateway for the specified peering location. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover simulation on * gateway. @@ -6526,7 +6370,7 @@ public String stopExpressRouteSiteFailoverSimulation(String resourceGroupName, S * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6541,6 +6385,10 @@ public Mono>> getVpnclientConnectionHealthWithResponse return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6549,15 +6397,11 @@ public Mono>> getVpnclientConnectionHealthWithResponse return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getVpnclientConnectionHealth(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getVpnclientConnectionHealth(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6565,7 +6409,7 @@ public Mono>> getVpnclientConnectionHealthWithResponse * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6581,6 +6425,10 @@ private Mono>> getVpnclientConnectionHealthWithRespons return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -6589,22 +6437,18 @@ private Mono>> getVpnclientConnectionHealthWithRespons return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getVpnclientConnectionHealth(this.client.getEndpoint(), resourceGroupName, - virtualNetworkGatewayName, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.getVpnclientConnectionHealth(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, accept, context); } /** * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6628,7 +6472,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6655,7 +6499,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6675,7 +6519,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6696,7 +6540,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6715,7 +6559,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6735,7 +6579,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6753,7 +6597,7 @@ public VpnClientConnectionHealthDetailListResultInner getVpnclientConnectionHeal * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified * resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6771,7 +6615,7 @@ public VpnClientConnectionHealthDetailListResultInner getVpnclientConnectionHeal /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6804,18 +6648,18 @@ public Mono>> disconnectVirtualNetworkGatewayVpnConnec request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil .withContext(context -> service.disconnectVirtualNetworkGatewayVpnConnections(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, apiVersion, request, - accept, context)) + apiVersion, this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, + request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -6849,17 +6693,17 @@ private Mono>> disconnectVirtualNetworkGatewayVpnConne request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.disconnectVirtualNetworkGatewayVpnConnections(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, apiVersion, request, accept, + return service.disconnectVirtualNetworkGatewayVpnConnections(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, request, context); } /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6879,7 +6723,7 @@ public PollerFlux, Void> beginDisconnectVirtualNetworkGatewayVp /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -6901,7 +6745,7 @@ private PollerFlux, Void> beginDisconnectVirtualNetworkGatewayV /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6921,7 +6765,7 @@ public SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVp /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -6942,7 +6786,7 @@ public SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVp /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6960,7 +6804,7 @@ public Mono disconnectVirtualNetworkGatewayVpnConnectionsAsync(String reso /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -6979,7 +6823,7 @@ private Mono disconnectVirtualNetworkGatewayVpnConnectionsAsync(String res /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6996,7 +6840,7 @@ public void disconnectVirtualNetworkGatewayVpnConnections(String resourceGroupNa /** * Disconnect vpn connections of virtual network gateway in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param request The parameters are supplied to disconnect vpn connections. * @param context The context to associate with this operation. @@ -7014,8 +6858,8 @@ public void disconnectVirtualNetworkGatewayVpnConnections(String resourceGroupNa /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7049,19 +6893,19 @@ public Mono>> invokePrepareMigrationWithResponseAsync( migrationParams.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext( - context -> service.invokePrepareMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, migrationParams, accept, context)) + .withContext(context -> service.invokePrepareMigration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, contentType, + migrationParams, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -7096,17 +6940,17 @@ private Mono>> invokePrepareMigrationWithResponseAsync migrationParams.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.invokePrepareMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, migrationParams, accept, context); + return service.invokePrepareMigration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, contentType, migrationParams, context); } /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7126,8 +6970,8 @@ public PollerFlux, Void> beginInvokePrepareMigrationAsync(Strin /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -7149,8 +6993,8 @@ private PollerFlux, Void> beginInvokePrepareMigrationAsync(Stri /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7168,8 +7012,8 @@ public SyncPoller, Void> beginInvokePrepareMigration(String res /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -7189,8 +7033,8 @@ public SyncPoller, Void> beginInvokePrepareMigration(String res /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7208,8 +7052,8 @@ public Mono invokePrepareMigrationAsync(String resourceGroupName, String v /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -7229,8 +7073,8 @@ private Mono invokePrepareMigrationAsync(String resourceGroupName, String /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7246,8 +7090,8 @@ public void invokePrepareMigration(String resourceGroupName, String virtualNetwo /** * Trigger prepare migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param migrationParams Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network * resource provider. * @param context The context to associate with this operation. @@ -7264,8 +7108,8 @@ public void invokePrepareMigration(String resourceGroupName, String virtualNetwo /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7291,19 +7135,17 @@ public Mono>> invokeExecuteMigrationWithResponseAsync( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.invokeExecuteMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context)) + .withContext(context -> service.invokeExecuteMigration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7330,17 +7172,16 @@ private Mono>> invokeExecuteMigrationWithResponseAsync new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.invokeExecuteMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context); + return service.invokeExecuteMigration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, context); } /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7358,8 +7199,8 @@ public PollerFlux, Void> beginInvokeExecuteMigrationAsync(Strin /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7379,8 +7220,8 @@ private PollerFlux, Void> beginInvokeExecuteMigrationAsync(Stri /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7395,8 +7236,8 @@ public SyncPoller, Void> beginInvokeExecuteMigration(String res /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7413,8 +7254,8 @@ public SyncPoller, Void> beginInvokeExecuteMigration(String res /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7429,8 +7270,8 @@ public Mono invokeExecuteMigrationAsync(String resourceGroupName, String v /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7447,8 +7288,8 @@ private Mono invokeExecuteMigrationAsync(String resourceGroupName, String /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7461,8 +7302,8 @@ public void invokeExecuteMigration(String resourceGroupName, String virtualNetwo /** * Trigger execute migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7476,8 +7317,8 @@ public void invokeExecuteMigration(String resourceGroupName, String virtualNetwo /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7503,19 +7344,17 @@ public Mono>> invokeCommitMigrationWithResponseAsync(S new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.invokeCommitMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context)) + .withContext(context -> service.invokeCommitMigration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7542,17 +7381,16 @@ private Mono>> invokeCommitMigrationWithResponseAsync( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.invokeCommitMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context); + return service.invokeCommitMigration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, context); } /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7570,8 +7408,8 @@ public PollerFlux, Void> beginInvokeCommitMigrationAsync(String /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7591,8 +7429,8 @@ private PollerFlux, Void> beginInvokeCommitMigrationAsync(Strin /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7607,8 +7445,8 @@ public SyncPoller, Void> beginInvokeCommitMigration(String reso /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7625,8 +7463,8 @@ public SyncPoller, Void> beginInvokeCommitMigration(String reso /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7641,8 +7479,8 @@ public Mono invokeCommitMigrationAsync(String resourceGroupName, String vi /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7659,8 +7497,8 @@ private Mono invokeCommitMigrationAsync(String resourceGroupName, String v /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7673,8 +7511,8 @@ public void invokeCommitMigration(String resourceGroupName, String virtualNetwor /** * Trigger commit migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7688,8 +7526,8 @@ public void invokeCommitMigration(String resourceGroupName, String virtualNetwor /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7715,19 +7553,17 @@ public Mono>> invokeAbortMigrationWithResponseAsync(St new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.invokeAbortMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context)) + .withContext(context -> service.invokeAbortMigration(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7754,17 +7590,16 @@ private Mono>> invokeAbortMigrationWithResponseAsync(S new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.invokeAbortMigration(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context); + return service.invokeAbortMigration(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkGatewayName, context); } /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7782,8 +7617,8 @@ public PollerFlux, Void> beginInvokeAbortMigrationAsync(String /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7803,8 +7638,8 @@ private PollerFlux, Void> beginInvokeAbortMigrationAsync(String /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7819,8 +7654,8 @@ public SyncPoller, Void> beginInvokeAbortMigration(String resou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7837,8 +7672,8 @@ public SyncPoller, Void> beginInvokeAbortMigration(String resou /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7853,8 +7688,8 @@ public Mono invokeAbortMigrationAsync(String resourceGroupName, String vir /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7871,8 +7706,8 @@ private Mono invokeAbortMigrationAsync(String resourceGroupName, String vi /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7885,8 +7720,8 @@ public void invokeAbortMigration(String resourceGroupName, String virtualNetwork /** * Trigger abort migration for the virtual network gateway. * - * @param resourceGroupName The resource group name of the virtual network gateway. - * @param virtualNetworkGatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayName The name of the virtual network gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -7897,6 +7732,153 @@ public void invokeAbortMigration(String resourceGroupName, String virtualNetwork invokeAbortMigrationAsync(resourceGroupName, virtualNetworkGatewayName, context).block(); } + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.vpnDeviceConfigurationScript(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, contentType, + accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> vpnDeviceConfigurationScriptWithResponseAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkGatewayConnectionName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter virtualNetworkGatewayConnectionName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.vpnDeviceConfigurationScript(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayConnectionName, contentType, + accept, parameters, context); + } + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono vpnDeviceConfigurationScriptAsync(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { + return vpnDeviceConfigurationScriptWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response vpnDeviceConfigurationScriptWithResponse(String resourceGroupName, + String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters, Context context) { + return vpnDeviceConfigurationScriptWithResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, + parameters, context).block(); + } + + /** + * Gets a xml format representation for vpn device configuration script. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a xml format representation for vpn device configuration script. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public String vpnDeviceConfigurationScript(String resourceGroupName, String virtualNetworkGatewayConnectionName, + VpnDeviceScriptParameters parameters) { + return vpnDeviceConfigurationScriptWithResponse(resourceGroupName, virtualNetworkGatewayConnectionName, + parameters, Context.NONE).getValue(); + } + /** * Get the next page of items. * @@ -8006,4 +7988,12 @@ private Mono> listNextSinglePageAsync( .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + + private static final TypeReference> TYPE_REFERENCE_LIST_EXPRESS_ROUTE_FAILOVER_TEST_DETAILS_INNER + = new TypeReference>() { + }; + + private static final TypeReference> TYPE_REFERENCE_LIST_EXPRESS_ROUTE_FAILOVER_SINGLE_TEST_DETAILS_INNER + = new TypeReference>() { + }; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java index 447e09ce8352..bc9c76e7b51d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,8 +33,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualNetworkPeeringsClient; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkPeeringInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkPeeringListResult; import com.azure.resourcemanager.network.models.SyncRemoteAddressSpace; -import com.azure.resourcemanager.network.models.VirtualNetworkPeeringListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -68,297 +68,65 @@ public final class VirtualNetworkPeeringsClientImpl implements VirtualNetworkPee * The interface defining all the services for NetworkManagementClientVirtualNetworkPeerings to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualNetworkPeerings") public interface VirtualNetworkPeeringsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, - @PathParam("virtualNetworkPeeringName") String virtualNetworkPeeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("virtualNetworkPeeringName") String virtualNetworkPeeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @PathParam("virtualNetworkPeeringName") String virtualNetworkPeeringName, @QueryParam("syncRemoteAddressSpace") SyncRemoteAddressSpace syncRemoteAddressSpace, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkPeeringInner virtualNetworkPeeringParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkPeeringInner virtualNetworkPeeringParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkName") String virtualNetworkName, + @PathParam("virtualNetworkPeeringName") String virtualNetworkPeeringName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkName") String virtualNetworkName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (virtualNetworkPeeringName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkName, String virtualNetworkPeeringName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (virtualNetworkPeeringName == null) { - return Mono.error( - new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName, apiVersion, this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).getSyncPoller(); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName, Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context) - .getSyncPoller(); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, - String virtualNetworkPeeringName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName) { - deleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).block(); - } - - /** - * Deletes the specified virtual network peering. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the virtual network peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, - Context context) { - deleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context).block(); - } - /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,6 +142,10 @@ public Mono> getWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -386,22 +158,18 @@ public Mono> getWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @param context The context to associate with this operation. @@ -418,6 +186,10 @@ private Mono> getWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -430,21 +202,17 @@ private Mono> getWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, virtualNetworkPeeringName, accept, context); } /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -462,7 +230,7 @@ public Mono getAsync(String resourceGroupName, Strin /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @param context The context to associate with this operation. @@ -480,7 +248,7 @@ public Response getWithResponse(String resourceGroup /** * Gets the specified virtual network peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param virtualNetworkPeeringName The name of the virtual network peering. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -498,9 +266,9 @@ public VirtualNetworkPeeringInner get(String resourceGroupName, String virtualNe /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -519,6 +287,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -531,10 +303,6 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (virtualNetworkPeeringParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkPeeringParameters is required and cannot be null.")); @@ -542,20 +310,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r virtualNetworkPeeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, virtualNetworkPeeringName, syncRemoteAddressSpace, apiVersion, - this.client.getSubscriptionId(), virtualNetworkPeeringParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, + syncRemoteAddressSpace, contentType, accept, virtualNetworkPeeringParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -576,6 +345,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -588,10 +361,6 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (virtualNetworkPeeringParameters == null) { return Mono.error(new IllegalArgumentException( "Parameter virtualNetworkPeeringParameters is required and cannot be null.")); @@ -599,19 +368,20 @@ private Mono>> createOrUpdateWithResponseAsync(String virtualNetworkPeeringParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - virtualNetworkPeeringName, syncRemoteAddressSpace, apiVersion, this.client.getSubscriptionId(), - virtualNetworkPeeringParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, syncRemoteAddressSpace, contentType, + accept, virtualNetworkPeeringParameters, context); } /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -635,9 +405,9 @@ public PollerFlux, VirtualNetworkPeeringI /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -660,9 +430,9 @@ public PollerFlux, VirtualNetworkPeeringI /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -688,9 +458,9 @@ private PollerFlux, VirtualNetworkPeering /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -712,9 +482,9 @@ public SyncPoller, VirtualNetworkPeeringI /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -739,9 +509,9 @@ public SyncPoller, VirtualNetworkPeeringI /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -763,9 +533,9 @@ public Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -785,9 +555,9 @@ public Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -810,9 +580,9 @@ private Mono createOrUpdateAsync(String resourceGrou /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -831,9 +601,9 @@ public VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, Strin /** * Creates or updates a peering in the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringName The name of the virtual network peering. * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering * operation. * @param syncRemoteAddressSpace Parameter indicates the intention to sync the peering with the current address @@ -852,10 +622,240 @@ public VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, Strin virtualNetworkPeeringParameters, syncRemoteAddressSpace, context).block(); } + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + if (virtualNetworkPeeringName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkName, String virtualNetworkPeeringName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + if (virtualNetworkPeeringName == null) { + return Mono.error( + new IllegalArgumentException("Parameter virtualNetworkPeeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, virtualNetworkPeeringName, context); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).getSyncPoller(); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName, Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, + String virtualNetworkPeeringName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName) { + deleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName).block(); + } + + /** + * Deletes the specified virtual network peering. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, + Context context) { + deleteAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, context).block(); + } + /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -870,6 +870,10 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -878,15 +882,11 @@ private Mono> listSinglePageAsync(Stri return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -895,7 +895,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -911,6 +911,10 @@ private Mono> listSinglePageAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -919,16 +923,12 @@ private Mono> listSinglePageAsync(Stri return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -936,7 +936,7 @@ private Mono> listSinglePageAsync(Stri /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -952,7 +952,7 @@ public PagedFlux listAsync(String resourceGroupName, /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -970,7 +970,7 @@ private PagedFlux listAsync(String resourceGroupName /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -985,7 +985,7 @@ public PagedIterable list(String resourceGroupName, /** * Gets all virtual network peerings in a virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java index a2cfd37c4771..96ac229c12c3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,8 +34,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualNetworkTapsClient; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkTapInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkTapListResult; import com.azure.resourcemanager.network.models.TagsObject; -import com.azure.resourcemanager.network.models.VirtualNetworkTapListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -73,298 +73,100 @@ public final class VirtualNetworkTapsClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkTapInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualNetworkTapInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject tapParameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") TagsObject tapParameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("tapName") String tapName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (tapName == null) { - return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, - this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a VirtualNetworkTap along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName, - Context context) { + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String tapName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (tapName == null) { - return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, tapName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, tapName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String tapName) { - return this.beginDeleteAsync(resourceGroupName, tapName).getSyncPoller(); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String tapName, Context context) { - return this.beginDeleteAsync(resourceGroupName, tapName, context).getSyncPoller(); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String tapName) { - return beginDeleteAsync(resourceGroupName, tapName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String tapName, Context context) { - return beginDeleteAsync(resourceGroupName, tapName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String tapName) { - deleteAsync(resourceGroupName, tapName).block(); - } - - /** - * Deletes the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String tapName, Context context) { - deleteAsync(resourceGroupName, tapName, context).block(); - } - - /** - * Gets information about the specified virtual network tap. - * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of virtual network tap. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String tapName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -372,29 +174,24 @@ public Mono> getByResourceGroupWithResponseAsyn if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, tapName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, tapName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap along with {@link Response} on successful completion - * of {@link Mono}. + * @return a VirtualNetworkTap along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -403,6 +200,10 @@ private Mono> getByResourceGroupWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -410,26 +211,22 @@ private Mono> getByResourceGroupWithResponseAsy if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, tapName, accept, context); } /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap on successful completion of {@link Mono}. + * @return a VirtualNetworkTap on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getByResourceGroupAsync(String resourceGroupName, String tapName) { @@ -438,15 +235,15 @@ public Mono getByResourceGroupAsync(String resourceGroup } /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap along with {@link Response}. + * @return a VirtualNetworkTap along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse(String resourceGroupName, String tapName, @@ -455,14 +252,14 @@ public Response getByResourceGroupWithResponse(String re } /** - * Gets information about the specified virtual network tap. + * Get a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param tapName The name of virtual network tap. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the specified virtual network tap. + * @return a VirtualNetworkTap. */ @ServiceMethod(returns = ReturnType.SINGLE) public VirtualNetworkTapInner getByResourceGroup(String resourceGroupName, String tapName) { @@ -470,10 +267,10 @@ public VirtualNetworkTapInner getByResourceGroup(String resourceGroupName, Strin } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -487,6 +284,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -494,28 +295,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, tapName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, tapName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -530,6 +328,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -537,27 +339,24 @@ private Mono>> createOrUpdateWithResponseAsync(String if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, tapName, contentType, accept, parameters, context); } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -574,10 +373,10 @@ private Mono>> createOrUpdateWithResponseAsync(String } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -596,10 +395,10 @@ private PollerFlux, VirtualNetworkTapInner> b } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -613,10 +412,10 @@ private PollerFlux, VirtualNetworkTapInner> b } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -631,10 +430,10 @@ public SyncPoller, VirtualNetworkTapInner> be } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -649,10 +448,10 @@ public Mono createOrUpdateAsync(String resourceGroupName } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -668,10 +467,10 @@ private Mono createOrUpdateAsync(String resourceGroupNam } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -685,10 +484,10 @@ public VirtualNetworkTapInner createOrUpdate(String resourceGroupName, String ta } /** - * Creates or updates a Virtual Network Tap. + * Create a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the virtual network tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param parameters Parameters supplied to the create or update virtual network tap operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -703,10 +502,10 @@ public VirtualNetworkTapInner createOrUpdate(String resourceGroupName, String ta } /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -720,6 +519,10 @@ public Mono> updateTagsWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -727,28 +530,26 @@ public Mono> updateTagsWithResponseAsync(String if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (tapParameters == null) { return Mono.error(new IllegalArgumentException("Parameter tapParameters is required and cannot be null.")); } else { tapParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, tapName, - apiVersion, this.client.getSubscriptionId(), tapParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, tapName, contentType, accept, tapParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -763,6 +564,10 @@ private Mono> updateTagsWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -770,27 +575,24 @@ private Mono> updateTagsWithResponseAsync(Strin if (tapName == null) { return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (tapParameters == null) { return Mono.error(new IllegalArgumentException("Parameter tapParameters is required and cannot be null.")); } else { tapParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, - this.client.getSubscriptionId(), tapParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, tapName, contentType, accept, tapParameters, context); } /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -805,10 +607,10 @@ public Mono updateTagsAsync(String resourceGroupName, St } /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -823,10 +625,10 @@ public Response updateTagsWithResponse(String resourceGr } /** - * Updates an VirtualNetworkTap tags. + * Update a VirtualNetworkTap. * - * @param resourceGroupName The name of the resource group. - * @param tapName The name of the tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. * @param tapParameters Parameters supplied to update VirtualNetworkTap tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -838,16 +640,216 @@ public VirtualNetworkTapInner updateTags(String resourceGroupName, String tapNam return updateTagsWithResponse(resourceGroupName, tapName, tapParameters, Context.NONE).getValue(); } + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (tapName == null) { + return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, tapName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String tapName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (tapName == null) { + return Mono.error(new IllegalArgumentException("Parameter tapName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + tapName, context); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, tapName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String tapName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, tapName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String tapName) { + return this.beginDeleteAsync(resourceGroupName, tapName).getSyncPoller(); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String tapName, Context context) { + return this.beginDeleteAsync(resourceGroupName, tapName, context).getSyncPoller(); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String tapName) { + return beginDeleteAsync(resourceGroupName, tapName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String tapName, Context context) { + return beginDeleteAsync(resourceGroupName, tapName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String tapName) { + deleteAsync(resourceGroupName, tapName).block(); + } + + /** + * Delete a VirtualNetworkTap. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param tapName The name of virtual network tap. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String tapName, Context context) { + deleteAsync(resourceGroupName, tapName, context).block(); + } + /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -856,11 +858,15 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -869,6 +875,7 @@ private Mono> listSinglePageAsync() { /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -877,7 +884,8 @@ private Mono> listSinglePageAsync() { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -886,10 +894,16 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -897,18 +911,22 @@ private Mono> listSinglePageAsync(Context /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -916,26 +934,29 @@ public PagedFlux listAsync() { * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** * Gets all the VirtualNetworkTaps in a subscription. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -943,30 +964,24 @@ public PagedIterable list() { * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -974,8 +989,8 @@ private Mono> listByResourceGroupSinglePag final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -984,7 +999,6 @@ private Mono> listByResourceGroupSinglePag /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -993,16 +1007,11 @@ private Mono> listByResourceGroupSinglePag * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1010,9 +1019,7 @@ private Mono> listByResourceGroupSinglePag final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1020,22 +1027,18 @@ private Mono> listByResourceGroupSinglePag /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1043,29 +1046,26 @@ public PagedFlux listByResourceGroupAsync(String resourc * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** * Gets all the VirtualNetworkTaps in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1073,8 +1073,8 @@ public PagedIterable listByResourceGroup(String resource * @return all the VirtualNetworkTaps in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -1088,7 +1088,7 @@ public PagedIterable listByResourceGroup(String resource * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1098,7 +1098,8 @@ private Mono> listAllNextSinglePageAsync(S } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1116,7 +1117,8 @@ private Mono> listAllNextSinglePageAsync(S * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1126,7 +1128,7 @@ private Mono> listAllNextSinglePageAsync(S } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1142,7 +1144,7 @@ private Mono> listAllNextSinglePageAsync(S * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1152,8 +1154,7 @@ private Mono> listByResourceGroupNextSingl } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1171,8 +1172,7 @@ private Mono> listByResourceGroupNextSingl * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1182,7 +1182,7 @@ private Mono> listByResourceGroupNextSingl } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java index 4d6ecf989012..3ccd3f7fd2af 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -38,10 +38,10 @@ import com.azure.resourcemanager.network.fluent.models.PublicIpDdosProtectionStatusResultInner; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkInner; import com.azure.resourcemanager.network.fluent.models.VirtualNetworkUsageInner; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkDdosProtectionStatusResult; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkListResult; +import com.azure.resourcemanager.network.implementation.models.VirtualNetworkListUsageResult; import com.azure.resourcemanager.network.models.TagsObject; -import com.azure.resourcemanager.network.models.VirtualNetworkDdosProtectionStatusResult; -import com.azure.resourcemanager.network.models.VirtualNetworkListResult; -import com.azure.resourcemanager.network.models.VirtualNetworkListUsageResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -79,108 +79,110 @@ public final class VirtualNetworksClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualNetworkInner parameters, @HeaderParam("Accept") String accept, + @PathParam("virtualNetworkName") String virtualNetworkName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualNetworkInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") TagsObject parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkName") String virtualNetworkName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualNetworkName") String virtualNetworkName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/checkIPAddressAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkIpAddressAvailability(@HostParam("$host") String endpoint, + Mono> checkIpAddressAvailability( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("ipAddress") String ipAddress, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listUsage(@HostParam("$host") String endpoint, + Mono> listUsage(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualNetworkName") String virtualNetworkName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/ddosProtectionStatus") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> listDdosProtectionStatus(@HostParam("$host") String endpoint, + Mono>> listDdosProtectionStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualNetworkName") String virtualNetworkName, @QueryParam("top") Integer top, - @QueryParam("skipToken") String skipToken, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @QueryParam("skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -188,7 +190,7 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listUsageNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -196,219 +198,14 @@ Mono> listUsageNext( @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listDdosProtectionStatusNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualNetworkName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualNetworkName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName).getSyncPoller(); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, context).getSyncPoller(); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualNetworkName) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualNetworkName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName) { - deleteAsync(resourceGroupName, virtualNetworkName).block(); - } - - /** - * Deletes the specified virtual network. - * - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualNetworkName, Context context) { - deleteAsync(resourceGroupName, virtualNetworkName, context).block(); - } - /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -424,6 +221,10 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -432,22 +233,18 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -464,6 +261,10 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -472,21 +273,17 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, expand, accept, context); } /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -503,7 +300,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -521,7 +318,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets the specified virtual network by resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -537,7 +334,7 @@ public VirtualNetworkInner getByResourceGroup(String resourceGroupName, String v /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -552,6 +349,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -560,27 +361,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -596,6 +395,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -604,26 +407,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, contentType, accept, parameters, context); } /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -643,7 +443,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -665,7 +465,7 @@ private PollerFlux, VirtualNetworkInner> beginCr /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -682,7 +482,7 @@ private PollerFlux, VirtualNetworkInner> beginCr /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -701,7 +501,7 @@ public SyncPoller, VirtualNetworkInner> beginCre /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -719,7 +519,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -738,7 +538,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -755,7 +555,7 @@ public VirtualNetworkInner createOrUpdate(String resourceGroupName, String virtu /** * Creates or updates a virtual network in the specified resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to the create or update virtual network operation. * @param context The context to associate with this operation. @@ -773,7 +573,7 @@ public VirtualNetworkInner createOrUpdate(String resourceGroupName, String virtu /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -788,6 +588,10 @@ public Mono> updateTagsWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -796,27 +600,25 @@ public Mono> updateTagsWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a virtual network tags. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param parameters Parameters supplied to update virtual network tags. * @param context The context to associate with this operation. @@ -832,6 +634,10 @@ private Mono> updateTagsWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -840,84 +646,286 @@ private Mono> updateTagsWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, contentType, accept, parameters, context); + } + + /** + * Updates a virtual network tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to update virtual network tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return virtual Network resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String virtualNetworkName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates a virtual network tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to update virtual network tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return virtual Network resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, String virtualNetworkName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkName, parameters, context).block(); + } + + /** + * Updates a virtual network tags. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to update virtual network tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return virtual Network resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualNetworkInner updateTags(String resourceGroupName, String virtualNetworkName, TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, virtualNetworkName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualNetworkName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, context); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualNetworkName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName).getSyncPoller(); + } + + /** + * Deletes the specified virtual network. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualNetworkName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualNetworkName, context).getSyncPoller(); } /** - * Updates a virtual network tags. + * Deletes the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Network resource on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String virtualNetworkName, - TagsObject parameters) { - return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono deleteAsync(String resourceGroupName, String virtualNetworkName) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network tags. + * Deletes the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param parameters Parameters supplied to update virtual network tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Network resource along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String virtualNetworkName, - TagsObject parameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, virtualNetworkName, parameters, context).block(); + private Mono deleteAsync(String resourceGroupName, String virtualNetworkName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualNetworkName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates a virtual network tags. + * Deletes the specified virtual network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. - * @param parameters Parameters supplied to update virtual network tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return virtual Network resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualNetworkInner updateTags(String resourceGroupName, String virtualNetworkName, TagsObject parameters) { - return updateTagsWithResponse(resourceGroupName, virtualNetworkName, parameters, Context.NONE).getValue(); + public void delete(String resourceGroupName, String virtualNetworkName) { + deleteAsync(resourceGroupName, virtualNetworkName).block(); } /** - * Gets all virtual networks in a subscription. + * Deletes the specified virtual network. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualNetworkName The name of the virtual network. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualNetworkName, Context context) { + deleteAsync(resourceGroupName, virtualNetworkName, context).block(); + } + + /** + * Gets all virtual networks in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -926,28 +934,34 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all virtual networks in a subscription. + * Gets all virtual networks in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -956,87 +970,94 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all virtual networks in a subscription. + * Gets all virtual networks in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. + * @return all virtual networks in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Gets all virtual networks in a subscription. + * Gets all virtual networks in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. + * @return all virtual networks in a resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Gets all virtual networks in a subscription. + * Gets all virtual networks in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + * @return all virtual networks in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Gets all virtual networks in a subscription. + * Gets all virtual networks in a resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. + * @return all virtual networks in a resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1044,35 +1065,29 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); @@ -1080,77 +1095,68 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group as paginated response with {@link PagedFlux}. + * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group as paginated response with {@link PagedFlux}. + * @return all virtual networks in a subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group as paginated response with {@link PagedIterable}. + * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Gets all virtual networks in a resource group. + * Gets all virtual networks in a subscription. * - * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group as paginated response with {@link PagedIterable}. + * @return all virtual networks in a subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1166,6 +1172,10 @@ public Mono> checkIpAddressAvailabili return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1177,22 +1187,18 @@ public Mono> checkIpAddressAvailabili if (ipAddress == null) { return Mono.error(new IllegalArgumentException("Parameter ipAddress is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkIpAddressAvailability(this.client.getEndpoint(), resourceGroupName, - virtualNetworkName, ipAddress, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.checkIpAddressAvailability(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, ipAddress, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @param context The context to associate with this operation. @@ -1209,6 +1215,10 @@ private Mono> checkIpAddressAvailabil return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1220,21 +1230,17 @@ private Mono> checkIpAddressAvailabil if (ipAddress == null) { return Mono.error(new IllegalArgumentException("Parameter ipAddress is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkIpAddressAvailability(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - ipAddress, apiVersion, this.client.getSubscriptionId(), accept, context); + return service.checkIpAddressAvailability(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, ipAddress, accept, context); } /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1252,7 +1258,7 @@ public Mono checkIpAddressAvailabilityAsync(St /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @param context The context to associate with this operation. @@ -1271,7 +1277,7 @@ public Response checkIpAddressAvailabilityWith /** * Checks whether a private IP address is available for use. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1289,7 +1295,7 @@ public IpAddressAvailabilityResultInner checkIpAddressAvailability(String resour /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1304,6 +1310,10 @@ private Mono> listUsageSinglePageAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1312,15 +1322,11 @@ private Mono> listUsageSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listUsage(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listUsage(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualNetworkName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1329,7 +1335,7 @@ private Mono> listUsageSinglePageAsync(S /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1345,6 +1351,10 @@ private Mono> listUsageSinglePageAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1353,16 +1363,12 @@ private Mono> listUsageSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listUsage(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listUsage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1370,7 +1376,7 @@ private Mono> listUsageSinglePageAsync(S /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1386,7 +1392,7 @@ public PagedFlux listUsageAsync(String resourceGroupNa /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1404,7 +1410,7 @@ private PagedFlux listUsageAsync(String resourceGroupN /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1420,7 +1426,7 @@ public PagedIterable listUsage(String resourceGroupNam /** * Lists usage stats. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1438,7 +1444,7 @@ public PagedIterable listUsage(String resourceGroupNam /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -1455,6 +1461,10 @@ private Mono> listDdosPro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1463,16 +1473,12 @@ private Mono> listDdosPro return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> { Mono>> mono = service - .listDdosProtectionStatus(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, top, - skipToken, apiVersion, this.client.getSubscriptionId(), accept, context) + .listDdosProtectionStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, top, skipToken, accept, context) .cache(); return Mono.zip(mono, this.client @@ -1491,7 +1497,7 @@ private Mono> listDdosPro /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -1509,6 +1515,10 @@ private Mono> listDdosPro return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1517,17 +1527,14 @@ private Mono> listDdosPro return Mono .error(new IllegalArgumentException("Parameter virtualNetworkName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - Mono>> mono = service - .listDdosProtectionStatus(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, top, skipToken, - apiVersion, this.client.getSubscriptionId(), accept, context) - .cache(); + Mono>> mono + = service + .listDdosProtectionStatus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualNetworkName, top, skipToken, accept, context) + .cache(); return Mono .zip(mono, this.client @@ -1543,7 +1550,7 @@ private Mono> listDdosPro /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -1564,7 +1571,7 @@ public PagedFlux listDdosProtectionStat /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1585,7 +1592,7 @@ public PagedFlux listDdosProtectionStat /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -1606,7 +1613,7 @@ private PagedFlux listDdosProtectionSta /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1626,7 +1633,7 @@ public PagedIterable listDdosProtection /** * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName The name of the virtual network. * @param top The max number of ip addresses to return. * @param skipToken The skipToken that is given with nextLink. @@ -1651,11 +1658,11 @@ public PagedIterable listDdosProtection * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1664,8 +1671,7 @@ private Mono> listAllNextSinglePageAsync(Stri new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1679,11 +1685,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1693,7 +1699,7 @@ private Mono> listAllNextSinglePageAsync(Stri } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1705,11 +1711,11 @@ private Mono> listAllNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listAllNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1718,7 +1724,8 @@ private Mono> listNextSinglePageAsync(String new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext(context -> service.listAllNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1732,11 +1739,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all virtual networks in a resource group along with {@link PagedResponse} on successful completion of + * @return all virtual networks in a subscription along with {@link PagedResponse} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listAllNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1746,7 +1753,7 @@ private Mono> listNextSinglePageAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listAllNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java index 904d2eed01cc..caaceb85ed4b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -32,8 +32,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualRouterPeeringsClient; import com.azure.resourcemanager.network.fluent.models.VirtualRouterPeeringInner; +import com.azure.resourcemanager.network.implementation.models.VirtualRouterPeeringListResult; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.VirtualRouterPeeringListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,290 +67,65 @@ public final class VirtualRouterPeeringsClientImpl implements VirtualRouterPeeri * The interface defining all the services for NetworkManagementClientVirtualRouterPeerings to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVirtualRouterPeerings") public interface VirtualRouterPeeringsService { - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualRouterName") String virtualRouterName, @PathParam("peeringName") String peeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualRouterName") String virtualRouterName, @PathParam("peeringName") String peeringName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("virtualRouterName") String virtualRouterName, @PathParam("peeringName") String peeringName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualRouterPeeringInner parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ErrorException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualRouterPeeringInner parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualRouterName") String virtualRouterName, @PathParam("peeringName") String peeringName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualRouterName") String virtualRouterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualRouterName") String virtualRouterName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, - String peeringName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualRouterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, - String peeringName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualRouterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); - } - if (peeringName == null) { - return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, - String peeringName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualRouterName, peeringName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, - String peeringName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, virtualRouterName, peeringName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, - String peeringName) { - return this.beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName).getSyncPoller(); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, - String peeringName, Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName, context).getSyncPoller(); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName) { - return beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName, - Context context) { - return beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualRouterName, String peeringName) { - deleteAsync(resourceGroupName, virtualRouterName, peeringName).block(); - } - - /** - * Deletes the specified peering from a Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the peering. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualRouterName, String peeringName, Context context) { - deleteAsync(resourceGroupName, virtualRouterName, peeringName, context).block(); - } - /** * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -364,6 +139,10 @@ public Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -375,24 +154,21 @@ public Mono> getWithResponseAsync(String res if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualRouterName, - peeringName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualRouterName, peeringName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -407,6 +183,10 @@ private Mono> getWithResponseAsync(String re return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -418,23 +198,20 @@ private Mono> getWithResponseAsync(String re if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualRouterName, peeringName, accept, context); } /** * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -450,9 +227,10 @@ public Mono getAsync(String resourceGroupName, String /** * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -468,9 +246,10 @@ public Response getWithResponse(String resourceGroupN /** * Gets the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -484,9 +263,10 @@ public VirtualRouterPeeringInner get(String resourceGroupName, String virtualRou /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -500,6 +280,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -511,30 +295,28 @@ public Mono>> createOrUpdateWithResponseAsync(String r if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualRouterName, - peeringName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualRouterName, peeringName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -549,6 +331,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -560,28 +346,26 @@ private Mono>> createOrUpdateWithResponseAsync(String if (peeringName == null) { return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualRouterName, peeringName, contentType, accept, parameters, context); } /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -601,9 +385,10 @@ public PollerFlux, VirtualRouterPeeringInn /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -625,9 +410,10 @@ private PollerFlux, VirtualRouterPeeringIn /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -644,9 +430,10 @@ public SyncPoller, VirtualRouterPeeringInn /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -665,9 +452,10 @@ public SyncPoller, VirtualRouterPeeringInn /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -684,9 +472,10 @@ public Mono createOrUpdateAsync(String resourceGroupN /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -704,9 +493,10 @@ private Mono createOrUpdateAsync(String resourceGroup /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -722,9 +512,10 @@ public VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String /** * Creates or updates the specified Virtual Router Peering. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. - * @param peeringName The name of the Virtual Router Peering. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param parameters Parameters supplied to the create or update Virtual Router Peering operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -739,23 +530,28 @@ public VirtualRouterPeeringInner createOrUpdate(String resourceGroupName, String } /** - * Lists all Virtual Router Peerings in a Virtual Router resource. + * Deletes the specified peering from a Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String virtualRouterName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, + String peeringName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -764,15 +560,244 @@ private Mono> listSinglePageAsync(Strin return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualRouterName, peeringName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, + String peeringName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualRouterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); + } + if (peeringName == null) { + return Mono.error(new IllegalArgumentException("Parameter peeringName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualRouterName, peeringName, context); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, + String peeringName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualRouterName, peeringName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, + String peeringName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, virtualRouterName, peeringName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, + String peeringName) { + return this.beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName).getSyncPoller(); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, + String peeringName, Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName, context).getSyncPoller(); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName) { + return beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String virtualRouterName, String peeringName, + Context context) { + return beginDeleteAsync(resourceGroupName, virtualRouterName, peeringName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualRouterName, String peeringName) { + deleteAsync(resourceGroupName, virtualRouterName, peeringName).block(); + } + + /** + * Deletes the specified peering from a Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param peeringName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualRouterName, String peeringName, Context context) { + deleteAsync(resourceGroupName, virtualRouterName, peeringName, context).block(); + } + + /** + * Lists all Virtual Router Peerings in a Virtual Router resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a VirtualRouterPeering list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String virtualRouterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualRouterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualRouterName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualRouterName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -781,13 +806,13 @@ private Mono> listSinglePageAsync(Strin /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call along with {@link PagedResponse} on successful + * @return the response of a VirtualRouterPeering list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -797,6 +822,10 @@ private Mono> listSinglePageAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -805,16 +834,12 @@ private Mono> listSinglePageAsync(Strin return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualRouterName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -822,12 +847,12 @@ private Mono> listSinglePageAsync(Strin /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync(String resourceGroupName, String virtualRouterName) { @@ -838,13 +863,13 @@ public PagedFlux listAsync(String resourceGroupName, /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String virtualRouterName, @@ -856,12 +881,12 @@ private PagedFlux listAsync(String resourceGroupName, /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String virtualRouterName) { @@ -871,13 +896,13 @@ public PagedIterable list(String resourceGroupName, S /** * Lists all Virtual Router Peerings in a Virtual Router resource. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouterPeering list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String virtualRouterName, @@ -892,7 +917,7 @@ public PagedIterable list(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call along with {@link PagedResponse} on successful + * @return the response of a VirtualRouterPeering list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -919,7 +944,7 @@ private Mono> listNextSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouterPeerings API service call along with {@link PagedResponse} on successful + * @return the response of a VirtualRouterPeering list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java index 8114d4375a90..ce7881ca66bc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -32,8 +32,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualRoutersClient; import com.azure.resourcemanager.network.fluent.models.VirtualRouterInner; +import com.azure.resourcemanager.network.implementation.models.VirtualRouterListResult; import com.azure.resourcemanager.network.models.ErrorException; -import com.azure.resourcemanager.network.models.VirtualRouterListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -71,52 +71,52 @@ public final class VirtualRoutersClientImpl implements InnerSupportsGet>> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualRouterName") String virtualRouterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualRouterName") String virtualRouterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("$expand") String expand, + @PathParam("virtualRouterName") String virtualRouterName, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualRouterName") String virtualRouterName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VirtualRouterInner parameters, @HeaderParam("Accept") String accept, + @PathParam("virtualRouterName") String virtualRouterName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualRouterInner parameters, Context context); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ErrorException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("virtualRouterName") String virtualRouterName, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -125,7 +125,7 @@ Mono> list(@HostParam("$host") String endpoint @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -133,218 +133,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, - String virtualRouterName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualRouterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, - apiVersion, this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (virtualRouterName == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, - this.client.getSubscriptionId(), accept, context); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualRouterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualRouterName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName) { - return this.beginDeleteAsync(resourceGroupName, virtualRouterName).getSyncPoller(); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualRouterName, context).getSyncPoller(); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualRouterName) { - return beginDeleteAsync(resourceGroupName, virtualRouterName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualRouterName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualRouterName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualRouterName) { - deleteAsync(resourceGroupName, virtualRouterName).block(); - } - - /** - * Deletes the specified Virtual Router. - * - * @param resourceGroupName The name of the resource group. - * @param virtualRouterName The name of the Virtual Router. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualRouterName, Context context) { - deleteAsync(resourceGroupName, virtualRouterName, context).block(); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param expand Expands referenced resources. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -359,6 +154,10 @@ public Mono> getByResourceGroupWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -367,22 +166,18 @@ public Mono> getByResourceGroupWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualRouterName, apiVersion, this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualRouterName, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -398,6 +193,10 @@ private Mono> getByResourceGroupWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -406,21 +205,17 @@ private Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, - this.client.getSubscriptionId(), expand, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualRouterName, expand, accept, context); } /** * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -437,7 +232,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName /** * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param expand Expands referenced resources. * @param context The context to associate with this operation. @@ -455,7 +250,7 @@ public Response getByResourceGroupWithResponse(String resour /** * Gets the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -471,7 +266,7 @@ public VirtualRouterInner getByResourceGroup(String resourceGroupName, String vi /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -486,6 +281,10 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -494,27 +293,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - virtualRouterName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualRouterName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. @@ -530,6 +327,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -538,26 +339,23 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualRouterName, contentType, accept, parameters, context); } /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,7 +375,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. @@ -599,7 +397,7 @@ private PollerFlux, VirtualRouterInner> beginCrea /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -616,7 +414,7 @@ public SyncPoller, VirtualRouterInner> beginCreat /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. @@ -634,7 +432,7 @@ public SyncPoller, VirtualRouterInner> beginCreat /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -652,7 +450,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. @@ -671,7 +469,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -688,7 +486,7 @@ public VirtualRouterInner createOrUpdate(String resourceGroupName, String virtua /** * Creates or updates the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualRouterName The name of the Virtual Router. * @param parameters Parameters supplied to the create or update Virtual Router. * @param context The context to associate with this operation. @@ -704,34 +502,237 @@ public VirtualRouterInner createOrUpdate(String resourceGroupName, String virtua } /** - * Lists all Virtual Routers in a resource group. + * Deletes the specified Virtual Router. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String virtualRouterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (virtualRouterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualRouterName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualRouterName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (virtualRouterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualRouterName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualRouterName, context); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualRouterName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualRouterName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualRouterName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName) { + return this.beginDeleteAsync(resourceGroupName, virtualRouterName).getSyncPoller(); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualRouterName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, virtualRouterName, context).getSyncPoller(); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String virtualRouterName) { + return beginDeleteAsync(resourceGroupName, virtualRouterName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String virtualRouterName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualRouterName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualRouterName) { + deleteAsync(resourceGroupName, virtualRouterName).block(); + } + + /** + * Deletes the specified Virtual Router. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualRouterName The name of the Virtual Router. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String virtualRouterName, Context context) { + deleteAsync(resourceGroupName, virtualRouterName, context).block(); + } + + /** + * Lists all Virtual Routers in a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a VirtualRouter list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -740,13 +741,13 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a VirtualRouter list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -755,20 +756,20 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, - this.client.getSubscriptionId(), accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -776,11 +777,11 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -791,12 +792,12 @@ public PagedFlux listByResourceGroupAsync(String resourceGro /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedFlux}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -807,11 +808,11 @@ private PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -821,12 +822,12 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Lists all Virtual Routers in a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call as paginated response with {@link PagedIterable}. + * @return the response of a VirtualRouter list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -949,8 +950,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a VirtualRouter list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -978,8 +979,8 @@ private Mono> listByResourceGroupNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response for ListVirtualRouters API service call along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a VirtualRouter list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java index b9185840d6e5..a49fd9c2cf61 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VirtualWansClient; import com.azure.resourcemanager.network.fluent.models.VirtualWanInner; -import com.azure.resourcemanager.network.models.ListVirtualWansResult; +import com.azure.resourcemanager.network.implementation.models.ListVirtualWANsResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -73,88 +73,85 @@ public final class VirtualWansClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("VirtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("VirtualWANName") String virtualWANName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("VirtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VirtualWanInner wanParameters, @HeaderParam("Accept") String accept, + @PathParam("VirtualWANName") String virtualWANName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") VirtualWanInner wANParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("VirtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject wanParameters, @HeaderParam("Accept") String accept, + @PathParam("VirtualWANName") String virtualWANName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TagsObject wANParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("VirtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("VirtualWANName") String virtualWANName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -162,35 +159,35 @@ Mono> listNext(@PathParam(value = "nextLink", en */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualWanName) { + String virtualWANName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - virtualWanName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualWANName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -199,50 +196,50 @@ public Mono> getByResourceGroupWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String virtualWanName, Context context) { + String virtualWANName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualWanName, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, accept, context); } /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String virtualWanName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualWanName) + public Mono getByResourceGroupAsync(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualWANName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -250,32 +247,32 @@ public Mono getByResourceGroupAsync(String resourceGroupName, S * @return virtualWAN Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String virtualWanName, + public Response getByResourceGroupWithResponse(String resourceGroupName, String virtualWANName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, virtualWanName, context).block(); + return getByResourceGroupWithResponseAsync(resourceGroupName, virtualWANName, context).block(); } /** * Retrieves the details of a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualWanInner getByResourceGroup(String resourceGroupName, String virtualWanName) { - return getByResourceGroupWithResponse(resourceGroupName, virtualWanName, Context.NONE).getValue(); + public VirtualWanInner getByResourceGroup(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithResponse(resourceGroupName, virtualWANName, Context.NONE).getValue(); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -283,7 +280,7 @@ public VirtualWanInner getByResourceGroup(String resourceGroupName, String virtu */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters) { + String virtualWANName, VirtualWanInner wANParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -296,28 +293,30 @@ public Mono>> createOrUpdateWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } - if (wanParameters == null) { - return Mono.error(new IllegalArgumentException("Parameter wanParameters is required and cannot be null.")); + if (wANParameters == null) { + return Mono.error(new IllegalArgumentException("Parameter wANParameters is required and cannot be null.")); } else { - wanParameters.validate(); + wANParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, wanParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualWANName, contentType, accept, wANParameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -326,7 +325,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters, Context context) { + String virtualWANName, VirtualWanInner wANParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -339,27 +338,28 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } - if (wanParameters == null) { - return Mono.error(new IllegalArgumentException("Parameter wanParameters is required and cannot be null.")); + if (wANParameters == null) { + return Mono.error(new IllegalArgumentException("Parameter wANParameters is required and cannot be null.")); } else { - wanParameters.validate(); + wANParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, wanParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, contentType, accept, wANParameters, context); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -367,9 +367,9 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VirtualWanInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters) { + String virtualWANName, VirtualWanInner wANParameters) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, virtualWanName, wanParameters); + = createOrUpdateWithResponseAsync(resourceGroupName, virtualWANName, wANParameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VirtualWanInner.class, VirtualWanInner.class, this.client.getContext()); } @@ -377,9 +377,9 @@ public PollerFlux, VirtualWanInner> beginCreateOrUpd /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -388,10 +388,10 @@ public PollerFlux, VirtualWanInner> beginCreateOrUpd */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualWanInner> beginCreateOrUpdateAsync(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters, Context context) { + String virtualWANName, VirtualWanInner wANParameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, virtualWanName, wanParameters, context); + = createOrUpdateWithResponseAsync(resourceGroupName, virtualWANName, wANParameters, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), VirtualWanInner.class, VirtualWanInner.class, context); } @@ -399,9 +399,9 @@ private PollerFlux, VirtualWanInner> beginCreateOrUp /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -409,16 +409,16 @@ private PollerFlux, VirtualWanInner> beginCreateOrUp */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualWanInner> beginCreateOrUpdate(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters).getSyncPoller(); + String virtualWANName, VirtualWanInner wANParameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters).getSyncPoller(); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -427,34 +427,34 @@ public SyncPoller, VirtualWanInner> beginCreateOrUpd */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualWanInner> beginCreateOrUpdate(String resourceGroupName, - String virtualWanName, VirtualWanInner wanParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters, context).getSyncPoller(); + String virtualWANName, VirtualWanInner wANParameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters, context).getSyncPoller(); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters).last() + public Mono createOrUpdateAsync(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -462,35 +462,35 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters, context).last() + private Mono createOrUpdateAsync(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters) { - return createOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters).block(); + public VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters) { + return createOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters).block(); } /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being created or updated. - * @param wanParameters Parameters supplied to create or update VirtualWAN. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to create or update VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -498,25 +498,25 @@ public VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWa * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWanName, - VirtualWanInner wanParameters, Context context) { - return createOrUpdateAsync(resourceGroupName, virtualWanName, wanParameters, context).block(); + public VirtualWanInner createOrUpdate(String resourceGroupName, String virtualWANName, + VirtualWanInner wANParameters, Context context) { + return createOrUpdateAsync(resourceGroupName, virtualWANName, wANParameters, context).block(); } /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWanName, - TagsObject wanParameters) { + public Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWANName, + TagsObject wANParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -529,28 +529,30 @@ public Mono> updateTagsWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } - if (wanParameters == null) { - return Mono.error(new IllegalArgumentException("Parameter wanParameters is required and cannot be null.")); + if (wANParameters == null) { + return Mono.error(new IllegalArgumentException("Parameter wANParameters is required and cannot be null.")); } else { - wanParameters.validate(); + wANParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, wanParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, contentType, accept, wANParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -558,8 +560,8 @@ public Mono> updateTagsWithResponseAsync(String resour * @return virtualWAN Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWanName, - TagsObject wanParameters, Context context) { + private Mono> updateTagsWithResponseAsync(String resourceGroupName, String virtualWANName, + TagsObject wANParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -572,45 +574,46 @@ private Mono> updateTagsWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } - if (wanParameters == null) { - return Mono.error(new IllegalArgumentException("Parameter wanParameters is required and cannot be null.")); + if (wANParameters == null) { + return Mono.error(new IllegalArgumentException("Parameter wANParameters is required and cannot be null.")); } else { - wanParameters.validate(); + wANParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, wanParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, contentType, accept, wANParameters, context); } /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateTagsAsync(String resourceGroupName, String virtualWanName, - TagsObject wanParameters) { - return updateTagsWithResponseAsync(resourceGroupName, virtualWanName, wanParameters) + public Mono updateTagsAsync(String resourceGroupName, String virtualWANName, + TagsObject wANParameters) { + return updateTagsWithResponseAsync(resourceGroupName, virtualWANName, wANParameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -618,39 +621,39 @@ public Mono updateTagsAsync(String resourceGroupName, String vi * @return virtualWAN Resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String virtualWanName, - TagsObject wanParameters, Context context) { - return updateTagsWithResponseAsync(resourceGroupName, virtualWanName, wanParameters, context).block(); + public Response updateTagsWithResponse(String resourceGroupName, String virtualWANName, + TagsObject wANParameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, virtualWANName, wANParameters, context).block(); } /** * Updates a VirtualWAN tags. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being updated. - * @param wanParameters Parameters supplied to Update VirtualWAN tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param wANParameters Parameters supplied to Update VirtualWAN tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualWAN Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VirtualWanInner updateTags(String resourceGroupName, String virtualWanName, TagsObject wanParameters) { - return updateTagsWithResponse(resourceGroupName, virtualWanName, wanParameters, Context.NONE).getValue(); + public VirtualWanInner updateTags(String resourceGroupName, String virtualWANName, TagsObject wANParameters) { + return updateTagsWithResponse(resourceGroupName, virtualWANName, wANParameters, Context.NONE).getValue(); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWanName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWANName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -663,22 +666,21 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualWANName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -686,7 +688,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWanName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualWANName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -700,29 +702,28 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualWANName, context); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWanName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualWanName); + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWANName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualWANName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -730,8 +731,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -739,10 +740,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWanName, + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualWANName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualWanName, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualWANName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -750,23 +751,23 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWanName) { - return this.beginDeleteAsync(resourceGroupName, virtualWanName).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWANName) { + return this.beginDeleteAsync(resourceGroupName, virtualWANName).getSyncPoller(); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -774,32 +775,32 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWanName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualWANName, Context context) { - return this.beginDeleteAsync(resourceGroupName, virtualWanName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, virtualWANName, context).getSyncPoller(); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteAsync(String resourceGroupName, String virtualWanName) { - return beginDeleteAsync(resourceGroupName, virtualWanName).last() + public Mono deleteAsync(String resourceGroupName, String virtualWANName) { + return beginDeleteAsync(resourceGroupName, virtualWANName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -807,44 +808,44 @@ public Mono deleteAsync(String resourceGroupName, String virtualWanName) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualWanName, Context context) { - return beginDeleteAsync(resourceGroupName, virtualWanName, context).last() + private Mono deleteAsync(String resourceGroupName, String virtualWANName, Context context) { + return beginDeleteAsync(resourceGroupName, virtualWANName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualWanName) { - deleteAsync(resourceGroupName, virtualWanName).block(); + public void delete(String resourceGroupName, String virtualWANName) { + deleteAsync(resourceGroupName, virtualWANName).block(); } /** * Deletes a VirtualWAN. * - * @param resourceGroupName The resource group name of the VirtualWan. - * @param virtualWanName The name of the VirtualWAN being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualWanName, Context context) { - deleteAsync(resourceGroupName, virtualWanName, context).block(); + public void delete(String resourceGroupName, String virtualWANName, Context context) { + deleteAsync(resourceGroupName, virtualWANName, context).block(); } /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -868,8 +869,8 @@ private Mono> listByResourceGroupSinglePageAsync( final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -878,7 +879,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -905,8 +906,8 @@ private Mono> listByResourceGroupSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -914,7 +915,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -929,7 +930,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupN /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -945,7 +946,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroup /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -959,7 +960,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNa /** * Lists all the VirtualWANs in a resource group. * - * @param resourceGroupName The resource group name of the VirtualWan. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -992,7 +993,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1022,7 +1023,7 @@ private Mono> listSinglePageAsync(Context context final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java index f16cce5c6ebf..6fc54fe228b4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VpnConnectionsClient; import com.azure.resourcemanager.network.fluent.models.VpnConnectionInner; -import com.azure.resourcemanager.network.models.ListVpnConnectionsResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnConnectionsResult; import com.azure.resourcemanager.network.models.VpnConnectionPacketCaptureStartParameters; import com.azure.resourcemanager.network.models.VpnConnectionPacketCaptureStopParameters; import java.nio.ByteBuffer; @@ -70,85 +70,80 @@ public final class VpnConnectionsClientImpl implements VpnConnectionsClient { * The interface defining all the services for NetworkManagementClientVpnConnections to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnConnections") public interface VpnConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VpnConnectionInner vpnConnectionParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnConnectionInner vpnConnectionParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{vpnConnectionName}/startpacketcapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> startPacketCapture(@HostParam("$host") String endpoint, + Mono>> startPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("vpnConnectionName") String vpnConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnConnectionPacketCaptureStartParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("vpnConnectionName") String vpnConnectionName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnConnectionPacketCaptureStartParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{vpnConnectionName}/stoppacketcapture") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stopPacketCapture(@HostParam("$host") String endpoint, + Mono>> stopPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("vpnConnectionName") String vpnConnectionName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnConnectionPacketCaptureStopParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("vpnConnectionName") String vpnConnectionName, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnConnectionPacketCaptureStopParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVpnGateway(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listByVpnGateway(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnGatewayNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -179,16 +174,16 @@ public Mono> getWithResponseAsync(String resourceGr final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -220,15 +215,15 @@ private Mono> getWithResponseAsync(String resourceG final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, - connectionName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, connectionName, accept, context); } /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -244,8 +239,8 @@ public Mono getAsync(String resourceGroupName, String gatewa /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -262,8 +257,8 @@ public Response getWithResponse(String resourceGroupName, St /** * Retrieves the details of a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -278,9 +273,9 @@ public VpnConnectionInner get(String resourceGroupName, String gatewayName, Stri /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -315,19 +310,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r vpnConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, apiVersion, vpnConnectionParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, contentType, accept, + vpnConnectionParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -363,18 +360,19 @@ private Mono>> createOrUpdateWithResponseAsync(String vpnConnectionParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, apiVersion, vpnConnectionParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, contentType, accept, vpnConnectionParameters, context); } /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -394,9 +392,9 @@ public PollerFlux, VpnConnectionInner> beginCreat /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -418,9 +416,9 @@ private PollerFlux, VpnConnectionInner> beginCrea /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -437,9 +435,9 @@ public SyncPoller, VpnConnectionInner> beginCreat /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -458,9 +456,9 @@ public SyncPoller, VpnConnectionInner> beginCreat /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,9 +475,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -497,9 +495,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -515,9 +513,9 @@ public VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewa /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -535,9 +533,9 @@ public VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewa /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -565,19 +563,18 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -606,18 +603,17 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, connectionName, context); } /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -634,9 +630,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -656,9 +652,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -673,9 +669,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -691,9 +687,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -708,9 +704,9 @@ public Mono deleteAsync(String resourceGroupName, String gatewayName, Stri /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -727,9 +723,9 @@ private Mono deleteAsync(String resourceGroupName, String gatewayName, Str /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -742,9 +738,9 @@ public void delete(String resourceGroupName, String gatewayName, String connecti /** * Deletes a vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -758,8 +754,8 @@ public void delete(String resourceGroupName, String gatewayName, String connecti /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -775,6 +771,10 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -786,27 +786,23 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter vpnConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, - vpnConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, vpnConnectionName, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -824,6 +820,10 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -835,25 +835,21 @@ private Mono>> startPacketCaptureWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter vpnConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, vpnConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.startPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, vpnConnectionName, accept, parameters, context); } /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -874,8 +870,8 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -895,8 +891,8 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -920,8 +916,8 @@ private PollerFlux, String> beginStartPacketCaptureAsync(Stri /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -939,8 +935,8 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -960,8 +956,8 @@ public SyncPoller, String> beginStartPacketCapture(String res /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -980,8 +976,8 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String gat /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -999,8 +995,8 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String gat /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -1021,8 +1017,8 @@ private Mono startPacketCaptureAsync(String resourceGroupName, String ga /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1038,8 +1034,8 @@ public String startPacketCapture(String resourceGroupName, String gatewayName, S /** * Starts packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to start packet capture on gateway * connection. @@ -1058,8 +1054,8 @@ public String startPacketCapture(String resourceGroupName, String gatewayName, S /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1074,6 +1070,10 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1085,26 +1085,23 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter vpnConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, - vpnConnectionName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, vpnConnectionName, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -1121,6 +1118,10 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1132,25 +1133,21 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter vpnConnectionName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, vpnConnectionName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context); + return service.stopPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, vpnConnectionName, accept, parameters, context); } /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1170,8 +1167,8 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1191,8 +1188,8 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -1215,8 +1212,8 @@ private PollerFlux, String> beginStopPacketCaptureAsync(Strin /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1234,8 +1231,8 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -1254,8 +1251,8 @@ public SyncPoller, String> beginStopPacketCapture(String reso /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1273,8 +1270,8 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String gate /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1291,8 +1288,8 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String gate /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -1312,8 +1309,8 @@ private Mono stopPacketCaptureAsync(String resourceGroupName, String gat /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1329,8 +1326,8 @@ public String stopPacketCapture(String resourceGroupName, String gatewayName, St /** * Stops packet capture on Vpn connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param vpnConnectionName The name of the vpn connection. * @param parameters Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. * @param context The context to associate with this operation. @@ -1348,7 +1345,7 @@ public String stopPacketCapture(String resourceGroupName, String gatewayName, St /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1377,8 +1374,8 @@ private Mono> listByVpnGatewaySinglePageAsync( final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1387,7 +1384,7 @@ private Mono> listByVpnGatewaySinglePageAsync( /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1418,8 +1415,8 @@ private Mono> listByVpnGatewaySinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context) + .listByVpnGateway(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1427,7 +1424,7 @@ private Mono> listByVpnGatewaySinglePageAsync( /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1444,7 +1441,7 @@ public PagedFlux listByVpnGatewayAsync(String resourceGroupN /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1463,7 +1460,7 @@ private PagedFlux listByVpnGatewayAsync(String resourceGroup /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1479,7 +1476,7 @@ public PagedIterable listByVpnGateway(String resourceGroupNa /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java index 18742ba36a8a..9a25c18d13b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -35,7 +35,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VpnGatewaysClient; import com.azure.resourcemanager.network.fluent.models.VpnGatewayInner; -import com.azure.resourcemanager.network.models.ListVpnGatewaysResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnGatewaysResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStartParameters; import com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStopParameters; @@ -76,101 +76,98 @@ public final class VpnGatewaysClientImpl implements InnerSupportsGet> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") VpnGatewayInner vpnGatewayParameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnGatewayInner vpnGatewayParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject vpnGatewayParameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject vpnGatewayParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reset(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @QueryParam("ipConfigurationId") String ipConfigurationId, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> startPacketCapture(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnGatewayPacketCaptureStartParameters parameters, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/stoppacketcapture") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/reset") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stopPacketCapture(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + Mono>> reset(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") VpnGatewayPacketCaptureStopParameters parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + @QueryParam("ipConfigurationId") String ipConfigurationId, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/startpacketcapture") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono>> startPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnGatewayPacketCaptureStartParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/stoppacketcapture") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono>> stopPacketCapture(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnGatewayPacketCaptureStopParameters parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -178,13 +175,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -212,15 +209,15 @@ public Mono> getByResourceGroupWithResponseAsync(Strin final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,14 +246,14 @@ private Mono> getByResourceGroupWithResponseAsync(Stri final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, accept, context); } /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -272,7 +269,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, S /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -289,7 +286,7 @@ public Response getByResourceGroupWithResponse(String resourceG /** * Retrieves the details of a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -304,7 +301,7 @@ public VpnGatewayInner getByResourceGroup(String resourceGroupName, String gatew /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -337,17 +334,19 @@ public Mono>> createOrUpdateWithResponseAsync(String r vpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, contentType, accept, + vpnGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -381,16 +380,17 @@ private Mono>> createOrUpdateWithResponseAsync(String vpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, vpnGatewayParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, vpnGatewayParameters, context); } /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -410,7 +410,7 @@ public PollerFlux, VpnGatewayInner> beginCreateOrUpd /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -432,7 +432,7 @@ private PollerFlux, VpnGatewayInner> beginCreateOrUp /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -449,7 +449,7 @@ public SyncPoller, VpnGatewayInner> beginCreateOrUpd /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -468,7 +468,7 @@ public SyncPoller, VpnGatewayInner> beginCreateOrUpd /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -486,7 +486,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -505,7 +505,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -522,7 +522,7 @@ public VpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayNa /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. * @param context The context to associate with this operation. @@ -540,7 +540,7 @@ public VpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayNa /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -573,17 +573,19 @@ public Mono>> updateTagsWithResponseAsync(String resou vpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, vpnGatewayParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -617,16 +619,17 @@ private Mono>> updateTagsWithResponseAsync(String reso vpnGatewayParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, vpnGatewayParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, contentType, accept, vpnGatewayParameters, context); } /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -646,7 +649,7 @@ public PollerFlux, VpnGatewayInner> beginUpdateTagsA /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -668,7 +671,7 @@ private PollerFlux, VpnGatewayInner> beginUpdateTags /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -685,7 +688,7 @@ public SyncPoller, VpnGatewayInner> beginUpdateTags( /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -703,7 +706,7 @@ public SyncPoller, VpnGatewayInner> beginUpdateTags( /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -721,7 +724,7 @@ public Mono updateTagsAsync(String resourceGroupName, String ga /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -740,7 +743,7 @@ private Mono updateTagsAsync(String resourceGroupName, String g /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -756,7 +759,7 @@ public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, /** * Updates virtual wan vpn gateway tags. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param vpnGatewayParameters Parameters supplied to update a virtual wan vpn gateway tags. * @param context The context to associate with this operation. @@ -774,7 +777,7 @@ public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -799,17 +802,16 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -836,16 +838,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, context); } /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -862,7 +863,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -882,7 +883,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -897,7 +898,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -914,7 +915,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -929,7 +930,7 @@ public Mono deleteAsync(String resourceGroupName, String gatewayName) { /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -946,7 +947,7 @@ private Mono deleteAsync(String resourceGroupName, String gatewayName, Con /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -960,7 +961,7 @@ public void delete(String resourceGroupName, String gatewayName) { /** * Deletes a virtual wan vpn gateway. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -973,281 +974,266 @@ public void delete(String resourceGroupName, String gatewayName, Context context } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, - String ipConfigurationId) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (gatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, - ipConfigurationId, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource along with {@link Response} on successful completion of {@link Mono}. + * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, - String ipConfigurationId, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (gatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, ipConfigurationId, apiVersion, - this.client.getSubscriptionId(), accept, context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, - String gatewayName, String ipConfigurationId) { - Mono>> mono - = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - VpnGatewayInner.class, VpnGatewayInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, - String gatewayName) { - final String ipConfigurationId = null; - Mono>> mono - = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - VpnGatewayInner.class, VpnGatewayInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, - String gatewayName, String ipConfigurationId, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - VpnGatewayInner.class, VpnGatewayInner.class, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, - String gatewayName) { - final String ipConfigurationId = null; - return this.beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnGateway Resource. + * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, - String gatewayName, String ipConfigurationId, Context context) { - return this.beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource on successful completion of {@link Mono}. + * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono resetAsync(String resourceGroupName, String gatewayName, String ipConfigurationId) { - return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource on successful completion of {@link Mono}. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono resetAsync(String resourceGroupName, String gatewayName) { - final String ipConfigurationId = null; - return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource on successful completion of {@link Mono}. + * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resetAsync(String resourceGroupName, String gatewayName, String ipConfigurationId, - Context context) { - return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VpnGatewayInner reset(String resourceGroupName, String gatewayName) { - final String ipConfigurationId = null; - return resetAsync(resourceGroupName, gatewayName, ipConfigurationId).block(); - } + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } /** - * Resets the primary of the vpn gateway in the specified resource group. + * Lists all the VpnGateways in a subscription. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnGateway Resource. + * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public VpnGatewayInner reset(String resourceGroupName, String gatewayName, String ipConfigurationId, - Context context) { - return resetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> startPacketCaptureWithResponseAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) { + public Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, + String ipConfigurationId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1255,27 +1241,20 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters != null) { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, - gatewayName, apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.reset(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, ipConfigurationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1283,12 +1262,16 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startPacketCaptureWithResponseAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStartParameters parameters, Context context) { + private Mono>> resetWithResponseAsync(String resourceGroupName, String gatewayName, + String ipConfigurationId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1296,44 +1279,37 @@ private Mono>> startPacketCaptureWithResponseAsync(Str if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (parameters != null) { - parameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.reset(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, ipConfigurationId, accept, context); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) { + public PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, + String gatewayName, String ipConfigurationId) { Mono>> mono - = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, - this.client.getContext()); + = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VpnGatewayInner.class, VpnGatewayInner.class, this.client.getContext()); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1341,21 +1317,21 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, + public PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStartParameters parameters = null; + final String ipConfigurationId = null; Mono>> mono - = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, - this.client.getContext()); + = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VpnGatewayInner.class, VpnGatewayInner.class, this.client.getContext()); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1363,19 +1339,19 @@ public PollerFlux, String> beginStartPacketCaptureAsync(Strin * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStartParameters parameters, Context context) { + private PollerFlux, VpnGatewayInner> beginResetAsync(String resourceGroupName, + String gatewayName, String ipConfigurationId, Context context) { context = this.client.mergeContext(context); Mono>> mono - = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, - context); + = resetWithResponseAsync(resourceGroupName, gatewayName, ipConfigurationId, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + VpnGatewayInner.class, VpnGatewayInner.class, context); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1383,18 +1359,18 @@ private PollerFlux, String> beginStartPacketCaptureAsync(Stri * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, String> beginStartPacketCapture(String resourceGroupName, + public SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStartParameters parameters = null; - return this.beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).getSyncPoller(); + final String ipConfigurationId = null; + return this.beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).getSyncPoller(); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1402,33 +1378,32 @@ public SyncPoller, String> beginStartPacketCapture(String res * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, String> beginStartPacketCapture(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStartParameters parameters, Context context) { - return this.beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).getSyncPoller(); + public SyncPoller, VpnGatewayInner> beginReset(String resourceGroupName, + String gatewayName, String ipConfigurationId, Context context) { + return this.beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).getSyncPoller(); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStartParameters parameters) { - return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + public Mono resetAsync(String resourceGroupName, String gatewayName, String ipConfigurationId) { + return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1436,18 +1411,18 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String gat * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStartParameters parameters = null; - return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + public Mono resetAsync(String resourceGroupName, String gatewayName) { + final String ipConfigurationId = null; + return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1455,16 +1430,16 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String gat * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStartParameters parameters, Context context) { - return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).last() + private Mono resetAsync(String resourceGroupName, String gatewayName, String ipConfigurationId, + Context context) { + return beginResetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1472,17 +1447,17 @@ private Mono startPacketCaptureAsync(String resourceGroupName, String ga * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public String startPacketCapture(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStartParameters parameters = null; - return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block(); + public VpnGatewayInner reset(String resourceGroupName, String gatewayName) { + final String ipConfigurationId = null; + return resetAsync(resourceGroupName, gatewayName, ipConfigurationId).block(); } /** - * Starts packet capture on vpn gateway in the specified resource group. + * Resets the primary of the vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. + * @param ipConfigurationId VpnGateway ipConfigurationId to specify the gateway instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1490,29 +1465,33 @@ public String startPacketCapture(String resourceGroupName, String gatewayName) { * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public String startPacketCapture(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStartParameters parameters, Context context) { - return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).block(); + public VpnGatewayInner reset(String resourceGroupName, String gatewayName, String ipConfigurationId, + Context context) { + return resetAsync(resourceGroupName, gatewayName, ipConfigurationId, context).block(); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> stopPacketCaptureWithResponseAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStopParameters parameters) { + public Mono>> startPacketCaptureWithResponseAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1520,27 +1499,23 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, - apiVersion, this.client.getSubscriptionId(), parameters, accept, context)) + .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1548,12 +1523,16 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopPacketCaptureWithResponseAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStopParameters parameters, Context context) { + private Mono>> startPacketCaptureWithResponseAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStartParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1561,44 +1540,40 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters != null) { parameters.validate(); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, - this.client.getSubscriptionId(), parameters, accept, context); + return service.startPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, accept, parameters, context); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStopParameters parameters) { + public PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) { Mono>> mono - = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); + = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, this.client.getContext()); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1606,21 +1581,21 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, + public PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStopParameters parameters = null; + final VpnGatewayPacketCaptureStartParameters parameters = null; Mono>> mono - = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); + = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, this.client.getContext()); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1628,19 +1603,19 @@ public PollerFlux, String> beginStopPacketCaptureAsync(String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, - String gatewayName, VpnGatewayPacketCaptureStopParameters parameters, Context context) { + private PollerFlux, String> beginStartPacketCaptureAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStartParameters parameters, Context context) { context = this.client.mergeContext(context); Mono>> mono - = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters, context); + = startPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, context); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1648,17 +1623,18 @@ private PollerFlux, String> beginStopPacketCaptureAsync(Strin * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, String> beginStopPacketCapture(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStopParameters parameters = null; - return this.beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).getSyncPoller(); + public SyncPoller, String> beginStartPacketCapture(String resourceGroupName, + String gatewayName) { + final VpnGatewayPacketCaptureStartParameters parameters = null; + return this.beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).getSyncPoller(); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1666,33 +1642,33 @@ public SyncPoller, String> beginStopPacketCapture(String reso * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, String> beginStopPacketCapture(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStopParameters parameters, Context context) { - return this.beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).getSyncPoller(); + public SyncPoller, String> beginStartPacketCapture(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStartParameters parameters, Context context) { + return this.beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).getSyncPoller(); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStopParameters parameters) { - return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + public Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStartParameters parameters) { + return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1700,18 +1676,18 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String gate * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStopParameters parameters = null; - return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + public Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName) { + final VpnGatewayPacketCaptureStartParameters parameters = null; + return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1719,16 +1695,16 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String gate * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStopParameters parameters, Context context) { - return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).last() + private Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStartParameters parameters, Context context) { + return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1736,17 +1712,17 @@ private Mono stopPacketCaptureAsync(String resourceGroupName, String gat * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public String stopPacketCapture(String resourceGroupName, String gatewayName) { - final VpnGatewayPacketCaptureStopParameters parameters = null; - return stopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block(); + public String startPacketCapture(String resourceGroupName, String gatewayName) { + final VpnGatewayPacketCaptureStartParameters parameters = null; + return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block(); } /** - * Stops packet capture on vpn gateway in the specified resource group. + * Starts packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1754,23 +1730,25 @@ public String stopPacketCapture(String resourceGroupName, String gatewayName) { * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public String stopPacketCapture(String resourceGroupName, String gatewayName, - VpnGatewayPacketCaptureStopParameters parameters, Context context) { - return stopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).block(); + public String startPacketCapture(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStartParameters parameters, Context context) { + return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).block(); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + public Mono>> stopPacketCaptureWithResponseAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStopParameters parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1783,30 +1761,35 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (gatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); + } + if (parameters != null) { + parameters.validate(); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono>> stopPacketCaptureWithResponseAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStopParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1819,183 +1802,201 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (gatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); + } + if (parameters != null) { + parameters.validate(); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.stopPacketCapture(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, accept, parameters, context); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStopParameters parameters) { + Mono>> mono + = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, + this.client.getContext()); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, + String gatewayName) { + final VpnGatewayPacketCaptureStopParameters parameters = null; + Mono>> mono + = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, + this.client.getContext()); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, String> beginStopPacketCaptureAsync(String resourceGroupName, + String gatewayName, VpnGatewayPacketCaptureStopParameters parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = stopPacketCaptureWithResponseAsync(resourceGroupName, gatewayName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), String.class, String.class, + context); } /** - * Lists all the VpnGateways in a resource group. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, String> beginStopPacketCapture(String resourceGroupName, String gatewayName) { + final VpnGatewayPacketCaptureStopParameters parameters = null; + return this.beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).getSyncPoller(); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, String> beginStopPacketCapture(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStopParameters parameters, Context context) { + return this.beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).getSyncPoller(); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + public Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStopParameters parameters) { + return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + * @return the response body on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName) { + final VpnGatewayPacketCaptureStopParameters parameters = null; + return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedFlux}. + * @return the response body on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStopParameters parameters, Context context) { + return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + * @return the response. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public String stopPacketCapture(String resourceGroupName, String gatewayName) { + final VpnGatewayPacketCaptureStopParameters parameters = null; + return stopPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block(); } /** - * Lists all the VpnGateways in a subscription. + * Stops packet capture on vpn gateway in the specified resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param parameters Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list VpnGateways as paginated response with {@link PagedIterable}. + * @return the response. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public String stopPacketCapture(String resourceGroupName, String gatewayName, + VpnGatewayPacketCaptureStopParameters parameters, Context context) { + return stopPacketCaptureAsync(resourceGroupName, gatewayName, parameters, context).block(); } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java index 3d243afc31dd..2ea99a564988 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,8 +34,8 @@ import com.azure.resourcemanager.network.fluent.VpnLinkConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyResultInner; import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner; -import com.azure.resourcemanager.network.models.ConnectionSharedKeyResultList; -import com.azure.resourcemanager.network.models.ListVpnSiteLinkConnectionsResult; +import com.azure.resourcemanager.network.implementation.models.ConnectionSharedKeyResultList; +import com.azure.resourcemanager.network.implementation.models.ListVpnSiteLinkConnectionsResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -69,92 +69,90 @@ public final class VpnLinkConnectionsClientImpl implements VpnLinkConnectionsCli * The interface defining all the services for NetworkManagementClientVpnLinkConnections to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnLinkConnections") public interface VpnLinkConnectionsService { @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/resetconnection") - @ExpectedResponses({ 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resetConnection(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getDefaultSharedKey(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getAllSharedKeys(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> setOrInitDefaultSharedKey(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionSharedKeyResultInner connectionSharedKeyParameters, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getDefaultSharedKey(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getAllSharedKeys(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default") - @ExpectedResponses({ 200, 201 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default/listSharedKey") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> setOrInitDefaultSharedKey(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listDefaultSharedKey(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ConnectionSharedKeyResultInner connectionSharedKeyParameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/sharedKeys/default/listSharedKey") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDefaultSharedKey(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listByVpnConnection(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/getikesas") - @ExpectedResponses({ 200, 202 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/resetconnection") + @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getIkeSas(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> resetConnection(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/getikesas") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVpnConnection(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> getIkeSas(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, - @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("connectionName") String connectionName, + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getAllSharedKeysNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -162,24 +160,25 @@ Mono> getAllSharedKeysNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnConnectionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> resetConnectionWithResponseAsync(String resourceGroupName, + public Mono> getDefaultSharedKeyWithResponseAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -206,27 +205,30 @@ public Mono>> resetConnectionWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.resetConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) + .withContext(context -> service.getDefaultSharedKey(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, linkConnectionName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resetConnectionWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, Context context) { + private Mono> getDefaultSharedKeyWithResponseAsync( + String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -252,185 +254,87 @@ private Mono>> resetConnectionWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.resetConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, linkConnectionName, apiVersion, accept, context); - } - - /** - * Resets the VpnLink connection specified. - * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn link connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - Mono>> mono - = resetConnectionWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Resets the VpnLink connection specified. - * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = resetConnectionWithResponseAsync(resourceGroupName, gatewayName, - connectionName, linkConnectionName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Resets the VpnLink connection specified. - * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn link connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - return this.beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) - .getSyncPoller(); - } - - /** - * Resets the VpnLink connection specified. - * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, Context context) { - return this - .beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context) - .getSyncPoller(); + return service.getDefaultSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, accept, context); } /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the shared key of VpnLink connection specified on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName) { - return beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono getDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + return getDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, Context context) { - return beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Resets the VpnLink connection specified. - * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn link connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the shared key of VpnLink connection specified along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void resetConnection(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName) { - resetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).block(); + public Response getDefaultSharedKeyWithResponse(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, Context context) { + return getDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + context).block(); } /** - * Resets the VpnLink connection specified. + * Gets the shared key of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the shared key of VpnLink connection specified. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void resetConnection(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, Context context) { - resetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context).block(); + public ConnectionSharedKeyResultInner getDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + return getDefaultSharedKeyWithResponse(resourceGroupName, gatewayName, connectionName, linkConnectionName, + Context.NONE).getValue(); } /** - * Lists all shared keys of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getAllSharedKeysSinglePageAsync( - String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { + public Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -453,34 +357,42 @@ private Mono> getAllSharedKeysSing return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } + if (connectionSharedKeyParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter connectionSharedKeyParameters is required and cannot be null.")); + } else { + connectionSharedKeyParameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getAllSharedKeys(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.setOrInitDefaultSharedKey(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, linkConnectionName, + contentType, accept, connectionSharedKeyParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all shared keys of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getAllSharedKeysSinglePageAsync( - String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, - Context context) { + private Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -503,111 +415,236 @@ private Mono> getAllSharedKeysSing return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } + if (connectionSharedKeyParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter connectionSharedKeyParameters is required and cannot be null.")); + } else { + connectionSharedKeyParameters.validate(); + } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getAllSharedKeys(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, linkConnectionName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.setOrInitDefaultSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, contentType, accept, + connectionSharedKeyParameters, context); } /** - * Lists all shared keys of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of sharedKey Resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux getAllSharedKeysAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - return new PagedFlux<>( - () -> getAllSharedKeysSinglePageAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName), - nextLink -> getAllSharedKeysNextSinglePageAsync(nextLink)); - } - - /** - * Lists all shared keys of VpnLink connection specified. + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters) { + Mono>> mono = setOrInitDefaultSharedKeyWithResponseAsync(resourceGroupName, + gatewayName, connectionName, linkConnectionName, connectionSharedKeyParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ConnectionSharedKeyResultInner.class, ConnectionSharedKeyResultInner.class, + this.client.getContext()); + } + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of sharedKey Resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux getAllSharedKeysAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, Context context) { - return new PagedFlux<>(() -> getAllSharedKeysSinglePageAsync(resourceGroupName, gatewayName, connectionName, - linkConnectionName, context), nextLink -> getAllSharedKeysNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = setOrInitDefaultSharedKeyWithResponseAsync(resourceGroupName, + gatewayName, connectionName, linkConnectionName, connectionSharedKeyParameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ConnectionSharedKeyResultInner.class, ConnectionSharedKeyResultInner.class, + context); } /** - * Lists all shared keys of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of sharedKey Resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable getAllSharedKeys(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - return new PagedIterable<>( - getAllSharedKeysAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters) { + return this + .beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters) + .getSyncPoller(); } /** - * Lists all shared keys of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of sharedKey Resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable getAllSharedKeys(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, Context context) { - return new PagedIterable<>( - getAllSharedKeysAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ConnectionSharedKeyResultInner> + beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { + return this + .beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters, context) + .getSyncPoller(); } /** - * Gets the shared key of VpnLink connection specified. + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of - * {@link Mono}. + * @return sharedKey Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getDefaultSharedKeyWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName) { + public Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters) { + return beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sharedKey Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { + return beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sharedKey Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, + ConnectionSharedKeyResultInner connectionSharedKeyParameters) { + return setOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters).block(); + } + + /** + * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set + * operation. If key length is given, the operation creates a random key of the pre-defined length. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link + * connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return sharedKey Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, + Context context) { + return setOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + connectionSharedKeyParameters, context).block(); + } + + /** + * Lists all shared keys of VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of shared keys for the vpn link connection along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getAllSharedKeysSinglePageAsync( + String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -633,28 +670,30 @@ public Mono> getDefaultSharedKeyWithRes final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getDefaultSharedKey(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) + .withContext(context -> service.getAllSharedKeys(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, linkConnectionName, + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the shared key of VpnLink connection specified. + * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified along with {@link Response} on successful completion of - * {@link Mono}. + * @return the list of shared keys for the vpn link connection along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDefaultSharedKeyWithResponseAsync( + private Mono> getAllSharedKeysSinglePageAsync( String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, Context context) { if (this.client.getEndpoint() == null) { @@ -682,99 +721,120 @@ private Mono> getDefaultSharedKeyWithRe final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getDefaultSharedKey(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context); + return service + .getAllSharedKeys(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, connectionName, linkConnectionName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets the shared key of VpnLink connection specified. + * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified on successful completion of {@link Mono}. + * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllSharedKeysAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { - return getDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return new PagedFlux<>( + () -> getAllSharedKeysSinglePageAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName), + nextLink -> getAllSharedKeysNextSinglePageAsync(nextLink)); } /** - * Gets the shared key of VpnLink connection specified. + * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified along with {@link Response}. + * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDefaultSharedKeyWithResponse(String resourceGroupName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux getAllSharedKeysAsync(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, Context context) { - return getDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - context).block(); + return new PagedFlux<>(() -> getAllSharedKeysSinglePageAsync(resourceGroupName, gatewayName, connectionName, + linkConnectionName, context), nextLink -> getAllSharedKeysNextSinglePageAsync(nextLink, context)); } /** - * Gets the shared key of VpnLink connection specified. + * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the shared key of VpnLink connection specified. + * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyResultInner getDefaultSharedKey(String resourceGroupName, String gatewayName, + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSharedKeys(String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { - return getDefaultSharedKeyWithResponse(resourceGroupName, gatewayName, connectionName, linkConnectionName, - Context.NONE).getValue(); + return new PagedIterable<>( + getAllSharedKeysAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName)); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Lists all shared keys of VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the list of shared keys for the vpn link connection as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAllSharedKeys(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, Context context) { + return new PagedIterable<>( + getAllSharedKeysAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context)); + } + + /** + * Gets the value of the shared key of VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listDefaultSharedKeyWithResponseAsync( + String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } @@ -785,41 +845,33 @@ public Mono>> setOrInitDefaultSharedKeyWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - if (connectionSharedKeyParameters == null) { - return Mono.error(new IllegalArgumentException( - "Parameter connectionSharedKeyParameters is required and cannot be null.")); - } else { - connectionSharedKeyParameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.setOrInitDefaultSharedKey(this.client.getEndpoint(), + .withContext(context -> service.listDefaultSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, linkConnectionName, - apiVersion, connectionSharedKeyParameters, accept, context)) + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource along with {@link Response} on successful completion of {@link Mono}. + * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> setOrInitDefaultSharedKeyWithResponseAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { + private Mono> listDefaultSharedKeyWithResponseAsync( + String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -842,235 +894,250 @@ private Mono>> setOrInitDefaultSharedKeyWithResponseAs return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - if (connectionSharedKeyParameters == null) { - return Mono.error(new IllegalArgumentException( - "Parameter connectionSharedKeyParameters is required and cannot be null.")); - } else { - connectionSharedKeyParameters.validate(); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.setOrInitDefaultSharedKey(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, - connectionSharedKeyParameters, accept, context); + return service.listDefaultSharedKey(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, accept, context); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sharedKey Resource. + * @return the value of the shared key of VpnLink connection specified on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters) { - Mono>> mono = setOrInitDefaultSharedKeyWithResponseAsync(resourceGroupName, - gatewayName, connectionName, linkConnectionName, connectionSharedKeyParameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ConnectionSharedKeyResultInner.class, ConnectionSharedKeyResultInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + return listDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of sharedKey Resource. + * @return the value of the shared key of VpnLink connection specified along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = setOrInitDefaultSharedKeyWithResponseAsync(resourceGroupName, - gatewayName, connectionName, linkConnectionName, connectionSharedKeyParameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ConnectionSharedKeyResultInner.class, ConnectionSharedKeyResultInner.class, - context); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listDefaultSharedKeyWithResponse(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, Context context) { + return listDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, + context).block(); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Gets the value of the shared key of VpnLink connection specified. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sharedKey Resource. + * @return the value of the shared key of VpnLink connection specified. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters) { - return this - .beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionSharedKeyResultInner listDefaultSharedKey(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + return listDefaultSharedKeyWithResponse(resourceGroupName, gatewayName, connectionName, linkConnectionName, + Context.NONE).getValue(); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. - * @param context The context to associate with this operation. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ConnectionSharedKeyResultInner> - beginSetOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, String connectionName, - String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { - return this - .beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByVpnConnectionSinglePageAsync(String resourceGroupName, + String gatewayName, String connectionName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (gatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); + } + if (connectionName == null) { + return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByVpnConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource on successful completion of {@link Mono}. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters) { - return beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters).last().flatMap(this.client::getLroFinalResultOrError); + private Mono> listByVpnConnectionSinglePageAsync(String resourceGroupName, + String gatewayName, String connectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (gatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); + } + if (connectionName == null) { + return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByVpnConnection(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName) { + return new PagedFlux<>(() -> listByVpnConnectionSinglePageAsync(resourceGroupName, gatewayName, connectionName), + nextLink -> listByVpnConnectionNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource on successful completion of {@link Mono}. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono setOrInitDefaultSharedKeyAsync(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters, Context context) { - return beginSetOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters, context).last().flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName, Context context) { + return new PagedFlux<>( + () -> listByVpnConnectionSinglePageAsync(resourceGroupName, gatewayName, connectionName, context), + nextLink -> listByVpnConnectionNextSinglePageAsync(nextLink, context)); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, - ConnectionSharedKeyResultInner connectionSharedKeyParameters) { - return setOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, + String connectionName) { + return new PagedIterable<>(listByVpnConnectionAsync(resourceGroupName, gatewayName, connectionName)); } /** - * Sets or auto generates the shared key based on the user input. If users give a shared key value, it does the set - * operation. If key length is given, the operation creates a random key of the pre-defined length. + * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * - * @param resourceGroupName The resource group name of the VpnGateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param gatewayName The name of the gateway. - * @param connectionName The name of the connection. - * @param linkConnectionName The name of the vpn link connection. - * @param connectionSharedKeyParameters Parameters supplied to set or auto generate the shared key for the vpn link - * connection. + * @param connectionName The name of the vpn connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sharedKey Resource. + * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyResultInner setOrInitDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName, ConnectionSharedKeyResultInner connectionSharedKeyParameters, - Context context) { - return setOrInitDefaultSharedKeyAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - connectionSharedKeyParameters, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, + String connectionName, Context context) { + return new PagedIterable<>(listByVpnConnectionAsync(resourceGroupName, gatewayName, connectionName, context)); } /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listDefaultSharedKeyWithResponseAsync( - String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName) { + public Mono>> resetConnectionWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1094,124 +1161,221 @@ public Mono> listDefaultSharedKeyWithRe .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listDefaultSharedKey(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) + .withContext(context -> service.resetConnection(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, gatewayName, connectionName, linkConnectionName, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> resetConnectionWithResponseAsync(String resourceGroupName, + String gatewayName, String connectionName, String linkConnectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (gatewayName == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); + } + if (connectionName == null) { + return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); + } + if (linkConnectionName == null) { + return Mono + .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + context = this.client.mergeContext(context); + return service.resetConnection(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, context); + } + + /** + * Resets the VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + Mono>> mono + = resetConnectionWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Resets the VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginResetConnectionAsync(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = resetConnectionWithResponseAsync(resourceGroupName, gatewayName, + connectionName, linkConnectionName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Resets the VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName) { + return this.beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) + .getSyncPoller(); + } + + /** + * Resets the VpnLink connection specified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. + * @param connectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginResetConnection(String resourceGroupName, String gatewayName, + String connectionName, String linkConnectionName, Context context) { + return this + .beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context) + .getSyncPoller(); + } + + /** + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified along with {@link Response} on successful - * completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDefaultSharedKeyWithResponseAsync( - String resourceGroupName, String gatewayName, String connectionName, String linkConnectionName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (gatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); - } - if (connectionName == null) { - return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); - } - if (linkConnectionName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listDefaultSharedKey(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context); + public Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName) { + return beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listDefaultSharedKeyAsync(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - return listDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono resetConnectionAsync(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, Context context) { + return beginResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listDefaultSharedKeyWithResponse(String resourceGroupName, - String gatewayName, String connectionName, String linkConnectionName, Context context) { - return listDefaultSharedKeyWithResponseAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, - context).block(); + public void resetConnection(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName) { + resetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).block(); } /** - * Gets the value of the shared key of VpnLink connection specified. + * Resets the VpnLink connection specified. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the value of the shared key of VpnLink connection specified. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConnectionSharedKeyResultInner listDefaultSharedKey(String resourceGroupName, String gatewayName, - String connectionName, String linkConnectionName) { - return listDefaultSharedKeyWithResponse(resourceGroupName, gatewayName, connectionName, linkConnectionName, - Context.NONE).getValue(); + public void resetConnection(String resourceGroupName, String gatewayName, String connectionName, + String linkConnectionName, Context context) { + resetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context).block(); } /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1247,16 +1411,17 @@ public Mono>> getIkeSasWithResponseAsync(String resour final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getIkeSas(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) + .withContext( + context -> service.getIkeSas(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -1293,15 +1458,15 @@ private Mono>> getIkeSasWithResponseAsync(String resou final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getIkeSas(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, linkConnectionName, apiVersion, accept, context); + return service.getIkeSas(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, accept, context); } /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1321,8 +1486,8 @@ public PollerFlux, String> beginGetIkeSasAsync(String resourc /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -1344,8 +1509,8 @@ private PollerFlux, String> beginGetIkeSasAsync(String resour /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1363,8 +1528,8 @@ public SyncPoller, String> beginGetIkeSas(String resourceGrou /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -1383,8 +1548,8 @@ public SyncPoller, String> beginGetIkeSas(String resourceGrou /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1402,8 +1567,8 @@ public Mono getIkeSasAsync(String resourceGroupName, String gatewayName, /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -1422,8 +1587,8 @@ private Mono getIkeSasAsync(String resourceGroupName, String gatewayName /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1440,8 +1605,8 @@ public String getIkeSas(String resourceGroupName, String gatewayName, String con /** * Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * - * @param resourceGroupName The name of the resource group. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. @@ -1456,171 +1621,6 @@ public String getIkeSas(String resourceGroupName, String gatewayName, String con return getIkeSasAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, context).block(); } - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVpnConnectionSinglePageAsync(String resourceGroupName, - String gatewayName, String connectionName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (gatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); - } - if (connectionName == null) { - return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByVpnConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway along with - * {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVpnConnectionSinglePageAsync(String resourceGroupName, - String gatewayName, String connectionName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (gatewayName == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); - } - if (connectionName == null) { - return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByVpnConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - gatewayName, connectionName, apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, - String connectionName) { - return new PagedFlux<>(() -> listByVpnConnectionSinglePageAsync(resourceGroupName, gatewayName, connectionName), - nextLink -> listByVpnConnectionNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVpnConnectionAsync(String resourceGroupName, String gatewayName, - String connectionName, Context context) { - return new PagedFlux<>( - () -> listByVpnConnectionSinglePageAsync(resourceGroupName, gatewayName, connectionName, context), - nextLink -> listByVpnConnectionNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, - String connectionName) { - return new PagedIterable<>(listByVpnConnectionAsync(resourceGroupName, gatewayName, connectionName)); - } - - /** - * Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * - * @param resourceGroupName The resource group name of the vpn gateway. - * @param gatewayName The name of the gateway. - * @param connectionName The name of the vpn connection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list all vpn connections to a virtual wan vpn gateway as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVpnConnection(String resourceGroupName, String gatewayName, - String connectionName, Context context) { - return new PagedIterable<>(listByVpnConnectionAsync(resourceGroupName, gatewayName, connectionName, context)); - } - /** * Get the next page of items. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java index f959787de805..2b9bfbc7c6ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -62,33 +62,31 @@ public final class VpnServerConfigurationsAssociatedWithVirtualWansClientImpl * NetworkManagementClientVpnServerConfigurationsAssociatedWithVirtualWans to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnServerConfigurationsAssociatedWithVirtualWans") public interface VpnServerConfigurationsAssociatedWithVirtualWansService { @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnServerConfigurations") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualWANName") String virtualWANName, @HeaderParam("Accept") String accept, Context context); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> listWithResponseAsync(String resourceGroupName, String virtualWanName) { + public Mono>> listWithResponseAsync(String resourceGroupName, String virtualWANName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -101,31 +99,30 @@ public Mono>> listWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response along with {@link Response} on - * successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> listWithResponseAsync(String resourceGroupName, String virtualWanName, + private Mono>> listWithResponseAsync(String resourceGroupName, String virtualWANName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -139,30 +136,30 @@ private Mono>> listWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, accept, context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + virtualWANName, accept, context); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, VpnServerConfigurationsResponseInner> - beginListAsync(String resourceGroupName, String virtualWanName) { - Mono>> mono = listWithResponseAsync(resourceGroupName, virtualWanName); + beginListAsync(String resourceGroupName, String virtualWANName) { + Mono>> mono = listWithResponseAsync(resourceGroupName, virtualWANName); return this.client.getLroResult( mono, this.client.getHttpPipeline(), VpnServerConfigurationsResponseInner.class, VpnServerConfigurationsResponseInner.class, this.client.getContext()); @@ -171,19 +168,19 @@ private Mono>> listWithResponseAsync(String resourceGr /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VpnServerConfigurationsResponseInner> - beginListAsync(String resourceGroupName, String virtualWanName, Context context) { + beginListAsync(String resourceGroupName, String virtualWANName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = listWithResponseAsync(resourceGroupName, virtualWanName, context); + Mono>> mono = listWithResponseAsync(resourceGroupName, virtualWANName, context); return this.client.getLroResult( mono, this.client.getHttpPipeline(), VpnServerConfigurationsResponseInner.class, VpnServerConfigurationsResponseInner.class, context); @@ -192,99 +189,97 @@ private Mono>> listWithResponseAsync(String resourceGr /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnServerConfigurationsResponseInner> - beginList(String resourceGroupName, String virtualWanName) { - return this.beginListAsync(resourceGroupName, virtualWanName).getSyncPoller(); + beginList(String resourceGroupName, String virtualWANName) { + return this.beginListAsync(resourceGroupName, virtualWANName).getSyncPoller(); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of vpnServerConfigurations list associated with VirtualWan Response. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VpnServerConfigurationsResponseInner> - beginList(String resourceGroupName, String virtualWanName, Context context) { - return this.beginListAsync(resourceGroupName, virtualWanName, context).getSyncPoller(); + beginList(String resourceGroupName, String virtualWANName, Context context) { + return this.beginListAsync(resourceGroupName, virtualWANName, context).getSyncPoller(); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listAsync(String resourceGroupName, String virtualWanName) { - return beginListAsync(resourceGroupName, virtualWanName).last().flatMap(this.client::getLroFinalResultOrError); + public Mono listAsync(String resourceGroupName, String virtualWANName) { + return beginListAsync(resourceGroupName, virtualWANName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response on successful completion of - * {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync(String resourceGroupName, String virtualWanName, + private Mono listAsync(String resourceGroupName, String virtualWANName, Context context) { - return beginListAsync(resourceGroupName, virtualWanName, context).last() + return beginListAsync(resourceGroupName, virtualWANName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWanName) { - return listAsync(resourceGroupName, virtualWanName).block(); + public VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWANName) { + return listAsync(resourceGroupName, virtualWANName).block(); } /** * Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN whose associated VpnServerConfigurations is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return vpnServerConfigurations list associated with VirtualWan Response. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWanName, Context context) { - return listAsync(resourceGroupName, virtualWanName, context).block(); + public VpnServerConfigurationsResponseInner list(String resourceGroupName, String virtualWANName, Context context) { + return listAsync(resourceGroupName, virtualWANName, context).block(); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java index 582f8ae680d1..ca53365de86b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.network.fluent.VpnServerConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.RadiusAuthServerListResultInner; import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationInner; -import com.azure.resourcemanager.network.models.ListVpnServerConfigurationsResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnServerConfigurationsResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -75,78 +75,74 @@ public final class VpnServerConfigurationsClientImpl implements InnerSupportsGet * The interface defining all the services for NetworkManagementClientVpnServerConfigurations to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnServerConfigurations") public interface VpnServerConfigurationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") VpnServerConfigurationInner vpnServerConfigurationParameters, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") TagsObject vpnServerConfigurationParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject vpnServerConfigurationParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnServerConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/listRadiusSecrets") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listRadiusSecrets(@HostParam("$host") String endpoint, + Mono> listRadiusSecrets(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnServerConfigurationName") String vpnServerConfigurationName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -154,7 +150,7 @@ Mono> listRadiusSecrets(@HostParam("$h @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -162,15 +158,16 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -198,17 +195,17 @@ public Mono> getByResourceGroupWithRespons final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnServerConfigurationName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,15 +234,16 @@ private Mono> getByResourceGroupWithRespon final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, accept, context); } /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -261,8 +259,9 @@ public Mono getByResourceGroupAsync(String resource /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -278,8 +277,9 @@ public Response getByResourceGroupWithResponse(Stri /** * Retrieves the details of a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -293,8 +293,9 @@ public VpnServerConfigurationInner getByResourceGroup(String resourceGroupName, /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -327,19 +328,21 @@ public Mono>> createOrUpdateWithResponseAsync(String r vpnServerConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnServerConfigurationName, apiVersion, vpnServerConfigurationParameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, contentType, accept, + vpnServerConfigurationParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -374,17 +377,20 @@ private Mono>> createOrUpdateWithResponseAsync(String vpnServerConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, apiVersion, vpnServerConfigurationParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, contentType, accept, vpnServerConfigurationParameters, + context); } /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -405,8 +411,9 @@ public PollerFlux, VpnServerConfiguratio /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -429,8 +436,9 @@ private PollerFlux, VpnServerConfigurati /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -449,8 +457,9 @@ public SyncPoller, VpnServerConfiguratio /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,8 +480,9 @@ public SyncPoller, VpnServerConfiguratio /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -490,8 +500,9 @@ public Mono createOrUpdateAsync(String resourceGrou /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -510,8 +521,9 @@ private Mono createOrUpdateAsync(String resourceGro /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -528,8 +540,9 @@ public VpnServerConfigurationInner createOrUpdate(String resourceGroupName, Stri /** * Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to create or update VpnServerConfiguration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -547,8 +560,9 @@ public VpnServerConfigurationInner createOrUpdate(String resourceGroupName, Stri /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -581,19 +595,21 @@ public Mono> updateTagsWithResponseAsync(S vpnServerConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnServerConfigurationName, apiVersion, vpnServerConfigurationParameters, accept, - context)) + .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, contentType, accept, + vpnServerConfigurationParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -627,17 +643,20 @@ private Mono> updateTagsWithResponseAsync( vpnServerConfigurationParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, apiVersion, vpnServerConfigurationParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, contentType, accept, vpnServerConfigurationParameters, + context); } /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -654,8 +673,9 @@ public Mono updateTagsAsync(String resourceGroupNam /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -673,8 +693,9 @@ public Response updateTagsWithResponse(String resou /** * Updates VpnServerConfiguration tags. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param vpnServerConfigurationParameters Parameters supplied to update VpnServerConfiguration tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -691,8 +712,9 @@ public VpnServerConfigurationInner updateTags(String resourceGroupName, String v /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -718,18 +740,18 @@ public Mono>> deleteWithResponseAsync(String resourceG new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnServerConfigurationName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -756,17 +778,17 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnServerConfigurationName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnServerConfigurationName, context); } /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -783,8 +805,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -804,8 +827,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -819,8 +843,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -836,8 +861,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -852,8 +878,9 @@ public Mono deleteAsync(String resourceGroupName, String vpnServerConfigur /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -869,8 +896,9 @@ private Mono deleteAsync(String resourceGroupName, String vpnServerConfigu /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -883,8 +911,9 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName) /** * Deletes a VpnServerConfiguration. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -898,7 +927,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -923,8 +952,8 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -933,7 +962,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -960,8 +989,8 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -969,7 +998,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -984,7 +1013,7 @@ public PagedFlux listByResourceGroupAsync(String re /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1000,7 +1029,7 @@ private PagedFlux listByResourceGroupAsync(String r /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1015,7 +1044,7 @@ public PagedIterable listByResourceGroup(String res /** * Lists all the vpnServerConfigurations in a resource group. * - * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1049,7 +1078,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1079,7 +1108,7 @@ private Mono> listSinglePageAsync(Con final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1143,7 +1172,8 @@ public PagedIterable list(Context context) { * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1157,6 +1187,10 @@ public Mono> listRadiusSecretsWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1165,15 +1199,11 @@ public Mono> listRadiusSecretsWithResp return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listRadiusSecrets(this.client.getEndpoint(), resourceGroupName, - vpnServerConfigurationName, apiVersion, this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listRadiusSecrets(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnServerConfigurationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1181,7 +1211,8 @@ public Mono> listRadiusSecretsWithResp * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1196,6 +1227,10 @@ private Mono> listRadiusSecretsWithRes return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -1204,22 +1239,19 @@ private Mono> listRadiusSecretsWithRes return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listRadiusSecrets(this.client.getEndpoint(), resourceGroupName, vpnServerConfigurationName, - apiVersion, this.client.getSubscriptionId(), accept, context); + return service.listRadiusSecrets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnServerConfigurationName, accept, context); } /** * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1236,7 +1268,8 @@ public Mono listRadiusSecretsAsync(String resou * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1253,7 +1286,8 @@ public Response listRadiusSecretsWithResponse(S * List all Radius servers with respective radius secrets from VpnServerConfiguration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the resource that is unique within a resource group. This name can + * be used to access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java index 0dcd6e6e6017..0df9c8f73e0a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -54,28 +54,28 @@ public final class VpnSiteLinkConnectionsClientImpl implements VpnSiteLinkConnec * The interface defining all the services for NetworkManagementClientVpnSiteLinkConnections to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnSiteLinkConnections") public interface VpnSiteLinkConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("gatewayName") String gatewayName, @PathParam("connectionName") String connectionName, - @PathParam("linkConnectionName") String linkConnectionName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("linkConnectionName") String linkConnectionName, @HeaderParam("Accept") String accept, + Context context); } /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -109,18 +109,18 @@ public Mono> getWithResponseAsync(String re final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, gatewayName, connectionName, linkConnectionName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, gatewayName, connectionName, linkConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -155,17 +155,17 @@ private Mono> getWithResponseAsync(String r final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, - connectionName, linkConnectionName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + gatewayName, connectionName, linkConnectionName, accept, context); } /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -181,10 +181,10 @@ public Mono getAsync(String resourceGroupName, Strin /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -201,10 +201,10 @@ public Response getWithResponse(String resourceGroup /** * Retrieves the details of a vpn site link connection. * - * @param resourceGroupName The resource group name of the VpnGateway. - * @param gatewayName The name of the gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the vpn gateway. * @param connectionName The name of the vpn connection. - * @param linkConnectionName The name of the vpn connection. + * @param linkConnectionName The name of the vpn link connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java index 8798ca63b468..bb4498c6e5a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.VpnSiteLinksClient; import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkInner; -import com.azure.resourcemanager.network.models.ListVpnSiteLinksResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnSiteLinksResult; import reactor.core.publisher.Mono; /** @@ -59,43 +59,44 @@ public final class VpnSiteLinksClientImpl implements VpnSiteLinksClient { * The interface defining all the services for NetworkManagementClientVpnSiteLinks to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnSiteLinks") public interface VpnSiteLinksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks/{vpnSiteLinkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @PathParam("vpnSiteLinkName") String vpnSiteLinkName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("vpnSiteLinkName") String vpnSiteLinkName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVpnSite(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> listByVpnSite(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByVpnSiteNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -126,17 +127,18 @@ public Mono> getWithResponseAsync(String resourceGrou final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnSiteName, vpnSiteLinkName, apiVersion, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnSiteName, vpnSiteLinkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -168,16 +170,17 @@ private Mono> getWithResponseAsync(String resourceGro final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, - vpnSiteLinkName, apiVersion, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnSiteName, vpnSiteLinkName, accept, context); } /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -192,9 +195,10 @@ public Mono getAsync(String resourceGroupName, String vpnSiteN /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -210,9 +214,10 @@ public Response getWithResponse(String resourceGroupName, Stri /** * Retrieves the details of a VPN site link. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. - * @param vpnSiteLinkName The name of the VpnSiteLink being retrieved. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param vpnSiteLinkName The name of the resource that is unique within a resource group. This name can be used to + * access the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -226,8 +231,8 @@ public VpnSiteLinkInner get(String resourceGroupName, String vpnSiteName, String /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -255,8 +260,8 @@ private Mono> listByVpnSiteSinglePageAsync(Strin final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByVpnSite(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnSiteName, apiVersion, accept, context)) + .withContext(context -> service.listByVpnSite(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -265,8 +270,8 @@ private Mono> listByVpnSiteSinglePageAsync(Strin /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -296,8 +301,8 @@ private Mono> listByVpnSiteSinglePageAsync(Strin final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByVpnSite(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, - apiVersion, accept, context) + .listByVpnSite(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnSiteName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -305,8 +310,8 @@ private Mono> listByVpnSiteSinglePageAsync(Strin /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -321,8 +326,8 @@ public PagedFlux listByVpnSiteAsync(String resourceGroupName, /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -339,8 +344,8 @@ private PagedFlux listByVpnSiteAsync(String resourceGroupName, /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -354,8 +359,8 @@ public PagedIterable listByVpnSite(String resourceGroupName, S /** * Lists all the vpnSiteLinks in a resource group for a vpn site. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java index 89f22643adb6..f41ff1ba8a9c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.VpnSitesClient; import com.azure.resourcemanager.network.fluent.models.VpnSiteInner; -import com.azure.resourcemanager.network.models.ListVpnSitesResult; +import com.azure.resourcemanager.network.implementation.models.ListVpnSitesResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -72,62 +72,60 @@ public final class VpnSitesClientImpl implements InnerSupportsGet, * The interface defining all the services for NetworkManagementClientVpnSites to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnSites") public interface VpnSitesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VpnSiteInner vpnSiteParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") VpnSiteInner vpnSiteParameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") TagsObject vpnSiteParameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject vpnSiteParameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vpnSiteName") String vpnSiteName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -135,7 +133,7 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -143,13 +141,13 @@ Mono> listByResourceGroupNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -177,15 +175,15 @@ public Mono> getByResourceGroupWithResponseAsync(String r final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,14 +212,14 @@ private Mono> getByResourceGroupWithResponseAsync(String final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnSiteName, apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnSiteName, accept, context); } /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -237,7 +235,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, Stri /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,7 +252,7 @@ public Response getByResourceGroupWithResponse(String resourceGrou /** * Retrieves the details of a VPN site. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -269,8 +267,8 @@ public VpnSiteInner getByResourceGroup(String resourceGroupName, String vpnSiteN /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -302,18 +300,20 @@ public Mono>> createOrUpdateWithResponseAsync(String r vpnSiteParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, contentType, accept, vpnSiteParameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -346,17 +346,18 @@ private Mono>> createOrUpdateWithResponseAsync(String vpnSiteParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnSiteName, apiVersion, vpnSiteParameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnSiteName, contentType, accept, vpnSiteParameters, context); } /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -375,8 +376,8 @@ public PollerFlux, VpnSiteInner> beginCreateOrUpdateAsy /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -397,8 +398,8 @@ private PollerFlux, VpnSiteInner> beginCreateOrUpdateAs /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -414,8 +415,8 @@ public SyncPoller, VpnSiteInner> beginCreateOrUpdate(St /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -433,8 +434,8 @@ public SyncPoller, VpnSiteInner> beginCreateOrUpdate(St /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -451,8 +452,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, String v /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -470,8 +471,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -486,8 +487,8 @@ public VpnSiteInner createOrUpdate(String resourceGroupName, String vpnSiteName, /** * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to create or update VpnSite. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,8 +505,8 @@ public VpnSiteInner createOrUpdate(String resourceGroupName, String vpnSiteName, /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -537,18 +538,20 @@ public Mono> updateTagsWithResponseAsync(String resourceG vpnSiteParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, accept, context)) + .withContext( + context -> service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnSiteName, contentType, accept, vpnSiteParameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -581,17 +584,18 @@ private Mono> updateTagsWithResponseAsync(String resource vpnSiteParameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnSiteName, apiVersion, vpnSiteParameters, accept, context); + return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vpnSiteName, contentType, accept, vpnSiteParameters, context); } /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -608,8 +612,8 @@ public Mono updateTagsAsync(String resourceGroupName, String vpnSi /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -626,8 +630,8 @@ public Response updateTagsWithResponse(String resourceGroupName, S /** * Updates VpnSite tags. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param vpnSiteParameters Parameters supplied to update VpnSite tags. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -642,8 +646,8 @@ public VpnSiteInner updateTags(String resourceGroupName, String vpnSiteName, Tag /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -667,18 +671,17 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, vpnSiteName, apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -704,17 +707,16 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - vpnSiteName, apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vpnSiteName, context); } /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -730,8 +732,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -750,8 +752,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -765,8 +767,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -782,8 +784,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -797,8 +799,8 @@ public Mono deleteAsync(String resourceGroupName, String vpnSiteName) { /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -814,8 +816,8 @@ private Mono deleteAsync(String resourceGroupName, String vpnSiteName, Con /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -828,8 +830,8 @@ public void delete(String resourceGroupName, String vpnSiteName) { /** * Deletes a VpnSite. * - * @param resourceGroupName The resource group name of the VpnSite. - * @param vpnSiteName The name of the VpnSite being deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vpnSiteName The name of the VpnSite being retrieved. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -843,7 +845,7 @@ public void delete(String resourceGroupName, String vpnSiteName, Context context /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -867,8 +869,8 @@ private Mono> listByResourceGroupSinglePageAsync(Str final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -877,7 +879,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -904,8 +906,8 @@ private Mono> listByResourceGroupSinglePageAsync(Str final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - apiVersion, accept, context) + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -913,7 +915,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -928,7 +930,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupName /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -944,7 +946,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -958,7 +960,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * Lists all the vpnSites in a resource group. * - * @param resourceGroupName The resource group name of the VpnSite. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -991,7 +993,7 @@ private Mono> listSinglePageAsync() { final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1021,7 +1023,7 @@ private Mono> listSinglePageAsync(Context context) { final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java index 9d4195e97b05..6e508cf35952 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -60,26 +60,25 @@ public final class VpnSitesConfigurationsClientImpl implements VpnSitesConfigura * The interface defining all the services for NetworkManagementClientVpnSitesConfigurations to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientVpnSitesConfigurations") public interface VpnSitesConfigurationsService { - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> download(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> download(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("virtualWANName") String virtualWanName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") GetVpnSitesConfigurationRequest request, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualWANName") String virtualWANName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") GetVpnSitesConfigurationRequest request, Context context); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -87,7 +86,7 @@ Mono>> download(@HostParam("$host") String endpoint, * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWanName, + public Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -101,8 +100,8 @@ public Mono>> downloadWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -110,18 +109,18 @@ public Mono>> downloadWithResponseAsync(String resourc request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.download(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, virtualWanName, apiVersion, request, accept, context)) + .withContext(context -> service.download(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, virtualWANName, contentType, request, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,7 +129,7 @@ public Mono>> downloadWithResponseAsync(String resourc * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWanName, + private Mono>> downloadWithResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -144,8 +143,8 @@ private Mono>> downloadWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (virtualWanName == null) { - return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); + if (virtualWANName == null) { + return Mono.error(new IllegalArgumentException("Parameter virtualWANName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -153,17 +152,17 @@ private Mono>> downloadWithResponseAsync(String resour request.validate(); } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.download(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - virtualWanName, apiVersion, request, accept, context); + return service.download(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, virtualWANName, contentType, request, context); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -171,9 +170,9 @@ private Mono>> downloadWithResponseAsync(String resour * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWanName, + public PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { - Mono>> mono = downloadWithResponseAsync(resourceGroupName, virtualWanName, request); + Mono>> mono = downloadWithResponseAsync(resourceGroupName, virtualWANName, request); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -181,8 +180,8 @@ public PollerFlux, Void> beginDownloadAsync(String resourceGrou /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -191,11 +190,11 @@ public PollerFlux, Void> beginDownloadAsync(String resourceGrou * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWanName, + private PollerFlux, Void> beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context) { context = this.client.mergeContext(context); Mono>> mono - = downloadWithResponseAsync(resourceGroupName, virtualWanName, request, context); + = downloadWithResponseAsync(resourceGroupName, virtualWANName, request, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -203,8 +202,8 @@ private PollerFlux, Void> beginDownloadAsync(String resourceGro /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -212,16 +211,16 @@ private PollerFlux, Void> beginDownloadAsync(String resourceGro * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWanName, + public SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { - return this.beginDownloadAsync(resourceGroupName, virtualWanName, request).getSyncPoller(); + return this.beginDownloadAsync(resourceGroupName, virtualWANName, request).getSyncPoller(); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,16 +229,16 @@ public SyncPoller, Void> beginDownload(String resourceGroupName * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWanName, + public SyncPoller, Void> beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context) { - return this.beginDownloadAsync(resourceGroupName, virtualWanName, request, context).getSyncPoller(); + return this.beginDownloadAsync(resourceGroupName, virtualWANName, request, context).getSyncPoller(); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -247,17 +246,17 @@ public SyncPoller, Void> beginDownload(String resourceGroupName * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono downloadAsync(String resourceGroupName, String virtualWanName, + public Mono downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { - return beginDownloadAsync(resourceGroupName, virtualWanName, request).last() + return beginDownloadAsync(resourceGroupName, virtualWANName, request).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,32 +265,32 @@ public Mono downloadAsync(String resourceGroupName, String virtualWanName, * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono downloadAsync(String resourceGroupName, String virtualWanName, + private Mono downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context) { - return beginDownloadAsync(resourceGroupName, virtualWanName, request, context).last() + return beginDownloadAsync(resourceGroupName, virtualWANName, request, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void download(String resourceGroupName, String virtualWanName, GetVpnSitesConfigurationRequest request) { - downloadAsync(resourceGroupName, virtualWanName, request).block(); + public void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + downloadAsync(resourceGroupName, virtualWANName, request).block(); } /** * Gives the sas-url to download the configurations for vpn-sites in a resource group. * - * @param resourceGroupName The resource group name. - * @param virtualWanName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualWANName The name of the VirtualWAN. * @param request Parameters supplied to download vpn-sites configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -299,8 +298,8 @@ public void download(String resourceGroupName, String virtualWanName, GetVpnSite * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void download(String resourceGroupName, String virtualWanName, GetVpnSitesConfigurationRequest request, + public void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, Context context) { - downloadAsync(resourceGroupName, virtualWanName, request, context).block(); + downloadAsync(resourceGroupName, virtualWANName, request, context).block(); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java index 1ce3f9af677b..f55ff972a842 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.WebApplicationFirewallPoliciesClient; import com.azure.resourcemanager.network.fluent.models.WebApplicationFirewallPolicyInner; -import com.azure.resourcemanager.network.models.WebApplicationFirewallPolicyListResult; +import com.azure.resourcemanager.network.implementation.models.WebApplicationFirewallPolicyListResult; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; @@ -72,52 +72,52 @@ public final class WebApplicationFirewallPoliciesClientImpl implements * The interface defining all the services for NetworkManagementClientWebApplicationFirewallPolicies to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientWebApplicationFirewallPolicies") public interface WebApplicationFirewallPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("policyName") String policyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("policyName") String policyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") WebApplicationFirewallPolicyInner parameters, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WebApplicationFirewallPolicyInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("policyName") String policyName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -125,7 +125,7 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -133,260 +133,14 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listAllNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - this.client.getSubscriptionId(), apiVersion, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), resourceGroupName, this.client.getSubscriptionId(), - apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Lists all of the protection policies within a resource group. - * - * @param resourceGroupName The name of the resource group. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, - Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, - accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String apiVersion = "2025-05-01"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listAllNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Gets all the WAF policies in a subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -401,6 +155,10 @@ public PagedIterable list(Context context) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -408,22 +166,18 @@ public PagedIterable list(Context context) { if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, policyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, policyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -439,6 +193,10 @@ public PagedIterable list(Context context) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -446,21 +204,17 @@ public PagedIterable list(Context context) { if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, policyName, - this.client.getSubscriptionId(), apiVersion, accept, context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, policyName, accept, context); } /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -477,7 +231,7 @@ public Mono getByResourceGroupAsync(String re /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -494,7 +248,7 @@ public Response getByResourceGroupWithRespons /** * Retrieve protection policy with specified name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -509,7 +263,7 @@ public WebApplicationFirewallPolicyInner getByResourceGroup(String resourceGroup /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -525,6 +279,10 @@ public Mono> createOrUpdateWithRespo return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -532,27 +290,23 @@ public Mono> createOrUpdateWithRespo if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, policyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, policyName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @param context The context to associate with this operation. @@ -569,6 +323,10 @@ private Mono> createOrUpdateWithResp return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -576,26 +334,23 @@ private Mono> createOrUpdateWithResp if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); } else { parameters.validate(); } final String apiVersion = "2025-05-01"; + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, policyName, - this.client.getSubscriptionId(), apiVersion, parameters, accept, context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, policyName, contentType, accept, parameters, context); } /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -613,7 +368,7 @@ public Mono createOrUpdateAsync(String resour /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @param context The context to associate with this operation. @@ -631,7 +386,7 @@ public Response createOrUpdateWithResponse(St /** * Creates or update policy with specified rule set name within a resource group. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param parameters Policy to be created. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -648,7 +403,7 @@ public WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -661,6 +416,10 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -668,22 +427,17 @@ public Mono>> deleteWithResponseAsync(String resourceG if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, policyName, - this.client.getSubscriptionId(), apiVersion, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, policyName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -698,6 +452,10 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); @@ -705,21 +463,16 @@ private Mono>> deleteWithResponseAsync(String resource if (policyName == null) { return Mono.error(new IllegalArgumentException("Parameter policyName is required and cannot be null.")); } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String apiVersion = "2025-05-01"; - final String accept = "application/json"; context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), resourceGroupName, policyName, this.client.getSubscriptionId(), - apiVersion, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + policyName, context); } /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -736,7 +489,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -756,7 +509,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -771,7 +524,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -788,7 +541,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -803,7 +556,7 @@ public Mono deleteAsync(String resourceGroupName, String policyName) { /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -820,7 +573,7 @@ private Mono deleteAsync(String resourceGroupName, String policyName, Cont /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -834,7 +587,7 @@ public void delete(String resourceGroupName, String policyName) { /** * Deletes Policy. * - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param policyName The name of the policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -846,6 +599,248 @@ public void delete(String resourceGroupName, String policyName, Context context) deleteAsync(resourceGroupName, policyName, context).block(); } + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Lists all of the protection policies within a resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged collection of WebApplicationFirewallPolicy items as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2025-05-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listAllNextSinglePageAsync(nextLink)); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets all the WAF policies in a subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the WAF policies in a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Get the next page of items. * @@ -853,8 +848,8 @@ public void delete(String resourceGroupName, String policyName, Context context) * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of WebApplicationFirewallPolicy items along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -880,8 +875,8 @@ private Mono> listNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list WebApplicationFirewallPolicies along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return paged collection of WebApplicationFirewallPolicy items along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java index 8d1ad3d5426a..16b25b3de7e1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.WebCategoriesClient; import com.azure.resourcemanager.network.fluent.models.AzureWebCategoryInner; -import com.azure.resourcemanager.network.models.AzureWebCategoryListResult; +import com.azure.resourcemanager.network.implementation.models.AzureWebCategoryListResult; import reactor.core.publisher.Mono; /** @@ -59,22 +59,23 @@ public final class WebCategoriesClientImpl implements WebCategoriesClient { * The interface defining all the services for NetworkManagementClientWebCategories to be used by the proxy service * to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "NetworkManagementClientWebCategories") public interface WebCategoriesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, @PathParam("name") String name, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + @PathParam("name") String name, @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -83,7 +84,7 @@ Mono> list(@HostParam("$host") String endpo @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -103,18 +104,18 @@ public Mono> getWithResponseAsync(String name, S return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), name, apiVersion, - this.client.getSubscriptionId(), expand, accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + name, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -135,17 +136,17 @@ private Mono> getWithResponseAsync(String name, return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - if (name == null) { - return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); - } if (this.client.getSubscriptionId() == null) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } final String apiVersion = "2025-05-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), name, apiVersion, this.client.getSubscriptionId(), expand, accept, + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), name, expand, accept, context); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleCollectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleCollectionListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleCollectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleCollectionListResult.java index 3f9a9f1a89c9..59cdb4880dc0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleCollectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleCollectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Security admin configuration rule collection list result. + * The response of a AdminRuleCollection list operation. */ -@Fluent +@Immutable public final class AdminRuleCollectionListResult implements JsonSerializable { /* - * A list of network manager security admin configuration rule collections + * The AdminRuleCollection items on this page */ private List value; /* - * Gets the URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AdminRuleCollectionListResult class. */ - public AdminRuleCollectionListResult() { + private AdminRuleCollectionListResult() { } /** - * Get the value property: A list of network manager security admin configuration rule collections. + * Get the value property: The AdminRuleCollection items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of network manager security admin configuration rule collections. - * - * @param value the value value to set. - * @return the AdminRuleCollectionListResult object itself. - */ - public AdminRuleCollectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AdminRuleCollectionListResult object itself. - */ - public AdminRuleCollectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AdminRuleCollectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AdminRuleCollectionListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AdminRuleCollectionListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AdminRuleCollectionListResult. */ public static AdminRuleCollectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleListResult.java index 8dc368dbf2f5..3acf8487d86c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * security configuration admin rule list result. + * Paged collection of BaseAdminRule items. */ -@Fluent +@Immutable public final class AdminRuleListResult implements JsonSerializable { /* - * A list of admin rules + * The BaseAdminRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AdminRuleListResult class. */ - public AdminRuleListResult() { + private AdminRuleListResult() { } /** - * Get the value property: A list of admin rules. + * Get the value property: The BaseAdminRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of admin rules. - * - * @param value the value value to set. - * @return the AdminRuleListResult object itself. - */ - public AdminRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AdminRuleListResult object itself. - */ - public AdminRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model AdminRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AdminRuleListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AdminRuleListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AdminRuleListResult. */ public static AdminRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAvailableSslPredefinedPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayAvailableSslPredefinedPolicies.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAvailableSslPredefinedPolicies.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayAvailableSslPredefinedPolicies.java index 8bf4fb2135b0..9f5d48dab2c0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAvailableSslPredefinedPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayAvailableSslPredefinedPolicies.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ApplicationGatewayAvailableSslOptions API service call. */ -@Fluent +@Immutable public final class ApplicationGatewayAvailableSslPredefinedPolicies implements JsonSerializable { /* - * List of available Ssl predefined policy. + * The ApplicationGatewaySslPredefinedPolicy items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationGatewayAvailableSslPredefinedPolicies class. */ - public ApplicationGatewayAvailableSslPredefinedPolicies() { + private ApplicationGatewayAvailableSslPredefinedPolicies() { } /** - * Get the value property: List of available Ssl predefined policy. + * Get the value property: The ApplicationGatewaySslPredefinedPolicy items on this page. * * @return the value value. */ @@ -45,19 +46,7 @@ public List value() { } /** - * Set the value property: List of available Ssl predefined policy. - * - * @param value the value value to set. - * @return the ApplicationGatewayAvailableSslPredefinedPolicies object itself. - */ - public ApplicationGatewayAvailableSslPredefinedPolicies - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ApplicationGatewayAvailableSslPredefinedPolicies object itself. - */ - public ApplicationGatewayAvailableSslPredefinedPolicies withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationGatewayAvailableSslPredefinedPolicies")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ApplicationGatewayAvailableSslPredefinedPolicies.class); + /** * {@inheritDoc} */ @@ -104,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationGatewayAvailableSslPredefinedPolicies if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationGatewayAvailableSslPredefinedPolicies. */ public static ApplicationGatewayAvailableSslPredefinedPolicies fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayListResult.java index ce3fbd0301da..b217d5645be5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListApplicationGateways API service call. + * The response of a ApplicationGateway list operation. */ -@Fluent +@Immutable public final class ApplicationGatewayListResult implements JsonSerializable { /* - * List of an application gateways in a resource group. + * The ApplicationGateway items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationGatewayListResult class. */ - public ApplicationGatewayListResult() { + private ApplicationGatewayListResult() { } /** - * Get the value property: List of an application gateways in a resource group. + * Get the value property: The ApplicationGateway items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of an application gateways in a resource group. - * - * @param value the value value to set. - * @return the ApplicationGatewayListResult object itself. - */ - public ApplicationGatewayListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ApplicationGatewayListResult object itself. - */ - public ApplicationGatewayListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationGatewayListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ApplicationGatewayListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationGatewayListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationGatewayListResult. */ public static ApplicationGatewayListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateEndpointConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateEndpointConnectionListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateEndpointConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateEndpointConnectionListResult.java index e38d93ab3358..2a79c67a28a9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateEndpointConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateEndpointConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,30 +15,29 @@ import java.util.List; /** - * Response for ListApplicationGatewayPrivateEndpointConnection API service call. Gets all private endpoint connections - * for an application gateway. + * The response of a ApplicationGatewayPrivateEndpointConnection list operation. */ -@Fluent +@Immutable public final class ApplicationGatewayPrivateEndpointConnectionListResult implements JsonSerializable { /* - * List of private endpoint connections on an application gateway. + * The ApplicationGatewayPrivateEndpointConnection items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationGatewayPrivateEndpointConnectionListResult class. */ - public ApplicationGatewayPrivateEndpointConnectionListResult() { + private ApplicationGatewayPrivateEndpointConnectionListResult() { } /** - * Get the value property: List of private endpoint connections on an application gateway. + * Get the value property: The ApplicationGatewayPrivateEndpointConnection items on this page. * * @return the value value. */ @@ -46,19 +46,7 @@ public List value() { } /** - * Set the value property: List of private endpoint connections on an application gateway. - * - * @param value the value value to set. - * @return the ApplicationGatewayPrivateEndpointConnectionListResult object itself. - */ - public ApplicationGatewayPrivateEndpointConnectionListResult - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -66,28 +54,24 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ApplicationGatewayPrivateEndpointConnectionListResult object itself. - */ - public ApplicationGatewayPrivateEndpointConnectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationGatewayPrivateEndpointConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER + = new ClientLogger(ApplicationGatewayPrivateEndpointConnectionListResult.class); + /** * {@inheritDoc} */ @@ -105,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationGatewayPrivateEndpointConnectionListResult if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationGatewayPrivateEndpointConnectionListResult. */ public static ApplicationGatewayPrivateEndpointConnectionListResult fromJson(JsonReader jsonReader) diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkResourceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateLinkResourceListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkResourceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateLinkResourceListResult.java index 736e4cf4e8dd..85ea69416357 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkResourceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateLinkResourceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,30 +15,29 @@ import java.util.List; /** - * Response for ListApplicationGatewayPrivateLinkResources API service call. Gets all private link resources for an - * application gateway. + * The response of a ApplicationGatewayPrivateLinkResource list operation. */ -@Fluent +@Immutable public final class ApplicationGatewayPrivateLinkResourceListResult implements JsonSerializable { /* - * List of private link resources of an application gateway. + * The ApplicationGatewayPrivateLinkResource items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationGatewayPrivateLinkResourceListResult class. */ - public ApplicationGatewayPrivateLinkResourceListResult() { + private ApplicationGatewayPrivateLinkResourceListResult() { } /** - * Get the value property: List of private link resources of an application gateway. + * Get the value property: The ApplicationGatewayPrivateLinkResource items on this page. * * @return the value value. */ @@ -46,19 +46,7 @@ public List value() { } /** - * Set the value property: List of private link resources of an application gateway. - * - * @param value the value value to set. - * @return the ApplicationGatewayPrivateLinkResourceListResult object itself. - */ - public ApplicationGatewayPrivateLinkResourceListResult - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -66,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ApplicationGatewayPrivateLinkResourceListResult object itself. - */ - public ApplicationGatewayPrivateLinkResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationGatewayPrivateLinkResourceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ApplicationGatewayPrivateLinkResourceListResult.class); + /** * {@inheritDoc} */ @@ -105,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationGatewayPrivateLinkResourceListResult if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationGatewayPrivateLinkResourceListResult. */ public static ApplicationGatewayPrivateLinkResourceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafDynamicManifestResultList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayWafDynamicManifestResultList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafDynamicManifestResultList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayWafDynamicManifestResultList.java index 6787375b1117..469e50cfc9f8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafDynamicManifestResultList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayWafDynamicManifestResultList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ApplicationGatewayWafDynamicManifests API service call. */ -@Fluent +@Immutable public final class ApplicationGatewayWafDynamicManifestResultList implements JsonSerializable { /* - * The list of application gateway waf manifest. + * The ApplicationGatewayWafDynamicManifestResult items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationGatewayWafDynamicManifestResultList class. */ - public ApplicationGatewayWafDynamicManifestResultList() { + private ApplicationGatewayWafDynamicManifestResultList() { } /** - * Get the value property: The list of application gateway waf manifest. + * Get the value property: The ApplicationGatewayWafDynamicManifestResult items on this page. * * @return the value value. */ @@ -45,19 +46,7 @@ public List value() { } /** - * Set the value property: The list of application gateway waf manifest. - * - * @param value the value value to set. - * @return the ApplicationGatewayWafDynamicManifestResultList object itself. - */ - public ApplicationGatewayWafDynamicManifestResultList - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ApplicationGatewayWafDynamicManifestResultList object itself. - */ - public ApplicationGatewayWafDynamicManifestResultList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationGatewayWafDynamicManifestResultList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ApplicationGatewayWafDynamicManifestResultList.class); + /** * {@inheritDoc} */ @@ -104,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationGatewayWafDynamicManifestResultList if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationGatewayWafDynamicManifestResultList. */ public static ApplicationGatewayWafDynamicManifestResultList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationSecurityGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationSecurityGroupListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationSecurityGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationSecurityGroupListResult.java index b3d6967853f9..2bc803920e31 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationSecurityGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationSecurityGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * A list of application security groups. + * The response of a ApplicationSecurityGroup list operation. */ -@Fluent +@Immutable public final class ApplicationSecurityGroupListResult implements JsonSerializable { /* - * A list of application security groups. + * The ApplicationSecurityGroup items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ApplicationSecurityGroupListResult class. */ - public ApplicationSecurityGroupListResult() { + private ApplicationSecurityGroupListResult() { } /** - * Get the value property: A list of application security groups. + * Get the value property: The ApplicationSecurityGroup items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of application security groups. - * - * @param value the value value to set. - * @return the ApplicationSecurityGroupListResult object itself. - */ - public ApplicationSecurityGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ApplicationSecurityGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ApplicationSecurityGroupListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ApplicationSecurityGroupListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ApplicationSecurityGroupListResult. */ public static ApplicationSecurityGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AuthorizationListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AuthorizationListResult.java index 45ab3802374a..75097302ed9d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AuthorizationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListAuthorizations API service call retrieves all authorizations that belongs to an ExpressRouteCircuit. + * Paged collection of ExpressRouteCircuitAuthorization items. */ -@Fluent +@Immutable public final class AuthorizationListResult implements JsonSerializable { /* - * The authorizations in an ExpressRoute Circuit. + * The ExpressRouteCircuitAuthorization items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AuthorizationListResult class. */ - public AuthorizationListResult() { + private AuthorizationListResult() { } /** - * Get the value property: The authorizations in an ExpressRoute Circuit. + * Get the value property: The ExpressRouteCircuitAuthorization items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The authorizations in an ExpressRoute Circuit. - * - * @param value the value value to set. - * @return the AuthorizationListResult object itself. - */ - public AuthorizationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AuthorizationListResult object itself. - */ - public AuthorizationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model AuthorizationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AuthorizationListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AuthorizationListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AuthorizationListResult. */ public static AuthorizationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoApprovedPrivateLinkServicesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AutoApprovedPrivateLinkServicesResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoApprovedPrivateLinkServicesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AutoApprovedPrivateLinkServicesResult.java index 58252b6422da..1b87148769a6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoApprovedPrivateLinkServicesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AutoApprovedPrivateLinkServicesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * An array of private link service id that can be linked to a private end point with auto approved. */ -@Fluent +@Immutable public final class AutoApprovedPrivateLinkServicesResult implements JsonSerializable { /* - * An array of auto approved private link service. + * The AutoApprovedPrivateLinkService items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AutoApprovedPrivateLinkServicesResult class. */ - public AutoApprovedPrivateLinkServicesResult() { + private AutoApprovedPrivateLinkServicesResult() { } /** - * Get the value property: An array of auto approved private link service. + * Get the value property: The AutoApprovedPrivateLinkService items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: An array of auto approved private link service. - * - * @param value the value value to set. - * @return the AutoApprovedPrivateLinkServicesResult object itself. - */ - public AutoApprovedPrivateLinkServicesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AutoApprovedPrivateLinkServicesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AutoApprovedPrivateLinkServicesResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AutoApprovedPrivateLinkServicesResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AutoApprovedPrivateLinkServicesResult. */ public static AutoApprovedPrivateLinkServicesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableDelegationsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableDelegationsResult.java similarity index 74% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableDelegationsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableDelegationsResult.java index 2d43e89ebee1..abbfbc3e2396 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableDelegationsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableDelegationsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * An array of available delegations. */ -@Fluent +@Immutable public final class AvailableDelegationsResult implements JsonSerializable { /* - * An array of available delegations. + * The AvailableDelegation items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AvailableDelegationsResult class. */ - public AvailableDelegationsResult() { + private AvailableDelegationsResult() { } /** - * Get the value property: An array of available delegations. + * Get the value property: The AvailableDelegation items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: An array of available delegations. - * - * @param value the value value to set. - * @return the AvailableDelegationsResult object itself. - */ - public AvailableDelegationsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AvailableDelegationsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AvailableDelegationsResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AvailableDelegationsResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AvailableDelegationsResult. */ public static AvailableDelegationsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailablePrivateEndpointTypesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailablePrivateEndpointTypesResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailablePrivateEndpointTypesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailablePrivateEndpointTypesResult.java index 5101f7473afd..66e45b347fb9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailablePrivateEndpointTypesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailablePrivateEndpointTypesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * An array of available PrivateEndpoint types. */ -@Fluent +@Immutable public final class AvailablePrivateEndpointTypesResult implements JsonSerializable { /* - * An array of available privateEndpoint type. + * The AvailablePrivateEndpointType items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AvailablePrivateEndpointTypesResult class. */ - public AvailablePrivateEndpointTypesResult() { + private AvailablePrivateEndpointTypesResult() { } /** - * Get the value property: An array of available privateEndpoint type. + * Get the value property: The AvailablePrivateEndpointType items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: An array of available privateEndpoint type. - * - * @param value the value value to set. - * @return the AvailablePrivateEndpointTypesResult object itself. - */ - public AvailablePrivateEndpointTypesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AvailablePrivateEndpointTypesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AvailablePrivateEndpointTypesResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AvailablePrivateEndpointTypesResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AvailablePrivateEndpointTypesResult. */ public static AvailablePrivateEndpointTypesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableServiceAliasesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableServiceAliasesResult.java similarity index 74% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableServiceAliasesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableServiceAliasesResult.java index 7cc5a1f244be..9f4778633075 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableServiceAliasesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableServiceAliasesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * An array of available service aliases. */ -@Fluent +@Immutable public final class AvailableServiceAliasesResult implements JsonSerializable { /* - * An array of available service aliases. + * The AvailableServiceAlias items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AvailableServiceAliasesResult class. */ - public AvailableServiceAliasesResult() { + private AvailableServiceAliasesResult() { } /** - * Get the value property: An array of available service aliases. + * Get the value property: The AvailableServiceAlias items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: An array of available service aliases. - * - * @param value the value value to set. - * @return the AvailableServiceAliasesResult object itself. - */ - public AvailableServiceAliasesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AvailableServiceAliasesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AvailableServiceAliasesResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AvailableServiceAliasesResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AvailableServiceAliasesResult. */ public static AvailableServiceAliasesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallFqdnTagListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallFqdnTagListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallFqdnTagListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallFqdnTagListResult.java index c532d7d668c8..2557952fa71f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallFqdnTagListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallFqdnTagListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListAzureFirewallFqdnTags API service call. + * The response of a AzureFirewallFqdnTag list operation. */ -@Fluent +@Immutable public final class AzureFirewallFqdnTagListResult implements JsonSerializable { /* - * List of Azure Firewall FQDN Tags in a resource group. + * The AzureFirewallFqdnTag items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AzureFirewallFqdnTagListResult class. */ - public AzureFirewallFqdnTagListResult() { + private AzureFirewallFqdnTagListResult() { } /** - * Get the value property: List of Azure Firewall FQDN Tags in a resource group. + * Get the value property: The AzureFirewallFqdnTag items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Azure Firewall FQDN Tags in a resource group. - * - * @param value the value value to set. - * @return the AzureFirewallFqdnTagListResult object itself. - */ - public AzureFirewallFqdnTagListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AzureFirewallFqdnTagListResult object itself. - */ - public AzureFirewallFqdnTagListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AzureFirewallFqdnTagListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AzureFirewallFqdnTagListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AzureFirewallFqdnTagListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AzureFirewallFqdnTagListResult. */ public static AzureFirewallFqdnTagListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallListResult.java index ba14f358d610..6d4431ec4e12 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListAzureFirewalls API service call. + * The response of a AzureFirewall list operation. */ -@Fluent +@Immutable public final class AzureFirewallListResult implements JsonSerializable { /* - * List of Azure Firewalls in a resource group. + * The AzureFirewall items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AzureFirewallListResult class. */ - public AzureFirewallListResult() { + private AzureFirewallListResult() { } /** - * Get the value property: List of Azure Firewalls in a resource group. + * Get the value property: The AzureFirewall items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Azure Firewalls in a resource group. - * - * @param value the value value to set. - * @return the AzureFirewallListResult object itself. - */ - public AzureFirewallListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AzureFirewallListResult object itself. - */ - public AzureFirewallListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model AzureFirewallListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AzureFirewallListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AzureFirewallListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AzureFirewallListResult. */ public static AzureFirewallListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureWebCategoryListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureWebCategoryListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureWebCategoryListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureWebCategoryListResult.java index 1d15c992829a..833eb0a314b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureWebCategoryListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/AzureWebCategoryListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListAzureWebCategories API service call. + * List of Azure Web Categories for a given Subscription. */ -@Fluent +@Immutable public final class AzureWebCategoryListResult implements JsonSerializable { /* - * List of Azure Web Categories for a given Subscription. + * The AzureWebCategory items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of AzureWebCategoryListResult class. */ - public AzureWebCategoryListResult() { + private AzureWebCategoryListResult() { } /** - * Get the value property: List of Azure Web Categories for a given Subscription. + * Get the value property: The AzureWebCategory items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Azure Web Categories for a given Subscription. - * - * @param value the value value to set. - * @return the AzureWebCategoryListResult object itself. - */ - public AzureWebCategoryListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the AzureWebCategoryListResult object itself. - */ - public AzureWebCategoryListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AzureWebCategoryListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(AzureWebCategoryListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AzureWebCategoryListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AzureWebCategoryListResult. */ public static AzureWebCategoryListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionActiveSessionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionActiveSessionListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionActiveSessionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionActiveSessionListResult.java index 410be9bad575..2f47b6dd36ee 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionActiveSessionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionActiveSessionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for GetActiveSessions. */ -@Fluent +@Immutable public final class BastionActiveSessionListResult implements JsonSerializable { /* - * List of active sessions on the bastion. + * The BastionActiveSession items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BastionActiveSessionListResult class. */ - public BastionActiveSessionListResult() { + private BastionActiveSessionListResult() { } /** - * Get the value property: List of active sessions on the bastion. + * Get the value property: The BastionActiveSession items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of active sessions on the bastion. - * - * @param value the value value to set. - * @return the BastionActiveSessionListResult object itself. - */ - public BastionActiveSessionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the BastionActiveSessionListResult object itself. - */ - public BastionActiveSessionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model BastionActiveSessionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BastionActiveSessionListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BastionActiveSessionListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BastionActiveSessionListResult. */ public static BastionActiveSessionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionHostListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionHostListResult.java index 688893d37b28..f4052a26bcb6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionHostListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListBastionHosts API service call. + * The response of a BastionHost list operation. */ -@Fluent +@Immutable public final class BastionHostListResult implements JsonSerializable { /* - * List of Bastion Hosts in a resource group. + * The BastionHost items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BastionHostListResult class. */ - public BastionHostListResult() { + private BastionHostListResult() { } /** - * Get the value property: List of Bastion Hosts in a resource group. + * Get the value property: The BastionHost items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Bastion Hosts in a resource group. - * - * @param value the value value to set. - * @return the BastionHostListResult object itself. - */ - public BastionHostListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the BastionHostListResult object itself. - */ - public BastionHostListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model BastionHostListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BastionHostListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BastionHostListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BastionHostListResult. */ public static BastionHostListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionSessionDeleteResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionSessionDeleteResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionSessionDeleteResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionSessionDeleteResult.java index 78b3f62bc113..afcf3ddc7efb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionSessionDeleteResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionSessionDeleteResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for DisconnectActiveSessions. */ -@Fluent +@Immutable public final class BastionSessionDeleteResult implements JsonSerializable { /* - * List of sessions with their corresponding state. + * The BastionSessionState items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BastionSessionDeleteResult class. */ - public BastionSessionDeleteResult() { + private BastionSessionDeleteResult() { } /** - * Get the value property: List of sessions with their corresponding state. + * Get the value property: The BastionSessionState items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of sessions with their corresponding state. - * - * @param value the value value to set. - * @return the BastionSessionDeleteResult object itself. - */ - public BastionSessionDeleteResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the BastionSessionDeleteResult object itself. - */ - public BastionSessionDeleteResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model BastionSessionDeleteResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BastionSessionDeleteResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BastionSessionDeleteResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BastionSessionDeleteResult. */ public static BastionSessionDeleteResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionShareableLinkListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionShareableLinkListResult.java index e59ad44095fa..2ebdc4b260b4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BastionShareableLinkListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for all the Bastion Shareable Link endpoints. */ -@Fluent +@Immutable public final class BastionShareableLinkListResult implements JsonSerializable { /* - * List of Bastion Shareable Links for the request. + * The BastionShareableLink items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BastionShareableLinkListResult class. */ - public BastionShareableLinkListResult() { + private BastionShareableLinkListResult() { } /** - * Get the value property: List of Bastion Shareable Links for the request. + * Get the value property: The BastionShareableLink items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Bastion Shareable Links for the request. - * - * @param value the value value to set. - * @return the BastionShareableLinkListResult object itself. - */ - public BastionShareableLinkListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the BastionShareableLinkListResult object itself. - */ - public BastionShareableLinkListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model BastionShareableLinkListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BastionShareableLinkListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BastionShareableLinkListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BastionShareableLinkListResult. */ public static BastionShareableLinkListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpServiceCommunityListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BgpServiceCommunityListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpServiceCommunityListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BgpServiceCommunityListResult.java index d51936b2a282..53f07a72e25f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpServiceCommunityListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/BgpServiceCommunityListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListServiceCommunity API service call. + * The response of a BgpServiceCommunity list operation. */ -@Fluent +@Immutable public final class BgpServiceCommunityListResult implements JsonSerializable { /* - * A list of service community resources. + * The BgpServiceCommunity items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of BgpServiceCommunityListResult class. */ - public BgpServiceCommunityListResult() { + private BgpServiceCommunityListResult() { } /** - * Get the value property: A list of service community resources. + * Get the value property: The BgpServiceCommunity items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of service community resources. - * - * @param value the value value to set. - * @return the BgpServiceCommunityListResult object itself. - */ - public BgpServiceCommunityListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the BgpServiceCommunityListResult object itself. - */ - public BgpServiceCommunityListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model BgpServiceCommunityListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(BgpServiceCommunityListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of BgpServiceCommunityListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the BgpServiceCommunityListResult. */ public static BgpServiceCommunityListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionMonitorListResult.java similarity index 80% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionMonitorListResult.java index b341576e4085..9e4e271b14e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionMonitorListResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,17 +16,22 @@ /** * List of connection monitors. */ -@Fluent +@Immutable public final class ConnectionMonitorListResult implements JsonSerializable { /* * Information about connection monitors. */ private List value; + /* + * URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of ConnectionMonitorListResult class. */ - public ConnectionMonitorListResult() { + private ConnectionMonitorListResult() { } /** @@ -39,14 +44,12 @@ public List value() { } /** - * Set the value property: Information about connection monitors. + * Get the nextLink property: URL to get the next set of results. * - * @param value the value value to set. - * @return the ConnectionMonitorListResult object itself. + * @return the nextLink value. */ - public ConnectionMonitorListResult withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +70,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -89,6 +93,8 @@ public static ConnectionMonitorListResult fromJson(JsonReader jsonReader) throws List value = reader.readArray(reader1 -> ConnectionMonitorResultInner.fromJson(reader1)); deserializedConnectionMonitorListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedConnectionMonitorListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionSharedKeyResultList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionSharedKeyResultList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionSharedKeyResultList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionSharedKeyResultList.java index 3d310b383f1c..2895cf3d6131 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionSharedKeyResultList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionSharedKeyResultList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * The list of shared keys for the vpn link connection. It should only contain one shared key for each vpn link * connection. */ -@Fluent +@Immutable public final class ConnectionSharedKeyResultList implements JsonSerializable { /* - * List of SharedKeys. + * The ConnectionSharedKeyResult items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ConnectionSharedKeyResultList class. */ - public ConnectionSharedKeyResultList() { + private ConnectionSharedKeyResultList() { } /** - * Get the value property: List of SharedKeys. + * Get the value property: The ConnectionSharedKeyResult items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of SharedKeys. - * - * @param value the value value to set. - * @return the ConnectionSharedKeyResultList object itself. - */ - public ConnectionSharedKeyResultList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ConnectionSharedKeyResultList object itself. - */ - public ConnectionSharedKeyResultList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ConnectionSharedKeyResultList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ConnectionSharedKeyResultList.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ConnectionSharedKeyResultList if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ConnectionSharedKeyResultList. */ public static ConnectionSharedKeyResultList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectivityConfigurationListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectivityConfigurationListResult.java index 6a72f431b2e4..2e27c93c8fd3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectivityConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,30 +15,29 @@ import java.util.List; /** - * Result of the request to list network manager connectivity configurations. It contains a list of configurations and a - * link to get the next set of results. + * The response of a ConnectivityConfiguration list operation. */ -@Fluent +@Immutable public final class ConnectivityConfigurationListResult implements JsonSerializable { /* - * Gets a page of Connectivity Configurations + * The ConnectivityConfiguration items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ConnectivityConfigurationListResult class. */ - public ConnectivityConfigurationListResult() { + private ConnectivityConfigurationListResult() { } /** - * Get the value property: Gets a page of Connectivity Configurations. + * Get the value property: The ConnectivityConfiguration items on this page. * * @return the value value. */ @@ -46,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets a page of Connectivity Configurations. - * - * @param value the value value to set. - * @return the ConnectivityConfigurationListResult object itself. - */ - public ConnectivityConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the ConnectivityConfigurationListResult object itself. - */ - public ConnectivityConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ConnectivityConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ConnectivityConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -104,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ConnectivityConfigurationListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ConnectivityConfigurationListResult. */ public static ConnectivityConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CustomIpPrefixListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/CustomIpPrefixListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CustomIpPrefixListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/CustomIpPrefixListResult.java index a0c4064712a4..11d53cf16265 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CustomIpPrefixListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/CustomIpPrefixListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListCustomIpPrefixes API service call. + * The response of a CustomIpPrefix list operation. */ -@Fluent +@Immutable public final class CustomIpPrefixListResult implements JsonSerializable { /* - * A list of Custom IP prefixes that exists in a resource group. + * The CustomIpPrefix items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of CustomIpPrefixListResult class. */ - public CustomIpPrefixListResult() { + private CustomIpPrefixListResult() { } /** - * Get the value property: A list of Custom IP prefixes that exists in a resource group. + * Get the value property: The CustomIpPrefix items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of Custom IP prefixes that exists in a resource group. - * - * @param value the value value to set. - * @return the CustomIpPrefixListResult object itself. - */ - public CustomIpPrefixListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the CustomIpPrefixListResult object itself. - */ - public CustomIpPrefixListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model CustomIpPrefixListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(CustomIpPrefixListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of CustomIpPrefixListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CustomIpPrefixListResult. */ public static CustomIpPrefixListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosProtectionPlanListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DdosProtectionPlanListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosProtectionPlanListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DdosProtectionPlanListResult.java index f03ce0ce0585..604462516c34 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosProtectionPlanListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DdosProtectionPlanListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * A list of DDoS protection plans. + * The response of a DdosProtectionPlan list operation. */ -@Fluent +@Immutable public final class DdosProtectionPlanListResult implements JsonSerializable { /* - * A list of DDoS protection plans. + * The DdosProtectionPlan items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of DdosProtectionPlanListResult class. */ - public DdosProtectionPlanListResult() { + private DdosProtectionPlanListResult() { } /** - * Get the value property: A list of DDoS protection plans. + * Get the value property: The DdosProtectionPlan items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of DDoS protection plans. - * - * @param value the value value to set. - * @return the DdosProtectionPlanListResult object itself. - */ - public DdosProtectionPlanListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model DdosProtectionPlanListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(DdosProtectionPlanListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of DdosProtectionPlanListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the DdosProtectionPlanListResult. */ public static DdosProtectionPlanListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DscpConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DscpConfigurationListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DscpConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DscpConfigurationListResult.java index f539f4b6c23d..8f34a82a096e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DscpConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/DscpConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the DscpConfigurationList API service call. + * The response of a DscpConfiguration list operation. */ -@Fluent +@Immutable public final class DscpConfigurationListResult implements JsonSerializable { /* - * A list of dscp configurations in a resource group. + * The DscpConfiguration items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of DscpConfigurationListResult class. */ - public DscpConfigurationListResult() { + private DscpConfigurationListResult() { } /** - * Get the value property: A list of dscp configurations in a resource group. + * Get the value property: The DscpConfiguration items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of dscp configurations in a resource group. - * - * @param value the value value to set. - * @return the DscpConfigurationListResult object itself. - */ - public DscpConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model DscpConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(DscpConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of DscpConfigurationListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the DscpConfigurationListResult. */ public static DscpConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointServicesListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/EndpointServicesListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointServicesListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/EndpointServicesListResult.java index 999b10672ea1..9ba4085879ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointServicesListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/EndpointServicesListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListAvailableEndpointServices API service call. + * Paged collection of EndpointServiceResult items. */ -@Fluent +@Immutable public final class EndpointServicesListResult implements JsonSerializable { /* - * List of available endpoint services in a region. + * The EndpointServiceResult items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of EndpointServicesListResult class. */ - public EndpointServicesListResult() { + private EndpointServicesListResult() { } /** - * Get the value property: List of available endpoint services in a region. + * Get the value property: The EndpointServiceResult items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of available endpoint services in a region. - * - * @param value the value value to set. - * @return the EndpointServicesListResult object itself. - */ - public EndpointServicesListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the EndpointServicesListResult object itself. - */ - public EndpointServicesListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EndpointServicesListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(EndpointServicesListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of EndpointServicesListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the EndpointServicesListResult. */ public static EndpointServicesListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitConnectionListResult.java similarity index 67% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitConnectionListResult.java index aab755912645..be3e6fd30f40 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,30 +15,29 @@ import java.util.List; /** - * Response for ListConnections API service call retrieves all global reach connections that belongs to a Private - * Peering for an ExpressRouteCircuit. + * The response of a ExpressRouteCircuitConnection list operation. */ -@Fluent +@Immutable public final class ExpressRouteCircuitConnectionListResult implements JsonSerializable { /* - * The global reach connection associated with Private Peering in an ExpressRoute Circuit. + * The ExpressRouteCircuitConnection items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitConnectionListResult class. */ - public ExpressRouteCircuitConnectionListResult() { + private ExpressRouteCircuitConnectionListResult() { } /** - * Get the value property: The global reach connection associated with Private Peering in an ExpressRoute Circuit. + * Get the value property: The ExpressRouteCircuitConnection items on this page. * * @return the value value. */ @@ -46,18 +46,7 @@ public List value() { } /** - * Set the value property: The global reach connection associated with Private Peering in an ExpressRoute Circuit. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitConnectionListResult object itself. - */ - public ExpressRouteCircuitConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitConnectionListResult object itself. - */ - public ExpressRouteCircuitConnectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCircuitConnectionListResult.class); + /** * {@inheritDoc} */ @@ -104,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitConnectionListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitConnectionListResult. */ public static ExpressRouteCircuitConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitListResult.java index 36cad591db8a..b13c18e36ca9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListExpressRouteCircuit API service call. + * The response of a ExpressRouteCircuit list operation. */ -@Fluent +@Immutable public final class ExpressRouteCircuitListResult implements JsonSerializable { /* - * A list of ExpressRouteCircuits in a resource group. + * The ExpressRouteCircuit items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitListResult class. */ - public ExpressRouteCircuitListResult() { + private ExpressRouteCircuitListResult() { } /** - * Get the value property: A list of ExpressRouteCircuits in a resource group. + * Get the value property: The ExpressRouteCircuit items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of ExpressRouteCircuits in a resource group. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitListResult object itself. - */ - public ExpressRouteCircuitListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitListResult object itself. - */ - public ExpressRouteCircuitListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCircuitListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitListResult. */ public static ExpressRouteCircuitListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitPeeringListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitPeeringListResult.java index 1eb57bbcd28f..ad4498570855 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitPeeringListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCircuit. + * The response of a ExpressRouteCircuitPeering list operation. */ -@Fluent +@Immutable public final class ExpressRouteCircuitPeeringListResult implements JsonSerializable { /* - * The peerings in an express route circuit. + * The ExpressRouteCircuitPeering items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCircuitPeeringListResult class. */ - public ExpressRouteCircuitPeeringListResult() { + private ExpressRouteCircuitPeeringListResult() { } /** - * Get the value property: The peerings in an express route circuit. + * Get the value property: The ExpressRouteCircuitPeering items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The peerings in an express route circuit. - * - * @param value the value value to set. - * @return the ExpressRouteCircuitPeeringListResult object itself. - */ - public ExpressRouteCircuitPeeringListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteCircuitPeeringListResult object itself. - */ - public ExpressRouteCircuitPeeringListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCircuitPeeringListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCircuitPeeringListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCircuitPeeringListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCircuitPeeringListResult. */ public static ExpressRouteCircuitPeeringListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionListResult.java index c9e638e5e1ee..59dd5b0a48ea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListExpressRouteCrossConnection API service call. + * The response of a ExpressRouteCrossConnection list operation. */ -@Fluent +@Immutable public final class ExpressRouteCrossConnectionListResult implements JsonSerializable { /* - * A list of ExpressRouteCrossConnection resources. + * The ExpressRouteCrossConnection items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCrossConnectionListResult class. */ - public ExpressRouteCrossConnectionListResult() { + private ExpressRouteCrossConnectionListResult() { } /** - * Get the value property: A list of ExpressRouteCrossConnection resources. + * Get the value property: The ExpressRouteCrossConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of ExpressRouteCrossConnection resources. - * - * @param value the value value to set. - * @return the ExpressRouteCrossConnectionListResult object itself. - */ - public ExpressRouteCrossConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCrossConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCrossConnectionListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCrossConnectionListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCrossConnectionListResult. */ public static ExpressRouteCrossConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionPeeringList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionPeeringList.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionPeeringList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionPeeringList.java index ba35300b7000..1e2249118338 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionPeeringList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionPeeringList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for ListPeering API service call retrieves all peerings that belong to an ExpressRouteCrossConnection. */ -@Fluent +@Immutable public final class ExpressRouteCrossConnectionPeeringList implements JsonSerializable { /* - * The peerings in an express route cross connection. + * The ExpressRouteCrossConnectionPeering items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteCrossConnectionPeeringList class. */ - public ExpressRouteCrossConnectionPeeringList() { + private ExpressRouteCrossConnectionPeeringList() { } /** - * Get the value property: The peerings in an express route cross connection. + * Get the value property: The ExpressRouteCrossConnectionPeering items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The peerings in an express route cross connection. - * - * @param value the value value to set. - * @return the ExpressRouteCrossConnectionPeeringList object itself. - */ - public ExpressRouteCrossConnectionPeeringList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteCrossConnectionPeeringList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteCrossConnectionPeeringList.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteCrossConnectionPeeringList if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteCrossConnectionPeeringList. */ public static ExpressRouteCrossConnectionPeeringList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteLinkListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteLinkListResult.java index 88aec797cd83..fac182b702e9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteLinkListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -18,26 +19,26 @@ * * Response for ListExpressRouteLinks API service call. */ -@Fluent +@Immutable public final class ExpressRouteLinkListResult implements JsonSerializable { /* - * The list of ExpressRouteLink sub-resources. + * The ExpressRouteLink items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteLinkListResult class. */ - public ExpressRouteLinkListResult() { + private ExpressRouteLinkListResult() { } /** - * Get the value property: The list of ExpressRouteLink sub-resources. + * Get the value property: The ExpressRouteLink items on this page. * * @return the value value. */ @@ -46,18 +47,7 @@ public List value() { } /** - * Set the value property: The list of ExpressRouteLink sub-resources. - * - * @param value the value value to set. - * @return the ExpressRouteLinkListResult object itself. - */ - public ExpressRouteLinkListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +55,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteLinkListResult object itself. - */ - public ExpressRouteLinkListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteLinkListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteLinkListResult.class); + /** * {@inheritDoc} */ @@ -104,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteLinkListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteLinkListResult. */ public static ExpressRouteLinkListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortAuthorizationListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortAuthorizationListResult.java index b1201bc92908..7481d43dfb08 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortAuthorizationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,29 +17,29 @@ /** * ExpressRoute Port Authorization List Result * - * Response for ListExpressRoutePortAuthorizations API service call. + * Paged collection of ExpressRoutePortAuthorization items. */ -@Fluent +@Immutable public final class ExpressRoutePortAuthorizationListResult implements JsonSerializable { /* - * The authorizations in an ExpressRoute Port. + * The ExpressRoutePortAuthorization items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRoutePortAuthorizationListResult class. */ - public ExpressRoutePortAuthorizationListResult() { + private ExpressRoutePortAuthorizationListResult() { } /** - * Get the value property: The authorizations in an ExpressRoute Port. + * Get the value property: The ExpressRoutePortAuthorization items on this page. * * @return the value value. */ @@ -47,18 +48,7 @@ public List value() { } /** - * Set the value property: The authorizations in an ExpressRoute Port. - * - * @param value the value value to set. - * @return the ExpressRoutePortAuthorizationListResult object itself. - */ - public ExpressRoutePortAuthorizationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -66,28 +56,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRoutePortAuthorizationListResult object itself. - */ - public ExpressRoutePortAuthorizationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRoutePortAuthorizationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRoutePortAuthorizationListResult.class); + /** * {@inheritDoc} */ @@ -105,6 +90,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRoutePortAuthorizationListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRoutePortAuthorizationListResult. */ public static ExpressRoutePortAuthorizationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortListResult.java index 3462754b3792..f060460df6a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,28 +17,28 @@ /** * ExpressRoute Port List Result * - * Response for ListExpressRoutePorts API service call. + * Paged collection of ExpressRoutePort items. */ -@Fluent +@Immutable public final class ExpressRoutePortListResult implements JsonSerializable { /* - * A list of ExpressRoutePort resources. + * The ExpressRoutePort items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRoutePortListResult class. */ - public ExpressRoutePortListResult() { + private ExpressRoutePortListResult() { } /** - * Get the value property: A list of ExpressRoutePort resources. + * Get the value property: The ExpressRoutePort items on this page. * * @return the value value. */ @@ -46,18 +47,7 @@ public List value() { } /** - * Set the value property: A list of ExpressRoutePort resources. - * - * @param value the value value to set. - * @return the ExpressRoutePortListResult object itself. - */ - public ExpressRoutePortListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +55,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRoutePortListResult object itself. - */ - public ExpressRoutePortListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRoutePortListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRoutePortListResult.class); + /** * {@inheritDoc} */ @@ -104,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRoutePortListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRoutePortListResult. */ public static ExpressRoutePortListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortsLocationListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortsLocationListResult.java index 0ed46dee498a..0cea0a6be327 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortsLocationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,29 +17,29 @@ /** * ExpressRoutePorts Location List Result * - * Response for ListExpressRoutePortsLocations API service call. + * Paged collection of ExpressRoutePortsLocation items. */ -@Fluent +@Immutable public final class ExpressRoutePortsLocationListResult implements JsonSerializable { /* - * The list of all ExpressRoutePort peering locations. + * The ExpressRoutePortsLocation items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRoutePortsLocationListResult class. */ - public ExpressRoutePortsLocationListResult() { + private ExpressRoutePortsLocationListResult() { } /** - * Get the value property: The list of all ExpressRoutePort peering locations. + * Get the value property: The ExpressRoutePortsLocation items on this page. * * @return the value value. */ @@ -47,18 +48,7 @@ public List value() { } /** - * Set the value property: The list of all ExpressRoutePort peering locations. - * - * @param value the value value to set. - * @return the ExpressRoutePortsLocationListResult object itself. - */ - public ExpressRoutePortsLocationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -66,28 +56,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRoutePortsLocationListResult object itself. - */ - public ExpressRoutePortsLocationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRoutePortsLocationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRoutePortsLocationListResult.class); + /** * {@inheritDoc} */ @@ -105,6 +90,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRoutePortsLocationListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRoutePortsLocationListResult. */ public static ExpressRoutePortsLocationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteServiceProviderListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteServiceProviderListResult.java index da8595a946fa..eb2eb086a1ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteServiceProviderListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for the ListExpressRouteServiceProvider API service call. + * The response of a ExpressRouteServiceProvider list operation. */ -@Fluent +@Immutable public final class ExpressRouteServiceProviderListResult implements JsonSerializable { /* - * A list of ExpressRouteResourceProvider resources. + * The ExpressRouteServiceProvider items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ExpressRouteServiceProviderListResult class. */ - public ExpressRouteServiceProviderListResult() { + private ExpressRouteServiceProviderListResult() { } /** - * Get the value property: A list of ExpressRouteResourceProvider resources. + * Get the value property: The ExpressRouteServiceProvider items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of ExpressRouteResourceProvider resources. - * - * @param value the value value to set. - * @return the ExpressRouteServiceProviderListResult object itself. - */ - public ExpressRouteServiceProviderListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteServiceProviderListResult object itself. - */ - public ExpressRouteServiceProviderListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ExpressRouteServiceProviderListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ExpressRouteServiceProviderListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ExpressRouteServiceProviderListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ExpressRouteServiceProviderListResult. */ public static ExpressRouteServiceProviderListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyListResult.java index bbda65fe47e2..07015103af84 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListFirewallPolicies API service call. + * The response of a FirewallPolicy list operation. */ -@Fluent +@Immutable public final class FirewallPolicyListResult implements JsonSerializable { /* - * List of Firewall Policies in a resource group. + * The FirewallPolicy items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of FirewallPolicyListResult class. */ - public FirewallPolicyListResult() { + private FirewallPolicyListResult() { } /** - * Get the value property: List of Firewall Policies in a resource group. + * Get the value property: The FirewallPolicy items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Firewall Policies in a resource group. - * - * @param value the value value to set. - * @return the FirewallPolicyListResult object itself. - */ - public FirewallPolicyListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the FirewallPolicyListResult object itself. - */ - public FirewallPolicyListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model FirewallPolicyListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(FirewallPolicyListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of FirewallPolicyListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the FirewallPolicyListResult. */ public static FirewallPolicyListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyRuleCollectionGroupListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyRuleCollectionGroupListResult.java index 792bb0f4691b..bf9e1aae395c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyRuleCollectionGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListFirewallPolicyRuleCollectionGroups API service call. + * The response of a FirewallPolicyRuleCollectionGroup list operation. */ -@Fluent +@Immutable public final class FirewallPolicyRuleCollectionGroupListResult implements JsonSerializable { /* - * List of FirewallPolicyRuleCollectionGroups in a FirewallPolicy. + * The FirewallPolicyRuleCollectionGroup items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of FirewallPolicyRuleCollectionGroupListResult class. */ - public FirewallPolicyRuleCollectionGroupListResult() { + private FirewallPolicyRuleCollectionGroupListResult() { } /** - * Get the value property: List of FirewallPolicyRuleCollectionGroups in a FirewallPolicy. + * Get the value property: The FirewallPolicyRuleCollectionGroup items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of FirewallPolicyRuleCollectionGroups in a FirewallPolicy. - * - * @param value the value value to set. - * @return the FirewallPolicyRuleCollectionGroupListResult object itself. - */ - public FirewallPolicyRuleCollectionGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the FirewallPolicyRuleCollectionGroupListResult object itself. - */ - public FirewallPolicyRuleCollectionGroupListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model FirewallPolicyRuleCollectionGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(FirewallPolicyRuleCollectionGroupListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of FirewallPolicyRuleCollectionGroupListResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the FirewallPolicyRuleCollectionGroupListResult. */ public static FirewallPolicyRuleCollectionGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FlowLogListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FlowLogListResult.java index c995d1a60410..7ba047dacffe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/FlowLogListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * List of flow logs. + * The response of a FlowLog list operation. */ -@Fluent +@Immutable public final class FlowLogListResult implements JsonSerializable { /* - * Information about flow log resource. + * The FlowLog items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of FlowLogListResult class. */ - public FlowLogListResult() { + private FlowLogListResult() { } /** - * Get the value property: Information about flow log resource. + * Get the value property: The FlowLog items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: Information about flow log resource. - * - * @param value the value value to set. - * @return the FlowLogListResult object itself. - */ - public FlowLogListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,16 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model FlowLogListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(FlowLogListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +76,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of FlowLogListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the FlowLogListResult. */ public static FlowLogListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayAddressLocationsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayAddressLocationsResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayAddressLocationsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayAddressLocationsResult.java index 4461d8efc7f9..adf44b1bf551 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayAddressLocationsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayAddressLocationsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for get service gateway address locations. */ -@Fluent +@Immutable public final class GetServiceGatewayAddressLocationsResult implements JsonSerializable { /* - * A list of address locations of service gateway. + * The ServiceGatewayAddressLocationResponse items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of GetServiceGatewayAddressLocationsResult class. */ - public GetServiceGatewayAddressLocationsResult() { + private GetServiceGatewayAddressLocationsResult() { } /** - * Get the value property: A list of address locations of service gateway. + * Get the value property: The ServiceGatewayAddressLocationResponse items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of address locations of service gateway. - * - * @param value the value value to set. - * @return the GetServiceGatewayAddressLocationsResult object itself. - */ - public GetServiceGatewayAddressLocationsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model GetServiceGatewayAddressLocationsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(GetServiceGatewayAddressLocationsResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of GetServiceGatewayAddressLocationsResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the GetServiceGatewayAddressLocationsResult. */ public static GetServiceGatewayAddressLocationsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayServicesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayServicesResult.java similarity index 74% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayServicesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayServicesResult.java index 971aa6b4f927..727d636787eb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetServiceGatewayServicesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayServicesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for get service gateway services. */ -@Fluent +@Immutable public final class GetServiceGatewayServicesResult implements JsonSerializable { /* - * A list of services of service gateway. + * The ServiceGatewayService items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of GetServiceGatewayServicesResult class. */ - public GetServiceGatewayServicesResult() { + private GetServiceGatewayServicesResult() { } /** - * Get the value property: A list of services of service gateway. + * Get the value property: The ServiceGatewayService items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of services of service gateway. - * - * @param value the value value to set. - * @return the GetServiceGatewayServicesResult object itself. - */ - public GetServiceGatewayServicesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model GetServiceGatewayServicesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(GetServiceGatewayServicesResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of GetServiceGatewayServicesResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the GetServiceGatewayServicesResult. */ public static GetServiceGatewayServicesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/InboundNatRuleListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/InboundNatRuleListResult.java index 4e39537f050d..4813a203779d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/InboundNatRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListInboundNatRule API service call. + * The response of a InboundNatRule list operation. */ -@Fluent +@Immutable public final class InboundNatRuleListResult implements JsonSerializable { /* - * A list of inbound NAT rules in a load balancer. + * The InboundNatRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of InboundNatRuleListResult class. */ - public InboundNatRuleListResult() { + private InboundNatRuleListResult() { } /** - * Get the value property: A list of inbound NAT rules in a load balancer. + * Get the value property: The InboundNatRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of inbound NAT rules in a load balancer. - * - * @param value the value value to set. - * @return the InboundNatRuleListResult object itself. - */ - public InboundNatRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,16 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model InboundNatRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(InboundNatRuleListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +76,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of InboundNatRuleListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the InboundNatRuleListResult. */ public static InboundNatRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpAllocationListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpAllocationListResult.java index 8c6486f8b5ed..0fbb45a578a5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpAllocationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListIpAllocations API service call. + * The response of a IpAllocation list operation. */ -@Fluent +@Immutable public final class IpAllocationListResult implements JsonSerializable { /* - * A list of IpAllocation resources. + * The IpAllocation items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of IpAllocationListResult class. */ - public IpAllocationListResult() { + private IpAllocationListResult() { } /** - * Get the value property: A list of IpAllocation resources. + * Get the value property: The IpAllocation items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of IpAllocation resources. - * - * @param value the value value to set. - * @return the IpAllocationListResult object itself. - */ - public IpAllocationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the IpAllocationListResult object itself. - */ - public IpAllocationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model IpAllocationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(IpAllocationListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of IpAllocationListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the IpAllocationListResult. */ public static IpAllocationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpGroupListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpGroupListResult.java index 6f646c8bf01a..139c442d636a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListIpGroups API service call. + * The response of a IpGroup list operation. */ -@Fluent +@Immutable public final class IpGroupListResult implements JsonSerializable { /* - * The list of IpGroups information resources. + * The IpGroup items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of IpGroupListResult class. */ - public IpGroupListResult() { + private IpGroupListResult() { } /** - * Get the value property: The list of IpGroups information resources. + * Get the value property: The IpGroup items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The list of IpGroups information resources. - * - * @param value the value value to set. - * @return the IpGroupListResult object itself. - */ - public IpGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the IpGroupListResult object itself. - */ - public IpGroupListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model IpGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(IpGroupListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of IpGroupListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the IpGroupListResult. */ public static IpGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpamPoolList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpamPoolList.java index 0b50bb6985dc..e79a44b2dea0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/IpamPoolList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of IpamPool. */ -@Fluent +@Immutable public final class IpamPoolList implements JsonSerializable { /* - * The value property. + * The IpamPool items on this page */ private List value; /* - * The link used to get the next page of operations. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of IpamPoolList class. */ - public IpamPoolList() { + private IpamPoolList() { } /** - * Get the value property: The value property. + * Get the value property: The IpamPool items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The value property. - * - * @param value the value value to set. - * @return the IpamPoolList object itself. - */ - public IpamPoolList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link used to get the next page of operations. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link used to get the next page of operations. - * - * @param nextLink the nextLink value to set. - * @return the IpamPoolList object itself. - */ - public IpamPoolList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model IpamPoolList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(IpamPoolList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of IpamPoolList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the IpamPoolList. */ public static IpamPoolList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubRouteTablesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubRouteTablesResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubRouteTablesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubRouteTablesResult.java index 8acf28209296..029d120a74a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubRouteTablesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubRouteTablesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of RouteTables and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListHubRouteTablesResult implements JsonSerializable { /* - * List of RouteTables. + * The HubRouteTable items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListHubRouteTablesResult class. */ - public ListHubRouteTablesResult() { + private ListHubRouteTablesResult() { } /** - * Get the value property: List of RouteTables. + * Get the value property: The HubRouteTable items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of RouteTables. - * - * @param value the value value to set. - * @return the ListHubRouteTablesResult object itself. - */ - public ListHubRouteTablesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListHubRouteTablesResult object itself. - */ - public ListHubRouteTablesResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListHubRouteTablesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListHubRouteTablesResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListHubRouteTablesResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListHubRouteTablesResult. */ public static ListHubRouteTablesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubVirtualNetworkConnectionsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubVirtualNetworkConnectionsResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubVirtualNetworkConnectionsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubVirtualNetworkConnectionsResult.java index 005f5e2870a9..0b2e845e41d3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListHubVirtualNetworkConnectionsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubVirtualNetworkConnectionsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListHubVirtualNetworkConnectionsResult implements JsonSerializable { /* - * List of HubVirtualNetworkConnections. + * The HubVirtualNetworkConnection items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListHubVirtualNetworkConnectionsResult class. */ - public ListHubVirtualNetworkConnectionsResult() { + private ListHubVirtualNetworkConnectionsResult() { } /** - * Get the value property: List of HubVirtualNetworkConnections. + * Get the value property: The HubVirtualNetworkConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of HubVirtualNetworkConnections. - * - * @param value the value value to set. - * @return the ListHubVirtualNetworkConnectionsResult object itself. - */ - public ListHubVirtualNetworkConnectionsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListHubVirtualNetworkConnectionsResult object itself. - */ - public ListHubVirtualNetworkConnectionsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListHubVirtualNetworkConnectionsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListHubVirtualNetworkConnectionsResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListHubVirtualNetworkConnectionsResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListHubVirtualNetworkConnectionsResult. */ public static ListHubVirtualNetworkConnectionsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListP2SVpnGatewaysResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListP2SVpnGatewaysResult.java index 2f6a3a22af3c..3651d7a0c242 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListP2SVpnGatewaysResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list P2SVpnGateways. It contains a list of P2SVpnGateways and a URL nextLink to get the next * set of results. */ -@Fluent +@Immutable public final class ListP2SVpnGatewaysResult implements JsonSerializable { /* - * List of P2SVpnGateways. + * The P2SVpnGateway items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListP2SVpnGatewaysResult class. */ - public ListP2SVpnGatewaysResult() { + private ListP2SVpnGatewaysResult() { } /** - * Get the value property: List of P2SVpnGateways. + * Get the value property: The P2SVpnGateway items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of P2SVpnGateways. - * - * @param value the value value to set. - * @return the ListP2SVpnGatewaysResult object itself. - */ - public ListP2SVpnGatewaysResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListP2SVpnGatewaysResult object itself. - */ - public ListP2SVpnGatewaysResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListP2SVpnGatewaysResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListP2SVpnGatewaysResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListP2SVpnGatewaysResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListP2SVpnGatewaysResult. */ public static ListP2SVpnGatewaysResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRouteMapsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRouteMapsResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRouteMapsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRouteMapsResult.java index 36bae177818c..3da2e0412c5c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRouteMapsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRouteMapsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of RouteMaps and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListRouteMapsResult implements JsonSerializable { /* - * List of RouteMaps. + * The RouteMap items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListRouteMapsResult class. */ - public ListRouteMapsResult() { + private ListRouteMapsResult() { } /** - * Get the value property: List of RouteMaps. + * Get the value property: The RouteMap items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of RouteMaps. - * - * @param value the value value to set. - * @return the ListRouteMapsResult object itself. - */ - public ListRouteMapsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListRouteMapsResult object itself. - */ - public ListRouteMapsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListRouteMapsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListRouteMapsResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListRouteMapsResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListRouteMapsResult. */ public static ListRouteMapsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRoutingIntentResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRoutingIntentResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRoutingIntentResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRoutingIntentResult.java index 5840c9bff23c..d75a913a7cb1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListRoutingIntentResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListRoutingIntentResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of the routing intent result and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListRoutingIntentResult implements JsonSerializable { /* - * List of RoutingIntent resource. + * The RoutingIntent items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListRoutingIntentResult class. */ - public ListRoutingIntentResult() { + private ListRoutingIntentResult() { } /** - * Get the value property: List of RoutingIntent resource. + * Get the value property: The RoutingIntent items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of RoutingIntent resource. - * - * @param value the value value to set. - * @return the ListRoutingIntentResult object itself. - */ - public ListRoutingIntentResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListRoutingIntentResult object itself. - */ - public ListRoutingIntentResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListRoutingIntentResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListRoutingIntentResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListRoutingIntentResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListRoutingIntentResult. */ public static ListRoutingIntentResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubBgpConnectionResults.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubBgpConnectionResults.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubBgpConnectionResults.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubBgpConnectionResults.java index 796e3eee46aa..997bbf608572 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubBgpConnectionResults.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubBgpConnectionResults.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * VirtualHubBgpConnections list. */ -@Fluent +@Immutable public final class ListVirtualHubBgpConnectionResults implements JsonSerializable { /* - * The list of VirtualHubBgpConnections. + * The BgpConnection items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVirtualHubBgpConnectionResults class. */ - public ListVirtualHubBgpConnectionResults() { + private ListVirtualHubBgpConnectionResults() { } /** - * Get the value property: The list of VirtualHubBgpConnections. + * Get the value property: The BgpConnection items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The list of VirtualHubBgpConnections. - * - * @param value the value value to set. - * @return the ListVirtualHubBgpConnectionResults object itself. - */ - public ListVirtualHubBgpConnectionResults withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualHubBgpConnectionResults object itself. - */ - public ListVirtualHubBgpConnectionResults withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVirtualHubBgpConnectionResults")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualHubBgpConnectionResults.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVirtualHubBgpConnectionResults if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVirtualHubBgpConnectionResults. */ public static ListVirtualHubBgpConnectionResults fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubIpConfigurationResults.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubIpConfigurationResults.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubIpConfigurationResults.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubIpConfigurationResults.java index 07ef282f474b..03ebd0a6e64c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubIpConfigurationResults.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubIpConfigurationResults.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * VirtualHubIpConfigurations list. */ -@Fluent +@Immutable public final class ListVirtualHubIpConfigurationResults implements JsonSerializable { /* - * The list of VirtualHubIpConfigurations. + * The HubIpConfiguration items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVirtualHubIpConfigurationResults class. */ - public ListVirtualHubIpConfigurationResults() { + private ListVirtualHubIpConfigurationResults() { } /** - * Get the value property: The list of VirtualHubIpConfigurations. + * Get the value property: The HubIpConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The list of VirtualHubIpConfigurations. - * - * @param value the value value to set. - * @return the ListVirtualHubIpConfigurationResults object itself. - */ - public ListVirtualHubIpConfigurationResults withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualHubIpConfigurationResults object itself. - */ - public ListVirtualHubIpConfigurationResults withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVirtualHubIpConfigurationResults")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualHubIpConfigurationResults.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVirtualHubIpConfigurationResults if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVirtualHubIpConfigurationResults. */ public static ListVirtualHubIpConfigurationResults fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubRouteTableV2SResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubRouteTableV2sResult.java similarity index 54% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubRouteTableV2SResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubRouteTableV2sResult.java index 1089dd71ce4b..59c4ab30bf83 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubRouteTableV2SResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubRouteTableV2sResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of VirtualHubRouteTableV2s and a URL nextLink to get the next set of results. */ -@Fluent -public final class ListVirtualHubRouteTableV2SResult implements JsonSerializable { +@Immutable +public final class ListVirtualHubRouteTableV2sResult implements JsonSerializable { /* - * List of VirtualHubRouteTableV2s. + * The VirtualHubRouteTableV2 items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of ListVirtualHubRouteTableV2SResult class. + * Creates an instance of ListVirtualHubRouteTableV2sResult class. */ - public ListVirtualHubRouteTableV2SResult() { + private ListVirtualHubRouteTableV2sResult() { } /** - * Get the value property: List of VirtualHubRouteTableV2s. + * Get the value property: The VirtualHubRouteTableV2 items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of VirtualHubRouteTableV2s. - * - * @param value the value value to set. - * @return the ListVirtualHubRouteTableV2SResult object itself. - */ - public ListVirtualHubRouteTableV2SResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualHubRouteTableV2SResult object itself. - */ - public ListVirtualHubRouteTableV2SResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVirtualHubRouteTableV2sResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualHubRouteTableV2sResult.class); + /** * {@inheritDoc} */ @@ -97,17 +82,18 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of ListVirtualHubRouteTableV2SResult from the JsonReader. + * Reads an instance of ListVirtualHubRouteTableV2sResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of ListVirtualHubRouteTableV2SResult if the JsonReader was pointing to an instance of it, or + * @return An instance of ListVirtualHubRouteTableV2sResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the ListVirtualHubRouteTableV2SResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ListVirtualHubRouteTableV2sResult. */ - public static ListVirtualHubRouteTableV2SResult fromJson(JsonReader jsonReader) throws IOException { + public static ListVirtualHubRouteTableV2sResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - ListVirtualHubRouteTableV2SResult deserializedListVirtualHubRouteTableV2SResult - = new ListVirtualHubRouteTableV2SResult(); + ListVirtualHubRouteTableV2sResult deserializedListVirtualHubRouteTableV2sResult + = new ListVirtualHubRouteTableV2sResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -115,15 +101,15 @@ public static ListVirtualHubRouteTableV2SResult fromJson(JsonReader jsonReader) if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> VirtualHubRouteTableV2Inner.fromJson(reader1)); - deserializedListVirtualHubRouteTableV2SResult.value = value; + deserializedListVirtualHubRouteTableV2sResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedListVirtualHubRouteTableV2SResult.nextLink = reader.getString(); + deserializedListVirtualHubRouteTableV2sResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedListVirtualHubRouteTableV2SResult; + return deserializedListVirtualHubRouteTableV2sResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubsResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubsResult.java index 7c54320e264e..d0044db67ad6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualHubsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list VirtualHubs. It contains a list of VirtualHubs and a URL nextLink to get the next set * of results. */ -@Fluent +@Immutable public final class ListVirtualHubsResult implements JsonSerializable { /* - * List of VirtualHubs. + * The VirtualHub items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVirtualHubsResult class. */ - public ListVirtualHubsResult() { + private ListVirtualHubsResult() { } /** - * Get the value property: List of VirtualHubs. + * Get the value property: The VirtualHub items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VirtualHubs. - * - * @param value the value value to set. - * @return the ListVirtualHubsResult object itself. - */ - public ListVirtualHubsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualHubsResult object itself. - */ - public ListVirtualHubsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVirtualHubsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualHubsResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVirtualHubsResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVirtualHubsResult. */ public static ListVirtualHubsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualNetworkGatewayNatRulesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualNetworkGatewayNatRulesResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualNetworkGatewayNatRulesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualNetworkGatewayNatRulesResult.java index 6a19f443abf6..d8c55c751f4b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualNetworkGatewayNatRulesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualNetworkGatewayNatRulesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,27 +18,27 @@ * Result of the request to list all nat rules to a virtual network gateway. It contains a list of Nat rules and a URL * nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVirtualNetworkGatewayNatRulesResult implements JsonSerializable { /* - * List of Nat Rules. + * The VirtualNetworkGatewayNatRule items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVirtualNetworkGatewayNatRulesResult class. */ - public ListVirtualNetworkGatewayNatRulesResult() { + private ListVirtualNetworkGatewayNatRulesResult() { } /** - * Get the value property: List of Nat Rules. + * Get the value property: The VirtualNetworkGatewayNatRule items on this page. * * @return the value value. */ @@ -46,18 +47,7 @@ public List value() { } /** - * Set the value property: List of Nat Rules. - * - * @param value the value value to set. - * @return the ListVirtualNetworkGatewayNatRulesResult object itself. - */ - public ListVirtualNetworkGatewayNatRulesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +55,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualNetworkGatewayNatRulesResult object itself. - */ - public ListVirtualNetworkGatewayNatRulesResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVirtualNetworkGatewayNatRulesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualNetworkGatewayNatRulesResult.class); + /** * {@inheritDoc} */ @@ -104,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVirtualNetworkGatewayNatRulesResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVirtualNetworkGatewayNatRulesResult. */ public static ListVirtualNetworkGatewayNatRulesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualWansResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualWANsResult.java similarity index 56% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualWansResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualWANsResult.java index 4cb0c11e00eb..98372b7a3d0b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVirtualWansResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualWANsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list VirtualWANs. It contains a list of VirtualWANs and a URL nextLink to get the next set * of results. */ -@Fluent -public final class ListVirtualWansResult implements JsonSerializable { +@Immutable +public final class ListVirtualWANsResult implements JsonSerializable { /* - * List of VirtualWANs. + * The VirtualWAN items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of ListVirtualWansResult class. + * Creates an instance of ListVirtualWANsResult class. */ - public ListVirtualWansResult() { + private ListVirtualWANsResult() { } /** - * Get the value property: List of VirtualWANs. + * Get the value property: The VirtualWAN items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VirtualWANs. - * - * @param value the value value to set. - * @return the ListVirtualWansResult object itself. - */ - public ListVirtualWansResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVirtualWansResult object itself. - */ - public ListVirtualWansResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVirtualWANsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVirtualWANsResult.class); + /** * {@inheritDoc} */ @@ -98,31 +82,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of ListVirtualWansResult from the JsonReader. + * Reads an instance of ListVirtualWANsResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of ListVirtualWansResult if the JsonReader was pointing to an instance of it, or null if it + * @return An instance of ListVirtualWANsResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. - * @throws IOException If an error occurs while reading the ListVirtualWansResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ListVirtualWANsResult. */ - public static ListVirtualWansResult fromJson(JsonReader jsonReader) throws IOException { + public static ListVirtualWANsResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - ListVirtualWansResult deserializedListVirtualWansResult = new ListVirtualWansResult(); + ListVirtualWANsResult deserializedListVirtualWANsResult = new ListVirtualWANsResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> VirtualWanInner.fromJson(reader1)); - deserializedListVirtualWansResult.value = value; + deserializedListVirtualWANsResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedListVirtualWansResult.nextLink = reader.getString(); + deserializedListVirtualWANsResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedListVirtualWansResult; + return deserializedListVirtualWANsResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnConnectionsResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnConnectionsResult.java index bfa35371bee5..15e1cfc6f6b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnConnectionsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections * and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVpnConnectionsResult implements JsonSerializable { /* - * List of Vpn Connections. + * The VpnConnection items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnConnectionsResult class. */ - public ListVpnConnectionsResult() { + private ListVpnConnectionsResult() { } /** - * Get the value property: List of Vpn Connections. + * Get the value property: The VpnConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of Vpn Connections. - * - * @param value the value value to set. - * @return the ListVpnConnectionsResult object itself. - */ - public ListVpnConnectionsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnConnectionsResult object itself. - */ - public ListVpnConnectionsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVpnConnectionsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnConnectionsResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnConnectionsResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnConnectionsResult. */ public static ListVpnConnectionsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewayNatRulesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewayNatRulesResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewayNatRulesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewayNatRulesResult.java index 124158d0112c..93d5eaf71845 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewayNatRulesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewayNatRulesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list all nat rules to a virtual wan vpn gateway. It contains a list of Nat rules and a URL * nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVpnGatewayNatRulesResult implements JsonSerializable { /* - * List of Nat Rules. + * The VpnGatewayNatRule items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnGatewayNatRulesResult class. */ - public ListVpnGatewayNatRulesResult() { + private ListVpnGatewayNatRulesResult() { } /** - * Get the value property: List of Nat Rules. + * Get the value property: The VpnGatewayNatRule items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of Nat Rules. - * - * @param value the value value to set. - * @return the ListVpnGatewayNatRulesResult object itself. - */ - public ListVpnGatewayNatRulesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnGatewayNatRulesResult object itself. - */ - public ListVpnGatewayNatRulesResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVpnGatewayNatRulesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnGatewayNatRulesResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnGatewayNatRulesResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnGatewayNatRulesResult. */ public static ListVpnGatewayNatRulesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewaysResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewaysResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewaysResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewaysResult.java index bef15d38b865..d6c64e98c8fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnGatewaysResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewaysResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list VpnGateways. It contains a list of VpnGateways and a URL nextLink to get the next set * of results. */ -@Fluent +@Immutable public final class ListVpnGatewaysResult implements JsonSerializable { /* - * List of VpnGateways. + * The VpnGateway items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnGatewaysResult class. */ - public ListVpnGatewaysResult() { + private ListVpnGatewaysResult() { } /** - * Get the value property: List of VpnGateways. + * Get the value property: The VpnGateway items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VpnGateways. - * - * @param value the value value to set. - * @return the ListVpnGatewaysResult object itself. - */ - public ListVpnGatewaysResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnGatewaysResult object itself. - */ - public ListVpnGatewaysResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVpnGatewaysResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnGatewaysResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnGatewaysResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnGatewaysResult. */ public static ListVpnGatewaysResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationPolicyGroupsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationPolicyGroupsResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationPolicyGroupsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationPolicyGroupsResult.java index a0dadff7095b..64312e847e7b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationPolicyGroupsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationPolicyGroupsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,27 +18,27 @@ * Result of the request to list VpnServerConfigurationPolicyGroups. It contains a list of * VpnServerConfigurationPolicyGroups and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVpnServerConfigurationPolicyGroupsResult implements JsonSerializable { /* - * List of VpnServerConfigurationPolicyGroups. + * The VpnServerConfigurationPolicyGroup items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnServerConfigurationPolicyGroupsResult class. */ - public ListVpnServerConfigurationPolicyGroupsResult() { + private ListVpnServerConfigurationPolicyGroupsResult() { } /** - * Get the value property: List of VpnServerConfigurationPolicyGroups. + * Get the value property: The VpnServerConfigurationPolicyGroup items on this page. * * @return the value value. */ @@ -46,18 +47,7 @@ public List value() { } /** - * Set the value property: List of VpnServerConfigurationPolicyGroups. - * - * @param value the value value to set. - * @return the ListVpnServerConfigurationPolicyGroupsResult object itself. - */ - public ListVpnServerConfigurationPolicyGroupsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +55,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnServerConfigurationPolicyGroupsResult object itself. - */ - public ListVpnServerConfigurationPolicyGroupsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVpnServerConfigurationPolicyGroupsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnServerConfigurationPolicyGroupsResult.class); + /** * {@inheritDoc} */ @@ -104,6 +89,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnServerConfigurationPolicyGroupsResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnServerConfigurationPolicyGroupsResult. */ public static ListVpnServerConfigurationPolicyGroupsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationsResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationsResult.java index f50496ccb2be..c9b71c3005fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnServerConfigurationsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list all VpnServerConfigurations. It contains a list of VpnServerConfigurations and a URL * nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVpnServerConfigurationsResult implements JsonSerializable { /* - * List of VpnServerConfigurations. + * The VpnServerConfiguration items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnServerConfigurationsResult class. */ - public ListVpnServerConfigurationsResult() { + private ListVpnServerConfigurationsResult() { } /** - * Get the value property: List of VpnServerConfigurations. + * Get the value property: The VpnServerConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VpnServerConfigurations. - * - * @param value the value value to set. - * @return the ListVpnServerConfigurationsResult object itself. - */ - public ListVpnServerConfigurationsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnServerConfigurationsResult object itself. - */ - public ListVpnServerConfigurationsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVpnServerConfigurationsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnServerConfigurationsResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnServerConfigurationsResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnServerConfigurationsResult. */ public static ListVpnServerConfigurationsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinkConnectionsResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinkConnectionsResult.java index e74a31b78b69..09d20053b4bb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinkConnectionsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a list of Vpn Connections * and a URL nextLink to get the next set of results. */ -@Fluent +@Immutable public final class ListVpnSiteLinkConnectionsResult implements JsonSerializable { /* - * List of VpnSiteLinkConnections. + * The VpnSiteLinkConnection items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnSiteLinkConnectionsResult class. */ - public ListVpnSiteLinkConnectionsResult() { + private ListVpnSiteLinkConnectionsResult() { } /** - * Get the value property: List of VpnSiteLinkConnections. + * Get the value property: The VpnSiteLinkConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VpnSiteLinkConnections. - * - * @param value the value value to set. - * @return the ListVpnSiteLinkConnectionsResult object itself. - */ - public ListVpnSiteLinkConnectionsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnSiteLinkConnectionsResult object itself. - */ - public ListVpnSiteLinkConnectionsResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ListVpnSiteLinkConnectionsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnSiteLinkConnectionsResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnSiteLinkConnectionsResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnSiteLinkConnectionsResult. */ public static ListVpnSiteLinkConnectionsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinksResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinksResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinksResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinksResult.java index eb0864357c2a..28d46f7fc846 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinksResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinksResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list VpnSiteLinks. It contains a list of VpnSiteLinks and a URL nextLink to get the next set * of results. */ -@Fluent +@Immutable public final class ListVpnSiteLinksResult implements JsonSerializable { /* - * List of VpnSitesLinks. + * The VpnSiteLink items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnSiteLinksResult class. */ - public ListVpnSiteLinksResult() { + private ListVpnSiteLinksResult() { } /** - * Get the value property: List of VpnSitesLinks. + * Get the value property: The VpnSiteLink items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VpnSitesLinks. - * - * @param value the value value to set. - * @return the ListVpnSiteLinksResult object itself. - */ - public ListVpnSiteLinksResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnSiteLinksResult object itself. - */ - public ListVpnSiteLinksResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVpnSiteLinksResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnSiteLinksResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnSiteLinksResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnSiteLinksResult. */ public static ListVpnSiteLinksResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSitesResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSitesResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSitesResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSitesResult.java index f1e37f3912a2..32187e667a7e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSitesResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSitesResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,26 +18,26 @@ * Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get the next set of * results. */ -@Fluent +@Immutable public final class ListVpnSitesResult implements JsonSerializable { /* - * List of VpnSites. + * The VpnSite items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ListVpnSitesResult class. */ - public ListVpnSitesResult() { + private ListVpnSitesResult() { } /** - * Get the value property: List of VpnSites. + * Get the value property: The VpnSite items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of VpnSites. - * - * @param value the value value to set. - * @return the ListVpnSitesResult object itself. - */ - public ListVpnSitesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the ListVpnSitesResult object itself. - */ - public ListVpnSitesResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ListVpnSitesResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ListVpnSitesResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ListVpnSitesResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ListVpnSitesResult. */ public static ListVpnSitesResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressPoolListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerBackendAddressPoolListResult.java similarity index 74% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressPoolListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerBackendAddressPoolListResult.java index 7b4452218bac..40199fe46b36 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressPoolListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerBackendAddressPoolListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListBackendAddressPool API service call. + * Paged collection of BackendAddressPool items. */ -@Fluent +@Immutable public final class LoadBalancerBackendAddressPoolListResult implements JsonSerializable { /* - * A list of backend address pools in a load balancer. + * The BackendAddressPool items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LoadBalancerBackendAddressPoolListResult class. */ - public LoadBalancerBackendAddressPoolListResult() { + private LoadBalancerBackendAddressPoolListResult() { } /** - * Get the value property: A list of backend address pools in a load balancer. + * Get the value property: The BackendAddressPool items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of backend address pools in a load balancer. - * - * @param value the value value to set. - * @return the LoadBalancerBackendAddressPoolListResult object itself. - */ - public LoadBalancerBackendAddressPoolListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LoadBalancerBackendAddressPoolListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerBackendAddressPoolListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LoadBalancerBackendAddressPoolListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LoadBalancerBackendAddressPoolListResult. */ public static LoadBalancerBackendAddressPoolListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerFrontendIpConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerFrontendIPConfigurationListResult.java similarity index 55% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerFrontendIpConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerFrontendIPConfigurationListResult.java index 49cf98ea82c2..c3654013b699 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerFrontendIpConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerFrontendIPConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListFrontendIPConfiguration API service call. + * Paged collection of FrontendIPConfiguration items. */ -@Fluent -public final class LoadBalancerFrontendIpConfigurationListResult - implements JsonSerializable { +@Immutable +public final class LoadBalancerFrontendIPConfigurationListResult + implements JsonSerializable { /* - * A list of frontend IP configurations in a load balancer. + * The FrontendIPConfiguration items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of LoadBalancerFrontendIpConfigurationListResult class. + * Creates an instance of LoadBalancerFrontendIPConfigurationListResult class. */ - public LoadBalancerFrontendIpConfigurationListResult() { + private LoadBalancerFrontendIPConfigurationListResult() { } /** - * Get the value property: A list of frontend IP configurations in a load balancer. + * Get the value property: The FrontendIPConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of frontend IP configurations in a load balancer. - * - * @param value the value value to set. - * @return the LoadBalancerFrontendIpConfigurationListResult object itself. - */ - public LoadBalancerFrontendIpConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LoadBalancerFrontendIPConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerFrontendIPConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -82,21 +78,23 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } /** - * Reads an instance of LoadBalancerFrontendIpConfigurationListResult from the JsonReader. + * Reads an instance of LoadBalancerFrontendIPConfigurationListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of LoadBalancerFrontendIpConfigurationListResult if the JsonReader was pointing to an + * @return An instance of LoadBalancerFrontendIPConfigurationListResult if the JsonReader was pointing to an * instance of it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the LoadBalancerFrontendIpConfigurationListResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the LoadBalancerFrontendIPConfigurationListResult. */ - public static LoadBalancerFrontendIpConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { + public static LoadBalancerFrontendIPConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - LoadBalancerFrontendIpConfigurationListResult deserializedLoadBalancerFrontendIpConfigurationListResult - = new LoadBalancerFrontendIpConfigurationListResult(); + LoadBalancerFrontendIPConfigurationListResult deserializedLoadBalancerFrontendIPConfigurationListResult + = new LoadBalancerFrontendIPConfigurationListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -104,15 +102,15 @@ public static LoadBalancerFrontendIpConfigurationListResult fromJson(JsonReader if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> FrontendIpConfigurationInner.fromJson(reader1)); - deserializedLoadBalancerFrontendIpConfigurationListResult.value = value; + deserializedLoadBalancerFrontendIPConfigurationListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedLoadBalancerFrontendIpConfigurationListResult.nextLink = reader.getString(); + deserializedLoadBalancerFrontendIPConfigurationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedLoadBalancerFrontendIpConfigurationListResult; + return deserializedLoadBalancerFrontendIPConfigurationListResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerListResult.java index 4ea77d9ba736..f47331642382 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListLoadBalancers API service call. + * The response of a LoadBalancer list operation. */ -@Fluent +@Immutable public final class LoadBalancerListResult implements JsonSerializable { /* - * A list of load balancers in a resource group. + * The LoadBalancer items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LoadBalancerListResult class. */ - public LoadBalancerListResult() { + private LoadBalancerListResult() { } /** - * Get the value property: A list of load balancers in a resource group. + * Get the value property: The LoadBalancer items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of load balancers in a resource group. - * - * @param value the value value to set. - * @return the LoadBalancerListResult object itself. - */ - public LoadBalancerListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,16 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model LoadBalancerListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +76,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LoadBalancerListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LoadBalancerListResult. */ public static LoadBalancerListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerLoadBalancingRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerLoadBalancingRuleListResult.java similarity index 74% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerLoadBalancingRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerLoadBalancingRuleListResult.java index 7a7b9ed7a715..260c7bdbaad3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerLoadBalancingRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerLoadBalancingRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListLoadBalancingRule API service call. + * Paged collection of LoadBalancingRule items. */ -@Fluent +@Immutable public final class LoadBalancerLoadBalancingRuleListResult implements JsonSerializable { /* - * A list of load balancing rules in a load balancer. + * The LoadBalancingRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LoadBalancerLoadBalancingRuleListResult class. */ - public LoadBalancerLoadBalancingRuleListResult() { + private LoadBalancerLoadBalancingRuleListResult() { } /** - * Get the value property: A list of load balancing rules in a load balancer. + * Get the value property: The LoadBalancingRule items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of load balancing rules in a load balancer. - * - * @param value the value value to set. - * @return the LoadBalancerLoadBalancingRuleListResult object itself. - */ - public LoadBalancerLoadBalancingRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LoadBalancerLoadBalancingRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerLoadBalancingRuleListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LoadBalancerLoadBalancingRuleListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LoadBalancerLoadBalancingRuleListResult. */ public static LoadBalancerLoadBalancingRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerOutboundRuleListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerOutboundRuleListResult.java index 80a9cc9e5bac..a062f61f5aa4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerOutboundRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListOutboundRule API service call. + * Paged collection of OutboundRule items. */ -@Fluent +@Immutable public final class LoadBalancerOutboundRuleListResult implements JsonSerializable { /* - * A list of outbound rules in a load balancer. + * The OutboundRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LoadBalancerOutboundRuleListResult class. */ - public LoadBalancerOutboundRuleListResult() { + private LoadBalancerOutboundRuleListResult() { } /** - * Get the value property: A list of outbound rules in a load balancer. + * Get the value property: The OutboundRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of outbound rules in a load balancer. - * - * @param value the value value to set. - * @return the LoadBalancerOutboundRuleListResult object itself. - */ - public LoadBalancerOutboundRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LoadBalancerOutboundRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerOutboundRuleListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LoadBalancerOutboundRuleListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LoadBalancerOutboundRuleListResult. */ public static LoadBalancerOutboundRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerProbeListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerProbeListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerProbeListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerProbeListResult.java index 3c75beb1f4b8..1240de19c76c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerProbeListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerProbeListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListProbe API service call. + * Paged collection of Probe items. */ -@Fluent +@Immutable public final class LoadBalancerProbeListResult implements JsonSerializable { /* - * A list of probes in a load balancer. + * The Probe items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LoadBalancerProbeListResult class. */ - public LoadBalancerProbeListResult() { + private LoadBalancerProbeListResult() { } /** - * Get the value property: A list of probes in a load balancer. + * Get the value property: The Probe items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of probes in a load balancer. - * - * @param value the value value to set. - * @return the LoadBalancerProbeListResult object itself. - */ - public LoadBalancerProbeListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LoadBalancerProbeListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerProbeListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LoadBalancerProbeListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LoadBalancerProbeListResult. */ public static LoadBalancerProbeListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LocalNetworkGatewayListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LocalNetworkGatewayListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LocalNetworkGatewayListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LocalNetworkGatewayListResult.java index 6d6249eb6808..3cfb0a1f98a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LocalNetworkGatewayListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/LocalNetworkGatewayListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListLocalNetworkGateways API service call. + * The response of a LocalNetworkGateway list operation. */ -@Fluent +@Immutable public final class LocalNetworkGatewayListResult implements JsonSerializable { /* - * A list of local network gateways that exists in a resource group. + * The LocalNetworkGateway items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LocalNetworkGatewayListResult class. */ - public LocalNetworkGatewayListResult() { + private LocalNetworkGatewayListResult() { } /** - * Get the value property: A list of local network gateways that exists in a resource group. + * Get the value property: The LocalNetworkGateway items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of local network gateways that exists in a resource group. - * - * @param value the value value to set. - * @return the LocalNetworkGatewayListResult object itself. - */ - public LocalNetworkGatewayListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model LocalNetworkGatewayListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(LocalNetworkGatewayListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of LocalNetworkGatewayListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the LocalNetworkGatewayListResult. */ public static LocalNetworkGatewayListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewayListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NatGatewayListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewayListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NatGatewayListResult.java index 5537c8b4f972..1fd00be3b6ec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewayListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NatGatewayListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListNatGateways API service call. + * The response of a NatGateway list operation. */ -@Fluent +@Immutable public final class NatGatewayListResult implements JsonSerializable { /* - * A list of Nat Gateways that exists in a resource group. + * The NatGateway items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NatGatewayListResult class. */ - public NatGatewayListResult() { + private NatGatewayListResult() { } /** - * Get the value property: A list of Nat Gateways that exists in a resource group. + * Get the value property: The NatGateway items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of Nat Gateways that exists in a resource group. - * - * @param value the value value to set. - * @return the NatGatewayListResult object itself. - */ - public NatGatewayListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NatGatewayListResult object itself. - */ - public NatGatewayListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NatGatewayListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NatGatewayListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NatGatewayListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NatGatewayListResult. */ public static NatGatewayListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkGroupListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkGroupListResult.java index a066353eceb8..872e9e8492d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NetworkGroup. It contains a list of groups and a URL link to get the next set of - * results. + * The response of a NetworkGroup list operation. */ -@Fluent +@Immutable public final class NetworkGroupListResult implements JsonSerializable { /* - * Gets a page of NetworkGroup + * The NetworkGroup items on this page */ private List value; /* - * Gets the URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkGroupListResult class. */ - public NetworkGroupListResult() { + private NetworkGroupListResult() { } /** - * Get the value property: Gets a page of NetworkGroup. + * Get the value property: The NetworkGroup items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NetworkGroup. - * - * @param value the value value to set. - * @return the NetworkGroupListResult object itself. - */ - public NetworkGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkGroupListResult object itself. - */ - public NetworkGroupListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NetworkGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkGroupListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkGroupListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkGroupListResult. */ public static NetworkGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceIPConfigurationListResult.java similarity index 55% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceIPConfigurationListResult.java index 89b06aa151eb..280efed86847 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceIPConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for list ip configurations API service call. + * The response of a NetworkInterfaceIPConfiguration list operation. */ -@Fluent -public final class NetworkInterfaceIpConfigurationListResult - implements JsonSerializable { +@Immutable +public final class NetworkInterfaceIPConfigurationListResult + implements JsonSerializable { /* - * A list of ip configurations. + * The NetworkInterfaceIPConfiguration items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of NetworkInterfaceIpConfigurationListResult class. + * Creates an instance of NetworkInterfaceIPConfigurationListResult class. */ - public NetworkInterfaceIpConfigurationListResult() { + private NetworkInterfaceIPConfigurationListResult() { } /** - * Get the value property: A list of ip configurations. + * Get the value property: The NetworkInterfaceIPConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of ip configurations. - * - * @param value the value value to set. - * @return the NetworkInterfaceIpConfigurationListResult object itself. - */ - public NetworkInterfaceIpConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkInterfaceIPConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkInterfaceIPConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -82,21 +78,23 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } /** - * Reads an instance of NetworkInterfaceIpConfigurationListResult from the JsonReader. + * Reads an instance of NetworkInterfaceIPConfigurationListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of NetworkInterfaceIpConfigurationListResult if the JsonReader was pointing to an instance of + * @return An instance of NetworkInterfaceIPConfigurationListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the NetworkInterfaceIpConfigurationListResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the NetworkInterfaceIPConfigurationListResult. */ - public static NetworkInterfaceIpConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { + public static NetworkInterfaceIPConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - NetworkInterfaceIpConfigurationListResult deserializedNetworkInterfaceIpConfigurationListResult - = new NetworkInterfaceIpConfigurationListResult(); + NetworkInterfaceIPConfigurationListResult deserializedNetworkInterfaceIPConfigurationListResult + = new NetworkInterfaceIPConfigurationListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -104,15 +102,15 @@ public static NetworkInterfaceIpConfigurationListResult fromJson(JsonReader json if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> NetworkInterfaceIpConfigurationInner.fromJson(reader1)); - deserializedNetworkInterfaceIpConfigurationListResult.value = value; + deserializedNetworkInterfaceIPConfigurationListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedNetworkInterfaceIpConfigurationListResult.nextLink = reader.getString(); + deserializedNetworkInterfaceIPConfigurationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedNetworkInterfaceIpConfigurationListResult; + return deserializedNetworkInterfaceIPConfigurationListResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceListResult.java index a970fe4956f9..1122abc6a94f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListNetworkInterface API service call. + * The response of a NetworkInterface list operation. */ -@Fluent +@Immutable public final class NetworkInterfaceListResult implements JsonSerializable { /* - * A list of network interfaces in a resource group. + * The NetworkInterface items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkInterfaceListResult class. */ - public NetworkInterfaceListResult() { + private NetworkInterfaceListResult() { } /** - * Get the value property: A list of network interfaces in a resource group. + * Get the value property: The NetworkInterface items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of network interfaces in a resource group. - * - * @param value the value value to set. - * @return the NetworkInterfaceListResult object itself. - */ - public NetworkInterfaceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkInterfaceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkInterfaceListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkInterfaceListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkInterfaceListResult. */ public static NetworkInterfaceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceLoadBalancerListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceLoadBalancerListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceLoadBalancerListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceLoadBalancerListResult.java index 0d8773f900ac..fd1299ca0896 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceLoadBalancerListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceLoadBalancerListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for list ip configurations API service call. + * Paged collection of LoadBalancer items. */ -@Fluent +@Immutable public final class NetworkInterfaceLoadBalancerListResult implements JsonSerializable { /* - * A list of load balancers. + * The LoadBalancer items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkInterfaceLoadBalancerListResult class. */ - public NetworkInterfaceLoadBalancerListResult() { + private NetworkInterfaceLoadBalancerListResult() { } /** - * Get the value property: A list of load balancers. + * Get the value property: The LoadBalancer items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of load balancers. - * - * @param value the value value to set. - * @return the NetworkInterfaceLoadBalancerListResult object itself. - */ - public NetworkInterfaceLoadBalancerListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkInterfaceLoadBalancerListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkInterfaceLoadBalancerListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkInterfaceLoadBalancerListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkInterfaceLoadBalancerListResult. */ public static NetworkInterfaceLoadBalancerListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceTapConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceTapConfigurationListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceTapConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceTapConfigurationListResult.java index bc76f3e053d1..8bee592570c2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceTapConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceTapConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for list tap configurations API service call. + * The response of a NetworkInterfaceTapConfiguration list operation. */ -@Fluent +@Immutable public final class NetworkInterfaceTapConfigurationListResult implements JsonSerializable { /* - * A list of tap configurations. + * The NetworkInterfaceTapConfiguration items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkInterfaceTapConfigurationListResult class. */ - public NetworkInterfaceTapConfigurationListResult() { + private NetworkInterfaceTapConfigurationListResult() { } /** - * Get the value property: A list of tap configurations. + * Get the value property: The NetworkInterfaceTapConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of tap configurations. - * - * @param value the value value to set. - * @return the NetworkInterfaceTapConfigurationListResult object itself. - */ - public NetworkInterfaceTapConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkInterfaceTapConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkInterfaceTapConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkInterfaceTapConfigurationListResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkInterfaceTapConfigurationListResult. */ public static NetworkInterfaceTapConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerConnectionListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerConnectionListResult.java index 6ad194738f4f..12ef25c88e41 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * List of network manager connections. + * The response of a NetworkManagerConnection list operation. */ -@Fluent +@Immutable public final class NetworkManagerConnectionListResult implements JsonSerializable { /* - * List of network manager connections. + * The NetworkManagerConnection items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkManagerConnectionListResult class. */ - public NetworkManagerConnectionListResult() { + private NetworkManagerConnectionListResult() { } /** - * Get the value property: List of network manager connections. + * Get the value property: The NetworkManagerConnection items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of network manager connections. - * - * @param value the value value to set. - * @return the NetworkManagerConnectionListResult object itself. - */ - public NetworkManagerConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkManagerConnectionListResult object itself. - */ - public NetworkManagerConnectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkManagerConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkManagerConnectionListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkManagerConnectionListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkManagerConnectionListResult. */ public static NetworkManagerConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerListResult.java index 17c3859cca5f..8ed976ab80a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NetworkManager. It contains a list of network managers and a URL link to get the next - * set of results. + * The response of a NetworkManager list operation. */ -@Fluent +@Immutable public final class NetworkManagerListResult implements JsonSerializable { /* - * Gets a page of NetworkManager + * The NetworkManager items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkManagerListResult class. */ - public NetworkManagerListResult() { + private NetworkManagerListResult() { } /** - * Get the value property: Gets a page of NetworkManager. + * Get the value property: The NetworkManager items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NetworkManager. - * - * @param value the value value to set. - * @return the NetworkManagerListResult object itself. - */ - public NetworkManagerListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkManagerListResult object itself. - */ - public NetworkManagerListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NetworkManagerListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkManagerListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkManagerListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkManagerListResult. */ public static NetworkManagerListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerRoutingConfigurationListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerRoutingConfigurationListResult.java index 9a62409cafcf..7df945fce8bc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerRoutingConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * A list of network manager routing configurations. + * The response of a NetworkManagerRoutingConfiguration list operation. */ -@Fluent +@Immutable public final class NetworkManagerRoutingConfigurationListResult implements JsonSerializable { /* - * Gets a page of routing configurations + * The NetworkManagerRoutingConfiguration items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkManagerRoutingConfigurationListResult class. */ - public NetworkManagerRoutingConfigurationListResult() { + private NetworkManagerRoutingConfigurationListResult() { } /** - * Get the value property: Gets a page of routing configurations. + * Get the value property: The NetworkManagerRoutingConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets a page of routing configurations. - * - * @param value the value value to set. - * @return the NetworkManagerRoutingConfigurationListResult object itself. - */ - public NetworkManagerRoutingConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkManagerRoutingConfigurationListResult object itself. - */ - public NetworkManagerRoutingConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkManagerRoutingConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkManagerRoutingConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkManagerRoutingConfigurationListResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkManagerRoutingConfigurationListResult. */ public static NetworkManagerRoutingConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProfileListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkProfileListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProfileListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkProfileListResult.java index f15449dc1f10..10b6a7fd04a2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProfileListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkProfileListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListNetworkProfiles API service call. + * The response of a NetworkProfile list operation. */ -@Fluent +@Immutable public final class NetworkProfileListResult implements JsonSerializable { /* - * A list of network profiles that exist in a resource group. + * The NetworkProfile items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkProfileListResult class. */ - public NetworkProfileListResult() { + private NetworkProfileListResult() { } /** - * Get the value property: A list of network profiles that exist in a resource group. + * Get the value property: The NetworkProfile items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of network profiles that exist in a resource group. - * - * @param value the value value to set. - * @return the NetworkProfileListResult object itself. - */ - public NetworkProfileListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkProfileListResult object itself. - */ - public NetworkProfileListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NetworkProfileListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkProfileListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkProfileListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkProfileListResult. */ public static NetworkProfileListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityGroupListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityGroupListResult.java index 8e7400bcad5f..9c963f5d2573 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListNetworkSecurityGroups API service call. + * The response of a NetworkSecurityGroup list operation. */ -@Fluent +@Immutable public final class NetworkSecurityGroupListResult implements JsonSerializable { /* - * A list of NetworkSecurityGroup resources. + * The NetworkSecurityGroup items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkSecurityGroupListResult class. */ - public NetworkSecurityGroupListResult() { + private NetworkSecurityGroupListResult() { } /** - * Get the value property: A list of NetworkSecurityGroup resources. + * Get the value property: The NetworkSecurityGroup items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of NetworkSecurityGroup resources. - * - * @param value the value value to set. - * @return the NetworkSecurityGroupListResult object itself. - */ - public NetworkSecurityGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkSecurityGroupListResult object itself. - */ - public NetworkSecurityGroupListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkSecurityGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkSecurityGroupListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkSecurityGroupListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkSecurityGroupListResult. */ public static NetworkSecurityGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityPerimeterListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityPerimeterListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityPerimeterListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityPerimeterListResult.java index 8d0a343b1d47..dd1c38925952 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityPerimeterListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityPerimeterListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NetworkSecurityPerimeter. It contains a list of network security perimeters and a URL - * link to get the next set of results. + * The response of a NetworkSecurityPerimeter list operation. */ -@Fluent +@Immutable public final class NetworkSecurityPerimeterListResult implements JsonSerializable { /* - * Gets a page of NetworkSecurityPerimeter + * The NetworkSecurityPerimeter items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkSecurityPerimeterListResult class. */ - public NetworkSecurityPerimeterListResult() { + private NetworkSecurityPerimeterListResult() { } /** - * Get the value property: Gets a page of NetworkSecurityPerimeter. + * Get the value property: The NetworkSecurityPerimeter items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NetworkSecurityPerimeter. - * - * @param value the value value to set. - * @return the NetworkSecurityPerimeterListResult object itself. - */ - public NetworkSecurityPerimeterListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkSecurityPerimeterListResult object itself. - */ - public NetworkSecurityPerimeterListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkSecurityPerimeterListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkSecurityPerimeterListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkSecurityPerimeterListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterListResult. */ public static NetworkSecurityPerimeterListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceConnectionList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceConnectionList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceConnectionList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceConnectionList.java index f6f885bc63d3..29ddcefeb764 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceConnectionList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceConnectionList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * NetworkVirtualApplianceConnection list. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceConnectionList implements JsonSerializable { /* - * The list of NetworkVirtualAppliance connections. + * The NetworkVirtualApplianceConnection items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkVirtualApplianceConnectionList class. */ - public NetworkVirtualApplianceConnectionList() { + private NetworkVirtualApplianceConnectionList() { } /** - * Get the value property: The list of NetworkVirtualAppliance connections. + * Get the value property: The NetworkVirtualApplianceConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The list of NetworkVirtualAppliance connections. - * - * @param value the value value to set. - * @return the NetworkVirtualApplianceConnectionList object itself. - */ - public NetworkVirtualApplianceConnectionList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkVirtualApplianceConnectionList object itself. - */ - public NetworkVirtualApplianceConnectionList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkVirtualApplianceConnectionList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkVirtualApplianceConnectionList.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkVirtualApplianceConnectionList if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkVirtualApplianceConnectionList. */ public static NetworkVirtualApplianceConnectionList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceListResult.java index d27353025133..85758fea827d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListNetworkVirtualAppliances API service call. + * The response of a NetworkVirtualAppliance list operation. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceListResult implements JsonSerializable { /* - * List of Network Virtual Appliances. + * The NetworkVirtualAppliance items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkVirtualApplianceListResult class. */ - public NetworkVirtualApplianceListResult() { + private NetworkVirtualApplianceListResult() { } /** - * Get the value property: List of Network Virtual Appliances. + * Get the value property: The NetworkVirtualAppliance items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Network Virtual Appliances. - * - * @param value the value value to set. - * @return the NetworkVirtualApplianceListResult object itself. - */ - public NetworkVirtualApplianceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkVirtualApplianceListResult object itself. - */ - public NetworkVirtualApplianceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkVirtualApplianceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkVirtualApplianceListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkVirtualApplianceListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkVirtualApplianceListResult. */ public static NetworkVirtualApplianceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSiteListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSiteListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSiteListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSiteListResult.java index bedc8082a035..559d12a2f966 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSiteListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSiteListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListNetworkVirtualApplianceSites API service call. + * Paged collection of VirtualApplianceSite items. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceSiteListResult implements JsonSerializable { /* - * List of Network Virtual Appliance sites. + * The VirtualApplianceSite items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkVirtualApplianceSiteListResult class. */ - public NetworkVirtualApplianceSiteListResult() { + private NetworkVirtualApplianceSiteListResult() { } /** - * Get the value property: List of Network Virtual Appliance sites. + * Get the value property: The VirtualApplianceSite items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of Network Virtual Appliance sites. - * - * @param value the value value to set. - * @return the NetworkVirtualApplianceSiteListResult object itself. - */ - public NetworkVirtualApplianceSiteListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkVirtualApplianceSiteListResult object itself. - */ - public NetworkVirtualApplianceSiteListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkVirtualApplianceSiteListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkVirtualApplianceSiteListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkVirtualApplianceSiteListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkVirtualApplianceSiteListResult. */ public static NetworkVirtualApplianceSiteListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSkuListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSkuListResult.java index cfa14caef2e0..809b900428f4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSkuListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for ListNetworkVirtualApplianceSkus API service call. + * The response of a NetworkVirtualApplianceSku list operation. */ -@Fluent +@Immutable public final class NetworkVirtualApplianceSkuListResult implements JsonSerializable { /* - * List of Network Virtual Appliance Skus that are available. + * The NetworkVirtualApplianceSku items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NetworkVirtualApplianceSkuListResult class. */ - public NetworkVirtualApplianceSkuListResult() { + private NetworkVirtualApplianceSkuListResult() { } /** - * Get the value property: List of Network Virtual Appliance Skus that are available. + * Get the value property: The NetworkVirtualApplianceSku items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: List of Network Virtual Appliance Skus that are available. - * - * @param value the value value to set. - * @return the NetworkVirtualApplianceSkuListResult object itself. - */ - public NetworkVirtualApplianceSkuListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkVirtualApplianceSkuListResult object itself. - */ - public NetworkVirtualApplianceSkuListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NetworkVirtualApplianceSkuListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NetworkVirtualApplianceSkuListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NetworkVirtualApplianceSkuListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NetworkVirtualApplianceSkuListResult. */ public static NetworkVirtualApplianceSkuListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkWatcherListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkWatcherListResult.java similarity index 80% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkWatcherListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkWatcherListResult.java index 3169e62d72d3..80c1ecf7c029 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkWatcherListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkWatcherListResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,17 +16,22 @@ /** * Response for ListNetworkWatchers API service call. */ -@Fluent +@Immutable public final class NetworkWatcherListResult implements JsonSerializable { /* * List of network watcher resources. */ private List value; + /* + * URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of NetworkWatcherListResult class. */ - public NetworkWatcherListResult() { + private NetworkWatcherListResult() { } /** @@ -39,14 +44,12 @@ public List value() { } /** - * Set the value property: List of network watcher resources. + * Get the nextLink property: URL to get the next set of results. * - * @param value the value value to set. - * @return the NetworkWatcherListResult object itself. + * @return the nextLink value. */ - public NetworkWatcherListResult withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +70,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -89,6 +93,8 @@ public static NetworkWatcherListResult fromJson(JsonReader jsonReader) throws IO List value = reader.readArray(reader1 -> NetworkWatcherInner.fromJson(reader1)); deserializedNetworkWatcherListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedNetworkWatcherListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAccessRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAccessRuleListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAccessRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAccessRuleListResult.java index f1542d41acea..d14bd7c8277a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAccessRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAccessRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP access rules. Contains a list of NSP access rules and a URL link to get the next - * set of results. + * The response of a NspAccessRule list operation. */ -@Fluent +@Immutable public final class NspAccessRuleListResult implements JsonSerializable { /* - * Gets a page of NSP access rule + * The NspAccessRule items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspAccessRuleListResult class. */ - public NspAccessRuleListResult() { + private NspAccessRuleListResult() { } /** - * Get the value property: Gets a page of NSP access rule. + * Get the value property: The NspAccessRule items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP access rule. - * - * @param value the value value to set. - * @return the NspAccessRuleListResult object itself. - */ - public NspAccessRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspAccessRuleListResult object itself. - */ - public NspAccessRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NspAccessRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspAccessRuleListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspAccessRuleListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspAccessRuleListResult. */ public static NspAccessRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAssociationsListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAssociationsListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAssociationsListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAssociationsListResult.java index 52c2e108f65e..007fdeca2f96 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspAssociationsListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspAssociationsListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP resource associations. Contains a list of NSP resource associations and a URL link - * to get the next set of results. + * Paged collection of NspAssociation items. */ -@Fluent +@Immutable public final class NspAssociationsListResult implements JsonSerializable { /* - * Gets a page of NSP resource associations + * The NspAssociation items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspAssociationsListResult class. */ - public NspAssociationsListResult() { + private NspAssociationsListResult() { } /** - * Get the value property: Gets a page of NSP resource associations. + * Get the value property: The NspAssociation items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP resource associations. - * - * @param value the value value to set. - * @return the NspAssociationsListResult object itself. - */ - public NspAssociationsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspAssociationsListResult object itself. - */ - public NspAssociationsListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model NspAssociationsListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspAssociationsListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspAssociationsListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspAssociationsListResult. */ public static NspAssociationsListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkListResult.java index 8e934b665c83..eb7537c069bf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP link resources. Contains a list of NSP link resources and a URL link to get the - * next set of results. + * The response of a NspLink list operation. */ -@Fluent +@Immutable public final class NspLinkListResult implements JsonSerializable { /* - * Gets a page of NSP Link resources. + * The NspLink items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspLinkListResult class. */ - public NspLinkListResult() { + private NspLinkListResult() { } /** - * Get the value property: Gets a page of NSP Link resources. + * Get the value property: The NspLink items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP Link resources. - * - * @param value the value value to set. - * @return the NspLinkListResult object itself. - */ - public NspLinkListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspLinkListResult object itself. - */ - public NspLinkListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NspLinkListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspLinkListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspLinkListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspLinkListResult. */ public static NspLinkListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkReferenceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkReferenceListResult.java similarity index 68% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkReferenceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkReferenceListResult.java index 240a1f8df1eb..2b7f8a2a1c06 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkReferenceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkReferenceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP linkReference resources. Contains a list of NSP linkReference resources and a URL - * link to get the next set of results. + * The response of a NspLinkReference list operation. */ -@Fluent +@Immutable public final class NspLinkReferenceListResult implements JsonSerializable { /* - * Gets a page of NSP LinkReference resources. + * The NspLinkReference items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspLinkReferenceListResult class. */ - public NspLinkReferenceListResult() { + private NspLinkReferenceListResult() { } /** - * Get the value property: Gets a page of NSP LinkReference resources. + * Get the value property: The NspLinkReference items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP LinkReference resources. - * - * @param value the value value to set. - * @return the NspLinkReferenceListResult object itself. - */ - public NspLinkReferenceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspLinkReferenceListResult object itself. - */ - public NspLinkReferenceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NspLinkReferenceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspLinkReferenceListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspLinkReferenceListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspLinkReferenceListResult. */ public static NspLinkReferenceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLoggingConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLoggingConfigurationListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLoggingConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLoggingConfigurationListResult.java index f99fe774b3b5..38c8ec5f6e28 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLoggingConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspLoggingConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP logging configuration. Contains a list of NSP logging configurations and a URL link - * to get the next set of results. + * The response of a NspLoggingConfiguration list operation. */ -@Fluent +@Immutable public final class NspLoggingConfigurationListResult implements JsonSerializable { /* - * Gets a page of NSP logging configuration + * The NspLoggingConfiguration items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspLoggingConfigurationListResult class. */ - public NspLoggingConfigurationListResult() { + private NspLoggingConfigurationListResult() { } /** - * Get the value property: Gets a page of NSP logging configuration. + * Get the value property: The NspLoggingConfiguration items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP logging configuration. - * - * @param value the value value to set. - * @return the NspLoggingConfigurationListResult object itself. - */ - public NspLoggingConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspLoggingConfigurationListResult object itself. - */ - public NspLoggingConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NspLoggingConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspLoggingConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspLoggingConfigurationListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspLoggingConfigurationListResult. */ public static NspLoggingConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProfileListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspProfileListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProfileListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspProfileListResult.java index c91afdd42783..33fe161571f0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProfileListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspProfileListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list NSP profiles. Contains a list of NSP profiles and a URL link to get the next set of - * results. + * The response of a NspProfile list operation. */ -@Fluent +@Immutable public final class NspProfileListResult implements JsonSerializable { /* - * Gets a page of NSP profile + * The NspProfile items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspProfileListResult class. */ - public NspProfileListResult() { + private NspProfileListResult() { } /** - * Get the value property: Gets a page of NSP profile. + * Get the value property: The NspProfile items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of NSP profile. - * - * @param value the value value to set. - * @return the NspProfileListResult object itself. - */ - public NspProfileListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspProfileListResult object itself. - */ - public NspProfileListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NspProfileListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspProfileListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspProfileListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspProfileListResult. */ public static NspProfileListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspServiceTagsListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspServiceTagsListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspServiceTagsListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspServiceTagsListResult.java index ec7f4158d97e..4f3510bd3773 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspServiceTagsListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/NspServiceTagsListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Result of the request to list NSP service tags. */ -@Fluent +@Immutable public final class NspServiceTagsListResult implements JsonSerializable { /* - * Gets paged list of NSP service tags. + * The NspServiceTagsResource items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of NspServiceTagsListResult class. */ - public NspServiceTagsListResult() { + private NspServiceTagsListResult() { } /** - * Get the value property: Gets paged list of NSP service tags. + * Get the value property: The NspServiceTagsResource items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets paged list of NSP service tags. - * - * @param value the value value to set. - * @return the NspServiceTagsListResult object itself. - */ - public NspServiceTagsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NspServiceTagsListResult object itself. - */ - public NspServiceTagsListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model NspServiceTagsListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(NspServiceTagsListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of NspServiceTagsListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the NspServiceTagsListResult. */ public static NspServiceTagsListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/OperationListResult.java similarity index 66% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/OperationListResult.java index 1d4840f887cc..38ff0bbd0d6c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/OperationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list Network operations. It contains a list of operations and a URL link to get the next set - * of results. + * Paged collection of Operation items. */ -@Fluent +@Immutable public final class OperationListResult implements JsonSerializable { /* - * List of Network operations supported by the Network resource provider. + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of Network operations supported by the Network resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Network operations supported by the Network resource provider. - * - * @param value the value value to set. - * @return the OperationListResult object itself. - */ - public OperationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of operation list results if there are any. - * - * @param nextLink the nextLink value to set. - * @return the OperationListResult object itself. - */ - public OperationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PacketCaptureListResult.java similarity index 80% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PacketCaptureListResult.java index 3f7620f2bc7a..605cb2daf0bb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PacketCaptureListResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,17 +16,22 @@ /** * List of packet capture sessions. */ -@Fluent +@Immutable public final class PacketCaptureListResult implements JsonSerializable { /* * Information about packet capture sessions. */ private List value; + /* + * URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of PacketCaptureListResult class. */ - public PacketCaptureListResult() { + private PacketCaptureListResult() { } /** @@ -39,14 +44,12 @@ public List value() { } /** - * Set the value property: Information about packet capture sessions. + * Get the nextLink property: URL to get the next set of results. * - * @param value the value value to set. - * @return the PacketCaptureListResult object itself. + * @return the nextLink value. */ - public PacketCaptureListResult withValue(List value) { - this.value = value; - return this; + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +70,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -89,6 +93,8 @@ public static PacketCaptureListResult fromJson(JsonReader jsonReader) throws IOE List value = reader.readArray(reader1 -> PacketCaptureResultInner.fromJson(reader1)); deserializedPacketCaptureListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPacketCaptureListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerExpressRouteCircuitConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PeerExpressRouteCircuitConnectionListResult.java similarity index 67% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerExpressRouteCircuitConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PeerExpressRouteCircuitConnectionListResult.java index 3ff30d1a8c20..122d3252ce77 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerExpressRouteCircuitConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PeerExpressRouteCircuitConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,31 +15,29 @@ import java.util.List; /** - * Response for ListPeeredConnections API service call retrieves all global reach peer circuit connections that belongs - * to a Private Peering for an ExpressRouteCircuit. + * The response of a PeerExpressRouteCircuitConnection list operation. */ -@Fluent +@Immutable public final class PeerExpressRouteCircuitConnectionListResult implements JsonSerializable { /* - * The global reach peer circuit connection associated with Private Peering in an ExpressRoute Circuit. + * The PeerExpressRouteCircuitConnection items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PeerExpressRouteCircuitConnectionListResult class. */ - public PeerExpressRouteCircuitConnectionListResult() { + private PeerExpressRouteCircuitConnectionListResult() { } /** - * Get the value property: The global reach peer circuit connection associated with Private Peering in an - * ExpressRoute Circuit. + * Get the value property: The PeerExpressRouteCircuitConnection items on this page. * * @return the value value. */ @@ -47,19 +46,7 @@ public List value() { } /** - * Set the value property: The global reach peer circuit connection associated with Private Peering in an - * ExpressRoute Circuit. - * - * @param value the value value to set. - * @return the PeerExpressRouteCircuitConnectionListResult object itself. - */ - public PeerExpressRouteCircuitConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -67,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the PeerExpressRouteCircuitConnectionListResult object itself. - */ - public PeerExpressRouteCircuitConnectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model PeerExpressRouteCircuitConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PeerExpressRouteCircuitConnectionListResult.class); + /** * {@inheritDoc} */ @@ -106,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PeerExpressRouteCircuitConnectionListResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PeerExpressRouteCircuitConnectionListResult. */ public static PeerExpressRouteCircuitConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterAssociableResourcesListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PerimeterAssociableResourcesListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterAssociableResourcesListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PerimeterAssociableResourcesListResult.java index 800b55840f61..a4efca816279 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterAssociableResourcesListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PerimeterAssociableResourcesListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Paged list of perimeter associable resources. + * Paged collection of PerimeterAssociableResource items. */ -@Fluent +@Immutable public final class PerimeterAssociableResourcesListResult implements JsonSerializable { /* - * Gets paged list of perimeter associable resources. + * The PerimeterAssociableResource items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PerimeterAssociableResourcesListResult class. */ - public PerimeterAssociableResourcesListResult() { + private PerimeterAssociableResourcesListResult() { } /** - * Get the value property: Gets paged list of perimeter associable resources. + * Get the value property: The PerimeterAssociableResource items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets paged list of perimeter associable resources. - * - * @param value the value value to set. - * @return the PerimeterAssociableResourcesListResult object itself. - */ - public PerimeterAssociableResourcesListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the PerimeterAssociableResourcesListResult object itself. - */ - public PerimeterAssociableResourcesListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model PerimeterAssociableResourcesListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PerimeterAssociableResourcesListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PerimeterAssociableResourcesListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PerimeterAssociableResourcesListResult. */ public static PerimeterAssociableResourcesListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PoolAssociationList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PoolAssociationList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PoolAssociationList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PoolAssociationList.java index 027f6a2a4da6..c8633ed9ae5a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PoolAssociationList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PoolAssociationList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of PoolAssociation. */ -@Fluent +@Immutable public final class PoolAssociationList implements JsonSerializable { /* - * The value property. + * The PoolAssociation items on this page */ private List value; /* - * The link used to get the next page of operations. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PoolAssociationList class. */ - public PoolAssociationList() { + private PoolAssociationList() { } /** - * Get the value property: The value property. + * Get the value property: The PoolAssociation items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The value property. - * - * @param value the value value to set. - * @return the PoolAssociationList object itself. - */ - public PoolAssociationList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link used to get the next page of operations. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link used to get the next page of operations. - * - * @param nextLink the nextLink value to set. - * @return the PoolAssociationList object itself. - */ - public PoolAssociationList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model PoolAssociationList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PoolAssociationList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PoolAssociationList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PoolAssociationList. */ public static PoolAssociationList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneGroupListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateDnsZoneGroupListResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneGroupListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateDnsZoneGroupListResult.java index 5cd7fceed35d..f4a0c333e064 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneGroupListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateDnsZoneGroupListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for the ListPrivateDnsZoneGroups API service call. */ -@Fluent +@Immutable public final class PrivateDnsZoneGroupListResult implements JsonSerializable { /* - * A list of private dns zone group resources in a private endpoint. + * The PrivateDnsZoneGroup items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PrivateDnsZoneGroupListResult class. */ - public PrivateDnsZoneGroupListResult() { + private PrivateDnsZoneGroupListResult() { } /** - * Get the value property: A list of private dns zone group resources in a private endpoint. + * Get the value property: The PrivateDnsZoneGroup items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of private dns zone group resources in a private endpoint. - * - * @param value the value value to set. - * @return the PrivateDnsZoneGroupListResult object itself. - */ - public PrivateDnsZoneGroupListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model PrivateDnsZoneGroupListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PrivateDnsZoneGroupListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PrivateDnsZoneGroupListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PrivateDnsZoneGroupListResult. */ public static PrivateDnsZoneGroupListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointConnectionListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointConnectionListResult.java index 2f43c16357a0..9e541e91fba2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for the ListPrivateEndpointConnection API service call. + * The response of a PrivateEndpointConnection list operation. */ -@Fluent +@Immutable public final class PrivateEndpointConnectionListResult implements JsonSerializable { /* - * A list of PrivateEndpointConnection resources for a specific private link service. + * The PrivateEndpointConnection items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PrivateEndpointConnectionListResult class. */ - public PrivateEndpointConnectionListResult() { + private PrivateEndpointConnectionListResult() { } /** - * Get the value property: A list of PrivateEndpointConnection resources for a specific private link service. + * Get the value property: The PrivateEndpointConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of PrivateEndpointConnection resources for a specific private link service. - * - * @param value the value value to set. - * @return the PrivateEndpointConnectionListResult object itself. - */ - public PrivateEndpointConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model PrivateEndpointConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PrivateEndpointConnectionListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PrivateEndpointConnectionListResult. */ public static PrivateEndpointConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointListResult.java index 728973ca9a1e..a8bf636eedcd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListPrivateEndpoints API service call. + * The response of a PrivateEndpoint list operation. */ -@Fluent +@Immutable public final class PrivateEndpointListResult implements JsonSerializable { /* - * A list of private endpoint resources in a resource group. + * The PrivateEndpoint items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PrivateEndpointListResult class. */ - public PrivateEndpointListResult() { + private PrivateEndpointListResult() { } /** - * Get the value property: A list of private endpoint resources in a resource group. + * Get the value property: The PrivateEndpoint items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of private endpoint resources in a resource group. - * - * @param value the value value to set. - * @return the PrivateEndpointListResult object itself. - */ - public PrivateEndpointListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model PrivateEndpointListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PrivateEndpointListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PrivateEndpointListResult. */ public static PrivateEndpointListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateLinkServiceListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateLinkServiceListResult.java index bcead5ca813d..26491967a29a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateLinkServiceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListPrivateLinkService API service call. + * The response of a PrivateLinkService list operation. */ -@Fluent +@Immutable public final class PrivateLinkServiceListResult implements JsonSerializable { /* - * A list of PrivateLinkService resources in a resource group. + * The PrivateLinkService items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of PrivateLinkServiceListResult class. */ - public PrivateLinkServiceListResult() { + private PrivateLinkServiceListResult() { } /** - * Get the value property: A list of PrivateLinkService resources in a resource group. + * Get the value property: The PrivateLinkService items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of PrivateLinkService resources in a resource group. - * - * @param value the value value to set. - * @return the PrivateLinkServiceListResult object itself. - */ - public PrivateLinkServiceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model PrivateLinkServiceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkServiceListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of PrivateLinkServiceListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the PrivateLinkServiceListResult. */ public static PrivateLinkServiceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPAddressListResult.java similarity index 53% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPAddressListResult.java index 4f378db78155..ab2546675473 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPAddressListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListPublicIpAddresses API service call. + * The response of a PublicIPAddress list operation. */ -@Fluent -public final class PublicIpAddressListResult implements JsonSerializable { +@Immutable +public final class PublicIPAddressListResult implements JsonSerializable { /* - * A list of public IP addresses that exists in a resource group. + * The PublicIPAddress items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of PublicIpAddressListResult class. + * Creates an instance of PublicIPAddressListResult class. */ - public PublicIpAddressListResult() { + private PublicIPAddressListResult() { } /** - * Get the value property: A list of public IP addresses that exists in a resource group. + * Get the value property: The PublicIPAddress items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of public IP addresses that exists in a resource group. - * - * @param value the value value to set. - * @return the PublicIpAddressListResult object itself. - */ - public PublicIpAddressListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the PublicIpAddressListResult object itself. - */ - public PublicIpAddressListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model PublicIPAddressListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PublicIPAddressListResult.class); + /** * {@inheritDoc} */ @@ -97,16 +82,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of PublicIpAddressListResult from the JsonReader. + * Reads an instance of PublicIPAddressListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of PublicIpAddressListResult if the JsonReader was pointing to an instance of it, or null if + * @return An instance of PublicIPAddressListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the PublicIpAddressListResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PublicIPAddressListResult. */ - public static PublicIpAddressListResult fromJson(JsonReader jsonReader) throws IOException { + public static PublicIPAddressListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - PublicIpAddressListResult deserializedPublicIpAddressListResult = new PublicIpAddressListResult(); + PublicIPAddressListResult deserializedPublicIPAddressListResult = new PublicIPAddressListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -114,15 +100,15 @@ public static PublicIpAddressListResult fromJson(JsonReader jsonReader) throws I if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> PublicIpAddressInner.fromJson(reader1)); - deserializedPublicIpAddressListResult.value = value; + deserializedPublicIPAddressListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedPublicIpAddressListResult.nextLink = reader.getString(); + deserializedPublicIPAddressListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedPublicIpAddressListResult; + return deserializedPublicIPAddressListResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPPrefixListResult.java similarity index 53% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPPrefixListResult.java index 1b767e436e31..e1e31dc72d5e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPPrefixListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListPublicIpPrefixes API service call. + * The response of a PublicIPPrefix list operation. */ -@Fluent -public final class PublicIpPrefixListResult implements JsonSerializable { +@Immutable +public final class PublicIPPrefixListResult implements JsonSerializable { /* - * A list of public IP prefixes that exists in a resource group. + * The PublicIPPrefix items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** - * Creates an instance of PublicIpPrefixListResult class. + * Creates an instance of PublicIPPrefixListResult class. */ - public PublicIpPrefixListResult() { + private PublicIPPrefixListResult() { } /** - * Get the value property: A list of public IP prefixes that exists in a resource group. + * Get the value property: The PublicIPPrefix items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of public IP prefixes that exists in a resource group. - * - * @param value the value value to set. - * @return the PublicIpPrefixListResult object itself. - */ - public PublicIpPrefixListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the PublicIpPrefixListResult object itself. - */ - public PublicIpPrefixListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model PublicIPPrefixListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(PublicIPPrefixListResult.class); + /** * {@inheritDoc} */ @@ -97,16 +81,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of PublicIpPrefixListResult from the JsonReader. + * Reads an instance of PublicIPPrefixListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of PublicIpPrefixListResult if the JsonReader was pointing to an instance of it, or null if + * @return An instance of PublicIPPrefixListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the PublicIpPrefixListResult. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PublicIPPrefixListResult. */ - public static PublicIpPrefixListResult fromJson(JsonReader jsonReader) throws IOException { + public static PublicIPPrefixListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - PublicIpPrefixListResult deserializedPublicIpPrefixListResult = new PublicIpPrefixListResult(); + PublicIPPrefixListResult deserializedPublicIPPrefixListResult = new PublicIPPrefixListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -114,15 +99,15 @@ public static PublicIpPrefixListResult fromJson(JsonReader jsonReader) throws IO if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> PublicIpPrefixInner.fromJson(reader1)); - deserializedPublicIpPrefixListResult.value = value; + deserializedPublicIPPrefixListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedPublicIpPrefixListResult.nextLink = reader.getString(); + deserializedPublicIPPrefixListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedPublicIpPrefixListResult; + return deserializedPublicIPPrefixListResult; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisIntentListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisIntentListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisIntentListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisIntentListResult.java index e47a8a20a607..0368635270d2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisIntentListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisIntentListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * A list of Reachability Analysis Intents. + * The response of a ReachabilityAnalysisIntent list operation. */ -@Fluent +@Immutable public final class ReachabilityAnalysisIntentListResult implements JsonSerializable { /* - * Gets a page of Reachability Analysis Intents + * The ReachabilityAnalysisIntent items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ReachabilityAnalysisIntentListResult class. */ - public ReachabilityAnalysisIntentListResult() { + private ReachabilityAnalysisIntentListResult() { } /** - * Get the value property: Gets a page of Reachability Analysis Intents. + * Get the value property: The ReachabilityAnalysisIntent items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets a page of Reachability Analysis Intents. - * - * @param value the value value to set. - * @return the ReachabilityAnalysisIntentListResult object itself. - */ - public ReachabilityAnalysisIntentListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the ReachabilityAnalysisIntentListResult object itself. - */ - public ReachabilityAnalysisIntentListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ReachabilityAnalysisIntentListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ReachabilityAnalysisIntentListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ReachabilityAnalysisIntentListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ReachabilityAnalysisIntentListResult. */ public static ReachabilityAnalysisIntentListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisRunListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisRunListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisRunListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisRunListResult.java index 9775bb1637a1..95b5eead742f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisRunListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisRunListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * A list of Reachability Analysis Run. + * The response of a ReachabilityAnalysisRun list operation. */ -@Fluent +@Immutable public final class ReachabilityAnalysisRunListResult implements JsonSerializable { /* - * Gets a page of Reachability Analysis Runs. + * The ReachabilityAnalysisRun items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ReachabilityAnalysisRunListResult class. */ - public ReachabilityAnalysisRunListResult() { + private ReachabilityAnalysisRunListResult() { } /** - * Get the value property: Gets a page of Reachability Analysis Runs. + * Get the value property: The ReachabilityAnalysisRun items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of Reachability Analysis Runs. - * - * @param value the value value to set. - * @return the ReachabilityAnalysisRunListResult object itself. - */ - public ReachabilityAnalysisRunListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the ReachabilityAnalysisRunListResult object itself. - */ - public ReachabilityAnalysisRunListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ReachabilityAnalysisRunListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ReachabilityAnalysisRunListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ReachabilityAnalysisRunListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ReachabilityAnalysisRunListResult. */ public static ReachabilityAnalysisRunListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterListResult.java index fd6504eba815..4339aa97a253 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListRouteFilters API service call. + * The response of a RouteFilter list operation. */ -@Fluent +@Immutable public final class RouteFilterListResult implements JsonSerializable { /* - * A list of route filters in a resource group. + * The RouteFilter items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RouteFilterListResult class. */ - public RouteFilterListResult() { + private RouteFilterListResult() { } /** - * Get the value property: A list of route filters in a resource group. + * Get the value property: The RouteFilter items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of route filters in a resource group. - * - * @param value the value value to set. - * @return the RouteFilterListResult object itself. - */ - public RouteFilterListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RouteFilterListResult object itself. - */ - public RouteFilterListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model RouteFilterListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RouteFilterListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RouteFilterListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RouteFilterListResult. */ public static RouteFilterListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterRuleListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterRuleListResult.java index d2f7c0e61b7a..7cf102ca45ea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for the ListRouteFilterRules API service call. */ -@Fluent +@Immutable public final class RouteFilterRuleListResult implements JsonSerializable { /* - * A list of RouteFilterRules in a resource group. + * The RouteFilterRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RouteFilterRuleListResult class. */ - public RouteFilterRuleListResult() { + private RouteFilterRuleListResult() { } /** - * Get the value property: A list of RouteFilterRules in a resource group. + * Get the value property: The RouteFilterRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of RouteFilterRules in a resource group. - * - * @param value the value value to set. - * @return the RouteFilterRuleListResult object itself. - */ - public RouteFilterRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RouteFilterRuleListResult object itself. - */ - public RouteFilterRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model RouteFilterRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RouteFilterRuleListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RouteFilterRuleListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RouteFilterRuleListResult. */ public static RouteFilterRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteListResult.java index 5bf43913817a..789d527b2c48 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListRoute API service call. + * The response of a Route list operation. */ -@Fluent +@Immutable public final class RouteListResult implements JsonSerializable { /* - * A list of routes in a resource group. + * The Route items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RouteListResult class. */ - public RouteListResult() { + private RouteListResult() { } /** - * Get the value property: A list of routes in a resource group. + * Get the value property: The Route items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of routes in a resource group. - * - * @param value the value value to set. - * @return the RouteListResult object itself. - */ - public RouteListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RouteListResult object itself. - */ - public RouteListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model RouteListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RouteListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RouteListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RouteListResult. */ public static RouteListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteTableListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteTableListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteTableListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteTableListResult.java index 28cf42a67917..30e660d5d67c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteTableListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RouteTableListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListRouteTable API service call. + * The response of a RouteTable list operation. */ -@Fluent +@Immutable public final class RouteTableListResult implements JsonSerializable { /* - * A list of route tables in a resource group. + * The RouteTable items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RouteTableListResult class. */ - public RouteTableListResult() { + private RouteTableListResult() { } /** - * Get the value property: A list of route tables in a resource group. + * Get the value property: The RouteTable items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of route tables in a resource group. - * - * @param value the value value to set. - * @return the RouteTableListResult object itself. - */ - public RouteTableListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RouteTableListResult object itself. - */ - public RouteTableListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model RouteTableListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RouteTableListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RouteTableListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RouteTableListResult. */ public static RouteTableListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleCollectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleCollectionListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleCollectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleCollectionListResult.java index 2ca158fddf77..4fbb73ca5801 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleCollectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleCollectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Routing configuration rule collection list result. + * The response of a RoutingRuleCollection list operation. */ -@Fluent +@Immutable public final class RoutingRuleCollectionListResult implements JsonSerializable { /* - * A list of network manager routing configuration rule collections + * The RoutingRuleCollection items on this page */ private List value; /* - * Gets the URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RoutingRuleCollectionListResult class. */ - public RoutingRuleCollectionListResult() { + private RoutingRuleCollectionListResult() { } /** - * Get the value property: A list of network manager routing configuration rule collections. + * Get the value property: The RoutingRuleCollection items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of network manager routing configuration rule collections. - * - * @param value the value value to set. - * @return the RoutingRuleCollectionListResult object itself. - */ - public RoutingRuleCollectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RoutingRuleCollectionListResult object itself. - */ - public RoutingRuleCollectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model RoutingRuleCollectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RoutingRuleCollectionListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RoutingRuleCollectionListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RoutingRuleCollectionListResult. */ public static RoutingRuleCollectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleListResult.java index 4383ef61f3cb..e2b556b1552d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Routing configuration rule list result. + * The response of a RoutingRule list operation. */ -@Fluent +@Immutable public final class RoutingRuleListResult implements JsonSerializable { /* - * A list of routing rules. + * The RoutingRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of RoutingRuleListResult class. */ - public RoutingRuleListResult() { + private RoutingRuleListResult() { } /** - * Get the value property: A list of routing rules. + * Get the value property: The RoutingRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of routing rules. - * - * @param value the value value to set. - * @return the RoutingRuleListResult object itself. - */ - public RoutingRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the RoutingRuleListResult object itself. - */ - public RoutingRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model RoutingRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(RoutingRuleListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of RoutingRuleListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the RoutingRuleListResult. */ public static RoutingRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ScopeConnectionListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ScopeConnectionListResult.java index 3c3d5d304531..d91058d1517c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ScopeConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * List of scope connections. + * The response of a ScopeConnection list operation. */ -@Fluent +@Immutable public final class ScopeConnectionListResult implements JsonSerializable { /* - * List of scope connections. + * The ScopeConnection items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ScopeConnectionListResult class. */ - public ScopeConnectionListResult() { + private ScopeConnectionListResult() { } /** - * Get the value property: List of scope connections. + * Get the value property: The ScopeConnection items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of scope connections. - * - * @param value the value value to set. - * @return the ScopeConnectionListResult object itself. - */ - public ScopeConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the ScopeConnectionListResult object itself. - */ - public ScopeConnectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model ScopeConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ScopeConnectionListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ScopeConnectionListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ScopeConnectionListResult. */ public static ScopeConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityAdminConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityAdminConfigurationListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityAdminConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityAdminConfigurationListResult.java index cee737b56468..ef7d1b6f386c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityAdminConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityAdminConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * A list of network manager security admin configurations. + * The response of a SecurityAdminConfiguration list operation. */ -@Fluent +@Immutable public final class SecurityAdminConfigurationListResult implements JsonSerializable { /* - * Gets a page of security admin configurations + * The SecurityAdminConfiguration items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityAdminConfigurationListResult class. */ - public SecurityAdminConfigurationListResult() { + private SecurityAdminConfigurationListResult() { } /** - * Get the value property: Gets a page of security admin configurations. + * Get the value property: The SecurityAdminConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets a page of security admin configurations. - * - * @param value the value value to set. - * @return the SecurityAdminConfigurationListResult object itself. - */ - public SecurityAdminConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityAdminConfigurationListResult object itself. - */ - public SecurityAdminConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SecurityAdminConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityAdminConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityAdminConfigurationListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityAdminConfigurationListResult. */ public static SecurityAdminConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPartnerProviderListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityPartnerProviderListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPartnerProviderListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityPartnerProviderListResult.java index 6a55651c67ff..f2fe3ddfc377 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPartnerProviderListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityPartnerProviderListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListSecurityPartnerProviders API service call. + * The response of a SecurityPartnerProvider list operation. */ -@Fluent +@Immutable public final class SecurityPartnerProviderListResult implements JsonSerializable { /* - * List of Security Partner Providers in a resource group. + * The SecurityPartnerProvider items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityPartnerProviderListResult class. */ - public SecurityPartnerProviderListResult() { + private SecurityPartnerProviderListResult() { } /** - * Get the value property: List of Security Partner Providers in a resource group. + * Get the value property: The SecurityPartnerProvider items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Security Partner Providers in a resource group. - * - * @param value the value value to set. - * @return the SecurityPartnerProviderListResult object itself. - */ - public SecurityPartnerProviderListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityPartnerProviderListResult object itself. - */ - public SecurityPartnerProviderListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SecurityPartnerProviderListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityPartnerProviderListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityPartnerProviderListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityPartnerProviderListResult. */ public static SecurityPartnerProviderListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityRuleListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityRuleListResult.java index 09893b049843..35502b280bc4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security - * group. + * The response of a SecurityRule list operation. */ -@Fluent +@Immutable public final class SecurityRuleListResult implements JsonSerializable { /* - * The security rules in a network security group. + * The SecurityRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityRuleListResult class. */ - public SecurityRuleListResult() { + private SecurityRuleListResult() { } /** - * Get the value property: The security rules in a network security group. + * Get the value property: The SecurityRule items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: The security rules in a network security group. - * - * @param value the value value to set. - * @return the SecurityRuleListResult object itself. - */ - public SecurityRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityRuleListResult object itself. - */ - public SecurityRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SecurityRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityRuleListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityRuleListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityRuleListResult. */ public static SecurityRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserConfigurationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserConfigurationListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserConfigurationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserConfigurationListResult.java index 98918343f5eb..099418ab3094 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserConfigurationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserConfigurationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * A list of network manager security user configurations. + * The response of a SecurityUserConfiguration list operation. */ -@Fluent +@Immutable public final class SecurityUserConfigurationListResult implements JsonSerializable { /* - * Gets a page of security user configurations + * The SecurityUserConfiguration items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityUserConfigurationListResult class. */ - public SecurityUserConfigurationListResult() { + private SecurityUserConfigurationListResult() { } /** - * Get the value property: Gets a page of security user configurations. + * Get the value property: The SecurityUserConfiguration items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: Gets a page of security user configurations. - * - * @param value the value value to set. - * @return the SecurityUserConfigurationListResult object itself. - */ - public SecurityUserConfigurationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityUserConfigurationListResult object itself. - */ - public SecurityUserConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SecurityUserConfigurationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityUserConfigurationListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserConfigurationListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserConfigurationListResult. */ public static SecurityUserConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleCollectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleCollectionListResult.java similarity index 69% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleCollectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleCollectionListResult.java index 2498ed4c25ab..b813b56667ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleCollectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleCollectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Security user configuration rule collection list result. + * The response of a SecurityUserRuleCollection list operation. */ -@Fluent +@Immutable public final class SecurityUserRuleCollectionListResult implements JsonSerializable { /* - * A list of network manager security user configuration rule collections + * The SecurityUserRuleCollection items on this page */ private List value; /* - * Gets the URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityUserRuleCollectionListResult class. */ - public SecurityUserRuleCollectionListResult() { + private SecurityUserRuleCollectionListResult() { } /** - * Get the value property: A list of network manager security user configuration rule collections. + * Get the value property: The SecurityUserRuleCollection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of network manager security user configuration rule collections. - * - * @param value the value value to set. - * @return the SecurityUserRuleCollectionListResult object itself. - */ - public SecurityUserRuleCollectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityUserRuleCollectionListResult object itself. - */ - public SecurityUserRuleCollectionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SecurityUserRuleCollectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityUserRuleCollectionListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserRuleCollectionListResult if the JsonReader was pointing to an instance of it, * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserRuleCollectionListResult. */ public static SecurityUserRuleCollectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleListResult.java index cd4553ab34f9..f658740fd640 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserRuleListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * security user rule list result. + * The response of a SecurityUserRule list operation. */ -@Fluent +@Immutable public final class SecurityUserRuleListResult implements JsonSerializable { /* - * A list of security user rules + * The SecurityUserRule items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SecurityUserRuleListResult class. */ - public SecurityUserRuleListResult() { + private SecurityUserRuleListResult() { } /** - * Get the value property: A list of security user rules. + * Get the value property: The SecurityUserRule items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of security user rules. - * - * @param value the value value to set. - * @return the SecurityUserRuleListResult object itself. - */ - public SecurityUserRuleListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the SecurityUserRuleListResult object itself. - */ - public SecurityUserRuleListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SecurityUserRuleListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SecurityUserRuleListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityUserRuleListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityUserRuleListResult. */ public static SecurityUserRuleListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyDefinitionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyDefinitionListResult.java similarity index 68% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyDefinitionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyDefinitionListResult.java index 516d337debde..0e4965028600 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyDefinitionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyDefinitionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,30 +15,29 @@ import java.util.List; /** - * Response for ListServiceEndpointPolicyDefinition API service call. Retrieves all service endpoint policy definition - * that belongs to a service endpoint policy. + * The response of a ServiceEndpointPolicyDefinition list operation. */ -@Fluent +@Immutable public final class ServiceEndpointPolicyDefinitionListResult implements JsonSerializable { /* - * The service endpoint policy definition in a service endpoint policy. + * The ServiceEndpointPolicyDefinition items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ServiceEndpointPolicyDefinitionListResult class. */ - public ServiceEndpointPolicyDefinitionListResult() { + private ServiceEndpointPolicyDefinitionListResult() { } /** - * Get the value property: The service endpoint policy definition in a service endpoint policy. + * Get the value property: The ServiceEndpointPolicyDefinition items on this page. * * @return the value value. */ @@ -46,18 +46,7 @@ public List value() { } /** - * Set the value property: The service endpoint policy definition in a service endpoint policy. - * - * @param value the value value to set. - * @return the ServiceEndpointPolicyDefinitionListResult object itself. - */ - public ServiceEndpointPolicyDefinitionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -65,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the ServiceEndpointPolicyDefinitionListResult object itself. - */ - public ServiceEndpointPolicyDefinitionListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ServiceEndpointPolicyDefinitionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceEndpointPolicyDefinitionListResult.class); + /** * {@inheritDoc} */ @@ -104,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServiceEndpointPolicyDefinitionListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ServiceEndpointPolicyDefinitionListResult. */ public static ServiceEndpointPolicyDefinitionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyListResult.java index c64267bfa4cc..96a648ac955b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPolicyListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListServiceEndpointPolicies API service call. + * The response of a ServiceEndpointPolicy list operation. */ -@Fluent +@Immutable public final class ServiceEndpointPolicyListResult implements JsonSerializable { /* - * A list of ServiceEndpointPolicy resources. + * The ServiceEndpointPolicy items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ServiceEndpointPolicyListResult class. */ - public ServiceEndpointPolicyListResult() { + private ServiceEndpointPolicyListResult() { } /** - * Get the value property: A list of ServiceEndpointPolicy resources. + * Get the value property: The ServiceEndpointPolicy items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of ServiceEndpointPolicy resources. - * - * @param value the value value to set. - * @return the ServiceEndpointPolicyListResult object itself. - */ - public ServiceEndpointPolicyListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ServiceEndpointPolicyListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceEndpointPolicyListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServiceEndpointPolicyListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ServiceEndpointPolicyListResult. */ public static ServiceEndpointPolicyListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceGatewayListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceGatewayListResult.java index 2a9b606014f9..5364777d8fbe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceGatewayListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListServiceGateways API service call. + * The response of a ServiceGateway list operation. */ -@Fluent +@Immutable public final class ServiceGatewayListResult implements JsonSerializable { /* - * A list of service gateway in a resource group. + * The ServiceGateway items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ServiceGatewayListResult class. */ - public ServiceGatewayListResult() { + private ServiceGatewayListResult() { } /** - * Get the value property: A list of service gateway in a resource group. + * Get the value property: The ServiceGateway items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of service gateway in a resource group. - * - * @param value the value value to set. - * @return the ServiceGatewayListResult object itself. - */ - public ServiceGatewayListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,16 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ServiceGatewayListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceGatewayListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +76,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServiceGatewayListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ServiceGatewayListResult. */ public static ServiceGatewayListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceTagInformationListResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceTagInformationListResult.java index a2b940c0c69d..2d1a987797e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceTagInformationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * Response for Get ServiceTagInformation API service call. Retrieves the list of service tag information resources. */ -@Fluent +@Immutable public final class ServiceTagInformationListResult implements JsonSerializable { /* - * The list of service tag information resources. + * The ServiceTagInformation items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of ServiceTagInformationListResult class. */ - public ServiceTagInformationListResult() { + private ServiceTagInformationListResult() { } /** - * Get the value property: The list of service tag information resources. + * Get the value property: The ServiceTagInformation items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The list of service tag information resources. - * - * @param value the value value to set. - * @return the ServiceTagInformationListResult object itself. - */ - public ServiceTagInformationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ServiceTagInformationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(ServiceTagInformationListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServiceTagInformationListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ServiceTagInformationListResult. */ public static ServiceTagInformationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrList.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticCidrList.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrList.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticCidrList.java index acc1099c4cf7..8a8dab8e05da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrList.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticCidrList.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * List of StaticCidr. */ -@Fluent +@Immutable public final class StaticCidrList implements JsonSerializable { /* - * The value property. + * The StaticCidr items on this page */ private List value; /* - * The link used to get the next page of operations. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of StaticCidrList class. */ - public StaticCidrList() { + private StaticCidrList() { } /** - * Get the value property: The value property. + * Get the value property: The StaticCidr items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The value property. - * - * @param value the value value to set. - * @return the StaticCidrList object itself. - */ - public StaticCidrList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link used to get the next page of operations. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link used to get the next page of operations. - * - * @param nextLink the nextLink value to set. - * @return the StaticCidrList object itself. - */ - public StaticCidrList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model StaticCidrList")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(StaticCidrList.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of StaticCidrList if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the StaticCidrList. */ public static StaticCidrList fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticMemberListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticMemberListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticMemberListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticMemberListResult.java index c2dbc2b7f4d9..96c67e4668aa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticMemberListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/StaticMemberListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,28 @@ import java.util.List; /** - * Result of the request to list StaticMember. It contains a list of groups and a URL link to get the next set of - * results. + * The response of a StaticMember list operation. */ -@Fluent +@Immutable public final class StaticMemberListResult implements JsonSerializable { /* - * Gets a page of StaticMember + * The StaticMember items on this page */ private List value; /* - * Gets the URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of StaticMemberListResult class. */ - public StaticMemberListResult() { + private StaticMemberListResult() { } /** - * Get the value property: Gets a page of StaticMember. + * Get the value property: The StaticMember items on this page. * * @return the value value. */ @@ -45,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of StaticMember. - * - * @param value the value value to set. - * @return the StaticMemberListResult object itself. - */ - public StaticMemberListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the StaticMemberListResult object itself. - */ - public StaticMemberListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model StaticMemberListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(StaticMemberListResult.class); + /** * {@inheritDoc} */ @@ -103,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of StaticMemberListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the StaticMemberListResult. */ public static StaticMemberListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SubnetListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SubnetListResult.java index 69ce2489254e..e541529a1547 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/SubnetListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListSubnets API service callRetrieves all subnet that belongs to a virtual network. + * The response of a Subnet list operation. */ -@Fluent +@Immutable public final class SubnetListResult implements JsonSerializable { /* - * The subnets in a virtual network. + * The Subnet items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SubnetListResult class. */ - public SubnetListResult() { + private SubnetListResult() { } /** - * Get the value property: The subnets in a virtual network. + * Get the value property: The Subnet items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The subnets in a virtual network. - * - * @param value the value value to set. - * @return the SubnetListResult object itself. - */ - public SubnetListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the SubnetListResult object itself. - */ - public SubnetListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SubnetListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(SubnetListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SubnetListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SubnetListResult. */ public static SubnetListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsagesListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/UsagesListResult.java similarity index 72% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsagesListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/UsagesListResult.java index bce0385eeed9..9daa45c68f73 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsagesListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/UsagesListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +17,26 @@ /** * The list usages operation response. */ -@Fluent +@Immutable public final class UsagesListResult implements JsonSerializable { /* - * The list network resource usages. + * The Usage items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of UsagesListResult class. */ - public UsagesListResult() { + private UsagesListResult() { } /** - * Get the value property: The list network resource usages. + * Get the value property: The Usage items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The list network resource usages. - * - * @param value the value value to set. - * @return the UsagesListResult object itself. - */ - public UsagesListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the UsagesListResult object itself. - */ - public UsagesListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model UsagesListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(UsagesListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of UsagesListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the UsagesListResult. */ public static UsagesListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VerifierWorkspaceListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VerifierWorkspaceListResult.java index 48cd2c4a1c81..a5480e701510 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VerifierWorkspaceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * A list of Verifier Workspace. + * The response of a VerifierWorkspace list operation. */ -@Fluent +@Immutable public final class VerifierWorkspaceListResult implements JsonSerializable { /* - * Gets a page of Verifier Workspaces. + * The VerifierWorkspace items on this page */ private List value; /* - * Gets the URL to get the next page of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VerifierWorkspaceListResult class. */ - public VerifierWorkspaceListResult() { + private VerifierWorkspaceListResult() { } /** - * Get the value property: Gets a page of Verifier Workspaces. + * Get the value property: The VerifierWorkspace items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: Gets a page of Verifier Workspaces. - * - * @param value the value value to set. - * @return the VerifierWorkspaceListResult object itself. - */ - public VerifierWorkspaceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: Gets the URL to get the next page of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: Gets the URL to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the VerifierWorkspaceListResult object itself. - */ - public VerifierWorkspaceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VerifierWorkspaceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VerifierWorkspaceListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VerifierWorkspaceListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VerifierWorkspaceListResult. */ public static VerifierWorkspaceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkApplianceListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkApplianceListResult.java index c012fabfdd66..3f7170e062e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkApplianceListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListVirtualNetworkAppliance API service call. + * The response of a VirtualNetworkAppliance list operation. */ -@Fluent +@Immutable public final class VirtualNetworkApplianceListResult implements JsonSerializable { /* - * A list of virtual network appliances in a resource group. + * The VirtualNetworkAppliance items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkApplianceListResult class. */ - public VirtualNetworkApplianceListResult() { + private VirtualNetworkApplianceListResult() { } /** - * Get the value property: A list of virtual network appliances in a resource group. + * Get the value property: The VirtualNetworkAppliance items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of virtual network appliances in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkApplianceListResult object itself. - */ - public VirtualNetworkApplianceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkApplianceListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkApplianceListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkApplianceListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkApplianceListResult. */ public static VirtualNetworkApplianceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkDdosProtectionStatusResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkDdosProtectionStatusResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkDdosProtectionStatusResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkDdosProtectionStatusResult.java index 3325eedfd698..94d6835734a9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkDdosProtectionStatusResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkDdosProtectionStatusResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for GetVirtualNetworkDdosProtectionStatusOperation. */ -@Fluent +@Immutable public final class VirtualNetworkDdosProtectionStatusResult implements JsonSerializable { /* - * The Ddos Protection Status Result for each public ip under a virtual network. + * The PublicIpDdosProtectionStatusResult items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkDdosProtectionStatusResult class. */ - public VirtualNetworkDdosProtectionStatusResult() { + private VirtualNetworkDdosProtectionStatusResult() { } /** - * Get the value property: The Ddos Protection Status Result for each public ip under a virtual network. + * Get the value property: The PublicIpDdosProtectionStatusResult items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: The Ddos Protection Status Result for each public ip under a virtual network. - * - * @param value the value value to set. - * @return the VirtualNetworkDdosProtectionStatusResult object itself. - */ - public VirtualNetworkDdosProtectionStatusResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -64,28 +54,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualNetworkDdosProtectionStatusResult object itself. - */ - public VirtualNetworkDdosProtectionStatusResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkDdosProtectionStatusResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkDdosProtectionStatusResult.class); + /** * {@inheritDoc} */ @@ -103,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkDdosProtectionStatusResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkDdosProtectionStatusResult. */ public static VirtualNetworkDdosProtectionStatusResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayConnectionListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayConnectionListResult.java index c4de17528b59..ebb71c65f3d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayConnectionListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,29 +15,29 @@ import java.util.List; /** - * Response for the ListVirtualNetworkGatewayConnections API service call. + * The response of a VirtualNetworkGatewayConnection list operation. */ -@Fluent +@Immutable public final class VirtualNetworkGatewayConnectionListResult implements JsonSerializable { /* - * A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + * The VirtualNetworkGatewayConnection items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkGatewayConnectionListResult class. */ - public VirtualNetworkGatewayConnectionListResult() { + private VirtualNetworkGatewayConnectionListResult() { } /** - * Get the value property: A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + * Get the value property: The VirtualNetworkGatewayConnection items on this page. * * @return the value value. */ @@ -45,18 +46,7 @@ public List value() { } /** - * Set the value property: A list of VirtualNetworkGatewayConnection resources that exists in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkGatewayConnectionListResult object itself. - */ - public VirtualNetworkGatewayConnectionListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -70,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkGatewayConnectionListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkGatewayConnectionListResult.class); + /** * {@inheritDoc} */ @@ -82,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkGatewayConnectionListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkGatewayConnectionListResult. */ public static VirtualNetworkGatewayConnectionListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListConnectionsResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListConnectionsResult.java similarity index 75% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListConnectionsResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListConnectionsResult.java index daa0fffee636..ab32e162960b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListConnectionsResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListConnectionsResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,27 +17,27 @@ /** * Response for the VirtualNetworkGatewayListConnections API service call. */ -@Fluent +@Immutable public final class VirtualNetworkGatewayListConnectionsResult implements JsonSerializable { /* - * A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + * The VirtualNetworkGatewayConnectionListEntity items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkGatewayListConnectionsResult class. */ - public VirtualNetworkGatewayListConnectionsResult() { + private VirtualNetworkGatewayListConnectionsResult() { } /** - * Get the value property: A list of VirtualNetworkGatewayConnection resources that exists in a resource group. + * Get the value property: The VirtualNetworkGatewayConnectionListEntity items on this page. * * @return the value value. */ @@ -45,19 +46,7 @@ public List value() { } /** - * Set the value property: A list of VirtualNetworkGatewayConnection resources that exists in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkGatewayListConnectionsResult object itself. - */ - public VirtualNetworkGatewayListConnectionsResult - withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -71,11 +60,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkGatewayListConnectionsResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkGatewayListConnectionsResult.class); + /** * {@inheritDoc} */ @@ -83,6 +78,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -92,6 +88,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkGatewayListConnectionsResult if the JsonReader was pointing to an instance * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkGatewayListConnectionsResult. */ public static VirtualNetworkGatewayListConnectionsResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListResult.java similarity index 73% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListResult.java index 90c17a40d84a..64d992aa704a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListVirtualNetworkGateways API service call. + * The response of a VirtualNetworkGateway list operation. */ -@Fluent +@Immutable public final class VirtualNetworkGatewayListResult implements JsonSerializable { /* - * A list of VirtualNetworkGateway resources that exists in a resource group. + * The VirtualNetworkGateway items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkGatewayListResult class. */ - public VirtualNetworkGatewayListResult() { + private VirtualNetworkGatewayListResult() { } /** - * Get the value property: A list of VirtualNetworkGateway resources that exists in a resource group. + * Get the value property: The VirtualNetworkGateway items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of VirtualNetworkGateway resources that exists in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkGatewayListResult object itself. - */ - public VirtualNetworkGatewayListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -69,11 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkGatewayListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkGatewayListResult.class); + /** * {@inheritDoc} */ @@ -81,6 +77,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkGatewayListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkGatewayListResult. */ public static VirtualNetworkGatewayListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListResult.java index 361939ff2af7..c35bdee5afdd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for the ListVirtualNetworks API service call. + * The response of a VirtualNetwork list operation. */ -@Fluent +@Immutable public final class VirtualNetworkListResult implements JsonSerializable { /* - * A list of VirtualNetwork resources in a resource group. + * The VirtualNetwork items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkListResult class. */ - public VirtualNetworkListResult() { + private VirtualNetworkListResult() { } /** - * Get the value property: A list of VirtualNetwork resources in a resource group. + * Get the value property: The VirtualNetwork items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of VirtualNetwork resources in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkListResult object itself. - */ - public VirtualNetworkListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualNetworkListResult object itself. - */ - public VirtualNetworkListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VirtualNetworkListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkListResult if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkListResult. */ public static VirtualNetworkListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListUsageResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListUsageResult.java similarity index 79% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListUsageResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListUsageResult.java index 0bf62f372e96..18f477ff7a4c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkListUsageResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListUsageResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,26 +16,26 @@ /** * Response for the virtual networks GetUsage API service call. */ -@Fluent +@Immutable public final class VirtualNetworkListUsageResult implements JsonSerializable { /* - * VirtualNetwork usage stats. + * The VirtualNetworkUsage items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkListUsageResult class. */ - public VirtualNetworkListUsageResult() { + private VirtualNetworkListUsageResult() { } /** - * Get the value property: VirtualNetwork usage stats. + * Get the value property: The VirtualNetworkUsage items on this page. * * @return the value value. */ @@ -44,7 +44,7 @@ public List value() { } /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -52,17 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualNetworkListUsageResult object itself. - */ - public VirtualNetworkListUsageResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * @@ -90,6 +79,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkListUsageResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkListUsageResult. */ public static VirtualNetworkListUsageResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkPeeringListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkPeeringListResult.java index bd5b44fdf0c3..e08263dbb2dc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkPeeringListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListSubnets API service call. Retrieves all subnets that belong to a virtual network. + * The response of a VirtualNetworkPeering list operation. */ -@Fluent +@Immutable public final class VirtualNetworkPeeringListResult implements JsonSerializable { /* - * The peerings in a virtual network. + * The VirtualNetworkPeering items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkPeeringListResult class. */ - public VirtualNetworkPeeringListResult() { + private VirtualNetworkPeeringListResult() { } /** - * Get the value property: The peerings in a virtual network. + * Get the value property: The VirtualNetworkPeering items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: The peerings in a virtual network. - * - * @param value the value value to set. - * @return the VirtualNetworkPeeringListResult object itself. - */ - public VirtualNetworkPeeringListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualNetworkPeeringListResult object itself. - */ - public VirtualNetworkPeeringListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkPeeringListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkPeeringListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkPeeringListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkPeeringListResult. */ public static VirtualNetworkPeeringListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkTapListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkTapListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkTapListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkTapListResult.java index 1721dbde3313..778403799a7e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkTapListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkTapListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListVirtualNetworkTap API service call. + * The response of a VirtualNetworkTap list operation. */ -@Fluent +@Immutable public final class VirtualNetworkTapListResult implements JsonSerializable { /* - * A list of VirtualNetworkTaps in a resource group. + * The VirtualNetworkTap items on this page */ private List value; /* - * The URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualNetworkTapListResult class. */ - public VirtualNetworkTapListResult() { + private VirtualNetworkTapListResult() { } /** - * Get the value property: A list of VirtualNetworkTaps in a resource group. + * Get the value property: The VirtualNetworkTap items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: A list of VirtualNetworkTaps in a resource group. - * - * @param value the value value to set. - * @return the VirtualNetworkTapListResult object itself. - */ - public VirtualNetworkTapListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualNetworkTapListResult object itself. - */ - public VirtualNetworkTapListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualNetworkTapListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkTapListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualNetworkTapListResult if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualNetworkTapListResult. */ public static VirtualNetworkTapListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterListResult.java similarity index 71% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterListResult.java index 3dd11d442f83..6fa0a2fa84b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListVirtualRouters API service call. + * The response of a VirtualRouter list operation. */ -@Fluent +@Immutable public final class VirtualRouterListResult implements JsonSerializable { /* - * List of Virtual Routers. + * The VirtualRouter items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualRouterListResult class. */ - public VirtualRouterListResult() { + private VirtualRouterListResult() { } /** - * Get the value property: List of Virtual Routers. + * Get the value property: The VirtualRouter items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of Virtual Routers. - * - * @param value the value value to set. - * @return the VirtualRouterListResult object itself. - */ - public VirtualRouterListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,22 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualRouterListResult object itself. - */ - public VirtualRouterListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VirtualRouterListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualRouterListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +86,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualRouterListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualRouterListResult. */ public static VirtualRouterListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterPeeringListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterPeeringListResult.java similarity index 70% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterPeeringListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterPeeringListResult.java index 089a8e6f9deb..280ad82c147f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualRouterPeeringListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterPeeringListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,28 +15,28 @@ import java.util.List; /** - * Response for ListVirtualRouterPeerings API service call. + * The response of a VirtualRouterPeering list operation. */ -@Fluent +@Immutable public final class VirtualRouterPeeringListResult implements JsonSerializable { /* - * List of VirtualRouterPeerings in a VirtualRouter. + * The VirtualRouterPeering items on this page */ private List value; /* - * URL to get the next set of results. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of VirtualRouterPeeringListResult class. */ - public VirtualRouterPeeringListResult() { + private VirtualRouterPeeringListResult() { } /** - * Get the value property: List of VirtualRouterPeerings in a VirtualRouter. + * Get the value property: The VirtualRouterPeering items on this page. * * @return the value value. */ @@ -44,18 +45,7 @@ public List value() { } /** - * Set the value property: List of VirtualRouterPeerings in a VirtualRouter. - * - * @param value the value value to set. - * @return the VirtualRouterPeeringListResult object itself. - */ - public VirtualRouterPeeringListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of results. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +53,23 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: URL to get the next set of results. - * - * @param nextLink the nextLink value to set. - * @return the VirtualRouterPeeringListResult object itself. - */ - public VirtualRouterPeeringListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model VirtualRouterPeeringListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(VirtualRouterPeeringListResult.class); + /** * {@inheritDoc} */ @@ -102,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of VirtualRouterPeeringListResult if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the VirtualRouterPeeringListResult. */ public static VirtualRouterPeeringListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyListResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/WebApplicationFirewallPolicyListResult.java similarity index 81% rename from sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyListResult.java rename to sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/WebApplicationFirewallPolicyListResult.java index 778d2dcfaf1a..20513a1f8af9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyListResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/models/WebApplicationFirewallPolicyListResult.java @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.network.models; +package com.azure.resourcemanager.network.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; @@ -14,30 +14,29 @@ import java.util.List; /** - * Result of the request to list WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy - * objects and a URL link to get the next set of results. + * Paged collection of WebApplicationFirewallPolicy items. */ @Immutable public final class WebApplicationFirewallPolicyListResult implements JsonSerializable { /* - * List of WebApplicationFirewallPolicies within a resource group. + * The WebApplicationFirewallPolicy items on this page */ private List value; /* - * URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of WebApplicationFirewallPolicyListResult class. */ - public WebApplicationFirewallPolicyListResult() { + private WebApplicationFirewallPolicyListResult() { } /** - * Get the value property: List of WebApplicationFirewallPolicies within a resource group. + * Get the value property: The WebApplicationFirewallPolicy items on this page. * * @return the value value. */ @@ -46,7 +45,7 @@ public List value() { } /** - * Get the nextLink property: URL to get the next set of WebApplicationFirewallPolicy objects if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -71,6 +70,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -80,6 +80,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of WebApplicationFirewallPolicyListResult if the JsonReader was pointing to an instance of * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the WebApplicationFirewallPolicyListResult. */ public static WebApplicationFirewallPolicyListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AadAuthenticationParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AadAuthenticationParameters.java index dfde4614464b..c26c0e9d0044 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AadAuthenticationParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AadAuthenticationParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Access.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Access.java index a4a605ccbfd2..03ee336c090b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Access.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Access.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class Access extends ExpandableStringEnum { /** - * Static value Allow for Access. + * Allow. */ public static final Access ALLOW = fromString("Allow"); /** - * Static value Deny for Access. + * Deny. */ public static final Access DENY = fromString("Deny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessMode.java index 05f35860ba72..28cd722810b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AccessMode extends ExpandableStringEnum { /** - * Static value Default for AccessMode. + * Allows unrestricted access to the private link service. */ public static final AccessMode DEFAULT = fromString("Default"); /** - * Static value Restricted for AccessMode. + * Limits access to subscriptions which are inside visibility list only. */ public static final AccessMode RESTRICTED = fromString("Restricted"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessRuleDirection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessRuleDirection.java index 185fe1e517bc..c6d855922bbe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessRuleDirection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AccessRuleDirection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AccessRuleDirection extends ExpandableStringEnum { /** - * Static value Inbound for AccessRuleDirection. + * Inbound. */ public static final AccessRuleDirection INBOUND = fromString("Inbound"); /** - * Static value Outbound for AccessRuleDirection. + * Outbound. */ public static final AccessRuleDirection OUTBOUND = fromString("Outbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java index 60f33c3fca39..ddeee00d2325 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActionType.java index 6928d76faa64..648ab45e6d96 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class ActionType extends ExpandableStringEnum { /** - * Static value AnomalyScoring for ActionType. + * AnomalyScoring. */ public static final ActionType ANOMALY_SCORING = fromString("AnomalyScoring"); /** - * Static value Allow for ActionType. + * Allow. */ public static final ActionType ALLOW = fromString("Allow"); /** - * Static value Block for ActionType. + * Block. */ public static final ActionType BLOCK = fromString("Block"); /** - * Static value Log for ActionType. + * Log. */ public static final ActionType LOG = fromString("Log"); /** - * Static value JSChallenge for ActionType. + * JSChallenge. */ public static final ActionType JSCHALLENGE = fromString("JSChallenge"); /** - * Static value CAPTCHA for ActionType. + * CAPTCHA. */ public static final ActionType CAPTCHA = fromString("CAPTCHA"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java index 7306664d5f05..628d5b5973e9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * Network base admin rule. */ -@Fluent +@Immutable public class ActiveBaseSecurityAdminRule implements JsonSerializable { /* * Whether the rule is custom or default. @@ -63,7 +63,7 @@ public class ActiveBaseSecurityAdminRule implements JsonSerializable ruleCollectionAppliesToGroups() { * @param ruleCollectionAppliesToGroups the ruleCollectionAppliesToGroups value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ - public ActiveBaseSecurityAdminRule + ActiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { this.ruleCollectionAppliesToGroups = ruleCollectionAppliesToGroups; return this; @@ -211,7 +211,7 @@ public List ruleGroups() { * @param ruleGroups the ruleGroups value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ - public ActiveBaseSecurityAdminRule withRuleGroups(List ruleGroups) { + ActiveBaseSecurityAdminRule withRuleGroups(List ruleGroups) { this.ruleGroups = ruleGroups; return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java index 2e47f3ab74be..f3df41c92287 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConnectivityConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConnectivityConfiguration.java index 7bdff65909f3..88397bd7a20d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConnectivityConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConnectivityConfiguration.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -18,7 +18,7 @@ /** * Active connectivity configuration. */ -@Fluent +@Immutable public final class ActiveConnectivityConfiguration extends EffectiveConnectivityConfiguration { /* * Deployment time string. @@ -30,15 +30,25 @@ public final class ActiveConnectivityConfiguration extends EffectiveConnectivity */ private String region; + /* + * Effective configuration groups. + */ + private List configurationGroups; + /* * Properties of a network manager connectivity configuration */ private ConnectivityConfigurationProperties innerProperties; + /* + * Connectivity configuration ID. + */ + private String id; + /** * Creates an instance of ActiveConnectivityConfiguration class. */ - public ActiveConnectivityConfiguration() { + private ActiveConnectivityConfiguration() { } /** @@ -50,17 +60,6 @@ public OffsetDateTime commitTime() { return this.commitTime; } - /** - * Set the commitTime property: Deployment time string. - * - * @param commitTime the commitTime value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withCommitTime(OffsetDateTime commitTime) { - this.commitTime = commitTime; - return this; - } - /** * Get the region property: Deployment region. * @@ -71,14 +70,13 @@ public String region() { } /** - * Set the region property: Deployment region. + * Get the configurationGroups property: Effective configuration groups. * - * @param region the region value to set. - * @return the ActiveConnectivityConfiguration object itself. + * @return the configurationGroups value. */ - public ActiveConnectivityConfiguration withRegion(String region) { - this.region = region; - return this; + @Override + public List configurationGroups() { + return this.configurationGroups; } /** @@ -91,21 +89,13 @@ private ConnectivityConfigurationProperties innerProperties() { } /** - * {@inheritDoc} - */ - @Override - public ActiveConnectivityConfiguration withId(String id) { - super.withId(id); - return this; - } - - /** - * {@inheritDoc} + * Get the id property: Connectivity configuration ID. + * + * @return the id value. */ @Override - public ActiveConnectivityConfiguration withConfigurationGroups(List configurationGroups) { - super.withConfigurationGroups(configurationGroups); - return this; + public String id() { + return this.id; } /** @@ -117,20 +107,6 @@ public String description() { return this.innerProperties() == null ? null : this.innerProperties().description(); } - /** - * Set the description property: A description of the connectivity configuration. - * - * @param description the description value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withDescription(description); - return this; - } - /** * Get the connectivityTopology property: Connectivity topology type. * @@ -140,20 +116,6 @@ public ConnectivityTopology connectivityTopology() { return this.innerProperties() == null ? null : this.innerProperties().connectivityTopology(); } - /** - * Set the connectivityTopology property: Connectivity topology type. - * - * @param connectivityTopology the connectivityTopology value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withConnectivityTopology(ConnectivityTopology connectivityTopology) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withConnectivityTopology(connectivityTopology); - return this; - } - /** * Get the hubs property: List of hubItems. * @@ -163,20 +125,6 @@ public List hubs() { return this.innerProperties() == null ? null : this.innerProperties().hubs(); } - /** - * Set the hubs property: List of hubItems. - * - * @param hubs the hubs value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withHubs(List hubs) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withHubs(hubs); - return this; - } - /** * Get the isGlobal property: Flag if global mesh is supported. * @@ -186,20 +134,6 @@ public IsGlobal isGlobal() { return this.innerProperties() == null ? null : this.innerProperties().isGlobal(); } - /** - * Set the isGlobal property: Flag if global mesh is supported. - * - * @param isGlobal the isGlobal value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withIsGlobal(IsGlobal isGlobal) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withIsGlobal(isGlobal); - return this; - } - /** * Get the connectivityCapabilities property: Collection of additional settings to enhance specific topology * behaviors of the connectivity configuration resource. @@ -210,22 +144,6 @@ public ConnectivityConfigurationPropertiesConnectivityCapabilities connectivityC return this.innerProperties() == null ? null : this.innerProperties().connectivityCapabilities(); } - /** - * Set the connectivityCapabilities property: Collection of additional settings to enhance specific topology - * behaviors of the connectivity configuration resource. - * - * @param connectivityCapabilities the connectivityCapabilities value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withConnectivityCapabilities( - ConnectivityConfigurationPropertiesConnectivityCapabilities connectivityCapabilities) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withConnectivityCapabilities(connectivityCapabilities); - return this; - } - /** * Get the appliesToGroups property: Groups for configuration. * @@ -235,20 +153,6 @@ public List appliesToGroups() { return this.innerProperties() == null ? null : this.innerProperties().appliesToGroups(); } - /** - * Set the appliesToGroups property: Groups for configuration. - * - * @param appliesToGroups the appliesToGroups value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withAppliesToGroups(List appliesToGroups) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withAppliesToGroups(appliesToGroups); - return this; - } - /** * Get the provisioningState property: The provisioning state of the connectivity configuration resource. * @@ -267,20 +171,6 @@ public DeleteExistingPeering deleteExistingPeering() { return this.innerProperties() == null ? null : this.innerProperties().deleteExistingPeering(); } - /** - * Set the deleteExistingPeering property: Flag if need to remove current existing peerings. - * - * @param deleteExistingPeering the deleteExistingPeering value to set. - * @return the ActiveConnectivityConfiguration object itself. - */ - public ActiveConnectivityConfiguration withDeleteExistingPeering(DeleteExistingPeering deleteExistingPeering) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withDeleteExistingPeering(deleteExistingPeering); - return this; - } - /** * Get the resourceGuid property: Unique identifier for this resource. * @@ -338,14 +228,14 @@ public static ActiveConnectivityConfiguration fromJson(JsonReader jsonReader) th reader.nextToken(); if ("id".equals(fieldName)) { - deserializedActiveConnectivityConfiguration.withId(reader.getString()); + deserializedActiveConnectivityConfiguration.id = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedActiveConnectivityConfiguration.innerProperties = ConnectivityConfigurationProperties.fromJson(reader); } else if ("configurationGroups".equals(fieldName)) { List configurationGroups = reader.readArray(reader1 -> ConfigurationGroup.fromJson(reader1)); - deserializedActiveConnectivityConfiguration.withConfigurationGroups(configurationGroups); + deserializedActiveConnectivityConfiguration.configurationGroups = configurationGroups; } else if ("commitTime".equals(fieldName)) { deserializedActiveConnectivityConfiguration.commitTime = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java index 7ac8777fce98..6091305aaa95 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java @@ -1,24 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.fluent.models.DefaultAdminPropertiesFormat; import java.io.IOException; -import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.List; /** * Network default admin rule. */ -@Fluent +@Immutable public final class ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdminRule { /* * Whether the rule is custom or default. @@ -33,7 +32,7 @@ public final class ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdmi /** * Creates an instance of ActiveDefaultSecurityAdminRule class. */ - public ActiveDefaultSecurityAdminRule() { + private ActiveDefaultSecurityAdminRule() { } /** @@ -55,70 +54,6 @@ DefaultAdminPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withId(String id) { - super.withId(id); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withCommitTime(OffsetDateTime commitTime) { - super.withCommitTime(commitTime); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withRegion(String region) { - super.withRegion(region); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withConfigurationDescription(String configurationDescription) { - super.withConfigurationDescription(configurationDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription) { - super.withRuleCollectionDescription(ruleCollectionDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule - withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { - super.withRuleCollectionAppliesToGroups(ruleCollectionAppliesToGroups); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDefaultSecurityAdminRule withRuleGroups(List ruleGroups) { - super.withRuleGroups(ruleGroups); - return this; - } - /** * Get the description property: A description for this rule. Restricted to 140 chars. * @@ -137,20 +72,6 @@ public String flag() { return this.innerProperties() == null ? null : this.innerProperties().flag(); } - /** - * Set the flag property: Default rule flag. - * - * @param flag the flag value to set. - * @return the ActiveDefaultSecurityAdminRule object itself. - */ - public ActiveDefaultSecurityAdminRule withFlag(String flag) { - if (this.innerProperties() == null) { - this.innerProperties = new DefaultAdminPropertiesFormat(); - } - this.innerProperties().withFlag(flag); - return this; - } - /** * Get the protocol property: Network protocol this rule applies to. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java index 6c2e80b0bf72..3c750872ba55 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java @@ -1,24 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.network.fluent.models.AdminPropertiesFormat; import java.io.IOException; -import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.List; /** * Network admin rule. */ -@Fluent +@Immutable public final class ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { /* * Whether the rule is custom or default. @@ -33,7 +32,7 @@ public final class ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { /** * Creates an instance of ActiveSecurityAdminRule class. */ - public ActiveSecurityAdminRule() { + private ActiveSecurityAdminRule() { } /** @@ -55,70 +54,6 @@ AdminPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withId(String id) { - super.withId(id); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withCommitTime(OffsetDateTime commitTime) { - super.withCommitTime(commitTime); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withRegion(String region) { - super.withRegion(region); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withConfigurationDescription(String configurationDescription) { - super.withConfigurationDescription(configurationDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription) { - super.withRuleCollectionDescription(ruleCollectionDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule - withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { - super.withRuleCollectionAppliesToGroups(ruleCollectionAppliesToGroups); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveSecurityAdminRule withRuleGroups(List ruleGroups) { - super.withRuleGroups(ruleGroups); - return this; - } - /** * Get the description property: A description for this rule. Restricted to 140 chars. * @@ -128,20 +63,6 @@ public String description() { return this.innerProperties() == null ? null : this.innerProperties().description(); } - /** - * Set the description property: A description for this rule. Restricted to 140 chars. - * - * @param description the description value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDescription(description); - return this; - } - /** * Get the protocol property: Network protocol this rule applies to. * @@ -151,20 +72,6 @@ public SecurityConfigurationRuleProtocol protocol() { return this.innerProperties() == null ? null : this.innerProperties().protocol(); } - /** - * Set the protocol property: Network protocol this rule applies to. - * - * @param protocol the protocol value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withProtocol(SecurityConfigurationRuleProtocol protocol) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withProtocol(protocol); - return this; - } - /** * Get the sources property: The CIDR or source IP ranges. * @@ -174,20 +81,6 @@ public List sources() { return this.innerProperties() == null ? null : this.innerProperties().sources(); } - /** - * Set the sources property: The CIDR or source IP ranges. - * - * @param sources the sources value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withSources(List sources) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withSources(sources); - return this; - } - /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. * @@ -197,20 +90,6 @@ public List destinations() { return this.innerProperties() == null ? null : this.innerProperties().destinations(); } - /** - * Set the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * - * @param destinations the destinations value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withDestinations(List destinations) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDestinations(destinations); - return this; - } - /** * Get the sourcePortRanges property: The source port ranges. * @@ -220,20 +99,6 @@ public List sourcePortRanges() { return this.innerProperties() == null ? null : this.innerProperties().sourcePortRanges(); } - /** - * Set the sourcePortRanges property: The source port ranges. - * - * @param sourcePortRanges the sourcePortRanges value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withSourcePortRanges(List sourcePortRanges) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withSourcePortRanges(sourcePortRanges); - return this; - } - /** * Get the destinationPortRanges property: The destination port ranges. * @@ -243,20 +108,6 @@ public List destinationPortRanges() { return this.innerProperties() == null ? null : this.innerProperties().destinationPortRanges(); } - /** - * Set the destinationPortRanges property: The destination port ranges. - * - * @param destinationPortRanges the destinationPortRanges value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withDestinationPortRanges(List destinationPortRanges) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDestinationPortRanges(destinationPortRanges); - return this; - } - /** * Get the access property: Indicates the access allowed for this particular rule. * @@ -266,20 +117,6 @@ public SecurityConfigurationRuleAccess access() { return this.innerProperties() == null ? null : this.innerProperties().access(); } - /** - * Set the access property: Indicates the access allowed for this particular rule. - * - * @param access the access value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withAccess(SecurityConfigurationRuleAccess access) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withAccess(access); - return this; - } - /** * Get the priority property: The priority of the rule. The value can be between 1 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 @@ -291,22 +128,6 @@ public Integer priority() { return this.innerProperties() == null ? null : this.innerProperties().priority(); } - /** - * Set the priority property: The priority of the rule. The value can be between 1 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. - * - * @param priority the priority value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withPriority(Integer priority) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withPriority(priority); - return this; - } - /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. * @@ -316,20 +137,6 @@ public SecurityConfigurationRuleDirection direction() { return this.innerProperties() == null ? null : this.innerProperties().direction(); } - /** - * Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * - * @param direction the direction value to set. - * @return the ActiveSecurityAdminRule object itself. - */ - public ActiveSecurityAdminRule withDirection(SecurityConfigurationRuleDirection direction) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDirection(direction); - return this; - } - /** * Get the provisioningState property: The provisioning state of the resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixItem.java index 651cbaf197fb..47f8ab031735 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixType.java index 5a1d3d587393..5a2ddf3556f1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressPrefixType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class AddressPrefixType extends ExpandableStringEnum { /** - * Static value IPPrefix for AddressPrefixType. + * IPPrefix. */ public static final AddressPrefixType IPPREFIX = fromString("IPPrefix"); /** - * Static value ServiceTag for AddressPrefixType. + * ServiceTag. */ public static final AddressPrefixType SERVICE_TAG = fromString("ServiceTag"); /** - * Static value NetworkGroup for AddressPrefixType. + * NetworkGroup. */ public static final AddressPrefixType NETWORK_GROUP = fromString("NetworkGroup"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpace.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpace.java index fc4126421ebd..801c45b3f388 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpace.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpace.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpaceAggregationOption.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpaceAggregationOption.java index 502a8fd99091..e946263afbff 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpaceAggregationOption.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressSpaceAggregationOption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ */ public final class AddressSpaceAggregationOption extends ExpandableStringEnum { /** - * Static value None for AddressSpaceAggregationOption. + * None. */ public static final AddressSpaceAggregationOption NONE = fromString("None"); /** - * Static value Manual for AddressSpaceAggregationOption. + * Manual. */ public static final AddressSpaceAggregationOption MANUAL = fromString("Manual"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressUpdateAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressUpdateAction.java index e86c6dfc7d12..7e20e83b6e8c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressUpdateAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AddressUpdateAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -16,12 +16,12 @@ */ public final class AddressUpdateAction extends ExpandableStringEnum { /** - * Static value FullUpdate for AddressUpdateAction. + * FullUpdate. */ public static final AddressUpdateAction FULL_UPDATE = fromString("FullUpdate"); /** - * Static value PartialUpdate for AddressUpdateAction. + * PartialUpdate. */ public static final AddressUpdateAction PARTIAL_UPDATE = fromString("PartialUpdate"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java index e32dab0b2ec1..cf6edfce10a5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -40,17 +40,17 @@ public final class AdminRule extends BaseAdminRuleInner { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -100,7 +100,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -110,7 +110,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -120,7 +120,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -387,7 +387,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of AdminRule if the JsonReader was pointing to an instance of it, or null if it was pointing * to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the AdminRule. */ public static AdminRule fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleKind.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleKind.java index 3b80cbaafb1b..1d176c883c0f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleKind.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRuleKind.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AdminRuleKind extends ExpandableStringEnum { /** - * Static value Custom for AdminRuleKind. + * Custom. */ public static final AdminRuleKind CUSTOM = fromString("Custom"); /** - * Static value Default for AdminRuleKind. + * Default. */ public static final AdminRuleKind DEFAULT = fromString("Default"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminState.java index 4ee54acc3b9a..52bfd20a8d15 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ */ public final class AdminState extends ExpandableStringEnum { /** - * Static value Enabled for AdminState. + * Enabled. */ public static final AdminState ENABLED = fromString("Enabled"); /** - * Static value Disabled for AdminState. + * Disabled. */ public static final AdminState DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixProperties.java index ba57b4c6a683..b3c4f6fa99b6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixPropertiesValidationState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixPropertiesValidationState.java index 0126bb95eba8..91ea25964159 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixPropertiesValidationState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixPropertiesValidationState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,58 +13,58 @@ public final class AdvertisedPublicPrefixPropertiesValidationState extends ExpandableStringEnum { /** - * Static value NotConfigured for AdvertisedPublicPrefixPropertiesValidationState. + * NotConfigured. */ public static final AdvertisedPublicPrefixPropertiesValidationState NOT_CONFIGURED = fromString("NotConfigured"); /** - * Static value Configuring for AdvertisedPublicPrefixPropertiesValidationState. + * Configuring. */ public static final AdvertisedPublicPrefixPropertiesValidationState CONFIGURING = fromString("Configuring"); /** - * Static value Configured for AdvertisedPublicPrefixPropertiesValidationState. + * Configured. */ public static final AdvertisedPublicPrefixPropertiesValidationState CONFIGURED = fromString("Configured"); /** - * Static value ValidationNeeded for AdvertisedPublicPrefixPropertiesValidationState. + * ValidationNeeded. */ public static final AdvertisedPublicPrefixPropertiesValidationState VALIDATION_NEEDED = fromString("ValidationNeeded"); /** - * Static value ValidationFailed for AdvertisedPublicPrefixPropertiesValidationState. + * ValidationFailed. */ public static final AdvertisedPublicPrefixPropertiesValidationState VALIDATION_FAILED = fromString("ValidationFailed"); /** - * Static value ManualValidationNeeded for AdvertisedPublicPrefixPropertiesValidationState. + * ManualValidationNeeded. */ public static final AdvertisedPublicPrefixPropertiesValidationState MANUAL_VALIDATION_NEEDED = fromString("ManualValidationNeeded"); /** - * Static value AsnValidationFailed for AdvertisedPublicPrefixPropertiesValidationState. + * AsnValidationFailed. */ public static final AdvertisedPublicPrefixPropertiesValidationState ASN_VALIDATION_FAILED = fromString("AsnValidationFailed"); /** - * Static value CertificateMissingInRoutingRegistry for AdvertisedPublicPrefixPropertiesValidationState. + * CertificateMissingInRoutingRegistry. */ public static final AdvertisedPublicPrefixPropertiesValidationState CERTIFICATE_MISSING_IN_ROUTING_REGISTRY = fromString("CertificateMissingInRoutingRegistry"); /** - * Static value InvalidSignatureEncoding for AdvertisedPublicPrefixPropertiesValidationState. + * InvalidSignatureEncoding. */ public static final AdvertisedPublicPrefixPropertiesValidationState INVALID_SIGNATURE_ENCODING = fromString("InvalidSignatureEncoding"); /** - * Static value SignatureVerificationFailed for AdvertisedPublicPrefixPropertiesValidationState. + * SignatureVerificationFailed. */ public static final AdvertisedPublicPrefixPropertiesValidationState SIGNATURE_VERIFICATION_FAILED = fromString("SignatureVerificationFailed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAutoscaleConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAutoscaleConfiguration.java index 3e422b13eed5..dfe1ff21e41d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAutoscaleConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAutoscaleConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddress.java index 952e6f4f54ff..a685b09db8fd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddressPool.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddressPool.java index 7c2c117eb661..a2f1bcb6e90d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddressPool.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddressPool.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthHttpSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthHttpSettings.java index 3656ea6d76ac..5e4b1fa0dc85 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthHttpSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthHttpSettings.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Application gateway BackendHealthHttp settings. */ -@Fluent +@Immutable public final class ApplicationGatewayBackendHealthHttpSettings implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class ApplicationGatewayBackendHealthHttpSettings /** * Creates an instance of ApplicationGatewayBackendHealthHttpSettings class. */ - public ApplicationGatewayBackendHealthHttpSettings() { + private ApplicationGatewayBackendHealthHttpSettings() { } /** @@ -44,18 +44,6 @@ public ApplicationGatewayBackendHttpSettings backendHttpSettings() { return this.backendHttpSettings; } - /** - * Set the backendHttpSettings property: Reference to an ApplicationGatewayBackendHttpSettings resource. - * - * @param backendHttpSettings the backendHttpSettings value to set. - * @return the ApplicationGatewayBackendHealthHttpSettings object itself. - */ - public ApplicationGatewayBackendHealthHttpSettings - withBackendHttpSettings(ApplicationGatewayBackendHttpSettings backendHttpSettings) { - this.backendHttpSettings = backendHttpSettings; - return this; - } - /** * Get the servers property: List of ApplicationGatewayBackendHealthServer resources. * @@ -65,18 +53,6 @@ public List servers() { return this.servers; } - /** - * Set the servers property: List of ApplicationGatewayBackendHealthServer resources. - * - * @param servers the servers value to set. - * @return the ApplicationGatewayBackendHealthHttpSettings object itself. - */ - public ApplicationGatewayBackendHealthHttpSettings - withServers(List servers) { - this.servers = servers; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthPool.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthPool.java index 80640c597ce7..e8b53b6f7800 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthPool.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthPool.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Application gateway BackendHealth pool. */ -@Fluent +@Immutable public final class ApplicationGatewayBackendHealthPool implements JsonSerializable { /* @@ -31,7 +31,7 @@ public final class ApplicationGatewayBackendHealthPool /** * Creates an instance of ApplicationGatewayBackendHealthPool class. */ - public ApplicationGatewayBackendHealthPool() { + private ApplicationGatewayBackendHealthPool() { } /** @@ -43,18 +43,6 @@ public ApplicationGatewayBackendAddressPool backendAddressPool() { return this.backendAddressPool; } - /** - * Set the backendAddressPool property: Reference to an ApplicationGatewayBackendAddressPool resource. - * - * @param backendAddressPool the backendAddressPool value to set. - * @return the ApplicationGatewayBackendHealthPool object itself. - */ - public ApplicationGatewayBackendHealthPool - withBackendAddressPool(ApplicationGatewayBackendAddressPool backendAddressPool) { - this.backendAddressPool = backendAddressPool; - return this; - } - /** * Get the backendHttpSettingsCollection property: List of ApplicationGatewayBackendHealthHttpSettings resources. * @@ -64,18 +52,6 @@ public List backendHttpSettingsColl return this.backendHttpSettingsCollection; } - /** - * Set the backendHttpSettingsCollection property: List of ApplicationGatewayBackendHealthHttpSettings resources. - * - * @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set. - * @return the ApplicationGatewayBackendHealthPool object itself. - */ - public ApplicationGatewayBackendHealthPool withBackendHttpSettingsCollection( - List backendHttpSettingsCollection) { - this.backendHttpSettingsCollection = backendHttpSettingsCollection; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthServerHealth.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthServerHealth.java index dcbad95c25dd..7bc7e2b6211c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthServerHealth.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthServerHealth.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,27 +13,27 @@ public final class ApplicationGatewayBackendHealthServerHealth extends ExpandableStringEnum { /** - * Static value Unknown for ApplicationGatewayBackendHealthServerHealth. + * Unknown. */ public static final ApplicationGatewayBackendHealthServerHealth UNKNOWN = fromString("Unknown"); /** - * Static value Up for ApplicationGatewayBackendHealthServerHealth. + * Up. */ public static final ApplicationGatewayBackendHealthServerHealth UP = fromString("Up"); /** - * Static value Down for ApplicationGatewayBackendHealthServerHealth. + * Down. */ public static final ApplicationGatewayBackendHealthServerHealth DOWN = fromString("Down"); /** - * Static value Partial for ApplicationGatewayBackendHealthServerHealth. + * Partial. */ public static final ApplicationGatewayBackendHealthServerHealth PARTIAL = fromString("Partial"); /** - * Static value Draining for ApplicationGatewayBackendHealthServerHealth. + * Draining. */ public static final ApplicationGatewayBackendHealthServerHealth DRAINING = fromString("Draining"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHttpSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHttpSettings.java index 356ee828231f..10e0c0cbb61b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHttpSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHttpSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java index a11fae0a0bb5..e3afc5c07f28 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthConfiguration.java index 65984f363b7d..1e170224b02f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthVerificationModes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthVerificationModes.java index 72a6adab7b82..4a8135b4a555 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthVerificationModes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthVerificationModes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayClientAuthVerificationModes extends ExpandableStringEnum { /** - * Static value Strict for ApplicationGatewayClientAuthVerificationModes. + * Strict. */ public static final ApplicationGatewayClientAuthVerificationModes STRICT = fromString("Strict"); /** - * Static value Passthrough for ApplicationGatewayClientAuthVerificationModes. + * Passthrough. */ public static final ApplicationGatewayClientAuthVerificationModes PASSTHROUGH = fromString("Passthrough"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientRevocationOptions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientRevocationOptions.java index 35c3e08f4418..f21b88f18e33 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientRevocationOptions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientRevocationOptions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayClientRevocationOptions extends ExpandableStringEnum { /** - * Static value None for ApplicationGatewayClientRevocationOptions. + * None. */ public static final ApplicationGatewayClientRevocationOptions NONE = fromString("None"); /** - * Static value OCSP for ApplicationGatewayClientRevocationOptions. + * OCSP. */ public static final ApplicationGatewayClientRevocationOptions OCSP = fromString("OCSP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayConnectionDraining.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayConnectionDraining.java index 3c9fa0346a84..c5bf26087031 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayConnectionDraining.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayConnectionDraining.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCookieBasedAffinity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCookieBasedAffinity.java index 142b9020e634..cb308da28aef 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCookieBasedAffinity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCookieBasedAffinity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayCookieBasedAffinity extends ExpandableStringEnum { /** - * Static value Enabled for ApplicationGatewayCookieBasedAffinity. + * Enabled. */ public static final ApplicationGatewayCookieBasedAffinity ENABLED = fromString("Enabled"); /** - * Static value Disabled for ApplicationGatewayCookieBasedAffinity. + * Disabled. */ public static final ApplicationGatewayCookieBasedAffinity DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomError.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomError.java index b6346c88ecb9..2a292bc0119e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomError.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomError.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomErrorStatusCode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomErrorStatusCode.java index 992541d86e28..70214e17e9ed 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomErrorStatusCode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomErrorStatusCode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,47 +13,47 @@ public final class ApplicationGatewayCustomErrorStatusCode extends ExpandableStringEnum { /** - * Static value HttpStatus400 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus400. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS400 = fromString("HttpStatus400"); /** - * Static value HttpStatus403 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus403. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS403 = fromString("HttpStatus403"); /** - * Static value HttpStatus404 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus404. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS404 = fromString("HttpStatus404"); /** - * Static value HttpStatus405 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus405. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS405 = fromString("HttpStatus405"); /** - * Static value HttpStatus408 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus408. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS408 = fromString("HttpStatus408"); /** - * Static value HttpStatus500 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus500. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS500 = fromString("HttpStatus500"); /** - * Static value HttpStatus502 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus502. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS502 = fromString("HttpStatus502"); /** - * Static value HttpStatus503 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus503. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS503 = fromString("HttpStatus503"); /** - * Static value HttpStatus504 for ApplicationGatewayCustomErrorStatusCode. + * HttpStatus504. */ public static final ApplicationGatewayCustomErrorStatusCode HTTP_STATUS504 = fromString("HttpStatus504"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayEntraJwtValidationConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayEntraJwtValidationConfig.java index c94456f05baa..ceb9cd70d11c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayEntraJwtValidationConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayEntraJwtValidationConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallDisabledRuleGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallDisabledRuleGroup.java index 16c4759b7e33..e382824b69ea 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallDisabledRuleGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallDisabledRuleGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java index b657b3da798c..d35f9bb2a757 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java index 51b5b39cfc45..901fa9838ce1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -16,7 +16,7 @@ /** * Properties of the web application firewall rule set. */ -@Fluent +@Immutable public final class ApplicationGatewayFirewallManifestRuleSet implements JsonSerializable { /* @@ -47,7 +47,7 @@ public final class ApplicationGatewayFirewallManifestRuleSet /** * Creates an instance of ApplicationGatewayFirewallManifestRuleSet class. */ - public ApplicationGatewayFirewallManifestRuleSet() { + private ApplicationGatewayFirewallManifestRuleSet() { } /** @@ -59,17 +59,6 @@ public String ruleSetType() { return this.ruleSetType; } - /** - * Set the ruleSetType property: The type of the web application firewall rule set. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ApplicationGatewayFirewallManifestRuleSet object itself. - */ - public ApplicationGatewayFirewallManifestRuleSet withRuleSetType(String ruleSetType) { - this.ruleSetType = ruleSetType; - return this; - } - /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. * @@ -79,17 +68,6 @@ public String ruleSetVersion() { return this.ruleSetVersion; } - /** - * Set the ruleSetVersion property: The version of the web application firewall rule set type. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ApplicationGatewayFirewallManifestRuleSet object itself. - */ - public ApplicationGatewayFirewallManifestRuleSet withRuleSetVersion(String ruleSetVersion) { - this.ruleSetVersion = ruleSetVersion; - return this; - } - /** * Get the status property: The rule set status. * @@ -99,17 +77,6 @@ public ApplicationGatewayRuleSetStatusOptions status() { return this.status; } - /** - * Set the status property: The rule set status. - * - * @param status the status value to set. - * @return the ApplicationGatewayFirewallManifestRuleSet object itself. - */ - public ApplicationGatewayFirewallManifestRuleSet withStatus(ApplicationGatewayRuleSetStatusOptions status) { - this.status = status; - return this; - } - /** * Get the tiers property: Tier of an application gateway that support the rule set. * @@ -119,17 +86,6 @@ public List tiers() { return this.tiers; } - /** - * Set the tiers property: Tier of an application gateway that support the rule set. - * - * @param tiers the tiers value to set. - * @return the ApplicationGatewayFirewallManifestRuleSet object itself. - */ - public ApplicationGatewayFirewallManifestRuleSet withTiers(List tiers) { - this.tiers = tiers; - return this; - } - /** * Get the ruleGroups property: The rule groups of the web application firewall rule set. * @@ -139,18 +95,6 @@ public List ruleGroups() { return this.ruleGroups; } - /** - * Set the ruleGroups property: The rule groups of the web application firewall rule set. - * - * @param ruleGroups the ruleGroups value to set. - * @return the ApplicationGatewayFirewallManifestRuleSet object itself. - */ - public ApplicationGatewayFirewallManifestRuleSet - withRuleGroups(List ruleGroups) { - this.ruleGroups = ruleGroups; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallMode.java index 350a5f7b88f0..7d9459f13909 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ApplicationGatewayFirewallMode extends ExpandableStringEnum { /** - * Static value Detection for ApplicationGatewayFirewallMode. + * Detection. */ public static final ApplicationGatewayFirewallMode DETECTION = fromString("Detection"); /** - * Static value Prevention for ApplicationGatewayFirewallMode. + * Prevention. */ public static final ApplicationGatewayFirewallMode PREVENTION = fromString("Prevention"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRateLimitDuration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRateLimitDuration.java index 9f5dbea1a187..c84b04a4ed6b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRateLimitDuration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRateLimitDuration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayFirewallRateLimitDuration extends ExpandableStringEnum { /** - * Static value OneMin for ApplicationGatewayFirewallRateLimitDuration. + * OneMin. */ public static final ApplicationGatewayFirewallRateLimitDuration ONE_MIN = fromString("OneMin"); /** - * Static value FiveMins for ApplicationGatewayFirewallRateLimitDuration. + * FiveMins. */ public static final ApplicationGatewayFirewallRateLimitDuration FIVE_MINS = fromString("FiveMins"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRule.java index 13c8b2e728c3..be1805e37bac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * A web application firewall rule. */ -@Fluent +@Immutable public final class ApplicationGatewayFirewallRule implements JsonSerializable { /* * The identifier of the web application firewall rule. @@ -49,7 +49,7 @@ public final class ApplicationGatewayFirewallRule implements JsonSerializable { /* @@ -37,7 +37,7 @@ public final class ApplicationGatewayFirewallRuleGroup /** * Creates an instance of ApplicationGatewayFirewallRuleGroup class. */ - public ApplicationGatewayFirewallRuleGroup() { + private ApplicationGatewayFirewallRuleGroup() { } /** @@ -49,17 +49,6 @@ public String ruleGroupName() { return this.ruleGroupName; } - /** - * Set the ruleGroupName property: The name of the web application firewall rule group. - * - * @param ruleGroupName the ruleGroupName value to set. - * @return the ApplicationGatewayFirewallRuleGroup object itself. - */ - public ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupName) { - this.ruleGroupName = ruleGroupName; - return this; - } - /** * Get the description property: The description of the web application firewall rule group. * @@ -69,17 +58,6 @@ public String description() { return this.description; } - /** - * Set the description property: The description of the web application firewall rule group. - * - * @param description the description value to set. - * @return the ApplicationGatewayFirewallRuleGroup object itself. - */ - public ApplicationGatewayFirewallRuleGroup withDescription(String description) { - this.description = description; - return this; - } - /** * Get the rules property: The rules of the web application firewall rule group. * @@ -89,17 +67,6 @@ public List rules() { return this.rules; } - /** - * Set the rules property: The rules of the web application firewall rule group. - * - * @param rules the rules value to set. - * @return the ApplicationGatewayFirewallRuleGroup object itself. - */ - public ApplicationGatewayFirewallRuleGroup withRules(List rules) { - this.rules = rules; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleSet.java index 0a6fbe904934..5a6561f545c3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleSet.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -17,7 +17,7 @@ /** * A web application firewall rule set. */ -@Fluent +@Immutable public final class ApplicationGatewayFirewallRuleSet extends Resource { /* * Properties of the application gateway firewall rule set. @@ -42,7 +42,7 @@ public final class ApplicationGatewayFirewallRuleSet extends Resource { /** * Creates an instance of ApplicationGatewayFirewallRuleSet class. */ - public ApplicationGatewayFirewallRuleSet() { + private ApplicationGatewayFirewallRuleSet() { } /** @@ -63,17 +63,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource ID. - * - * @param id the id value to set. - * @return the ApplicationGatewayFirewallRuleSet object itself. - */ - public ApplicationGatewayFirewallRuleSet withId(String id) { - this.id = id; - return this; - } - /** * Get the type property: The type of the resource. * @@ -94,24 +83,6 @@ public String name() { return this.name; } - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewayFirewallRuleSet withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ApplicationGatewayFirewallRuleSet withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Get the provisioningState property: The provisioning state of the web application firewall rule set. * @@ -130,20 +101,6 @@ public String ruleSetType() { return this.innerProperties() == null ? null : this.innerProperties().ruleSetType(); } - /** - * Set the ruleSetType property: The type of the web application firewall rule set. - * - * @param ruleSetType the ruleSetType value to set. - * @return the ApplicationGatewayFirewallRuleSet object itself. - */ - public ApplicationGatewayFirewallRuleSet withRuleSetType(String ruleSetType) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat(); - } - this.innerProperties().withRuleSetType(ruleSetType); - return this; - } - /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. * @@ -153,20 +110,6 @@ public String ruleSetVersion() { return this.innerProperties() == null ? null : this.innerProperties().ruleSetVersion(); } - /** - * Set the ruleSetVersion property: The version of the web application firewall rule set type. - * - * @param ruleSetVersion the ruleSetVersion value to set. - * @return the ApplicationGatewayFirewallRuleSet object itself. - */ - public ApplicationGatewayFirewallRuleSet withRuleSetVersion(String ruleSetVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat(); - } - this.innerProperties().withRuleSetVersion(ruleSetVersion); - return this; - } - /** * Get the ruleGroups property: The rule groups of the web application firewall rule set. * @@ -176,20 +119,6 @@ public List ruleGroups() { return this.innerProperties() == null ? null : this.innerProperties().ruleGroups(); } - /** - * Set the ruleGroups property: The rule groups of the web application firewall rule set. - * - * @param ruleGroups the ruleGroups value to set. - * @return the ApplicationGatewayFirewallRuleSet object itself. - */ - public ApplicationGatewayFirewallRuleSet withRuleGroups(List ruleGroups) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat(); - } - this.innerProperties().withRuleGroups(ruleGroups); - return this; - } - /** * Get the tiers property: Tier of an application gateway that support the rule set. * @@ -199,20 +128,6 @@ public List tiers() { return this.innerProperties() == null ? null : this.innerProperties().tiers(); } - /** - * Set the tiers property: Tier of an application gateway that support the rule set. - * - * @param tiers the tiers value to set. - * @return the ApplicationGatewayFirewallRuleSet object itself. - */ - public ApplicationGatewayFirewallRuleSet withTiers(List tiers) { - if (this.innerProperties() == null) { - this.innerProperties = new ApplicationGatewayFirewallRuleSetPropertiesFormat(); - } - this.innerProperties().withTiers(tiers); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallUserSessionVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallUserSessionVariable.java index cc3376eccecf..f9582f11f1fc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallUserSessionVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallUserSessionVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,28 +13,28 @@ public final class ApplicationGatewayFirewallUserSessionVariable extends ExpandableStringEnum { /** - * Static value ClientAddr for ApplicationGatewayFirewallUserSessionVariable. + * ClientAddr. */ public static final ApplicationGatewayFirewallUserSessionVariable CLIENT_ADDR = fromString("ClientAddr"); /** - * Static value GeoLocation for ApplicationGatewayFirewallUserSessionVariable. + * GeoLocation. */ public static final ApplicationGatewayFirewallUserSessionVariable GEO_LOCATION = fromString("GeoLocation"); /** - * Static value None for ApplicationGatewayFirewallUserSessionVariable. + * None. */ public static final ApplicationGatewayFirewallUserSessionVariable NONE = fromString("None"); /** - * Static value ClientAddrXFFHeader for ApplicationGatewayFirewallUserSessionVariable. + * ClientAddrXFFHeader. */ public static final ApplicationGatewayFirewallUserSessionVariable CLIENT_ADDR_XFFHEADER = fromString("ClientAddrXFFHeader"); /** - * Static value GeoLocationXFFHeader for ApplicationGatewayFirewallUserSessionVariable. + * GeoLocationXFFHeader. */ public static final ApplicationGatewayFirewallUserSessionVariable GEO_LOCATION_XFFHEADER = fromString("GeoLocationXFFHeader"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayForContainersReferenceDefinition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayForContainersReferenceDefinition.java index b0524b202134..5a9e67c3ca07 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayForContainersReferenceDefinition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayForContainersReferenceDefinition.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -15,7 +15,7 @@ /** * Defines an application gateway for containers reference. */ -@Fluent +@Immutable public final class ApplicationGatewayForContainersReferenceDefinition implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class ApplicationGatewayForContainersReferenceDefinition /** * Creates an instance of ApplicationGatewayForContainersReferenceDefinition class. */ - public ApplicationGatewayForContainersReferenceDefinition() { + private ApplicationGatewayForContainersReferenceDefinition() { } /** @@ -38,17 +38,6 @@ public String id() { return this.id; } - /** - * Set the id property: Resource Id of the application gateway for containers. - * - * @param id the id value to set. - * @return the ApplicationGatewayForContainersReferenceDefinition object itself. - */ - public ApplicationGatewayForContainersReferenceDefinition withId(String id) { - this.id = id; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendIpConfiguration.java index a8347973e441..b698e6c73b62 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendPort.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendPort.java index f5b06ad56fd7..5b4ebc8aa7da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendPort.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendPort.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayGlobalConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayGlobalConfiguration.java index 65af7ac699d0..1b253cf63db2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayGlobalConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayGlobalConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java index bb121c3a2e57..08387577eba4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java index 6374cb321f03..4e61fc664015 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionAlgorithm.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionAlgorithm.java index 1fbfc9b0bc65..617e1df1a268 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionAlgorithm.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionAlgorithm.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class ApplicationGatewayLoadDistributionAlgorithm extends ExpandableStringEnum { /** - * Static value RoundRobin for ApplicationGatewayLoadDistributionAlgorithm. + * RoundRobin. */ public static final ApplicationGatewayLoadDistributionAlgorithm ROUND_ROBIN = fromString("RoundRobin"); /** - * Static value LeastConnections for ApplicationGatewayLoadDistributionAlgorithm. + * LeastConnections. */ public static final ApplicationGatewayLoadDistributionAlgorithm LEAST_CONNECTIONS = fromString("LeastConnections"); /** - * Static value IpHash for ApplicationGatewayLoadDistributionAlgorithm. + * IpHash. */ public static final ApplicationGatewayLoadDistributionAlgorithm IP_HASH = fromString("IpHash"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionPolicy.java index 3b2cd98268d6..988c605beb66 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionTarget.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionTarget.java index 463bfafbdb3c..afe758b3b6fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionTarget.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionTarget.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java index 215a43667f5d..8d72bddcfd93 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java index 240ff9e7df66..e3bc47cded46 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ApplicationGatewayOperationalState extends ExpandableStringEnum { /** - * Static value Stopped for ApplicationGatewayOperationalState. + * Stopped. */ public static final ApplicationGatewayOperationalState STOPPED = fromString("Stopped"); /** - * Static value Starting for ApplicationGatewayOperationalState. + * Starting. */ public static final ApplicationGatewayOperationalState STARTING = fromString("Starting"); /** - * Static value Running for ApplicationGatewayOperationalState. + * Running. */ public static final ApplicationGatewayOperationalState RUNNING = fromString("Running"); /** - * Static value Stopping for ApplicationGatewayOperationalState. + * Stopping. */ public static final ApplicationGatewayOperationalState STOPPING = fromString("Stopping"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java index 57c5874f7883..317fc2664e4b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkIpConfiguration.java index 80e43e96122c..f68b827e5067 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProbeHealthResponseMatch.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProbeHealthResponseMatch.java index b8511c3716e4..f23bf6043216 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProbeHealthResponseMatch.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProbeHealthResponseMatch.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProtocol.java index 386bbd17f421..0d284993158a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ApplicationGatewayProtocol extends ExpandableStringEnum { /** - * Static value Http for ApplicationGatewayProtocol. + * Supported for httpListeners and backendHttpSettingsCollection properties. */ public static final ApplicationGatewayProtocol HTTP = fromString("Http"); /** - * Static value Https for ApplicationGatewayProtocol. + * Supported for httpListeners and backendHttpSettingsCollection properties. */ public static final ApplicationGatewayProtocol HTTPS = fromString("Https"); /** - * Static value Tcp for ApplicationGatewayProtocol. + * Supported for listeners and backendSettingsCollection properties. */ public static final ApplicationGatewayProtocol TCP = fromString("Tcp"); /** - * Static value Tls for ApplicationGatewayProtocol. + * Supported for listeners and backendSettingsCollection properties. */ public static final ApplicationGatewayProtocol TLS = fromString("Tls"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRedirectType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRedirectType.java index 9ee51f472001..a538b734abb5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRedirectType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRedirectType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ApplicationGatewayRedirectType extends ExpandableStringEnum { /** - * Static value Permanent for ApplicationGatewayRedirectType. + * Permanent. */ public static final ApplicationGatewayRedirectType PERMANENT = fromString("Permanent"); /** - * Static value Found for ApplicationGatewayRedirectType. + * Found. */ public static final ApplicationGatewayRedirectType FOUND = fromString("Found"); /** - * Static value SeeOther for ApplicationGatewayRedirectType. + * SeeOther. */ public static final ApplicationGatewayRedirectType SEE_OTHER = fromString("SeeOther"); /** - * Static value Temporary for ApplicationGatewayRedirectType. + * Temporary. */ public static final ApplicationGatewayRedirectType TEMPORARY = fromString("Temporary"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRuleType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRuleType.java index e2f0d6a02fdd..a0511b8e9841 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRuleType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRuleType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayRequestRoutingRuleType extends ExpandableStringEnum { /** - * Static value Basic for ApplicationGatewayRequestRoutingRuleType. + * Basic. */ public static final ApplicationGatewayRequestRoutingRuleType BASIC = fromString("Basic"); /** - * Static value PathBasedRouting for ApplicationGatewayRequestRoutingRuleType. + * PathBasedRouting. */ public static final ApplicationGatewayRequestRoutingRuleType PATH_BASED_ROUTING = fromString("PathBasedRouting"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java index c2829bf39add..da773e3c3ce1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleActionSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleActionSet.java index 23cb249b4e53..9c2334a86e01 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleActionSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleActionSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java index bec5fe316562..67f6d947b4df 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleSet.java index 264889084181..b662b0d9dffe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRoutingRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRoutingRule.java index 3ae3e2551ef4..f9711a9beb6f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRoutingRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRoutingRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRuleSetStatusOptions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRuleSetStatusOptions.java index 5315f0ef5b39..4b3744ed9b78 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRuleSetStatusOptions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRuleSetStatusOptions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class ApplicationGatewayRuleSetStatusOptions extends ExpandableStringEnum { /** - * Static value Preview for ApplicationGatewayRuleSetStatusOptions. + * Preview. */ public static final ApplicationGatewayRuleSetStatusOptions PREVIEW = fromString("Preview"); /** - * Static value GA for ApplicationGatewayRuleSetStatusOptions. + * GA. */ public static final ApplicationGatewayRuleSetStatusOptions GA = fromString("GA"); /** - * Static value Supported for ApplicationGatewayRuleSetStatusOptions. + * Supported. */ public static final ApplicationGatewayRuleSetStatusOptions SUPPORTED = fromString("Supported"); /** - * Static value Deprecated for ApplicationGatewayRuleSetStatusOptions. + * Deprecated. */ public static final ApplicationGatewayRuleSetStatusOptions DEPRECATED = fromString("Deprecated"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySku.java index 68555fab3f09..6732d01e8dbd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java index e2b6f63d6dac..895e19b6aa52 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ApplicationGatewaySkuFamily extends ExpandableStringEnum { /** - * Static value Generation_1 for ApplicationGatewaySkuFamily. + * Generation_1. */ public static final ApplicationGatewaySkuFamily GENERATION_1 = fromString("Generation_1"); /** - * Static value Generation_2 for ApplicationGatewaySkuFamily. + * Generation_2. */ public static final ApplicationGatewaySkuFamily GENERATION_2 = fromString("Generation_2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuName.java index 75d2ed8d0310..6c49b616b501 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,42 +12,42 @@ */ public final class ApplicationGatewaySkuName extends ExpandableStringEnum { /** - * Static value Standard_Small for ApplicationGatewaySkuName. + * Standard_Small. */ public static final ApplicationGatewaySkuName STANDARD_SMALL = fromString("Standard_Small"); /** - * Static value Standard_Medium for ApplicationGatewaySkuName. + * Standard_Medium. */ public static final ApplicationGatewaySkuName STANDARD_MEDIUM = fromString("Standard_Medium"); /** - * Static value Standard_Large for ApplicationGatewaySkuName. + * Standard_Large. */ public static final ApplicationGatewaySkuName STANDARD_LARGE = fromString("Standard_Large"); /** - * Static value WAF_Medium for ApplicationGatewaySkuName. + * WAF_Medium. */ public static final ApplicationGatewaySkuName WAF_MEDIUM = fromString("WAF_Medium"); /** - * Static value WAF_Large for ApplicationGatewaySkuName. + * WAF_Large. */ public static final ApplicationGatewaySkuName WAF_LARGE = fromString("WAF_Large"); /** - * Static value Standard_v2 for ApplicationGatewaySkuName. + * Standard_v2. */ public static final ApplicationGatewaySkuName STANDARD_V2 = fromString("Standard_v2"); /** - * Static value WAF_v2 for ApplicationGatewaySkuName. + * WAF_v2. */ public static final ApplicationGatewaySkuName WAF_V2 = fromString("WAF_v2"); /** - * Static value Basic for ApplicationGatewaySkuName. + * Basic. */ public static final ApplicationGatewaySkuName BASIC = fromString("Basic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslCipherSuite.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslCipherSuite.java index 584f48bd5075..e348fb16199f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslCipherSuite.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslCipherSuite.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,169 +12,169 @@ */ public final class ApplicationGatewaySslCipherSuite extends ExpandableStringEnum { /** - * Static value TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = fromString("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"); /** - * Static value TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = fromString("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"); /** - * Static value TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = fromString("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"); /** - * Static value TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = fromString("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"); /** - * Static value TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_DHE_RSA_WITH_AES_256_GCM_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = fromString("TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"); /** - * Static value TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_DHE_RSA_WITH_AES_128_GCM_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = fromString("TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"); /** - * Static value TLS_DHE_RSA_WITH_AES_256_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_DHE_RSA_WITH_AES_256_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA = fromString("TLS_DHE_RSA_WITH_AES_256_CBC_SHA"); /** - * Static value TLS_DHE_RSA_WITH_AES_128_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_DHE_RSA_WITH_AES_128_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA = fromString("TLS_DHE_RSA_WITH_AES_128_CBC_SHA"); /** - * Static value TLS_RSA_WITH_AES_256_GCM_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_256_GCM_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_256_GCM_SHA384 = fromString("TLS_RSA_WITH_AES_256_GCM_SHA384"); /** - * Static value TLS_RSA_WITH_AES_128_GCM_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_128_GCM_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_128_GCM_SHA256 = fromString("TLS_RSA_WITH_AES_128_GCM_SHA256"); /** - * Static value TLS_RSA_WITH_AES_256_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_256_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_256_CBC_SHA256 = fromString("TLS_RSA_WITH_AES_256_CBC_SHA256"); /** - * Static value TLS_RSA_WITH_AES_128_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_128_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_128_CBC_SHA256 = fromString("TLS_RSA_WITH_AES_128_CBC_SHA256"); /** - * Static value TLS_RSA_WITH_AES_256_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_256_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_256_CBC_SHA = fromString("TLS_RSA_WITH_AES_256_CBC_SHA"); /** - * Static value TLS_RSA_WITH_AES_128_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_AES_128_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_AES_128_CBC_SHA = fromString("TLS_RSA_WITH_AES_128_CBC_SHA"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = fromString("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = fromString("TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = fromString("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = fromString("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = fromString("TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"); /** - * Static value TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = fromString("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"); /** - * Static value TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_DHE_DSS_WITH_AES_256_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = fromString("TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"); /** - * Static value TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_DHE_DSS_WITH_AES_128_CBC_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = fromString("TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"); /** - * Static value TLS_DHE_DSS_WITH_AES_256_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_DHE_DSS_WITH_AES_256_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_AES_256_CBC_SHA = fromString("TLS_DHE_DSS_WITH_AES_256_CBC_SHA"); /** - * Static value TLS_DHE_DSS_WITH_AES_128_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_DHE_DSS_WITH_AES_128_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA = fromString("TLS_DHE_DSS_WITH_AES_128_CBC_SHA"); /** - * Static value TLS_RSA_WITH_3DES_EDE_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_RSA_WITH_3DES_EDE_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA = fromString("TLS_RSA_WITH_3DES_EDE_CBC_SHA"); /** - * Static value TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA for ApplicationGatewaySslCipherSuite. + * TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA. */ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = fromString("TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA"); /** - * Static value TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = fromString("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"); /** - * Static value TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 for ApplicationGatewaySslCipherSuite. + * TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384. */ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = fromString("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicy.java index 7e9e43fcd58d..90582839ca47 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyName.java index d2dc811b936c..4e13dcffdf4e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,31 +12,31 @@ */ public final class ApplicationGatewaySslPolicyName extends ExpandableStringEnum { /** - * Static value AppGwSslPolicy20150501 for ApplicationGatewaySslPolicyName. + * AppGwSslPolicy20150501. */ public static final ApplicationGatewaySslPolicyName APP_GW_SSL_POLICY20150501 = fromString("AppGwSslPolicy20150501"); /** - * Static value AppGwSslPolicy20170401 for ApplicationGatewaySslPolicyName. + * AppGwSslPolicy20170401. */ public static final ApplicationGatewaySslPolicyName APP_GW_SSL_POLICY20170401 = fromString("AppGwSslPolicy20170401"); /** - * Static value AppGwSslPolicy20170401S for ApplicationGatewaySslPolicyName. + * AppGwSslPolicy20170401S. */ public static final ApplicationGatewaySslPolicyName APP_GW_SSL_POLICY20170401S = fromString("AppGwSslPolicy20170401S"); /** - * Static value AppGwSslPolicy20220101 for ApplicationGatewaySslPolicyName. + * AppGwSslPolicy20220101. */ public static final ApplicationGatewaySslPolicyName APP_GW_SSL_POLICY20220101 = fromString("AppGwSslPolicy20220101"); /** - * Static value AppGwSslPolicy20220101S for ApplicationGatewaySslPolicyName. + * AppGwSslPolicy20220101S. */ public static final ApplicationGatewaySslPolicyName APP_GW_SSL_POLICY20220101S = fromString("AppGwSslPolicy20220101S"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyType.java index 0186bdce2ae3..953aa883833a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class ApplicationGatewaySslPolicyType extends ExpandableStringEnum { /** - * Static value Predefined for ApplicationGatewaySslPolicyType. + * Predefined. */ public static final ApplicationGatewaySslPolicyType PREDEFINED = fromString("Predefined"); /** - * Static value Custom for ApplicationGatewaySslPolicyType. + * Custom. */ public static final ApplicationGatewaySslPolicyType CUSTOM = fromString("Custom"); /** - * Static value CustomV2 for ApplicationGatewaySslPolicyType. + * CustomV2. */ public static final ApplicationGatewaySslPolicyType CUSTOM_V2 = fromString("CustomV2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProfile.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProfile.java index 39a091e6f21f..b9fc68d2ca1b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProfile.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProfile.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProtocol.java index 68079caa3324..dc4febe5a420 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ApplicationGatewaySslProtocol extends ExpandableStringEnum { /** - * Static value TLSv1_0 for ApplicationGatewaySslProtocol. + * TLSv1_0. */ public static final ApplicationGatewaySslProtocol TLSV1_0 = fromString("TLSv1_0"); /** - * Static value TLSv1_1 for ApplicationGatewaySslProtocol. + * TLSv1_1. */ public static final ApplicationGatewaySslProtocol TLSV1_1 = fromString("TLSv1_1"); /** - * Static value TLSv1_2 for ApplicationGatewaySslProtocol. + * TLSv1_2. */ public static final ApplicationGatewaySslProtocol TLSV1_2 = fromString("TLSv1_2"); /** - * Static value TLSv1_3 for ApplicationGatewaySslProtocol. + * TLSv1_3. */ public static final ApplicationGatewaySslProtocol TLSV1_3 = fromString("TLSv1_3"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTier.java index b6be970f364b..629c50166bba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class ApplicationGatewayTier extends ExpandableStringEnum { /** - * Static value Standard for ApplicationGatewayTier. + * Standard. */ public static final ApplicationGatewayTier STANDARD = fromString("Standard"); /** - * Static value WAF for ApplicationGatewayTier. + * WAF. */ public static final ApplicationGatewayTier WAF = fromString("WAF"); /** - * Static value Standard_v2 for ApplicationGatewayTier. + * Standard_v2. */ public static final ApplicationGatewayTier STANDARD_V2 = fromString("Standard_v2"); /** - * Static value WAF_v2 for ApplicationGatewayTier. + * WAF_v2. */ public static final ApplicationGatewayTier WAF_V2 = fromString("WAF_v2"); /** - * Static value Basic for ApplicationGatewayTier. + * Basic. */ public static final ApplicationGatewayTier BASIC = fromString("Basic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTierTypes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTierTypes.java index 93f40b4ba0e0..c37ce23ea1b5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTierTypes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTierTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ApplicationGatewayTierTypes extends ExpandableStringEnum { /** - * Static value Standard for ApplicationGatewayTierTypes. + * Standard. */ public static final ApplicationGatewayTierTypes STANDARD = fromString("Standard"); /** - * Static value WAF for ApplicationGatewayTierTypes. + * WAF. */ public static final ApplicationGatewayTierTypes WAF = fromString("WAF"); /** - * Static value Standard_v2 for ApplicationGatewayTierTypes. + * Standard_v2. */ public static final ApplicationGatewayTierTypes STANDARD_V2 = fromString("Standard_v2"); /** - * Static value WAF_v2 for ApplicationGatewayTierTypes. + * WAF_v2. */ public static final ApplicationGatewayTierTypes WAF_V2 = fromString("WAF_v2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedClientCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedClientCertificate.java index 7d3675ad1348..f9eb19e46099 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedClientCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedClientCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedRootCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedRootCertificate.java index 05c616abb7b7..e856689bea8b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedRootCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedRootCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUnAuthorizedRequestAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUnAuthorizedRequestAction.java index 55322e652ea9..578684260ca0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUnAuthorizedRequestAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUnAuthorizedRequestAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayUnAuthorizedRequestAction extends ExpandableStringEnum { /** - * Static value Deny for ApplicationGatewayUnAuthorizedRequestAction. + * Deny. */ public static final ApplicationGatewayUnAuthorizedRequestAction DENY = fromString("Deny"); /** - * Static value Allow for ApplicationGatewayUnAuthorizedRequestAction. + * Allow. */ public static final ApplicationGatewayUnAuthorizedRequestAction ALLOW = fromString("Allow"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java index 13cab2748c83..5e61bf2da604 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleActionTypes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleActionTypes.java index 84a10aeb1c50..4df817cc8a26 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleActionTypes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleActionTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,27 +13,27 @@ public final class ApplicationGatewayWafRuleActionTypes extends ExpandableStringEnum { /** - * Static value None for ApplicationGatewayWafRuleActionTypes. + * None. */ public static final ApplicationGatewayWafRuleActionTypes NONE = fromString("None"); /** - * Static value AnomalyScoring for ApplicationGatewayWafRuleActionTypes. + * AnomalyScoring. */ public static final ApplicationGatewayWafRuleActionTypes ANOMALY_SCORING = fromString("AnomalyScoring"); /** - * Static value Allow for ApplicationGatewayWafRuleActionTypes. + * Allow. */ public static final ApplicationGatewayWafRuleActionTypes ALLOW = fromString("Allow"); /** - * Static value Block for ApplicationGatewayWafRuleActionTypes. + * Block. */ public static final ApplicationGatewayWafRuleActionTypes BLOCK = fromString("Block"); /** - * Static value Log for ApplicationGatewayWafRuleActionTypes. + * Log. */ public static final ApplicationGatewayWafRuleActionTypes LOG = fromString("Log"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleSensitivityTypes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleSensitivityTypes.java index b89d313ade9c..ec3556b9fdd6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleSensitivityTypes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleSensitivityTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class ApplicationGatewayWafRuleSensitivityTypes extends ExpandableStringEnum { /** - * Static value Low for ApplicationGatewayWafRuleSensitivityTypes. + * Low. */ public static final ApplicationGatewayWafRuleSensitivityTypes LOW = fromString("Low"); /** - * Static value Medium for ApplicationGatewayWafRuleSensitivityTypes. + * Medium. */ public static final ApplicationGatewayWafRuleSensitivityTypes MEDIUM = fromString("Medium"); /** - * Static value High for ApplicationGatewayWafRuleSensitivityTypes. + * High. */ public static final ApplicationGatewayWafRuleSensitivityTypes HIGH = fromString("High"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleStateTypes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleStateTypes.java index a50f6b9f2f5b..0fd711d9d360 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleStateTypes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleStateTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ApplicationGatewayWafRuleStateTypes extends ExpandableStringEnum { /** - * Static value Enabled for ApplicationGatewayWafRuleStateTypes. + * Enabled. */ public static final ApplicationGatewayWafRuleStateTypes ENABLED = fromString("Enabled"); /** - * Static value Disabled for ApplicationGatewayWafRuleStateTypes. + * Disabled. */ public static final ApplicationGatewayWafRuleStateTypes DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java index d815ed730195..3aaa5c1dc834 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -67,7 +67,7 @@ public final class ApplicationGatewayWebApplicationFirewallConfiguration /* * The exclusion list. */ - private List exclusions; + private ApplicationGatewayFirewallExclusion exclusions; /** * Creates an instance of ApplicationGatewayWebApplicationFirewallConfiguration class. @@ -263,7 +263,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimit * * @return the exclusions value. */ - public List exclusions() { + public ApplicationGatewayFirewallExclusion exclusions() { return this.exclusions; } @@ -274,7 +274,7 @@ public List exclusions() { * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ public ApplicationGatewayWebApplicationFirewallConfiguration - withExclusions(List exclusions) { + withExclusions(ApplicationGatewayFirewallExclusion exclusions) { this.exclusions = exclusions; return this; } @@ -304,7 +304,7 @@ public void validate() { disabledRuleGroups().forEach(e -> e.validate()); } if (exclusions() != null) { - exclusions().forEach(e -> e.validate()); + exclusions().validate(); } } @@ -327,7 +327,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("maxRequestBodySize", this.maxRequestBodySize); jsonWriter.writeNumberField("maxRequestBodySizeInKb", this.maxRequestBodySizeInKb); jsonWriter.writeNumberField("fileUploadLimitInMb", this.fileUploadLimitInMb); - jsonWriter.writeArrayField("exclusions", this.exclusions, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("exclusions", this.exclusions); return jsonWriter.writeEndObject(); } @@ -377,9 +377,8 @@ public static ApplicationGatewayWebApplicationFirewallConfiguration fromJson(Jso deserializedApplicationGatewayWebApplicationFirewallConfiguration.fileUploadLimitInMb = reader.getNullable(JsonReader::getInt); } else if ("exclusions".equals(fieldName)) { - List exclusions - = reader.readArray(reader1 -> ApplicationGatewayFirewallExclusion.fromJson(reader1)); - deserializedApplicationGatewayWebApplicationFirewallConfiguration.exclusions = exclusions; + deserializedApplicationGatewayWebApplicationFirewallConfiguration.exclusions + = ApplicationGatewayFirewallExclusion.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java index 8dbf902502d7..e2363ce01189 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationAccessMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationAccessMode.java index 8434fca73ad6..fca52d0bd11e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationAccessMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationAccessMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class AssociationAccessMode extends ExpandableStringEnum { /** - * Static value Learning for AssociationAccessMode. + * Learning. */ public static final AssociationAccessMode LEARNING = fromString("Learning"); /** - * Static value Enforced for AssociationAccessMode. + * Enforced. */ public static final AssociationAccessMode ENFORCED = fromString("Enforced"); /** - * Static value Audit for AssociationAccessMode. + * Audit. */ public static final AssociationAccessMode AUDIT = fromString("Audit"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationType.java index 9a01e144d932..c211063b23f9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AssociationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AssociationType extends ExpandableStringEnum { /** - * Static value Associated for AssociationType. + * Associated. */ public static final AssociationType ASSOCIATED = fromString("Associated"); /** - * Static value Contains for AssociationType. + * Contains. */ public static final AssociationType CONTAINS = fromString("Contains"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthenticationMethod.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthenticationMethod.java index 7e29cda38988..de577f376655 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthenticationMethod.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthenticationMethod.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AuthenticationMethod extends ExpandableStringEnum { /** - * Static value EAPTLS for AuthenticationMethod. + * EAPTLS. */ public static final AuthenticationMethod EAPTLS = fromString("EAPTLS"); /** - * Static value EAPMSCHAPv2 for AuthenticationMethod. + * EAPMSCHAPv2. */ public static final AuthenticationMethod EAPMSCHAPV2 = fromString("EAPMSCHAPv2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationUseStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationUseStatus.java index 503a660916bb..004baa6d028b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationUseStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationUseStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AuthorizationUseStatus extends ExpandableStringEnum { /** - * Static value Available for AuthorizationUseStatus. + * Available. */ public static final AuthorizationUseStatus AVAILABLE = fromString("Available"); /** - * Static value InUse for AuthorizationUseStatus. + * InUse. */ public static final AuthorizationUseStatus IN_USE = fromString("InUse"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoLearnPrivateRangesMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoLearnPrivateRangesMode.java index 004d7e0670ea..0960697dd45c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoLearnPrivateRangesMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AutoLearnPrivateRangesMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AutoLearnPrivateRangesMode extends ExpandableStringEnum { /** - * Static value Enabled for AutoLearnPrivateRangesMode. + * Enabled. */ public static final AutoLearnPrivateRangesMode ENABLED = fromString("Enabled"); /** - * Static value Disabled for AutoLearnPrivateRangesMode. + * Disabled. */ public static final AutoLearnPrivateRangesMode DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Availability.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Availability.java index e1548f4552f2..3b8f25998f40 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Availability.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Availability.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Availability of the metric. */ -@Fluent +@Immutable public final class Availability implements JsonSerializable { /* * The time grain of the availability. @@ -34,7 +34,7 @@ public final class Availability implements JsonSerializable { /** * Creates an instance of Availability class. */ - public Availability() { + private Availability() { } /** @@ -46,17 +46,6 @@ public String timeGrain() { return this.timeGrain; } - /** - * Set the timeGrain property: The time grain of the availability. - * - * @param timeGrain the timeGrain value to set. - * @return the Availability object itself. - */ - public Availability withTimeGrain(String timeGrain) { - this.timeGrain = timeGrain; - return this; - } - /** * Get the retention property: The retention of the availability. * @@ -66,17 +55,6 @@ public String retention() { return this.retention; } - /** - * Set the retention property: The retention of the availability. - * - * @param retention the retention value to set. - * @return the Availability object itself. - */ - public Availability withRetention(String retention) { - this.retention = retention; - return this; - } - /** * Get the blobDuration property: Duration of the availability blob. * @@ -86,17 +64,6 @@ public String blobDuration() { return this.blobDuration; } - /** - * Set the blobDuration property: Duration of the availability blob. - * - * @param blobDuration the blobDuration value to set. - * @return the Availability object itself. - */ - public Availability withBlobDuration(String blobDuration) { - this.blobDuration = blobDuration; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCity.java index 01715b1b7c14..4cfd7766c46c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCity.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * City or town details. */ -@Fluent +@Immutable public final class AvailableProvidersListCity implements JsonSerializable { /* * The city or town name. @@ -30,7 +30,7 @@ public final class AvailableProvidersListCity implements JsonSerializable providers() { return this.providers; } - /** - * Set the providers property: A list of Internet service providers. - * - * @param providers the providers value to set. - * @return the AvailableProvidersListCity object itself. - */ - public AvailableProvidersListCity withProviders(List providers) { - this.providers = providers; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCountry.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCountry.java index 521078155cc7..992e3bdb21ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCountry.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCountry.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Country details. */ -@Fluent +@Immutable public final class AvailableProvidersListCountry implements JsonSerializable { /* * The country name. @@ -35,7 +35,7 @@ public final class AvailableProvidersListCountry implements JsonSerializable providers() { return this.providers; } - /** - * Set the providers property: A list of Internet service providers. - * - * @param providers the providers value to set. - * @return the AvailableProvidersListCountry object itself. - */ - public AvailableProvidersListCountry withProviders(List providers) { - this.providers = providers; - return this; - } - /** * Get the states property: List of available states in the country. * @@ -87,17 +65,6 @@ public List states() { return this.states; } - /** - * Set the states property: List of available states in the country. - * - * @param states the states value to set. - * @return the AvailableProvidersListCountry object itself. - */ - public AvailableProvidersListCountry withStates(List states) { - this.states = states; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListParameters.java index 70e4e56da0f7..433379119cab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListState.java index d5ba3d1b8771..5ebcd3db71c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListState.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * State details. */ -@Fluent +@Immutable public final class AvailableProvidersListState implements JsonSerializable { /* * The state name. @@ -35,7 +35,7 @@ public final class AvailableProvidersListState implements JsonSerializable providers() { return this.providers; } - /** - * Set the providers property: A list of Internet service providers. - * - * @param providers the providers value to set. - * @return the AvailableProvidersListState object itself. - */ - public AvailableProvidersListState withProviders(List providers) { - this.providers = providers; - return this; - } - /** * Get the cities property: List of available cities or towns in the state. * @@ -87,17 +65,6 @@ public List cities() { return this.cities; } - /** - * Set the cities property: List of available cities or towns in the state. - * - * @param cities the cities value to set. - * @return the AvailableProvidersListState object itself. - */ - public AvailableProvidersListState withCities(List cities) { - this.cities = cities; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRule.java index e2ec09fb4355..8bab2c99c8c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleCollection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleCollection.java index d88591015b81..c2a7693b04ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleCollection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleCollection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocol.java index a1b5c2a4010b..1990949f2a0d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocolType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocolType.java index e13056629e3d..05b3a99734f4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocolType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocolType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class AzureFirewallApplicationRuleProtocolType extends ExpandableStringEnum { /** - * Static value Http for AzureFirewallApplicationRuleProtocolType. + * Http. */ public static final AzureFirewallApplicationRuleProtocolType HTTP = fromString("Http"); /** - * Static value Https for AzureFirewallApplicationRuleProtocolType. + * Https. */ public static final AzureFirewallApplicationRuleProtocolType HTTPS = fromString("Https"); /** - * Static value Mssql for AzureFirewallApplicationRuleProtocolType. + * Mssql. */ public static final AzureFirewallApplicationRuleProtocolType MSSQL = fromString("Mssql"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallAutoscaleConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallAutoscaleConfiguration.java index 1754f4210228..6dddd951020c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallAutoscaleConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallAutoscaleConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpConfiguration.java index 688c62f3ab40..245e29402255 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpGroups.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpGroups.java index 2592f0ab47b3..272537d7bc8b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpGroups.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpGroups.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -29,7 +29,7 @@ public final class AzureFirewallIpGroups implements JsonSerializable { /** - * Static value Snat for AzureFirewallNatRCActionType. + * Snat. */ public static final AzureFirewallNatRCActionType SNAT = fromString("Snat"); /** - * Static value Dnat for AzureFirewallNatRCActionType. + * Dnat. */ public static final AzureFirewallNatRCActionType DNAT = fromString("Dnat"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRule.java index 2d84e7abc051..51fff619f89d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRuleCollection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRuleCollection.java index 3a9f29367c9f..7aaa8c48326d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRuleCollection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRuleCollection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRule.java index 0c3a0ec80099..34714ad47e5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleCollection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleCollection.java index b3aa544c5be1..39801025ebca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleCollection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleCollection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleProtocol.java index c77f2852481d..d1af0265fefe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class AzureFirewallNetworkRuleProtocol extends ExpandableStringEnum { /** - * Static value TCP for AzureFirewallNetworkRuleProtocol. + * TCP. */ public static final AzureFirewallNetworkRuleProtocol TCP = fromString("TCP"); /** - * Static value UDP for AzureFirewallNetworkRuleProtocol. + * UDP. */ public static final AzureFirewallNetworkRuleProtocol UDP = fromString("UDP"); /** - * Static value Any for AzureFirewallNetworkRuleProtocol. + * Any. */ public static final AzureFirewallNetworkRuleProtocol ANY = fromString("Any"); /** - * Static value ICMP for AzureFirewallNetworkRuleProtocol. + * ICMP. */ public static final AzureFirewallNetworkRuleProtocol ICMP = fromString("ICMP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlags.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlags.java index 08c0d4ef1b9a..f686b2abe301 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlags.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlags.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlagsType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlagsType.java index 64f8dbc4281f..6e931d2d66a6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlagsType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlagsType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,32 +13,32 @@ public final class AzureFirewallPacketCaptureFlagsType extends ExpandableStringEnum { /** - * Static value fin for AzureFirewallPacketCaptureFlagsType. + * fin. */ public static final AzureFirewallPacketCaptureFlagsType FIN = fromString("fin"); /** - * Static value syn for AzureFirewallPacketCaptureFlagsType. + * syn. */ public static final AzureFirewallPacketCaptureFlagsType SYN = fromString("syn"); /** - * Static value rst for AzureFirewallPacketCaptureFlagsType. + * rst. */ public static final AzureFirewallPacketCaptureFlagsType RST = fromString("rst"); /** - * Static value push for AzureFirewallPacketCaptureFlagsType. + * push. */ public static final AzureFirewallPacketCaptureFlagsType PUSH = fromString("push"); /** - * Static value ack for AzureFirewallPacketCaptureFlagsType. + * ack. */ public static final AzureFirewallPacketCaptureFlagsType ACK = fromString("ack"); /** - * Static value urg for AzureFirewallPacketCaptureFlagsType. + * urg. */ public static final AzureFirewallPacketCaptureFlagsType URG = fromString("urg"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureOperationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureOperationType.java index 45cb2c0a1c09..c70eb5fc2ada 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureOperationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureOperationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -16,17 +16,17 @@ public final class AzureFirewallPacketCaptureOperationType extends ExpandableStringEnum { /** - * Static value Start for AzureFirewallPacketCaptureOperationType. + * Start. */ public static final AzureFirewallPacketCaptureOperationType START = fromString("Start"); /** - * Static value Status for AzureFirewallPacketCaptureOperationType. + * Status. */ public static final AzureFirewallPacketCaptureOperationType STATUS = fromString("Status"); /** - * Static value Stop for AzureFirewallPacketCaptureOperationType. + * Stop. */ public static final AzureFirewallPacketCaptureOperationType STOP = fromString("Stop"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureResponseCode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureResponseCode.java index 267a95ff6508..97472c1bc474 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureResponseCode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureResponseCode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,60 +13,60 @@ public final class AzureFirewallPacketCaptureResponseCode extends ExpandableStringEnum { /** - * Static value NotImplemented for AzureFirewallPacketCaptureResponseCode. + * NotImplemented. */ public static final AzureFirewallPacketCaptureResponseCode NOT_IMPLEMENTED = fromString("NotImplemented"); /** - * Static value AzureFirewallPacketCaptureStartSucceeded for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureStartSucceeded. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_START_SUCCEEDED = fromString("AzureFirewallPacketCaptureStartSucceeded"); /** - * Static value AzureFirewallPacketCaptureStartFailed for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureStartFailed. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_START_FAILED = fromString("AzureFirewallPacketCaptureStartFailed"); /** - * Static value AzureFirewallPacketCaptureStartFailedToUpload for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureStartFailedToUpload. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_START_FAILED_TO_UPLOAD = fromString("AzureFirewallPacketCaptureStartFailedToUpload"); /** - * Static value AzureFirewallPacketCaptureStartFailure for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureStartFailure. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_START_FAILURE = fromString("AzureFirewallPacketCaptureStartFailure"); /** - * Static value AzureFirewallPacketCaptureInProgress for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureInProgress. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_IN_PROGRESS = fromString("AzureFirewallPacketCaptureInProgress"); /** - * Static value AzureFirewallPacketCaptureNotInProgress for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureNotInProgress. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_NOT_IN_PROGRESS = fromString("AzureFirewallPacketCaptureNotInProgress"); /** - * Static value AzureFirewallPacketCaptureStopSucceeded for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureStopSucceeded. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_STOP_SUCCEEDED = fromString("AzureFirewallPacketCaptureStopSucceeded"); /** - * Static value AzureFirewallPacketCaptureFailed for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureFailed. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_FAILED = fromString("AzureFirewallPacketCaptureFailed"); /** - * Static value AzureFirewallPacketCaptureCompleted for AzureFirewallPacketCaptureResponseCode. + * AzureFirewallPacketCaptureCompleted. */ public static final AzureFirewallPacketCaptureResponseCode AZURE_FIREWALL_PACKET_CAPTURE_COMPLETED = fromString("AzureFirewallPacketCaptureCompleted"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureRule.java index 34fb473fb708..c7fcf42b1050 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPublicIpAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPublicIpAddress.java index d1903524e966..eb3fa67e32aa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPublicIpAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPublicIpAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCAction.java index 389f3f90b29c..cae90fabc1ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCActionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCActionType.java index 48b6791c590b..4539c4aa0237 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCActionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AzureFirewallRCActionType extends ExpandableStringEnum { /** - * Static value Allow for AzureFirewallRCActionType. + * Allow. */ public static final AzureFirewallRCActionType ALLOW = fromString("Allow"); /** - * Static value Deny for AzureFirewallRCActionType. + * Deny. */ public static final AzureFirewallRCActionType DENY = fromString("Deny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSku.java index ac721e2ac449..998eee5a496f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuName.java index 9cce5a2e24df..f3bcb87dc0a2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class AzureFirewallSkuName extends ExpandableStringEnum { /** - * Static value AZFW_VNet for AzureFirewallSkuName. + * AZFW_VNet. */ public static final AzureFirewallSkuName AZFW_VNET = fromString("AZFW_VNet"); /** - * Static value AZFW_Hub for AzureFirewallSkuName. + * AZFW_Hub. */ public static final AzureFirewallSkuName AZFW_HUB = fromString("AZFW_Hub"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuTier.java index 327d9b71126b..1edf79134457 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class AzureFirewallSkuTier extends ExpandableStringEnum { /** - * Static value Standard for AzureFirewallSkuTier. + * Standard. */ public static final AzureFirewallSkuTier STANDARD = fromString("Standard"); /** - * Static value Premium for AzureFirewallSkuTier. + * Premium. */ public static final AzureFirewallSkuTier PREMIUM = fromString("Premium"); /** - * Static value Basic for AzureFirewallSkuTier. + * Basic. */ public static final AzureFirewallSkuTier BASIC = fromString("Basic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallThreatIntelMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallThreatIntelMode.java index 04e96959c0cf..b53d44450b4b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallThreatIntelMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureFirewallThreatIntelMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class AzureFirewallThreatIntelMode extends ExpandableStringEnum { /** - * Static value Alert for AzureFirewallThreatIntelMode. + * Alert. */ public static final AzureFirewallThreatIntelMode ALERT = fromString("Alert"); /** - * Static value Deny for AzureFirewallThreatIntelMode. + * Deny. */ public static final AzureFirewallThreatIntelMode DENY = fromString("Deny"); /** - * Static value Off for AzureFirewallThreatIntelMode. + * Off. */ public static final AzureFirewallThreatIntelMode OFF = fromString("Off"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportItem.java index af51fe8d75f3..85ba86c6beb8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportItem.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Azure reachability report details for a given provider location. */ -@Fluent +@Immutable public final class AzureReachabilityReportItem implements JsonSerializable { /* * The Internet service provider. @@ -35,7 +35,7 @@ public final class AzureReachabilityReportItem implements JsonSerializable latencies() { return this.latencies; } - /** - * Set the latencies property: List of latency details for each of the time series. - * - * @param latencies the latencies value to set. - * @return the AzureReachabilityReportItem object itself. - */ - public AzureReachabilityReportItem withLatencies(List latencies) { - this.latencies = latencies; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLatencyInfo.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLatencyInfo.java index 25dd08c38da8..3927e698b754 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLatencyInfo.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLatencyInfo.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * Details on latency for a time series. */ -@Fluent +@Immutable public final class AzureReachabilityReportLatencyInfo implements JsonSerializable { /* * The time stamp. @@ -32,7 +32,7 @@ public final class AzureReachabilityReportLatencyInfo implements JsonSerializabl /** * Creates an instance of AzureReachabilityReportLatencyInfo class. */ - public AzureReachabilityReportLatencyInfo() { + private AzureReachabilityReportLatencyInfo() { } /** @@ -44,17 +44,6 @@ public OffsetDateTime timestamp() { return this.timestamp; } - /** - * Set the timestamp property: The time stamp. - * - * @param timestamp the timestamp value to set. - * @return the AzureReachabilityReportLatencyInfo object itself. - */ - public AzureReachabilityReportLatencyInfo withTimestamp(OffsetDateTime timestamp) { - this.timestamp = timestamp; - return this; - } - /** * Get the score property: The relative latency score between 1 and 100, higher values indicating a faster * connection. @@ -65,18 +54,6 @@ public Integer score() { return this.score; } - /** - * Set the score property: The relative latency score between 1 and 100, higher values indicating a faster - * connection. - * - * @param score the score value to set. - * @return the AzureReachabilityReportLatencyInfo object itself. - */ - public AzureReachabilityReportLatencyInfo withScore(Integer score) { - this.score = score; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLocation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLocation.java index d4a7c4a85ded..e3bd446ca14a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLocation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLocation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportParameters.java index 21fc979a74c3..ddfd0a9b431f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionConnectProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionConnectProtocol.java index fd02b1bc319e..68a09f7412c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionConnectProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionConnectProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class BastionConnectProtocol extends ExpandableStringEnum { /** - * Static value SSH for BastionConnectProtocol. + * SSH. */ public static final BastionConnectProtocol SSH = fromString("SSH"); /** - * Static value RDP for BastionConnectProtocol. + * RDP. */ public static final BastionConnectProtocol RDP = fromString("RDP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostIpConfiguration.java index 6240234ea503..0a8dd4287ac5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostPropertiesFormatNetworkAcls.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostPropertiesFormatNetworkAcls.java index f2c640b01001..05ce56fe1282 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostPropertiesFormatNetworkAcls.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostPropertiesFormatNetworkAcls.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostSkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostSkuName.java index ca8caee997f8..2bed702e702e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostSkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionHostSkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class BastionHostSkuName extends ExpandableStringEnum { /** - * Static value Basic for BastionHostSkuName. + * Basic. */ public static final BastionHostSkuName BASIC = fromString("Basic"); /** - * Static value Standard for BastionHostSkuName. + * Standard. */ public static final BastionHostSkuName STANDARD = fromString("Standard"); /** - * Static value Developer for BastionHostSkuName. + * Developer. */ public static final BastionHostSkuName DEVELOPER = fromString("Developer"); /** - * Static value Premium for BastionHostSkuName. + * Premium. */ public static final BastionHostSkuName PREMIUM = fromString("Premium"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListRequest.java index 265a7b28d5f6..c6aa620604b8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkTokenListRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkTokenListRequest.java index c430e75b60d9..5b059a2007d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkTokenListRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkTokenListRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java index a6807f01d7f0..83cbbfa07ba8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Contains bgp community information offered in Service Community resources. */ -@Fluent +@Immutable public final class BgpCommunity implements JsonSerializable { /* * The region which the service support. e.g. For O365, region is Global. @@ -51,7 +51,7 @@ public final class BgpCommunity implements JsonSerializable { /** * Creates an instance of BgpCommunity class. */ - public BgpCommunity() { + private BgpCommunity() { } /** @@ -63,17 +63,6 @@ public String serviceSupportedRegion() { return this.serviceSupportedRegion; } - /** - * Set the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global. - * - * @param serviceSupportedRegion the serviceSupportedRegion value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withServiceSupportedRegion(String serviceSupportedRegion) { - this.serviceSupportedRegion = serviceSupportedRegion; - return this; - } - /** * Get the communityName property: The name of the bgp community. e.g. Skype. * @@ -83,17 +72,6 @@ public String communityName() { return this.communityName; } - /** - * Set the communityName property: The name of the bgp community. e.g. Skype. - * - * @param communityName the communityName value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withCommunityName(String communityName) { - this.communityName = communityName; - return this; - } - /** * Get the communityValue property: The value of the bgp community. For more information: * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. @@ -104,18 +82,6 @@ public String communityValue() { return this.communityValue; } - /** - * Set the communityValue property: The value of the bgp community. For more information: - * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. - * - * @param communityValue the communityValue value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withCommunityValue(String communityValue) { - this.communityValue = communityValue; - return this; - } - /** * Get the communityPrefixes property: The prefixes that the bgp community contains. * @@ -125,17 +91,6 @@ public List communityPrefixes() { return this.communityPrefixes; } - /** - * Set the communityPrefixes property: The prefixes that the bgp community contains. - * - * @param communityPrefixes the communityPrefixes value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withCommunityPrefixes(List communityPrefixes) { - this.communityPrefixes = communityPrefixes; - return this; - } - /** * Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not. * @@ -145,17 +100,6 @@ public Boolean isAuthorizedToUse() { return this.isAuthorizedToUse; } - /** - * Set the isAuthorizedToUse property: Customer is authorized to use bgp community or not. - * - * @param isAuthorizedToUse the isAuthorizedToUse value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse) { - this.isAuthorizedToUse = isAuthorizedToUse; - return this; - } - /** * Get the serviceGroup property: The service group of the bgp community contains. * @@ -165,17 +109,6 @@ public String serviceGroup() { return this.serviceGroup; } - /** - * Set the serviceGroup property: The service group of the bgp community contains. - * - * @param serviceGroup the serviceGroup value to set. - * @return the BgpCommunity object itself. - */ - public BgpCommunity withServiceGroup(String serviceGroup) { - this.serviceGroup = serviceGroup; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerState.java index a5e92bd4abbc..e41e1c6f137b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class BgpPeerState extends ExpandableStringEnum { /** - * Static value Unknown for BgpPeerState. + * Unknown. */ public static final BgpPeerState UNKNOWN = fromString("Unknown"); /** - * Static value Stopped for BgpPeerState. + * Stopped. */ public static final BgpPeerState STOPPED = fromString("Stopped"); /** - * Static value Idle for BgpPeerState. + * Idle. */ public static final BgpPeerState IDLE = fromString("Idle"); /** - * Static value Connecting for BgpPeerState. + * Connecting. */ public static final BgpPeerState CONNECTING = fromString("Connecting"); /** - * Static value Connected for BgpPeerState. + * Connected. */ public static final BgpPeerState CONNECTED = fromString("Connected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerStatus.java index 5f7e2fd78db0..44bcaf7c7ff4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpPeerStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -59,7 +59,7 @@ public final class BgpPeerStatus implements JsonSerializable { /** * Creates an instance of BgpPeerStatus class. */ - public BgpPeerStatus() { + private BgpPeerStatus() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpSettings.java index ce1a67b5b522..a9977d984a07 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BreakOutCategoryPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BreakOutCategoryPolicies.java index dd908e499bd7..190e607e9c43 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BreakOutCategoryPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BreakOutCategoryPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CertificateAuthentication.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CertificateAuthentication.java index 1ad3c3a2c8fd..cc8029d7bafe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CertificateAuthentication.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CertificateAuthentication.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CheckPrivateLinkServiceVisibilityRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CheckPrivateLinkServiceVisibilityRequest.java index 7e52f3374317..871514ccb988 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CheckPrivateLinkServiceVisibilityRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CheckPrivateLinkServiceVisibilityRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ChildResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ChildResource.java index b503c883c4db..1675e43c0150 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ChildResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ChildResource.java @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; import com.azure.core.annotation.Immutable; -import com.azure.core.management.ProxyResource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; @@ -15,26 +15,26 @@ * Proxy resource representation. */ @Immutable -public class ChildResource extends ProxyResource { +public class ChildResource implements JsonSerializable { /* - * A unique read-only string that changes whenever the resource is updated. + * Resource ID. */ - private String etag; + private String id; /* - * The type of the resource. + * Resource name. */ - private String type; + private String name; /* - * The name of the resource. + * Resource type. */ - private String name; + private String type; /* - * Fully qualified resource Id for the resource. + * A unique read-only string that changes whenever the resource is updated. */ - private String id; + private String etag; /** * Creates an instance of ChildResource class. @@ -43,53 +43,83 @@ public ChildResource() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the id property: Resource ID. * - * @return the etag value. + * @return the id value. */ - public String etag() { - return this.etag; + public String id() { + return this.id; } /** - * Set the etag property: A unique read-only string that changes whenever the resource is updated. + * Set the id property: Resource ID. * - * @param etag the etag value to set. + * @param id the id value to set. * @return the ChildResource object itself. */ - ChildResource withEtag(String etag) { - this.etag = etag; + ChildResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the ChildResource object itself. + */ + ChildResource withName(String name) { + this.name = name; return this; } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ - @Override public String type() { return this.type; } /** - * Get the name property: The name of the resource. + * Set the type property: Resource type. * - * @return the name value. + * @param type the type value to set. + * @return the ChildResource object itself. */ - @Override - public String name() { - return this.name; + ChildResource withType(String type) { + this.type = type; + return this; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the etag property: A unique read-only string that changes whenever the resource is updated. * - * @return the id value. + * @return the etag value. */ - @Override - public String id() { - return this.id; + public String etag() { + return this.etag; + } + + /** + * Set the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @param etag the etag value to set. + * @return the ChildResource object itself. + */ + ChildResource withEtag(String etag) { + this.etag = etag; + return this; } /** @@ -115,7 +145,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ChildResource if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ChildResource. */ public static ChildResource fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitConnectionStatus.java index 96a459df1cd1..946237823480 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class CircuitConnectionStatus extends ExpandableStringEnum { /** - * Static value Connected for CircuitConnectionStatus. + * Connected. */ public static final CircuitConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value Connecting for CircuitConnectionStatus. + * Connecting. */ public static final CircuitConnectionStatus CONNECTING = fromString("Connecting"); /** - * Static value Disconnected for CircuitConnectionStatus. + * Disconnected. */ public static final CircuitConnectionStatus DISCONNECTED = fromString("Disconnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitMetadataMap.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitMetadataMap.java index 379928391f86..0643e0fc7343 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitMetadataMap.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CircuitMetadataMap.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The CircuitMetadataMap model. */ -@Fluent +@Immutable public final class CircuitMetadataMap implements JsonSerializable { /* * Express Route Circuit Name @@ -34,7 +34,7 @@ public final class CircuitMetadataMap implements JsonSerializable { /** - * Static value Provisioning for CommissionedState. + * Provisioning. */ public static final CommissionedState PROVISIONING = fromString("Provisioning"); /** - * Static value Provisioned for CommissionedState. + * Provisioned. */ public static final CommissionedState PROVISIONED = fromString("Provisioned"); /** - * Static value Commissioning for CommissionedState. + * Commissioning. */ public static final CommissionedState COMMISSIONING = fromString("Commissioning"); /** - * Static value CommissionedNoInternetAdvertise for CommissionedState. + * CommissionedNoInternetAdvertise. */ public static final CommissionedState COMMISSIONED_NO_INTERNET_ADVERTISE = fromString("CommissionedNoInternetAdvertise"); /** - * Static value Commissioned for CommissionedState. + * Commissioned. */ public static final CommissionedState COMMISSIONED = fromString("Commissioned"); /** - * Static value Decommissioning for CommissionedState. + * Decommissioning. */ public static final CommissionedState DECOMMISSIONING = fromString("Decommissioning"); /** - * Static value Deprovisioning for CommissionedState. + * Deprovisioning. */ public static final CommissionedState DEPROVISIONING = fromString("Deprovisioning"); /** - * Static value Deprovisioned for CommissionedState. + * Deprovisioned. */ public static final CommissionedState DEPROVISIONED = fromString("Deprovisioned"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonProxyResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonProxyResource.java index 698c9909d224..617d283e341a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonProxyResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonProxyResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -24,17 +24,18 @@ public class CommonProxyResource extends CommonResource { private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -55,7 +56,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -75,7 +77,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -108,7 +111,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of CommonProxyResource if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CommonProxyResource. */ public static CommonProxyResource fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonResource.java index 86828d354e26..e5922ec6a8c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonResource.java @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; import com.azure.core.annotation.Immutable; -import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; @@ -18,26 +18,27 @@ * Common fields that are returned in the response for all Azure Resource Manager resources. */ @Immutable -public class CommonResource extends ProxyResource { +public class CommonResource implements JsonSerializable { /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ - private SystemData systemData; + private String id; /* - * The type of the resource. + * The name of the resource */ - private String type; + private String name; /* - * The name of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - private String name; + private String type; /* - * Fully qualified resource Id for the resource. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - private String id; + private SystemData systemData; /** * Creates an instance of CommonResource class. @@ -46,53 +47,87 @@ public CommonResource() { } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * - * @return the systemData value. + * @return the id value. */ - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** - * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Set the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * - * @param systemData the systemData value to set. + * @param id the id value to set. * @return the CommonResource object itself. */ - CommonResource withSystemData(SystemData systemData) { - this.systemData = systemData; + CommonResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the resource. + * + * @param name the name value to set. + * @return the CommonResource object itself. + */ + CommonResource withName(String name) { + this.name = name; return this; } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ - @Override public String type() { return this.type; } /** - * Get the name property: The name of the resource. + * Set the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * - * @return the name value. + * @param type the type value to set. + * @return the CommonResource object itself. */ - @Override - public String name() { - return this.name; + CommonResource withType(String type) { + this.type = type; + return this; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the id value. + * @return the systemData value. */ - @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; + } + + /** + * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @param systemData the systemData value to set. + * @return the CommonResource object itself. + */ + CommonResource withSystemData(SystemData systemData) { + this.systemData = systemData; + return this; } /** @@ -118,7 +153,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of CommonResource if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the CommonResource. */ public static CommonResource fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonTrackedResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonTrackedResource.java index 5b7838d262d1..ab55a8b2d289 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonTrackedResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CommonTrackedResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -37,17 +37,18 @@ public class CommonTrackedResource extends CommonResource { private SystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -108,7 +109,8 @@ public SystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -128,7 +130,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConfigurationGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConfigurationGroup.java index fbe40ad98936..7ced37180c0a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConfigurationGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConfigurationGroup.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The network configuration group resource. */ -@Fluent +@Immutable public final class ConfigurationGroup implements JsonSerializable { /* * Network group ID. @@ -30,7 +30,7 @@ public final class ConfigurationGroup implements JsonSerializable { /** - * Static value SecurityAdmin for ConfigurationType. + * SecurityAdmin. */ public static final ConfigurationType SECURITY_ADMIN = fromString("SecurityAdmin"); /** - * Static value Connectivity for ConfigurationType. + * Connectivity. */ public static final ConfigurationType CONNECTIVITY = fromString("Connectivity"); /** - * Static value SecurityUser for ConfigurationType. + * SecurityUser. */ public static final ConfigurationType SECURITY_USER = fromString("SecurityUser"); /** - * Static value Routing for ConfigurationType. + * Routing. */ public static final ConfigurationType ROUTING = fromString("Routing"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupAddressOverlap.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupAddressOverlap.java index 8d4d641ee230..42dd5cbc54ec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupAddressOverlap.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupAddressOverlap.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,15 @@ */ public final class ConnectedGroupAddressOverlap extends ExpandableStringEnum { /** - * Static value Allowed for ConnectedGroupAddressOverlap. + * Default. Allows connected group members to have overlapping IP address space. */ public static final ConnectedGroupAddressOverlap ALLOWED = fromString("Allowed"); /** - * Static value Disallowed for ConnectedGroupAddressOverlap. + * Strictly disallows connected group members from having overlapping IP address space. Prevents the addition of a + * virtual network with overlapping address to the connected group, blocks peering between a virtual network and a + * connected group member if any connected group member has an overlapping range, and restricts address space + * modifications that would introduce overlap. */ public static final ConnectedGroupAddressOverlap DISALLOWED = fromString("Disallowed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupPrivateEndpointsScale.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupPrivateEndpointsScale.java index 3eb87671c047..7dfca6f8a79d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupPrivateEndpointsScale.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupPrivateEndpointsScale.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ConnectedGroupPrivateEndpointsScale extends ExpandableStringEnum { /** - * Static value Standard for ConnectedGroupPrivateEndpointsScale. + * Default. Allows for up to 2K private endpoints in the connected group. */ public static final ConnectedGroupPrivateEndpointsScale STANDARD = fromString("Standard"); /** - * Static value HighScale for ConnectedGroupPrivateEndpointsScale. + * Allows for up to 20K private endpoints in the connected group. */ public static final ConnectedGroupPrivateEndpointsScale HIGH_SCALE = fromString("HighScale"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionAuthenticationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionAuthenticationType.java index 559cc410e1fd..e93b48121923 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionAuthenticationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionAuthenticationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ConnectionAuthenticationType extends ExpandableStringEnum { /** - * Static value PSK for ConnectionAuthenticationType. + * Pre-shared key authentication method for VPN gateway connections. */ public static final ConnectionAuthenticationType PSK = fromString("PSK"); /** - * Static value Certificate for ConnectionAuthenticationType. + * Certificate-based authentication method for VPN gateway connections. */ public static final ConnectionAuthenticationType CERTIFICATE = fromString("Certificate"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorDestination.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorDestination.java index 007fd01c027a..a161a606af49 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorDestination.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorDestination.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java index aa0e36020281..fc1fd84ad43c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilter.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilter.java index 606411a8f54b..c7bf58dac14c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilter.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItem.java index 9c49f93465f4..3de8dd509964 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItemType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItemType.java index 5fff85099e28..d77b0dbcabd0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItemType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItemType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,7 +13,7 @@ public final class ConnectionMonitorEndpointFilterItemType extends ExpandableStringEnum { /** - * Static value AgentAddress for ConnectionMonitorEndpointFilterItemType. + * AgentAddress. */ public static final ConnectionMonitorEndpointFilterItemType AGENT_ADDRESS = fromString("AgentAddress"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterType.java index a887104cc145..db569b627351 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,7 +13,7 @@ public final class ConnectionMonitorEndpointFilterType extends ExpandableStringEnum { /** - * Static value Include for ConnectionMonitorEndpointFilterType. + * Include. */ public static final ConnectionMonitorEndpointFilterType INCLUDE = fromString("Include"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java index fe349f55886b..75892e26583e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScope.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScope.java index 382be1a43aa3..a9ac66254380 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScope.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScope.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScopeItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScopeItem.java index 360e8788c884..5104c2b49c6d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScopeItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScopeItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorHttpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorHttpConfiguration.java index 6f855437eb17..f9c4d0d6bcd7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorHttpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorHttpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java index 27dc18e0c513..b36460e9ef3e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorOutput.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorOutput.java index 4cd72fc1498a..9d0a5abd7ee4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorOutput.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorOutput.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java index 24c183230029..e86994040b50 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java index 1c2992458b40..f0c53511a073 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java index ae1b8fce5f98..b67ad0ee08e3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java index f0b4cd7cd823..299645b08290 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfigurationProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfigurationProtocol.java index 1ac8804f07eb..fe6a71ff0e66 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfigurationProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfigurationProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class ConnectionMonitorTestConfigurationProtocol extends ExpandableStringEnum { /** - * Static value Tcp for ConnectionMonitorTestConfigurationProtocol. + * Tcp. */ public static final ConnectionMonitorTestConfigurationProtocol TCP = fromString("Tcp"); /** - * Static value Http for ConnectionMonitorTestConfigurationProtocol. + * Http. */ public static final ConnectionMonitorTestConfigurationProtocol HTTP = fromString("Http"); /** - * Static value Icmp for ConnectionMonitorTestConfigurationProtocol. + * Icmp. */ public static final ConnectionMonitorTestConfigurationProtocol ICMP = fromString("Icmp"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java index 7b3230f600c3..1b7c9c668c8c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorType.java index e09318d9b247..40f7c593fcca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ConnectionMonitorType extends ExpandableStringEnum { /** - * Static value MultiEndpoint for ConnectionMonitorType. + * MultiEndpoint. */ public static final ConnectionMonitorType MULTI_ENDPOINT = fromString("MultiEndpoint"); /** - * Static value SingleSourceDestination for ConnectionMonitorType. + * SingleSourceDestination. */ public static final ConnectionMonitorType SINGLE_SOURCE_DESTINATION = fromString("SingleSourceDestination"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorWorkspaceSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorWorkspaceSettings.java index d4efca3a132b..9462e5389d24 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorWorkspaceSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorWorkspaceSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionStatus.java index b0e5c3f34332..ba085e88fa96 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ConnectionStatus extends ExpandableStringEnum { /** - * Static value Unknown for ConnectionStatus. + * Unknown. */ public static final ConnectionStatus UNKNOWN = fromString("Unknown"); /** - * Static value Connected for ConnectionStatus. + * Connected. */ public static final ConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value Disconnected for ConnectionStatus. + * Disconnected. */ public static final ConnectionStatus DISCONNECTED = fromString("Disconnected"); /** - * Static value Degraded for ConnectionStatus. + * Degraded. */ public static final ConnectionStatus DEGRADED = fromString("Degraded"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationPropertiesConnectivityCapabilities.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationPropertiesConnectivityCapabilities.java index 7a78b666344f..1bbb41d1d2e4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationPropertiesConnectivityCapabilities.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationPropertiesConnectivityCapabilities.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityDestination.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityDestination.java index 69f530dee89b..e789d5b36f35 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityDestination.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityDestination.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityGroupItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityGroupItem.java index 3e63c52f9bfa..3cb221088fc7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityGroupItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityGroupItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityHop.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityHop.java index e0ad64ac616e..9bcf369ccdc4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityHop.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityHop.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -65,7 +65,7 @@ public final class ConnectivityHop implements JsonSerializable /** * Creates an instance of ConnectivityHop class. */ - public ConnectivityHop() { + private ConnectivityHop() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityIssue.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityIssue.java index 92daaf55620a..756c5206e0ae 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityIssue.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityIssue.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -41,7 +41,7 @@ public final class ConnectivityIssue implements JsonSerializable { /** - * Static value HubAndSpoke for ConnectivityTopology. + * HubAndSpoke. */ public static final ConnectivityTopology HUB_AND_SPOKE = fromString("HubAndSpoke"); /** - * Static value Mesh for ConnectivityTopology. + * Mesh. */ public static final ConnectivityTopology MESH = fromString("Mesh"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Container.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Container.java index fd8ae74e2c54..05bd00ee87c6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Container.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Container.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -14,21 +14,12 @@ /** * Reference to container resource in remote resource provider. */ -@Fluent +@Immutable public final class Container extends SubResource { /** * Creates an instance of Container class. */ - public Container() { - } - - /** - * {@inheritDoc} - */ - @Override - public Container withId(String id) { - super.withId(id); - return this; + private Container() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterface.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterface.java index c932eef02807..2c8d8cda9e48 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterface.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterface.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Container network interface child resource. */ -@Fluent +@Immutable public final class ContainerNetworkInterface extends SubResource { /* * Container network interface properties. @@ -41,7 +41,7 @@ public final class ContainerNetworkInterface extends SubResource { /** * Creates an instance of ContainerNetworkInterface class. */ - public ContainerNetworkInterface() { + private ContainerNetworkInterface() { } /** @@ -62,17 +62,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the resource. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the ContainerNetworkInterface object itself. - */ - public ContainerNetworkInterface withName(String name) { - this.name = name; - return this; - } - /** * Get the type property: Sub Resource type. * @@ -91,15 +80,6 @@ public String etag() { return this.etag; } - /** - * {@inheritDoc} - */ - @Override - public ContainerNetworkInterface withId(String id) { - super.withId(id); - return this; - } - /** * Get the containerNetworkInterfaceConfiguration property: Container network interface configuration from which * this container network interface is created. @@ -119,20 +99,6 @@ public Container container() { return this.innerProperties() == null ? null : this.innerProperties().container(); } - /** - * Set the container property: Reference to the container to which this container network interface is attached. - * - * @param container the container value to set. - * @return the ContainerNetworkInterface object itself. - */ - public ContainerNetworkInterface withContainer(Container container) { - if (this.innerProperties() == null) { - this.innerProperties = new ContainerNetworkInterfacePropertiesFormat(); - } - this.innerProperties().withContainer(container); - return this; - } - /** * Get the ipConfigurations property: Reference to the ip configuration on this container nic. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceConfiguration.java index b13045ec72da..fa26841a611b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceIpConfiguration.java index 8a227f20ea60..d60d86c9f613 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceIpConfiguration.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The ip configuration for a container network interface. */ -@Fluent +@Immutable public final class ContainerNetworkInterfaceIpConfiguration implements JsonSerializable { /* @@ -41,7 +41,7 @@ public final class ContainerNetworkInterfaceIpConfiguration /** * Creates an instance of ContainerNetworkInterfaceIpConfiguration class. */ - public ContainerNetworkInterfaceIpConfiguration() { + private ContainerNetworkInterfaceIpConfiguration() { } /** @@ -62,17 +62,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the resource. This name can be used to access the resource. - * - * @param name the name value to set. - * @return the ContainerNetworkInterfaceIpConfiguration object itself. - */ - public ContainerNetworkInterfaceIpConfiguration withName(String name) { - this.name = name; - return this; - } - /** * Get the type property: Sub Resource type. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CoverageLevel.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CoverageLevel.java index a52802b9b319..6ef95586f80b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CoverageLevel.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CoverageLevel.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class CoverageLevel extends ExpandableStringEnum { /** - * Static value Default for CoverageLevel. + * Default. */ public static final CoverageLevel DEFAULT = fromString("Default"); /** - * Static value Low for CoverageLevel. + * Low. */ public static final CoverageLevel LOW = fromString("Low"); /** - * Static value BelowAverage for CoverageLevel. + * BelowAverage. */ public static final CoverageLevel BELOW_AVERAGE = fromString("BelowAverage"); /** - * Static value Average for CoverageLevel. + * Average. */ public static final CoverageLevel AVERAGE = fromString("Average"); /** - * Static value AboveAverage for CoverageLevel. + * AboveAverage. */ public static final CoverageLevel ABOVE_AVERAGE = fromString("AboveAverage"); /** - * Static value Full for CoverageLevel. + * Full. */ public static final CoverageLevel FULL = fromString("Full"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CreatedByType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CreatedByType.java index 9527486121a7..e4ae19e90046 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CreatedByType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CreatedByType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -8,26 +8,26 @@ import java.util.Collection; /** - * The type of identity that created the resource. + * The kind of entity that created the resource. */ public final class CreatedByType extends ExpandableStringEnum { /** - * Static value User for CreatedByType. + * The entity was created by a user. */ public static final CreatedByType USER = fromString("User"); /** - * Static value Application for CreatedByType. + * The entity was created by an application. */ public static final CreatedByType APPLICATION = fromString("Application"); /** - * Static value ManagedIdentity for CreatedByType. + * The entity was created by a managed identity. */ public static final CreatedByType MANAGED_IDENTITY = fromString("ManagedIdentity"); /** - * Static value Key for CreatedByType. + * The entity was created by a key. */ public static final CreatedByType KEY = fromString("Key"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Criterion.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Criterion.java index 89b0b7c694f9..3ef097883859 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Criterion.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Criterion.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CrossTenantScopes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CrossTenantScopes.java index 231546dc621f..9fdfa39b8fb8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CrossTenantScopes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/CrossTenantScopes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -35,7 +35,7 @@ public final class CrossTenantScopes implements JsonSerializable { /** - * Static value Singular for CustomIpPrefixType. + * Singular. */ public static final CustomIpPrefixType SINGULAR = fromString("Singular"); /** - * Static value Parent for CustomIpPrefixType. + * Parent. */ public static final CustomIpPrefixType PARENT = fromString("Parent"); /** - * Static value Child for CustomIpPrefixType. + * Child. */ public static final CustomIpPrefixType CHILD = fromString("Child"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionMode.java index d2b068d9ee90..325bd22ec767 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class DdosDetectionMode extends ExpandableStringEnum { /** - * Static value TrafficThreshold for DdosDetectionMode. + * TrafficThreshold. */ public static final DdosDetectionMode TRAFFIC_THRESHOLD = fromString("TrafficThreshold"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionRule.java index 407bb283cef4..96710aa766b8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosDetectionRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -22,6 +22,11 @@ public final class DdosDetectionRule extends SubResource { */ private String name; + /* + * The resource ID of the DDoS detection rule. + */ + private String id; + /* * A unique read-only string that changes whenever the resource is updated. */ @@ -63,6 +68,16 @@ public DdosDetectionRule withName(String name) { return this; } + /** + * Get the id property: The resource ID of the DDoS detection rule. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -90,15 +105,6 @@ private DdosDetectionRulePropertiesFormat innerProperties() { return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public DdosDetectionRule withId(String id) { - super.withId(id); - return this; - } - /** * Get the provisioningState property: The provisioning state of the DDoS detection rule. * @@ -171,7 +177,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("id", id()); jsonWriter.writeStringField("name", this.name); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); @@ -192,10 +197,10 @@ public static DdosDetectionRule fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { - deserializedDdosDetectionRule.withId(reader.getString()); - } else if ("name".equals(fieldName)) { + if ("name".equals(fieldName)) { deserializedDdosDetectionRule.name = reader.getString(); + } else if ("id".equals(fieldName)) { + deserializedDdosDetectionRule.id = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedDdosDetectionRule.etag = reader.getString(); } else if ("type".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettings.java index e18354988f5e..d1d9cdd8d4fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettingsProtectionMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettingsProtectionMode.java index a9e02e79822e..7c421df279c5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettingsProtectionMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosSettingsProtectionMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class DdosSettingsProtectionMode extends ExpandableStringEnum { /** - * Static value VirtualNetworkInherited for DdosSettingsProtectionMode. + * VirtualNetworkInherited. */ public static final DdosSettingsProtectionMode VIRTUAL_NETWORK_INHERITED = fromString("VirtualNetworkInherited"); /** - * Static value Enabled for DdosSettingsProtectionMode. + * Enabled. */ public static final DdosSettingsProtectionMode ENABLED = fromString("Enabled"); /** - * Static value Disabled for DdosSettingsProtectionMode. + * Disabled. */ public static final DdosSettingsProtectionMode DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosTrafficType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosTrafficType.java index 51b18227573e..8d4314a2b584 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosTrafficType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DdosTrafficType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class DdosTrafficType extends ExpandableStringEnum { /** - * Static value Tcp for DdosTrafficType. + * Tcp. */ public static final DdosTrafficType TCP = fromString("Tcp"); /** - * Static value Udp for DdosTrafficType. + * Udp. */ public static final DdosTrafficType UDP = fromString("Udp"); /** - * Static value TcpSyn for DdosTrafficType. + * TcpSyn. */ public static final DdosTrafficType TCP_SYN = fromString("TcpSyn"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DefaultAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DefaultAdminRule.java index 06643ea9ecd2..63c272ae59e7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DefaultAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DefaultAdminRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -40,17 +40,17 @@ public final class DefaultAdminRule extends BaseAdminRuleInner { private String etag; /* - * The type of the resource. + * Resource type. */ private String type; /* - * The name of the resource. + * Resource name. */ private String name; /* - * Fully qualified resource Id for the resource. + * Resource ID. */ private String id; @@ -100,7 +100,7 @@ public String etag() { } /** - * Get the type property: The type of the resource. + * Get the type property: Resource type. * * @return the type value. */ @@ -110,7 +110,7 @@ public String type() { } /** - * Get the name property: The name of the resource. + * Get the name property: Resource name. * * @return the name value. */ @@ -120,7 +120,7 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Resource ID. * * @return the id value. */ @@ -282,7 +282,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of DefaultAdminRule if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the DefaultAdminRule. */ public static DefaultAdminRule fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Delegation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Delegation.java index 83420d5e78d3..0405d6b538db 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Delegation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Delegation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DelegationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DelegationProperties.java index 7421d2743f4d..24174fc24d06 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DelegationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DelegationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteExistingPeering.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteExistingPeering.java index 21af68be4fdd..37fa6a364094 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteExistingPeering.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteExistingPeering.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class DeleteExistingPeering extends ExpandableStringEnum { /** - * Static value False for DeleteExistingPeering. + * False. */ public static final DeleteExistingPeering FALSE = fromString("False"); /** - * Static value True for DeleteExistingPeering. + * True. */ public static final DeleteExistingPeering TRUE = fromString("True"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteOptions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteOptions.java index d7263812e772..95efadff27a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteOptions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeleteOptions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class DeleteOptions extends ExpandableStringEnum { /** - * Static value Delete for DeleteOptions. + * Delete. */ public static final DeleteOptions DELETE = fromString("Delete"); /** - * Static value Detach for DeleteOptions. + * Detach. */ public static final DeleteOptions DETACH = fromString("Detach"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeploymentStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeploymentStatus.java index 4c53b677989d..7be3bb0fea18 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeploymentStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeploymentStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class DeploymentStatus extends ExpandableStringEnum { /** - * Static value NotStarted for DeploymentStatus. + * NotStarted. */ public static final DeploymentStatus NOT_STARTED = fromString("NotStarted"); /** - * Static value Deploying for DeploymentStatus. + * Deploying. */ public static final DeploymentStatus DEPLOYING = fromString("Deploying"); /** - * Static value Deployed for DeploymentStatus. + * Deployed. */ public static final DeploymentStatus DEPLOYED = fromString("Deployed"); /** - * Static value Failed for DeploymentStatus. + * Failed. */ public static final DeploymentStatus FAILED = fromString("Failed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DestinationPortBehavior.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DestinationPortBehavior.java index a1f9fb6c69bd..930743b6fd78 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DestinationPortBehavior.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DestinationPortBehavior.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class DestinationPortBehavior extends ExpandableStringEnum { /** - * Static value None for DestinationPortBehavior. + * None. */ public static final DestinationPortBehavior NONE = fromString("None"); /** - * Static value ListenIfAvailable for DestinationPortBehavior. + * ListenIfAvailable. */ public static final DestinationPortBehavior LISTEN_IF_AVAILABLE = fromString("ListenIfAvailable"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeviceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeviceProperties.java index 997b0c9c12e6..30b9010dba4b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeviceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DeviceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhGroup.java index 2330c8d21b98..61c731507d3d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,42 +12,42 @@ */ public final class DhGroup extends ExpandableStringEnum { /** - * Static value None for DhGroup. + * None. */ public static final DhGroup NONE = fromString("None"); /** - * Static value DHGroup1 for DhGroup. + * DHGroup1. */ public static final DhGroup DHGROUP1 = fromString("DHGroup1"); /** - * Static value DHGroup2 for DhGroup. + * DHGroup2. */ public static final DhGroup DHGROUP2 = fromString("DHGroup2"); /** - * Static value DHGroup14 for DhGroup. + * DHGroup14. */ public static final DhGroup DHGROUP14 = fromString("DHGroup14"); /** - * Static value DHGroup2048 for DhGroup. + * DHGroup2048. */ public static final DhGroup DHGROUP2048 = fromString("DHGroup2048"); /** - * Static value ECP256 for DhGroup. + * ECP256. */ public static final DhGroup ECP256 = fromString("ECP256"); /** - * Static value ECP384 for DhGroup. + * ECP384. */ public static final DhGroup ECP384 = fromString("ECP384"); /** - * Static value DHGroup24 for DhGroup. + * DHGroup24. */ public static final DhGroup DHGROUP24 = fromString("DHGroup24"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhcpOptions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhcpOptions.java index cd86670c403d..1eba78c6b70e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhcpOptions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DhcpOptions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Dimension.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Dimension.java index c22a5019ca63..41827f38722b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Dimension.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Dimension.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Dimension of the metric. */ -@Fluent +@Immutable public final class Dimension implements JsonSerializable { /* * The name of the dimension. @@ -34,7 +34,7 @@ public final class Dimension implements JsonSerializable { /** * Creates an instance of Dimension class. */ - public Dimension() { + private Dimension() { } /** @@ -46,17 +46,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the dimension. - * - * @param name the name value to set. - * @return the Dimension object itself. - */ - public Dimension withName(String name) { - this.name = name; - return this; - } - /** * Get the displayName property: The display name of the dimension. * @@ -66,17 +55,6 @@ public String displayName() { return this.displayName; } - /** - * Set the displayName property: The display name of the dimension. - * - * @param displayName the displayName value to set. - * @return the Dimension object itself. - */ - public Dimension withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - /** * Get the internalName property: The internal name of the dimension. * @@ -86,17 +64,6 @@ public String internalName() { return this.internalName; } - /** - * Set the internalName property: The internal name of the dimension. - * - * @param internalName the internalName value to set. - * @return the Dimension object itself. - */ - public Dimension withInternalName(String internalName) { - this.internalName = internalName; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Direction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Direction.java index 426e193e5c8f..167ee372f122 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Direction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Direction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class Direction extends ExpandableStringEnum { /** - * Static value Inbound for Direction. + * Inbound. */ public static final Direction INBOUND = fromString("Inbound"); /** - * Static value Outbound for Direction. + * Outbound. */ public static final Direction OUTBOUND = fromString("Outbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisableBgpRoutePropagation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisableBgpRoutePropagation.java index 8025de26dcad..0826a6a41589 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisableBgpRoutePropagation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisableBgpRoutePropagation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class DisableBgpRoutePropagation extends ExpandableStringEnum { /** - * Static value False for DisableBgpRoutePropagation. + * BGP route propagation is enabled. */ public static final DisableBgpRoutePropagation FALSE = fromString("False"); /** - * Static value True for DisableBgpRoutePropagation. + * BGP route propagation is disabled. */ public static final DisableBgpRoutePropagation TRUE = fromString("True"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisassociateCloudServicePublicIpRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisassociateCloudServicePublicIpRequest.java index a1fe1dba1db2..1ef8b73bebbe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisassociateCloudServicePublicIpRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DisassociateCloudServicePublicIpRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DnsSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DnsSettings.java index ff96aeb4e5d8..7f4590d26204 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DnsSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/DnsSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveAdminRuleKind.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveAdminRuleKind.java index 65ac680144f4..06cd63ed98ba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveAdminRuleKind.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveAdminRuleKind.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class EffectiveAdminRuleKind extends ExpandableStringEnum { /** - * Static value Custom for EffectiveAdminRuleKind. + * Custom. */ public static final EffectiveAdminRuleKind CUSTOM = fromString("Custom"); /** - * Static value Default for EffectiveAdminRuleKind. + * Default. */ public static final EffectiveAdminRuleKind DEFAULT = fromString("Default"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java index c8a8d87345c9..288f84b7cc92 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Network base admin rule. */ -@Fluent +@Immutable public class EffectiveBaseSecurityAdminRule implements JsonSerializable { /* * Whether the rule is custom or default. @@ -50,7 +50,7 @@ public class EffectiveBaseSecurityAdminRule implements JsonSerializable ruleCollectionAppliesToGroups() { * @param ruleCollectionAppliesToGroups the ruleCollectionAppliesToGroups value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ - public EffectiveBaseSecurityAdminRule + EffectiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { this.ruleCollectionAppliesToGroups = ruleCollectionAppliesToGroups; return this; @@ -158,7 +158,7 @@ public List ruleGroups() { * @param ruleGroups the ruleGroups value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ - public EffectiveBaseSecurityAdminRule withRuleGroups(List ruleGroups) { + EffectiveBaseSecurityAdminRule withRuleGroups(List ruleGroups) { this.ruleGroups = ruleGroups; return this; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveConnectivityConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveConnectivityConfiguration.java index eeb2dbf70993..6b9572c02160 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveConnectivityConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveConnectivityConfiguration.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * The network manager effective connectivity configuration. */ -@Fluent +@Immutable public class EffectiveConnectivityConfiguration implements JsonSerializable { /* * Connectivity configuration ID. @@ -36,7 +36,7 @@ public class EffectiveConnectivityConfiguration implements JsonSerializable configurationGroups() { * @param configurationGroups the configurationGroups value to set. * @return the EffectiveConnectivityConfiguration object itself. */ - public EffectiveConnectivityConfiguration withConfigurationGroups(List configurationGroups) { + EffectiveConnectivityConfiguration withConfigurationGroups(List configurationGroups) { this.configurationGroups = configurationGroups; return this; } @@ -108,20 +108,6 @@ public String description() { return this.innerProperties() == null ? null : this.innerProperties().description(); } - /** - * Set the description property: A description of the connectivity configuration. - * - * @param description the description value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withDescription(description); - return this; - } - /** * Get the connectivityTopology property: Connectivity topology type. * @@ -131,20 +117,6 @@ public ConnectivityTopology connectivityTopology() { return this.innerProperties() == null ? null : this.innerProperties().connectivityTopology(); } - /** - * Set the connectivityTopology property: Connectivity topology type. - * - * @param connectivityTopology the connectivityTopology value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withConnectivityTopology(ConnectivityTopology connectivityTopology) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withConnectivityTopology(connectivityTopology); - return this; - } - /** * Get the hubs property: List of hubItems. * @@ -154,20 +126,6 @@ public List hubs() { return this.innerProperties() == null ? null : this.innerProperties().hubs(); } - /** - * Set the hubs property: List of hubItems. - * - * @param hubs the hubs value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withHubs(List hubs) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withHubs(hubs); - return this; - } - /** * Get the isGlobal property: Flag if global mesh is supported. * @@ -177,20 +135,6 @@ public IsGlobal isGlobal() { return this.innerProperties() == null ? null : this.innerProperties().isGlobal(); } - /** - * Set the isGlobal property: Flag if global mesh is supported. - * - * @param isGlobal the isGlobal value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withIsGlobal(IsGlobal isGlobal) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withIsGlobal(isGlobal); - return this; - } - /** * Get the connectivityCapabilities property: Collection of additional settings to enhance specific topology * behaviors of the connectivity configuration resource. @@ -201,22 +145,6 @@ public ConnectivityConfigurationPropertiesConnectivityCapabilities connectivityC return this.innerProperties() == null ? null : this.innerProperties().connectivityCapabilities(); } - /** - * Set the connectivityCapabilities property: Collection of additional settings to enhance specific topology - * behaviors of the connectivity configuration resource. - * - * @param connectivityCapabilities the connectivityCapabilities value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withConnectivityCapabilities( - ConnectivityConfigurationPropertiesConnectivityCapabilities connectivityCapabilities) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withConnectivityCapabilities(connectivityCapabilities); - return this; - } - /** * Get the appliesToGroups property: Groups for configuration. * @@ -226,20 +154,6 @@ public List appliesToGroups() { return this.innerProperties() == null ? null : this.innerProperties().appliesToGroups(); } - /** - * Set the appliesToGroups property: Groups for configuration. - * - * @param appliesToGroups the appliesToGroups value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withAppliesToGroups(List appliesToGroups) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withAppliesToGroups(appliesToGroups); - return this; - } - /** * Get the provisioningState property: The provisioning state of the connectivity configuration resource. * @@ -258,20 +172,6 @@ public DeleteExistingPeering deleteExistingPeering() { return this.innerProperties() == null ? null : this.innerProperties().deleteExistingPeering(); } - /** - * Set the deleteExistingPeering property: Flag if need to remove current existing peerings. - * - * @param deleteExistingPeering the deleteExistingPeering value to set. - * @return the EffectiveConnectivityConfiguration object itself. - */ - public EffectiveConnectivityConfiguration withDeleteExistingPeering(DeleteExistingPeering deleteExistingPeering) { - if (this.innerProperties() == null) { - this.innerProperties = new ConnectivityConfigurationProperties(); - } - this.innerProperties().withDeleteExistingPeering(deleteExistingPeering); - return this; - } - /** * Get the resourceGuid property: Unique identifier for this resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java index dcd4170ed35d..640bb2978a52 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -15,7 +15,7 @@ /** * Network default admin rule. */ -@Fluent +@Immutable public final class EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecurityAdminRule { /* * Whether the rule is custom or default. @@ -30,7 +30,7 @@ public final class EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecuri /** * Creates an instance of EffectiveDefaultSecurityAdminRule class. */ - public EffectiveDefaultSecurityAdminRule() { + private EffectiveDefaultSecurityAdminRule() { } /** @@ -52,52 +52,6 @@ DefaultAdminPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public EffectiveDefaultSecurityAdminRule withId(String id) { - super.withId(id); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveDefaultSecurityAdminRule withConfigurationDescription(String configurationDescription) { - super.withConfigurationDescription(configurationDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveDefaultSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription) { - super.withRuleCollectionDescription(ruleCollectionDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveDefaultSecurityAdminRule - withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { - super.withRuleCollectionAppliesToGroups(ruleCollectionAppliesToGroups); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveDefaultSecurityAdminRule withRuleGroups(List ruleGroups) { - super.withRuleGroups(ruleGroups); - return this; - } - /** * Get the description property: A description for this rule. Restricted to 140 chars. * @@ -116,20 +70,6 @@ public String flag() { return this.innerProperties() == null ? null : this.innerProperties().flag(); } - /** - * Set the flag property: Default rule flag. - * - * @param flag the flag value to set. - * @return the EffectiveDefaultSecurityAdminRule object itself. - */ - public EffectiveDefaultSecurityAdminRule withFlag(String flag) { - if (this.innerProperties() == null) { - this.innerProperties = new DefaultAdminPropertiesFormat(); - } - this.innerProperties().withFlag(flag); - return this; - } - /** * Get the protocol property: Network protocol this rule applies to. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroup.java index 013ec6f5156b..9c81bcd696f7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroup.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -12,11 +12,12 @@ import com.azure.json.JsonWriter; import java.io.IOException; import java.util.List; +import java.util.Map; /** * Effective network security group. */ -@Fluent +@Immutable public final class EffectiveNetworkSecurityGroup implements JsonSerializable { /* * The ID of network security group that is applied. @@ -36,12 +37,12 @@ public final class EffectiveNetworkSecurityGroup implements JsonSerializable> tagMap; /** * Creates an instance of EffectiveNetworkSecurityGroup class. */ - public EffectiveNetworkSecurityGroup() { + private EffectiveNetworkSecurityGroup() { } /** @@ -53,17 +54,6 @@ public SubResource networkSecurityGroup() { return this.networkSecurityGroup; } - /** - * Set the networkSecurityGroup property: The ID of network security group that is applied. - * - * @param networkSecurityGroup the networkSecurityGroup value to set. - * @return the EffectiveNetworkSecurityGroup object itself. - */ - public EffectiveNetworkSecurityGroup withNetworkSecurityGroup(SubResource networkSecurityGroup) { - this.networkSecurityGroup = networkSecurityGroup; - return this; - } - /** * Get the association property: Associated resources. * @@ -73,17 +63,6 @@ public EffectiveNetworkSecurityGroupAssociation association() { return this.association; } - /** - * Set the association property: Associated resources. - * - * @param association the association value to set. - * @return the EffectiveNetworkSecurityGroup object itself. - */ - public EffectiveNetworkSecurityGroup withAssociation(EffectiveNetworkSecurityGroupAssociation association) { - this.association = association; - return this; - } - /** * Get the effectiveSecurityRules property: A collection of effective security rules. * @@ -93,38 +72,15 @@ public List effectiveSecurityRules() { return this.effectiveSecurityRules; } - /** - * Set the effectiveSecurityRules property: A collection of effective security rules. - * - * @param effectiveSecurityRules the effectiveSecurityRules value to set. - * @return the EffectiveNetworkSecurityGroup object itself. - */ - public EffectiveNetworkSecurityGroup - withEffectiveSecurityRules(List effectiveSecurityRules) { - this.effectiveSecurityRules = effectiveSecurityRules; - return this; - } - /** * Get the tagMap property: Mapping of tags to list of IP Addresses included within the tag. * * @return the tagMap value. */ - public String tagMap() { + public Map> tagMap() { return this.tagMap; } - /** - * Set the tagMap property: Mapping of tags to list of IP Addresses included within the tag. - * - * @param tagMap the tagMap value to set. - * @return the EffectiveNetworkSecurityGroup object itself. - */ - public EffectiveNetworkSecurityGroup withTagMap(String tagMap) { - this.tagMap = tagMap; - return this; - } - /** * Validates the instance. * @@ -149,7 +105,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("association", this.association); jsonWriter.writeArrayField("effectiveSecurityRules", this.effectiveSecurityRules, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("tagMap", this.tagMap); + jsonWriter.writeMapField("tagMap", this.tagMap, + (writer, element) -> writer.writeArray(element, (writer1, element1) -> writer1.writeString(element1))); return jsonWriter.writeEndObject(); } @@ -179,7 +136,9 @@ public static EffectiveNetworkSecurityGroup fromJson(JsonReader jsonReader) thro = reader.readArray(reader1 -> EffectiveNetworkSecurityRule.fromJson(reader1)); deserializedEffectiveNetworkSecurityGroup.effectiveSecurityRules = effectiveSecurityRules; } else if ("tagMap".equals(fieldName)) { - deserializedEffectiveNetworkSecurityGroup.tagMap = reader.getString(); + Map> tagMap + = reader.readMap(reader1 -> reader1.readArray(reader2 -> reader2.getString())); + deserializedEffectiveNetworkSecurityGroup.tagMap = tagMap; } else { reader.skipChildren(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroupAssociation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroupAssociation.java index 0c37c4a11e5c..c71d0faba3f8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroupAssociation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroupAssociation.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -15,7 +15,7 @@ /** * The effective network security group association. */ -@Fluent +@Immutable public final class EffectiveNetworkSecurityGroupAssociation implements JsonSerializable { /* @@ -36,7 +36,7 @@ public final class EffectiveNetworkSecurityGroupAssociation /** * Creates an instance of EffectiveNetworkSecurityGroupAssociation class. */ - public EffectiveNetworkSecurityGroupAssociation() { + private EffectiveNetworkSecurityGroupAssociation() { } /** @@ -48,17 +48,6 @@ public SubResource networkManager() { return this.networkManager; } - /** - * Set the networkManager property: The ID of the Azure network manager if assigned. - * - * @param networkManager the networkManager value to set. - * @return the EffectiveNetworkSecurityGroupAssociation object itself. - */ - public EffectiveNetworkSecurityGroupAssociation withNetworkManager(SubResource networkManager) { - this.networkManager = networkManager; - return this; - } - /** * Get the subnet property: The ID of the subnet if assigned. * @@ -68,17 +57,6 @@ public SubResource subnet() { return this.subnet; } - /** - * Set the subnet property: The ID of the subnet if assigned. - * - * @param subnet the subnet value to set. - * @return the EffectiveNetworkSecurityGroupAssociation object itself. - */ - public EffectiveNetworkSecurityGroupAssociation withSubnet(SubResource subnet) { - this.subnet = subnet; - return this; - } - /** * Get the networkInterface property: The ID of the network interface if assigned. * @@ -88,17 +66,6 @@ public SubResource networkInterface() { return this.networkInterface; } - /** - * Set the networkInterface property: The ID of the network interface if assigned. - * - * @param networkInterface the networkInterface value to set. - * @return the EffectiveNetworkSecurityGroupAssociation object itself. - */ - public EffectiveNetworkSecurityGroupAssociation withNetworkInterface(SubResource networkInterface) { - this.networkInterface = networkInterface; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java index 4d92991a4179..35f8a34970b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Effective network security rules. */ -@Fluent +@Immutable public final class EffectiveNetworkSecurityRule implements JsonSerializable { /* * The name of the security rule specified by the user (if created by the user). @@ -99,7 +99,7 @@ public final class EffectiveNetworkSecurityRule implements JsonSerializable sourcePortRanges() { return this.sourcePortRanges; } - /** - * Set the sourcePortRanges property: The source port ranges. Expected values include a single integer between 0 and - * 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*). - * - * @param sourcePortRanges the sourcePortRanges value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withSourcePortRanges(List sourcePortRanges) { - this.sourcePortRanges = sourcePortRanges; - return this; - } - /** * Get the destinationPortRanges property: The destination port ranges. Expected values include a single integer * between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*). @@ -214,18 +158,6 @@ public List destinationPortRanges() { return this.destinationPortRanges; } - /** - * Set the destinationPortRanges property: The destination port ranges. Expected values include a single integer - * between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*). - * - * @param destinationPortRanges the destinationPortRanges value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withDestinationPortRanges(List destinationPortRanges) { - this.destinationPortRanges = destinationPortRanges; - return this; - } - /** * Get the sourceAddressPrefix property: The source address prefix. * @@ -235,17 +167,6 @@ public String sourceAddressPrefix() { return this.sourceAddressPrefix; } - /** - * Set the sourceAddressPrefix property: The source address prefix. - * - * @param sourceAddressPrefix the sourceAddressPrefix value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix) { - this.sourceAddressPrefix = sourceAddressPrefix; - return this; - } - /** * Get the destinationAddressPrefix property: The destination address prefix. * @@ -255,17 +176,6 @@ public String destinationAddressPrefix() { return this.destinationAddressPrefix; } - /** - * Set the destinationAddressPrefix property: The destination address prefix. - * - * @param destinationAddressPrefix the destinationAddressPrefix value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix) { - this.destinationAddressPrefix = destinationAddressPrefix; - return this; - } - /** * Get the sourceAddressPrefixes property: The source address prefixes. Expected values include CIDR IP ranges, * Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). @@ -276,18 +186,6 @@ public List sourceAddressPrefixes() { return this.sourceAddressPrefixes; } - /** - * Set the sourceAddressPrefixes property: The source address prefixes. Expected values include CIDR IP ranges, - * Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). - * - * @param sourceAddressPrefixes the sourceAddressPrefixes value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List sourceAddressPrefixes) { - this.sourceAddressPrefixes = sourceAddressPrefixes; - return this; - } - /** * Get the destinationAddressPrefixes property: The destination address prefixes. Expected values include CIDR IP * ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). @@ -298,18 +196,6 @@ public List destinationAddressPrefixes() { return this.destinationAddressPrefixes; } - /** - * Set the destinationAddressPrefixes property: The destination address prefixes. Expected values include CIDR IP - * ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). - * - * @param destinationAddressPrefixes the destinationAddressPrefixes value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List destinationAddressPrefixes) { - this.destinationAddressPrefixes = destinationAddressPrefixes; - return this; - } - /** * Get the expandedSourceAddressPrefix property: The expanded source address prefix. * @@ -319,17 +205,6 @@ public List expandedSourceAddressPrefix() { return this.expandedSourceAddressPrefix; } - /** - * Set the expandedSourceAddressPrefix property: The expanded source address prefix. - * - * @param expandedSourceAddressPrefix the expandedSourceAddressPrefix value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List expandedSourceAddressPrefix) { - this.expandedSourceAddressPrefix = expandedSourceAddressPrefix; - return this; - } - /** * Get the expandedDestinationAddressPrefix property: Expanded destination address prefix. * @@ -339,18 +214,6 @@ public List expandedDestinationAddressPrefix() { return this.expandedDestinationAddressPrefix; } - /** - * Set the expandedDestinationAddressPrefix property: Expanded destination address prefix. - * - * @param expandedDestinationAddressPrefix the expandedDestinationAddressPrefix value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule - withExpandedDestinationAddressPrefix(List expandedDestinationAddressPrefix) { - this.expandedDestinationAddressPrefix = expandedDestinationAddressPrefix; - return this; - } - /** * Get the access property: Whether network traffic is allowed or denied. * @@ -360,17 +223,6 @@ public SecurityRuleAccess access() { return this.access; } - /** - * Set the access property: Whether network traffic is allowed or denied. - * - * @param access the access value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access) { - this.access = access; - return this; - } - /** * Get the priority property: The priority of the rule. * @@ -380,17 +232,6 @@ public Integer priority() { return this.priority; } - /** - * Set the priority property: The priority of the rule. - * - * @param priority the priority value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withPriority(Integer priority) { - this.priority = priority; - return this; - } - /** * Get the direction property: The direction of the rule. * @@ -400,17 +241,6 @@ public SecurityRuleDirection direction() { return this.direction; } - /** - * Set the direction property: The direction of the rule. - * - * @param direction the direction value to set. - * @return the EffectiveNetworkSecurityRule object itself. - */ - public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction) { - this.direction = direction; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoute.java index ba84ad19e6e3..cb8a9068807f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoute.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Effective Route. */ -@Fluent +@Immutable public final class EffectiveRoute implements JsonSerializable { /* * The name of the user defined route. This is optional. @@ -55,7 +55,7 @@ public final class EffectiveRoute implements JsonSerializable { /** * Creates an instance of EffectiveRoute class. */ - public EffectiveRoute() { + private EffectiveRoute() { } /** @@ -67,17 +67,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the user defined route. This is optional. - * - * @param name the name value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withName(String name) { - this.name = name; - return this; - } - /** * Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network * interfaces in the subnet. @@ -88,18 +77,6 @@ public Boolean disableBgpRoutePropagation() { return this.disableBgpRoutePropagation; } - /** - * Set the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network - * interfaces in the subnet. - * - * @param disableBgpRoutePropagation the disableBgpRoutePropagation value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation) { - this.disableBgpRoutePropagation = disableBgpRoutePropagation; - return this; - } - /** * Get the source property: Who created the route. * @@ -109,17 +86,6 @@ public EffectiveRouteSource source() { return this.source; } - /** - * Set the source property: Who created the route. - * - * @param source the source value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withSource(EffectiveRouteSource source) { - this.source = source; - return this; - } - /** * Get the state property: The value of effective route. * @@ -129,17 +95,6 @@ public EffectiveRouteState state() { return this.state; } - /** - * Set the state property: The value of effective route. - * - * @param state the state value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withState(EffectiveRouteState state) { - this.state = state; - return this; - } - /** * Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation. * @@ -149,17 +104,6 @@ public List addressPrefix() { return this.addressPrefix; } - /** - * Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation. - * - * @param addressPrefix the addressPrefix value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withAddressPrefix(List addressPrefix) { - this.addressPrefix = addressPrefix; - return this; - } - /** * Get the nextHopIpAddress property: The IP address of the next hop of the effective route. * @@ -169,17 +113,6 @@ public List nextHopIpAddress() { return this.nextHopIpAddress; } - /** - * Set the nextHopIpAddress property: The IP address of the next hop of the effective route. - * - * @param nextHopIpAddress the nextHopIpAddress value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withNextHopIpAddress(List nextHopIpAddress) { - this.nextHopIpAddress = nextHopIpAddress; - return this; - } - /** * Get the nextHopType property: The type of Azure hop the packet should be sent to. * @@ -189,17 +122,6 @@ public RouteNextHopType nextHopType() { return this.nextHopType; } - /** - * Set the nextHopType property: The type of Azure hop the packet should be sent to. - * - * @param nextHopType the nextHopType value to set. - * @return the EffectiveRoute object itself. - */ - public EffectiveRoute withNextHopType(RouteNextHopType nextHopType) { - this.nextHopType = nextHopType; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteMapRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteMapRoute.java index 093e7206d44c..68397bbc8dd2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteMapRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteMapRoute.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The effective RouteMap route configured on the connection resource. */ -@Fluent +@Immutable public final class EffectiveRouteMapRoute implements JsonSerializable { /* * The address prefix of the route. @@ -34,7 +34,7 @@ public final class EffectiveRouteMapRoute implements JsonSerializable { /** - * Static value Unknown for EffectiveRouteSource. + * Unknown. */ public static final EffectiveRouteSource UNKNOWN = fromString("Unknown"); /** - * Static value User for EffectiveRouteSource. + * User. */ public static final EffectiveRouteSource USER = fromString("User"); /** - * Static value VirtualNetworkGateway for EffectiveRouteSource. + * VirtualNetworkGateway. */ public static final EffectiveRouteSource VIRTUAL_NETWORK_GATEWAY = fromString("VirtualNetworkGateway"); /** - * Static value Default for EffectiveRouteSource. + * Default. */ public static final EffectiveRouteSource DEFAULT = fromString("Default"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteState.java index 6e7e9b07efc9..04b685908cf9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class EffectiveRouteState extends ExpandableStringEnum { /** - * Static value Active for EffectiveRouteState. + * Active. */ public static final EffectiveRouteState ACTIVE = fromString("Active"); /** - * Static value Invalid for EffectiveRouteState. + * Invalid. */ public static final EffectiveRouteState INVALID = fromString("Invalid"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java index c503e7629598..a637def85377 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java index e8908dfd5b2a..12fccaff1c35 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -15,7 +15,7 @@ /** * Network admin rule. */ -@Fluent +@Immutable public final class EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdminRule { /* * Whether the rule is custom or default. @@ -30,7 +30,7 @@ public final class EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdmin /** * Creates an instance of EffectiveSecurityAdminRule class. */ - public EffectiveSecurityAdminRule() { + private EffectiveSecurityAdminRule() { } /** @@ -52,52 +52,6 @@ AdminPropertiesFormat innerProperties() { return this.innerProperties; } - /** - * {@inheritDoc} - */ - @Override - public EffectiveSecurityAdminRule withId(String id) { - super.withId(id); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveSecurityAdminRule withConfigurationDescription(String configurationDescription) { - super.withConfigurationDescription(configurationDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription) { - super.withRuleCollectionDescription(ruleCollectionDescription); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveSecurityAdminRule - withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups) { - super.withRuleCollectionAppliesToGroups(ruleCollectionAppliesToGroups); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EffectiveSecurityAdminRule withRuleGroups(List ruleGroups) { - super.withRuleGroups(ruleGroups); - return this; - } - /** * Get the description property: A description for this rule. Restricted to 140 chars. * @@ -107,20 +61,6 @@ public String description() { return this.innerProperties() == null ? null : this.innerProperties().description(); } - /** - * Set the description property: A description for this rule. Restricted to 140 chars. - * - * @param description the description value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withDescription(String description) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDescription(description); - return this; - } - /** * Get the protocol property: Network protocol this rule applies to. * @@ -130,20 +70,6 @@ public SecurityConfigurationRuleProtocol protocol() { return this.innerProperties() == null ? null : this.innerProperties().protocol(); } - /** - * Set the protocol property: Network protocol this rule applies to. - * - * @param protocol the protocol value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withProtocol(SecurityConfigurationRuleProtocol protocol) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withProtocol(protocol); - return this; - } - /** * Get the sources property: The CIDR or source IP ranges. * @@ -153,20 +79,6 @@ public List sources() { return this.innerProperties() == null ? null : this.innerProperties().sources(); } - /** - * Set the sources property: The CIDR or source IP ranges. - * - * @param sources the sources value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withSources(List sources) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withSources(sources); - return this; - } - /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. * @@ -176,20 +88,6 @@ public List destinations() { return this.innerProperties() == null ? null : this.innerProperties().destinations(); } - /** - * Set the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * - * @param destinations the destinations value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withDestinations(List destinations) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDestinations(destinations); - return this; - } - /** * Get the sourcePortRanges property: The source port ranges. * @@ -199,20 +97,6 @@ public List sourcePortRanges() { return this.innerProperties() == null ? null : this.innerProperties().sourcePortRanges(); } - /** - * Set the sourcePortRanges property: The source port ranges. - * - * @param sourcePortRanges the sourcePortRanges value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withSourcePortRanges(List sourcePortRanges) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withSourcePortRanges(sourcePortRanges); - return this; - } - /** * Get the destinationPortRanges property: The destination port ranges. * @@ -222,20 +106,6 @@ public List destinationPortRanges() { return this.innerProperties() == null ? null : this.innerProperties().destinationPortRanges(); } - /** - * Set the destinationPortRanges property: The destination port ranges. - * - * @param destinationPortRanges the destinationPortRanges value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withDestinationPortRanges(List destinationPortRanges) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDestinationPortRanges(destinationPortRanges); - return this; - } - /** * Get the access property: Indicates the access allowed for this particular rule. * @@ -245,20 +115,6 @@ public SecurityConfigurationRuleAccess access() { return this.innerProperties() == null ? null : this.innerProperties().access(); } - /** - * Set the access property: Indicates the access allowed for this particular rule. - * - * @param access the access value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withAccess(SecurityConfigurationRuleAccess access) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withAccess(access); - return this; - } - /** * Get the priority property: The priority of the rule. The value can be between 1 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 @@ -270,22 +126,6 @@ public Integer priority() { return this.innerProperties() == null ? null : this.innerProperties().priority(); } - /** - * Set the priority property: The priority of the rule. The value can be between 1 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. - * - * @param priority the priority value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withPriority(Integer priority) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withPriority(priority); - return this; - } - /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. * @@ -295,20 +135,6 @@ public SecurityConfigurationRuleDirection direction() { return this.innerProperties() == null ? null : this.innerProperties().direction(); } - /** - * Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * - * @param direction the direction value to set. - * @return the EffectiveSecurityAdminRule object itself. - */ - public EffectiveSecurityAdminRule withDirection(SecurityConfigurationRuleDirection direction) { - if (this.innerProperties() == null) { - this.innerProperties = new AdminPropertiesFormat(); - } - this.innerProperties().withDirection(direction); - return this; - } - /** * Get the provisioningState property: The provisioning state of the resource. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityRuleProtocol.java index d653af0f82d4..6fe47fd2eb27 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class EffectiveSecurityRuleProtocol extends ExpandableStringEnum { /** - * Static value Tcp for EffectiveSecurityRuleProtocol. + * Tcp. */ public static final EffectiveSecurityRuleProtocol TCP = fromString("Tcp"); /** - * Static value Udp for EffectiveSecurityRuleProtocol. + * Udp. */ public static final EffectiveSecurityRuleProtocol UDP = fromString("Udp"); /** - * Static value All for EffectiveSecurityRuleProtocol. + * All. */ public static final EffectiveSecurityRuleProtocol ALL = fromString("All"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java index d235d9f9fc3b..61cd6ece17aa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class EndpointType extends ExpandableStringEnum { /** - * Static value AzureVM for EndpointType. + * AzureVM. */ public static final EndpointType AZURE_VM = fromString("AzureVM"); /** - * Static value AzureVNet for EndpointType. + * AzureVNet. */ public static final EndpointType AZURE_VNET = fromString("AzureVNet"); /** - * Static value AzureSubnet for EndpointType. + * AzureSubnet. */ public static final EndpointType AZURE_SUBNET = fromString("AzureSubnet"); /** - * Static value ExternalAddress for EndpointType. + * ExternalAddress. */ public static final EndpointType EXTERNAL_ADDRESS = fromString("ExternalAddress"); /** - * Static value MMAWorkspaceMachine for EndpointType. + * MMAWorkspaceMachine. */ public static final EndpointType MMAWORKSPACE_MACHINE = fromString("MMAWorkspaceMachine"); /** - * Static value MMAWorkspaceNetwork for EndpointType. + * MMAWorkspaceNetwork. */ public static final EndpointType MMAWORKSPACE_NETWORK = fromString("MMAWorkspaceNetwork"); /** - * Static value AzureArcVM for EndpointType. + * AzureArcVM. */ public static final EndpointType AZURE_ARC_VM = fromString("AzureArcVM"); /** - * Static value AzureVMSS for EndpointType. + * AzureVMSS. */ public static final EndpointType AZURE_VMSS = fromString("AzureVMSS"); /** - * Static value AzureArcNetwork for EndpointType. + * AzureArcNetwork. */ public static final EndpointType AZURE_ARC_NETWORK = fromString("AzureArcNetwork"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Error.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Error.java index 81e021a17d11..3b04d8094841 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Error.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Error.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -51,7 +51,7 @@ public final class Error extends ManagementError { /** * Creates an instance of Error class. */ - public Error() { + private Error() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorAdditionalInfo.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorAdditionalInfo.java index a31e8382507c..df2041b0c8ac 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorAdditionalInfo.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorAdditionalInfo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -29,7 +29,7 @@ public final class ErrorAdditionalInfo implements JsonSerializable { /** * Creates an instance of ErrorDetail class. */ - public ErrorDetail() { + private ErrorDetail() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorException.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorException.java index 7d575ef9c665..5e00fe514e2f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorException.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ErrorException.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EvaluatedNetworkSecurityGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EvaluatedNetworkSecurityGroup.java index 72b280c2f10d..76b2f03cc06c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EvaluatedNetworkSecurityGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EvaluatedNetworkSecurityGroup.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Results of network security group evaluation. */ -@Fluent +@Immutable public final class EvaluatedNetworkSecurityGroup implements JsonSerializable { /* * Network security group ID. @@ -40,7 +40,7 @@ public final class EvaluatedNetworkSecurityGroup implements JsonSerializable { /** - * Static value RequestURI for ExceptionEntryMatchVariable. + * RequestURI. */ public static final ExceptionEntryMatchVariable REQUEST_URI = fromString("RequestURI"); /** - * Static value RemoteAddr for ExceptionEntryMatchVariable. + * RemoteAddr. */ public static final ExceptionEntryMatchVariable REMOTE_ADDR = fromString("RemoteAddr"); /** - * Static value RequestHeader for ExceptionEntryMatchVariable. + * RequestHeader. */ public static final ExceptionEntryMatchVariable REQUEST_HEADER = fromString("RequestHeader"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntrySelectorMatchOperator.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntrySelectorMatchOperator.java index bce595d028ba..ceab92e3a592 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntrySelectorMatchOperator.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntrySelectorMatchOperator.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class ExceptionEntrySelectorMatchOperator extends ExpandableStringEnum { /** - * Static value Equals for ExceptionEntrySelectorMatchOperator. + * Equals. */ public static final ExceptionEntrySelectorMatchOperator EQUALS = fromString("Equals"); /** - * Static value Contains for ExceptionEntrySelectorMatchOperator. + * Contains. */ public static final ExceptionEntrySelectorMatchOperator CONTAINS = fromString("Contains"); /** - * Static value StartsWith for ExceptionEntrySelectorMatchOperator. + * StartsWith. */ public static final ExceptionEntrySelectorMatchOperator STARTS_WITH = fromString("StartsWith"); /** - * Static value EndsWith for ExceptionEntrySelectorMatchOperator. + * EndsWith. */ public static final ExceptionEntrySelectorMatchOperator ENDS_WITH = fromString("EndsWith"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryValueMatchOperator.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryValueMatchOperator.java index 0b85a6ce1448..ad67d07d26c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryValueMatchOperator.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryValueMatchOperator.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class ExceptionEntryValueMatchOperator extends ExpandableStringEnum { /** - * Static value Equals for ExceptionEntryValueMatchOperator. + * Equals. */ public static final ExceptionEntryValueMatchOperator EQUALS = fromString("Equals"); /** - * Static value Contains for ExceptionEntryValueMatchOperator. + * Contains. */ public static final ExceptionEntryValueMatchOperator CONTAINS = fromString("Contains"); /** - * Static value StartsWith for ExceptionEntryValueMatchOperator. + * StartsWith. */ public static final ExceptionEntryValueMatchOperator STARTS_WITH = fromString("StartsWith"); /** - * Static value EndsWith for ExceptionEntryValueMatchOperator. + * EndsWith. */ public static final ExceptionEntryValueMatchOperator ENDS_WITH = fromString("EndsWith"); /** - * Static value IPMatch for ExceptionEntryValueMatchOperator. + * IPMatch. */ public static final ExceptionEntryValueMatchOperator IPMATCH = fromString("IPMatch"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java index f1303a574195..1c5bb83a5e16 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java index 8aa23d23f762..226aff643d26 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java index 7e4a1b2a2375..34748a06bbe7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExplicitProxy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExplicitProxy.java index 37a9d7d56dba..30ef76c1fee0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExplicitProxy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExplicitProxy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitArpTable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitArpTable.java index 069d759e6905..a673b07864d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitArpTable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitArpTable.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The ARP table associated with the ExpressRouteCircuit. */ -@Fluent +@Immutable public final class ExpressRouteCircuitArpTable implements JsonSerializable { /* * Entry age in minutes. @@ -39,7 +39,7 @@ public final class ExpressRouteCircuitArpTable implements JsonSerializable { /** - * Static value NotConfigured for ExpressRouteCircuitPeeringAdvertisedPublicPrefixState. + * NotConfigured. */ public static final ExpressRouteCircuitPeeringAdvertisedPublicPrefixState NOT_CONFIGURED = fromString("NotConfigured"); /** - * Static value Configuring for ExpressRouteCircuitPeeringAdvertisedPublicPrefixState. + * Configuring. */ public static final ExpressRouteCircuitPeeringAdvertisedPublicPrefixState CONFIGURING = fromString("Configuring"); /** - * Static value Configured for ExpressRouteCircuitPeeringAdvertisedPublicPrefixState. + * Configured. */ public static final ExpressRouteCircuitPeeringAdvertisedPublicPrefixState CONFIGURED = fromString("Configured"); /** - * Static value ValidationNeeded for ExpressRouteCircuitPeeringAdvertisedPublicPrefixState. + * ValidationNeeded. */ public static final ExpressRouteCircuitPeeringAdvertisedPublicPrefixState VALIDATION_NEEDED = fromString("ValidationNeeded"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringConfig.java index 65400fd028a1..eccec71f2852 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringId.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringId.java index 64aeb8ff91bd..f34806a8cdd5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringId.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringId.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringState.java index 140343866eb0..d16e3f425368 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRouteCircuitPeeringState extends ExpandableStringEnum { /** - * Static value Disabled for ExpressRouteCircuitPeeringState. + * Disabled. */ public static final ExpressRouteCircuitPeeringState DISABLED = fromString("Disabled"); /** - * Static value Enabled for ExpressRouteCircuitPeeringState. + * Enabled. */ public static final ExpressRouteCircuitPeeringState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitReference.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitReference.java index d4faad266154..722c15316160 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitReference.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitReference.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTable.java index 2e09eefe64b2..f7d328cec59d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTable.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The routes table associated with the ExpressRouteCircuit. */ -@Fluent +@Immutable public final class ExpressRouteCircuitRoutesTable implements JsonSerializable { /* * IP address of a network entity. @@ -44,7 +44,7 @@ public final class ExpressRouteCircuitRoutesTable implements JsonSerializable { /* @@ -47,7 +47,7 @@ public final class ExpressRouteCircuitRoutesTableSummary /** * Creates an instance of ExpressRouteCircuitRoutesTableSummary class. */ - public ExpressRouteCircuitRoutesTableSummary() { + private ExpressRouteCircuitRoutesTableSummary() { } /** @@ -59,17 +59,6 @@ public String neighbor() { return this.neighbor; } - /** - * Set the neighbor property: IP address of the neighbor. - * - * @param neighbor the neighbor value to set. - * @return the ExpressRouteCircuitRoutesTableSummary object itself. - */ - public ExpressRouteCircuitRoutesTableSummary withNeighbor(String neighbor) { - this.neighbor = neighbor; - return this; - } - /** * Get the v property: BGP version number spoken to the neighbor. * @@ -79,17 +68,6 @@ public Integer v() { return this.v; } - /** - * Set the v property: BGP version number spoken to the neighbor. - * - * @param v the v value to set. - * @return the ExpressRouteCircuitRoutesTableSummary object itself. - */ - public ExpressRouteCircuitRoutesTableSummary withV(Integer v) { - this.v = v; - return this; - } - /** * Get the as property: Autonomous system number. * @@ -99,17 +77,6 @@ public Integer as() { return this.as; } - /** - * Set the as property: Autonomous system number. - * - * @param as the as value to set. - * @return the ExpressRouteCircuitRoutesTableSummary object itself. - */ - public ExpressRouteCircuitRoutesTableSummary withAs(Integer as) { - this.as = as; - return this; - } - /** * Get the upDown property: The length of time that the BGP session has been in the Established state, or the * current status if not in the Established state. @@ -120,18 +87,6 @@ public String upDown() { return this.upDown; } - /** - * Set the upDown property: The length of time that the BGP session has been in the Established state, or the - * current status if not in the Established state. - * - * @param upDown the upDown value to set. - * @return the ExpressRouteCircuitRoutesTableSummary object itself. - */ - public ExpressRouteCircuitRoutesTableSummary withUpDown(String upDown) { - this.upDown = upDown; - return this; - } - /** * Get the statePfxRcd property: Current state of the BGP session, and the number of prefixes that have been * received from a neighbor or peer group. @@ -142,18 +97,6 @@ public String statePfxRcd() { return this.statePfxRcd; } - /** - * Set the statePfxRcd property: Current state of the BGP session, and the number of prefixes that have been - * received from a neighbor or peer group. - * - * @param statePfxRcd the statePfxRcd value to set. - * @return the ExpressRouteCircuitRoutesTableSummary object itself. - */ - public ExpressRouteCircuitRoutesTableSummary withStatePfxRcd(String statePfxRcd) { - this.statePfxRcd = statePfxRcd; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitServiceProviderProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitServiceProviderProperties.java index 9118edebaac4..32af9e79c174 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitServiceProviderProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitServiceProviderProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSku.java index 3eea0b29cbe7..b420d1cd3c0d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuFamily.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuFamily.java index 468cf680cf1c..199226b938be 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuFamily.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuFamily.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRouteCircuitSkuFamily extends ExpandableStringEnum { /** - * Static value UnlimitedData for ExpressRouteCircuitSkuFamily. + * UnlimitedData. */ public static final ExpressRouteCircuitSkuFamily UNLIMITED_DATA = fromString("UnlimitedData"); /** - * Static value MeteredData for ExpressRouteCircuitSkuFamily. + * MeteredData. */ public static final ExpressRouteCircuitSkuFamily METERED_DATA = fromString("MeteredData"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuTier.java index 3d9a25be9612..aac0508551a9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ExpressRouteCircuitSkuTier extends ExpandableStringEnum { /** - * Static value Standard for ExpressRouteCircuitSkuTier. + * Standard. */ public static final ExpressRouteCircuitSkuTier STANDARD = fromString("Standard"); /** - * Static value Premium for ExpressRouteCircuitSkuTier. + * Premium. */ public static final ExpressRouteCircuitSkuTier PREMIUM = fromString("Premium"); /** - * Static value Basic for ExpressRouteCircuitSkuTier. + * Basic. */ public static final ExpressRouteCircuitSkuTier BASIC = fromString("Basic"); /** - * Static value Local for ExpressRouteCircuitSkuTier. + * Local. */ public static final ExpressRouteCircuitSkuTier LOCAL = fromString("Local"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteConnectionId.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteConnectionId.java index 11f4e67082aa..f17461591694 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteConnectionId.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteConnectionId.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java index 432c852c9bb5..cb64f7b75cc2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The routes table associated with the ExpressRouteCircuit. */ -@Fluent +@Immutable public final class ExpressRouteCrossConnectionRoutesTableSummary implements JsonSerializable { /* @@ -42,7 +42,7 @@ public final class ExpressRouteCrossConnectionRoutesTableSummary /** * Creates an instance of ExpressRouteCrossConnectionRoutesTableSummary class. */ - public ExpressRouteCrossConnectionRoutesTableSummary() { + private ExpressRouteCrossConnectionRoutesTableSummary() { } /** @@ -54,17 +54,6 @@ public String neighbor() { return this.neighbor; } - /** - * Set the neighbor property: IP address of Neighbor router. - * - * @param neighbor the neighbor value to set. - * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. - */ - public ExpressRouteCrossConnectionRoutesTableSummary withNeighbor(String neighbor) { - this.neighbor = neighbor; - return this; - } - /** * Get the asn property: Autonomous system number. * @@ -74,17 +63,6 @@ public Integer asn() { return this.asn; } - /** - * Set the asn property: Autonomous system number. - * - * @param asn the asn value to set. - * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. - */ - public ExpressRouteCrossConnectionRoutesTableSummary withAsn(Integer asn) { - this.asn = asn; - return this; - } - /** * Get the upDown property: The length of time that the BGP session has been in the Established state, or the * current status if not in the Established state. @@ -95,18 +73,6 @@ public String upDown() { return this.upDown; } - /** - * Set the upDown property: The length of time that the BGP session has been in the Established state, or the - * current status if not in the Established state. - * - * @param upDown the upDown value to set. - * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. - */ - public ExpressRouteCrossConnectionRoutesTableSummary withUpDown(String upDown) { - this.upDown = upDown; - return this; - } - /** * Get the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have * been received from a neighbor or peer group. @@ -117,18 +83,6 @@ public String stateOrPrefixesReceived() { return this.stateOrPrefixesReceived; } - /** - * Set the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have - * been received from a neighbor or peer group. - * - * @param stateOrPrefixesReceived the stateOrPrefixesReceived value to set. - * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. - */ - public ExpressRouteCrossConnectionRoutesTableSummary withStateOrPrefixesReceived(String stateOrPrefixesReceived) { - this.stateOrPrefixesReceived = stateOrPrefixesReceived; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverCircuitResourceDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverCircuitResourceDetails.java index 8043794e573a..3cf780d42945 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverCircuitResourceDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverCircuitResourceDetails.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The ExpressRouteFailoverCircuitResourceDetails model. */ -@Fluent +@Immutable public final class ExpressRouteFailoverCircuitResourceDetails implements JsonSerializable { /* @@ -35,7 +35,7 @@ public final class ExpressRouteFailoverCircuitResourceDetails /** * Creates an instance of ExpressRouteFailoverCircuitResourceDetails class. */ - public ExpressRouteFailoverCircuitResourceDetails() { + private ExpressRouteFailoverCircuitResourceDetails() { } /** @@ -47,17 +47,6 @@ public String nrpResourceUri() { return this.nrpResourceUri; } - /** - * Set the nrpResourceUri property: NRP Resource URI of the circuit. - * - * @param nrpResourceUri the nrpResourceUri value to set. - * @return the ExpressRouteFailoverCircuitResourceDetails object itself. - */ - public ExpressRouteFailoverCircuitResourceDetails withNrpResourceUri(String nrpResourceUri) { - this.nrpResourceUri = nrpResourceUri; - return this; - } - /** * Get the name property: Circuit Name. * @@ -67,17 +56,6 @@ public String name() { return this.name; } - /** - * Set the name property: Circuit Name. - * - * @param name the name value to set. - * @return the ExpressRouteFailoverCircuitResourceDetails object itself. - */ - public ExpressRouteFailoverCircuitResourceDetails withName(String name) { - this.name = name; - return this; - } - /** * Get the connectionName property: Connection name associated with the circuit. * @@ -87,17 +65,6 @@ public String connectionName() { return this.connectionName; } - /** - * Set the connectionName property: Connection name associated with the circuit. - * - * @param connectionName the connectionName value to set. - * @return the ExpressRouteFailoverCircuitResourceDetails object itself. - */ - public ExpressRouteFailoverCircuitResourceDetails withConnectionName(String connectionName) { - this.connectionName = connectionName; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverConnectionResourceDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverConnectionResourceDetails.java index a8666a88375c..08ed41c158fc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverConnectionResourceDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverConnectionResourceDetails.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The ExpressRouteFailoverConnectionResourceDetails model. */ -@Fluent +@Immutable public final class ExpressRouteFailoverConnectionResourceDetails implements JsonSerializable { /* @@ -40,7 +40,7 @@ public final class ExpressRouteFailoverConnectionResourceDetails /** * Creates an instance of ExpressRouteFailoverConnectionResourceDetails class. */ - public ExpressRouteFailoverConnectionResourceDetails() { + private ExpressRouteFailoverConnectionResourceDetails() { } /** @@ -52,17 +52,6 @@ public String nrpResourceUri() { return this.nrpResourceUri; } - /** - * Set the nrpResourceUri property: NRP Resource URI of the connection. - * - * @param nrpResourceUri the nrpResourceUri value to set. - * @return the ExpressRouteFailoverConnectionResourceDetails object itself. - */ - public ExpressRouteFailoverConnectionResourceDetails withNrpResourceUri(String nrpResourceUri) { - this.nrpResourceUri = nrpResourceUri; - return this; - } - /** * Get the name property: Connection Name. * @@ -72,17 +61,6 @@ public String name() { return this.name; } - /** - * Set the name property: Connection Name. - * - * @param name the name value to set. - * @return the ExpressRouteFailoverConnectionResourceDetails object itself. - */ - public ExpressRouteFailoverConnectionResourceDetails withName(String name) { - this.name = name; - return this; - } - /** * Get the status property: The current status of the connection. * @@ -92,17 +70,6 @@ public FailoverConnectionStatus status() { return this.status; } - /** - * Set the status property: The current status of the connection. - * - * @param status the status value to set. - * @return the ExpressRouteFailoverConnectionResourceDetails object itself. - */ - public ExpressRouteFailoverConnectionResourceDetails withStatus(FailoverConnectionStatus status) { - this.status = status; - return this; - } - /** * Get the lastUpdatedTime property: Time when the connection was last updated. * @@ -112,17 +79,6 @@ public String lastUpdatedTime() { return this.lastUpdatedTime; } - /** - * Set the lastUpdatedTime property: Time when the connection was last updated. - * - * @param lastUpdatedTime the lastUpdatedTime value to set. - * @return the ExpressRouteFailoverConnectionResourceDetails object itself. - */ - public ExpressRouteFailoverConnectionResourceDetails withLastUpdatedTime(String lastUpdatedTime) { - this.lastUpdatedTime = lastUpdatedTime; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverRedundantRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverRedundantRoute.java index 61d2bf2cdf52..583505289f4a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverRedundantRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverRedundantRoute.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The ExpressRouteFailoverRedundantRoute model. */ -@Fluent +@Immutable public final class ExpressRouteFailoverRedundantRoute implements JsonSerializable { /* * A list of all the peering locations for the redundant routes @@ -30,7 +30,7 @@ public final class ExpressRouteFailoverRedundantRoute implements JsonSerializabl /** * Creates an instance of ExpressRouteFailoverRedundantRoute class. */ - public ExpressRouteFailoverRedundantRoute() { + private ExpressRouteFailoverRedundantRoute() { } /** @@ -42,17 +42,6 @@ public List peeringLocations() { return this.peeringLocations; } - /** - * Set the peeringLocations property: A list of all the peering locations for the redundant routes. - * - * @param peeringLocations the peeringLocations value to set. - * @return the ExpressRouteFailoverRedundantRoute object itself. - */ - public ExpressRouteFailoverRedundantRoute withPeeringLocations(List peeringLocations) { - this.peeringLocations = peeringLocations; - return this; - } - /** * Get the routes property: A list of all the redundant routes in the peering locations. * @@ -62,17 +51,6 @@ public List routes() { return this.routes; } - /** - * Set the routes property: A list of all the redundant routes in the peering locations. - * - * @param routes the routes value to set. - * @return the ExpressRouteFailoverRedundantRoute object itself. - */ - public ExpressRouteFailoverRedundantRoute withRoutes(List routes) { - this.routes = routes; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverStopApiParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverStopApiParameters.java index 6053e7e3ec05..b12d931b7c50 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverStopApiParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverStopApiParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfiguration.java index 5ff529c7aaa8..61c281d936c1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds.java index 1e91ad549f47..ff97a602e77f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkAdminState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkAdminState.java index ac7746e4eb31..43b6988c7439 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkAdminState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkAdminState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRouteLinkAdminState extends ExpandableStringEnum { /** - * Static value Enabled for ExpressRouteLinkAdminState. + * Enabled. */ public static final ExpressRouteLinkAdminState ENABLED = fromString("Enabled"); /** - * Static value Disabled for ExpressRouteLinkAdminState. + * Disabled. */ public static final ExpressRouteLinkAdminState DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkConnectorType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkConnectorType.java index a8767078a42d..84b4d76037cb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkConnectorType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkConnectorType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRouteLinkConnectorType extends ExpandableStringEnum { /** - * Static value LC for ExpressRouteLinkConnectorType. + * LC. */ public static final ExpressRouteLinkConnectorType LC = fromString("LC"); /** - * Static value SC for ExpressRouteLinkConnectorType. + * SC. */ public static final ExpressRouteLinkConnectorType SC = fromString("SC"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecCipher.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecCipher.java index cac5e1ea5cac..cb9eb3056652 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecCipher.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecCipher.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ExpressRouteLinkMacSecCipher extends ExpandableStringEnum { /** - * Static value GcmAes256 for ExpressRouteLinkMacSecCipher. + * GcmAes256. */ public static final ExpressRouteLinkMacSecCipher GCM_AES256 = fromString("GcmAes256"); /** - * Static value GcmAes128 for ExpressRouteLinkMacSecCipher. + * GcmAes128. */ public static final ExpressRouteLinkMacSecCipher GCM_AES128 = fromString("GcmAes128"); /** - * Static value GcmAesXpn128 for ExpressRouteLinkMacSecCipher. + * GcmAesXpn128. */ public static final ExpressRouteLinkMacSecCipher GCM_AES_XPN128 = fromString("GcmAesXpn128"); /** - * Static value GcmAesXpn256 for ExpressRouteLinkMacSecCipher. + * GcmAesXpn256. */ public static final ExpressRouteLinkMacSecCipher GCM_AES_XPN256 = fromString("GcmAesXpn256"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecConfig.java index f877b6ab90c6..a0ac01a707b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecSciState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecSciState.java index 81727e1968ad..1f4b41900f7c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecSciState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecSciState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRouteLinkMacSecSciState extends ExpandableStringEnum { /** - * Static value Disabled for ExpressRouteLinkMacSecSciState. + * Disabled. */ public static final ExpressRouteLinkMacSecSciState DISABLED = fromString("Disabled"); /** - * Static value Enabled for ExpressRouteLinkMacSecSciState. + * Enabled. */ public static final ExpressRouteLinkMacSecSciState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringState.java index f156983c1223..89981b5aa48b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRoutePeeringState extends ExpandableStringEnum { /** - * Static value Disabled for ExpressRoutePeeringState. + * Disabled. */ public static final ExpressRoutePeeringState DISABLED = fromString("Disabled"); /** - * Static value Enabled for ExpressRoutePeeringState. + * Enabled. */ public static final ExpressRoutePeeringState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringType.java index 616b8dd1f465..4a3b62861ba6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class ExpressRoutePeeringType extends ExpandableStringEnum { /** - * Static value AzurePublicPeering for ExpressRoutePeeringType. + * AzurePublicPeering. */ public static final ExpressRoutePeeringType AZURE_PUBLIC_PEERING = fromString("AzurePublicPeering"); /** - * Static value AzurePrivatePeering for ExpressRoutePeeringType. + * AzurePrivatePeering. */ public static final ExpressRoutePeeringType AZURE_PRIVATE_PEERING = fromString("AzurePrivatePeering"); /** - * Static value MicrosoftPeering for ExpressRoutePeeringType. + * MicrosoftPeering. */ public static final ExpressRoutePeeringType MICROSOFT_PEERING = fromString("MicrosoftPeering"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationUseStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationUseStatus.java index d777eb82d730..7faf9ab5ae0f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationUseStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationUseStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class ExpressRoutePortAuthorizationUseStatus extends ExpandableStringEnum { /** - * Static value Available for ExpressRoutePortAuthorizationUseStatus. + * Available. */ public static final ExpressRoutePortAuthorizationUseStatus AVAILABLE = fromString("Available"); /** - * Static value InUse for ExpressRoutePortAuthorizationUseStatus. + * InUse. */ public static final ExpressRoutePortAuthorizationUseStatus IN_USE = fromString("InUse"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsBillingType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsBillingType.java index 8a3a95b28df8..f8953e331cb5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsBillingType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsBillingType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRoutePortsBillingType extends ExpandableStringEnum { /** - * Static value MeteredData for ExpressRoutePortsBillingType. + * MeteredData. */ public static final ExpressRoutePortsBillingType METERED_DATA = fromString("MeteredData"); /** - * Static value UnlimitedData for ExpressRoutePortsBillingType. + * UnlimitedData. */ public static final ExpressRoutePortsBillingType UNLIMITED_DATA = fromString("UnlimitedData"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsEncapsulation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsEncapsulation.java index e4235ea670e1..4b17e160f68e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsEncapsulation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsEncapsulation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ExpressRoutePortsEncapsulation extends ExpandableStringEnum { /** - * Static value Dot1Q for ExpressRoutePortsEncapsulation. + * Dot1Q. */ public static final ExpressRoutePortsEncapsulation DOT1Q = fromString("Dot1Q"); /** - * Static value QinQ for ExpressRoutePortsEncapsulation. + * QinQ. */ public static final ExpressRoutePortsEncapsulation QINQ = fromString("QinQ"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationBandwidths.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationBandwidths.java index 9e1fa0fd48b8..abcf1c6c4f85 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationBandwidths.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationBandwidths.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -32,7 +32,7 @@ public final class ExpressRoutePortsLocationBandwidths /** * Creates an instance of ExpressRoutePortsLocationBandwidths class. */ - public ExpressRoutePortsLocationBandwidths() { + private ExpressRoutePortsLocationBandwidths() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderBandwidthsOffered.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderBandwidthsOffered.java index 23f10573d061..b5d46f7eb890 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderBandwidthsOffered.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderBandwidthsOffered.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Contains bandwidths offered in ExpressRouteServiceProvider resources. */ -@Fluent +@Immutable public final class ExpressRouteServiceProviderBandwidthsOffered implements JsonSerializable { /* @@ -30,7 +30,7 @@ public final class ExpressRouteServiceProviderBandwidthsOffered /** * Creates an instance of ExpressRouteServiceProviderBandwidthsOffered class. */ - public ExpressRouteServiceProviderBandwidthsOffered() { + private ExpressRouteServiceProviderBandwidthsOffered() { } /** @@ -42,17 +42,6 @@ public String offerName() { return this.offerName; } - /** - * Set the offerName property: The OfferName. - * - * @param offerName the offerName value to set. - * @return the ExpressRouteServiceProviderBandwidthsOffered object itself. - */ - public ExpressRouteServiceProviderBandwidthsOffered withOfferName(String offerName) { - this.offerName = offerName; - return this; - } - /** * Get the valueInMbps property: The ValueInMbps. * @@ -62,17 +51,6 @@ public Integer valueInMbps() { return this.valueInMbps; } - /** - * Set the valueInMbps property: The ValueInMbps. - * - * @param valueInMbps the valueInMbps value to set. - * @return the ExpressRouteServiceProviderBandwidthsOffered object itself. - */ - public ExpressRouteServiceProviderBandwidthsOffered withValueInMbps(Integer valueInMbps) { - this.valueInMbps = valueInMbps; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocation.java index 272bfa04ec0f..695552388113 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocationTypes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocationTypes.java index 5a584531190d..b0cfc6cd2dec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocationTypes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExtendedLocationTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class ExtendedLocationTypes extends ExpandableStringEnum { /** - * Static value EdgeZone for ExtendedLocationTypes. + * EdgeZone. */ public static final ExtendedLocationTypes EDGE_ZONE = fromString("EdgeZone"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionDetails.java index 5bc06514fe46..b04b314a9e1f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionDetails.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionStatus.java index 31ee8dd0da7f..81d8a15a1f86 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class FailoverConnectionStatus extends ExpandableStringEnum { /** - * Static value Connected for FailoverConnectionStatus. + * Connected. */ public static final FailoverConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value Disconnected for FailoverConnectionStatus. + * Disconnected. */ public static final FailoverConnectionStatus DISCONNECTED = fromString("Disconnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatus.java index d40cd9c7ff59..ab0a5890b0b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class FailoverTestStatus extends ExpandableStringEnum { /** - * Static value NotStarted for FailoverTestStatus. + * NotStarted. */ public static final FailoverTestStatus NOT_STARTED = fromString("NotStarted"); /** - * Static value Starting for FailoverTestStatus. + * Starting. */ public static final FailoverTestStatus STARTING = fromString("Starting"); /** - * Static value Running for FailoverTestStatus. + * Running. */ public static final FailoverTestStatus RUNNING = fromString("Running"); /** - * Static value StartFailed for FailoverTestStatus. + * StartFailed. */ public static final FailoverTestStatus START_FAILED = fromString("StartFailed"); /** - * Static value Stopping for FailoverTestStatus. + * Stopping. */ public static final FailoverTestStatus STOPPING = fromString("Stopping"); /** - * Static value Completed for FailoverTestStatus. + * Completed. */ public static final FailoverTestStatus COMPLETED = fromString("Completed"); /** - * Static value StopFailed for FailoverTestStatus. + * StopFailed. */ public static final FailoverTestStatus STOP_FAILED = fromString("StopFailed"); /** - * Static value Invalid for FailoverTestStatus. + * Invalid. */ public static final FailoverTestStatus INVALID = fromString("Invalid"); /** - * Static value Expired for FailoverTestStatus. + * Expired. */ public static final FailoverTestStatus EXPIRED = fromString("Expired"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatusForSingleTest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatusForSingleTest.java index 7d28e2900680..55ac9a62c81f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatusForSingleTest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatusForSingleTest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class FailoverTestStatusForSingleTest extends ExpandableStringEnum { /** - * Static value NotStarted for FailoverTestStatusForSingleTest. + * NotStarted. */ public static final FailoverTestStatusForSingleTest NOT_STARTED = fromString("NotStarted"); /** - * Static value Starting for FailoverTestStatusForSingleTest. + * Starting. */ public static final FailoverTestStatusForSingleTest STARTING = fromString("Starting"); /** - * Static value Running for FailoverTestStatusForSingleTest. + * Running. */ public static final FailoverTestStatusForSingleTest RUNNING = fromString("Running"); /** - * Static value StartFailed for FailoverTestStatusForSingleTest. + * StartFailed. */ public static final FailoverTestStatusForSingleTest START_FAILED = fromString("StartFailed"); /** - * Static value Stopping for FailoverTestStatusForSingleTest. + * Stopping. */ public static final FailoverTestStatusForSingleTest STOPPING = fromString("Stopping"); /** - * Static value Completed for FailoverTestStatusForSingleTest. + * Completed. */ public static final FailoverTestStatusForSingleTest COMPLETED = fromString("Completed"); /** - * Static value StopFailed for FailoverTestStatusForSingleTest. + * StopFailed. */ public static final FailoverTestStatusForSingleTest STOP_FAILED = fromString("StopFailed"); /** - * Static value Invalid for FailoverTestStatusForSingleTest. + * Invalid. */ public static final FailoverTestStatusForSingleTest INVALID = fromString("Invalid"); /** - * Static value Expired for FailoverTestStatusForSingleTest. + * Expired. */ public static final FailoverTestStatusForSingleTest EXPIRED = fromString("Expired"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestType.java index 6b97cc671ad7..668ed9c9d73e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FailoverTestType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class FailoverTestType extends ExpandableStringEnum { /** - * Static value SingleSiteFailover for FailoverTestType. + * SingleSiteFailover. */ public static final FailoverTestType SINGLE_SITE_FAILOVER = fromString("SingleSiteFailover"); /** - * Static value MultiSiteFailover for FailoverTestType. + * MultiSiteFailover. */ public static final FailoverTestType MULTI_SITE_FAILOVER = fromString("MultiSiteFailover"); /** - * Static value All for FailoverTestType. + * All. */ public static final FailoverTestType ALL = fromString("All"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FilterItems.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FilterItems.java index fdebe6df6083..1e4994880c5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FilterItems.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FilterItems.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPacketCaptureParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPacketCaptureParameters.java index e9ad2cae152b..e23f84b23fb1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPacketCaptureParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPacketCaptureParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -53,7 +53,10 @@ public final class FirewallPacketCaptureParameters implements JsonSerializable filters; /* - * The Azure Firewall packet capture operation to perform + * The packet capture operation to perform. If the Start operation is selected, please provide all the fields in the + * firewallPacketCaptureParameters to successfully initiate the packet capture. If the Status or Stop operation is + * selected, only the operation field is required; all other fields in the firewallPacketCaptureParameters can be + * omitted to successfully retrieve the capture status or stop the capture. */ private AzureFirewallPacketCaptureOperationType operation; @@ -208,7 +211,10 @@ public FirewallPacketCaptureParameters withFilters(List { /** - * Static value Allow for FirewallPolicyFilterRuleCollectionActionType. + * Allow. */ public static final FirewallPolicyFilterRuleCollectionActionType ALLOW = fromString("Allow"); /** - * Static value Deny for FirewallPolicyFilterRuleCollectionActionType. + * Deny. */ public static final FirewallPolicyFilterRuleCollectionActionType DENY = fromString("Deny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyHttpHeaderToInsert.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyHttpHeaderToInsert.java index acc895e500bf..a9ed65681d2d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyHttpHeaderToInsert.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyHttpHeaderToInsert.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsQuerySortOrder.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsQuerySortOrder.java index 4e0d60e10870..0e178fe779f1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsQuerySortOrder.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsQuerySortOrder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class FirewallPolicyIdpsQuerySortOrder extends ExpandableStringEnum { /** - * Static value Ascending for FirewallPolicyIdpsQuerySortOrder. + * Ascending. */ public static final FirewallPolicyIdpsQuerySortOrder ASCENDING = fromString("Ascending"); /** - * Static value Descending for FirewallPolicyIdpsQuerySortOrder. + * Descending. */ public static final FirewallPolicyIdpsQuerySortOrder DESCENDING = fromString("Descending"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureDirection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureDirection.java index ac96b12667ac..4df1b5f89050 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureDirection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureDirection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -10,32 +10,32 @@ */ public enum FirewallPolicyIdpsSignatureDirection { /** - * Enum value 0. + * 0. */ ZERO(0), /** - * Enum value 1. + * 1. */ ONE(1), /** - * Enum value 2. + * 2. */ TWO(2), /** - * Enum value 3. + * 3. */ THREE(3), /** - * Enum value 4. + * 4. */ FOUR(4), /** - * Enum value 5. + * 5. */ FIVE(5); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureMode.java index 3fe07442877f..2f183f05432c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -9,17 +9,17 @@ */ public enum FirewallPolicyIdpsSignatureMode { /** - * Enum value 0. + * 0. */ ZERO(0), /** - * Enum value 1. + * 1. */ ONE(1), /** - * Enum value 2. + * 2. */ TWO(2); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureSeverity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureSeverity.java index 40200ca829f2..a228c02292fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureSeverity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureSeverity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -9,17 +9,17 @@ */ public enum FirewallPolicyIdpsSignatureSeverity { /** - * Enum value 1. + * 1. */ ONE(1), /** - * Enum value 2. + * 2. */ TWO(2), /** - * Enum value 3. + * 3. */ THREE(3); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyInsights.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyInsights.java index 12c8e67eb66b..988927309cb2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyInsights.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyInsights.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java index 5e4da5a02ecf..2be9bf6d0c89 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.java index b67356cae208..b6dfed102004 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java index 9dd847132b81..031fcd488ba5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProfileType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProfileType.java index 534ebfe18cce..6659c493cf9b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProfileType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProfileType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -19,22 +19,22 @@ public final class FirewallPolicyIntrusionDetectionProfileType extends ExpandableStringEnum { /** - * Static value Off for FirewallPolicyIntrusionDetectionProfileType. + * Off. */ public static final FirewallPolicyIntrusionDetectionProfileType OFF = fromString("Off"); /** - * Static value Emerging for FirewallPolicyIntrusionDetectionProfileType. + * Emerging. */ public static final FirewallPolicyIntrusionDetectionProfileType EMERGING = fromString("Emerging"); /** - * Static value Core for FirewallPolicyIntrusionDetectionProfileType. + * Core. */ public static final FirewallPolicyIntrusionDetectionProfileType CORE = fromString("Core"); /** - * Static value Extended for FirewallPolicyIntrusionDetectionProfileType. + * Extended. */ public static final FirewallPolicyIntrusionDetectionProfileType EXTENDED = fromString("Extended"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProtocol.java index 3209187c19bd..740c75cda21e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class FirewallPolicyIntrusionDetectionProtocol extends ExpandableStringEnum { /** - * Static value TCP for FirewallPolicyIntrusionDetectionProtocol. + * TCP. */ public static final FirewallPolicyIntrusionDetectionProtocol TCP = fromString("TCP"); /** - * Static value UDP for FirewallPolicyIntrusionDetectionProtocol. + * UDP. */ public static final FirewallPolicyIntrusionDetectionProtocol UDP = fromString("UDP"); /** - * Static value ICMP for FirewallPolicyIntrusionDetectionProtocol. + * ICMP. */ public static final FirewallPolicyIntrusionDetectionProtocol ICMP = fromString("ICMP"); /** - * Static value ANY for FirewallPolicyIntrusionDetectionProtocol. + * ANY. */ public static final FirewallPolicyIntrusionDetectionProtocol ANY = fromString("ANY"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionSignatureSpecification.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionSignatureSpecification.java index d8a792914f02..e55f51f642a8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionSignatureSpecification.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionSignatureSpecification.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionStateType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionStateType.java index 97b3871035b8..190a66625982 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionStateType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionStateType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class FirewallPolicyIntrusionDetectionStateType extends ExpandableStringEnum { /** - * Static value Off for FirewallPolicyIntrusionDetectionStateType. + * Off. */ public static final FirewallPolicyIntrusionDetectionStateType OFF = fromString("Off"); /** - * Static value Alert for FirewallPolicyIntrusionDetectionStateType. + * Alert. */ public static final FirewallPolicyIntrusionDetectionStateType ALERT = fromString("Alert"); /** - * Static value Deny for FirewallPolicyIntrusionDetectionStateType. + * Deny. */ public static final FirewallPolicyIntrusionDetectionStateType DENY = fromString("Deny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsResources.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsResources.java index b694fa6e0561..06118d3346ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsResources.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsResources.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsWorkspace.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsWorkspace.java index e59c16b9b8ef..71242d290869 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsWorkspace.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsWorkspace.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollection.java index d08e95beb584..0be72d5ba435 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionAction.java index 90c1c1bed6c8..6c8acf7bc0b9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionActionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionActionType.java index 32f558516cf9..a3ad803bdb24 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionActionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,7 +13,7 @@ public final class FirewallPolicyNatRuleCollectionActionType extends ExpandableStringEnum { /** - * Static value DNAT for FirewallPolicyNatRuleCollectionActionType. + * DNAT. */ public static final FirewallPolicyNatRuleCollectionActionType DNAT = fromString("DNAT"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java index 439036b62d55..4d7312a465a9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocol.java index 461f7307fde8..53584ddf813a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocolType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocolType.java index 894e33a611dd..cb26892fc15d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocolType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocolType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class FirewallPolicyRuleApplicationProtocolType extends ExpandableStringEnum { /** - * Static value Http for FirewallPolicyRuleApplicationProtocolType. + * Http. */ public static final FirewallPolicyRuleApplicationProtocolType HTTP = fromString("Http"); /** - * Static value Https for FirewallPolicyRuleApplicationProtocolType. + * Https. */ public static final FirewallPolicyRuleApplicationProtocolType HTTPS = fromString("Https"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java index 0a4e285bc266..e8e945b22e2a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionType.java index 059cb7301056..0ada223d128c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,13 +12,13 @@ */ public final class FirewallPolicyRuleCollectionType extends ExpandableStringEnum { /** - * Static value FirewallPolicyNatRuleCollection for FirewallPolicyRuleCollectionType. + * FirewallPolicyNatRuleCollection. */ public static final FirewallPolicyRuleCollectionType FIREWALL_POLICY_NAT_RULE_COLLECTION = fromString("FirewallPolicyNatRuleCollection"); /** - * Static value FirewallPolicyFilterRuleCollection for FirewallPolicyRuleCollectionType. + * FirewallPolicyFilterRuleCollection. */ public static final FirewallPolicyRuleCollectionType FIREWALL_POLICY_FILTER_RULE_COLLECTION = fromString("FirewallPolicyFilterRuleCollection"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleNetworkProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleNetworkProtocol.java index 50b7015c0b8a..3995b9834688 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleNetworkProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleNetworkProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class FirewallPolicyRuleNetworkProtocol extends ExpandableStringEnum { /** - * Static value TCP for FirewallPolicyRuleNetworkProtocol. + * TCP. */ public static final FirewallPolicyRuleNetworkProtocol TCP = fromString("TCP"); /** - * Static value UDP for FirewallPolicyRuleNetworkProtocol. + * UDP. */ public static final FirewallPolicyRuleNetworkProtocol UDP = fromString("UDP"); /** - * Static value Any for FirewallPolicyRuleNetworkProtocol. + * Any. */ public static final FirewallPolicyRuleNetworkProtocol ANY = fromString("Any"); /** - * Static value ICMP for FirewallPolicyRuleNetworkProtocol. + * ICMP. */ public static final FirewallPolicyRuleNetworkProtocol ICMP = fromString("ICMP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleType.java index a8e7ad136371..53d81e3a96e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class FirewallPolicyRuleType extends ExpandableStringEnum { /** - * Static value ApplicationRule for FirewallPolicyRuleType. + * ApplicationRule. */ public static final FirewallPolicyRuleType APPLICATION_RULE = fromString("ApplicationRule"); /** - * Static value NetworkRule for FirewallPolicyRuleType. + * NetworkRule. */ public static final FirewallPolicyRuleType NETWORK_RULE = fromString("NetworkRule"); /** - * Static value NatRule for FirewallPolicyRuleType. + * NatRule. */ public static final FirewallPolicyRuleType NAT_RULE = fromString("NatRule"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySku.java index 42bd69f75949..a52e3fc39efb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySkuTier.java index b2a9d59f298a..6c109bbf922b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class FirewallPolicySkuTier extends ExpandableStringEnum { /** - * Static value Standard for FirewallPolicySkuTier. + * Standard. */ public static final FirewallPolicySkuTier STANDARD = fromString("Standard"); /** - * Static value Premium for FirewallPolicySkuTier. + * Premium. */ public static final FirewallPolicySkuTier PREMIUM = fromString("Premium"); /** - * Static value Basic for FirewallPolicySkuTier. + * Basic. */ public static final FirewallPolicySkuTier BASIC = fromString("Basic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySnat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySnat.java index 75c3af49fa58..2346f24fb186 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySnat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySnat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java index 1918af171d9d..59052003b84f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyThreatIntelWhitelist.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyThreatIntelWhitelist.java index 3f7b2a105028..af0423c6440e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyThreatIntelWhitelist.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyThreatIntelWhitelist.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyTransportSecurity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyTransportSecurity.java index 90586df7205c..09b5e0644933 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyTransportSecurity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyTransportSecurity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatParameters.java index f6e654b09730..75791896b8a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatType.java index 2e3090988790..4b9d3222a59a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class FlowLogFormatType extends ExpandableStringEnum { /** - * Static value JSON for FlowLogFormatType. + * JSON. */ public static final FlowLogFormatType JSON = fromString("JSON"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java index 9300b4bf57c3..fb4e6e288af1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java index c2a52390267e..c3c67793717a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterface.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterface.java index f6e4e2317c11..287d57e3a076 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterface.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterface.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterfaceType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterfaceType.java index bd41636327cb..eea761669b9e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterfaceType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterfaceType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class GatewayLoadBalancerTunnelInterfaceType extends ExpandableStringEnum { /** - * Static value None for GatewayLoadBalancerTunnelInterfaceType. + * None. */ public static final GatewayLoadBalancerTunnelInterfaceType NONE = fromString("None"); /** - * Static value Internal for GatewayLoadBalancerTunnelInterfaceType. + * Internal. */ public static final GatewayLoadBalancerTunnelInterfaceType INTERNAL = fromString("Internal"); /** - * Static value External for GatewayLoadBalancerTunnelInterfaceType. + * External. */ public static final GatewayLoadBalancerTunnelInterfaceType EXTERNAL = fromString("External"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelProtocol.java index 9b1ecae85abe..e218f96b239d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class GatewayLoadBalancerTunnelProtocol extends ExpandableStringEnum { /** - * Static value None for GatewayLoadBalancerTunnelProtocol. + * None. */ public static final GatewayLoadBalancerTunnelProtocol NONE = fromString("None"); /** - * Static value Native for GatewayLoadBalancerTunnelProtocol. + * Native. */ public static final GatewayLoadBalancerTunnelProtocol NATIVE = fromString("Native"); /** - * Static value VXLAN for GatewayLoadBalancerTunnelProtocol. + * VXLAN. */ public static final GatewayLoadBalancerTunnelProtocol VXLAN = fromString("VXLAN"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayResiliencyRecommendation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayResiliencyRecommendation.java index 1a12abae1df5..9febcec66820 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayResiliencyRecommendation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayResiliencyRecommendation.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Resiliency Recommendation details. */ -@Fluent +@Immutable public final class GatewayResiliencyRecommendation implements JsonSerializable { /* * Recommendation Title @@ -49,7 +49,7 @@ public final class GatewayResiliencyRecommendation implements JsonSerializable { /** * Creates an instance of GatewayRoute class. */ - public GatewayRoute() { + private GatewayRoute() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayRouteSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayRouteSet.java index cc6cc0507f0c..ce51d27d4a5e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayRouteSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayRouteSet.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * The GatewayRouteSet model. */ -@Fluent +@Immutable public final class GatewayRouteSet implements JsonSerializable { /* * Route Set name @@ -36,7 +36,7 @@ public final class GatewayRouteSet implements JsonSerializable /** * Creates an instance of GatewayRouteSet class. */ - public GatewayRouteSet() { + private GatewayRouteSet() { } /** @@ -48,17 +48,6 @@ public String name() { return this.name; } - /** - * Set the name property: Route Set name. - * - * @param name the name value to set. - * @return the GatewayRouteSet object itself. - */ - public GatewayRouteSet withName(String name) { - this.name = name; - return this; - } - /** * Get the locations property: List of different locations from where the routes are learned. * @@ -68,17 +57,6 @@ public List locations() { return this.locations; } - /** - * Set the locations property: List of different locations from where the routes are learned. - * - * @param locations the locations value to set. - * @return the GatewayRouteSet object itself. - */ - public GatewayRouteSet withLocations(List locations) { - this.locations = locations; - return this; - } - /** * Get the details property: List of different Route Sources. * @@ -88,17 +66,6 @@ public Map> details() { return this.details; } - /** - * Set the details property: List of different Route Sources. - * - * @param details the details value to set. - * @return the GatewayRouteSet object itself. - */ - public GatewayRouteSet withDetails(Map> details) { - this.details = details; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java index ef0fe1c44802..7f5ae0fa2867 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Geo.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Geo.java index d3ac27898dbf..d8ac21d44ca0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Geo.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Geo.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class Geo extends ExpandableStringEnum { /** - * Static value GLOBAL for Geo. + * GLOBAL. */ public static final Geo GLOBAL = fromString("GLOBAL"); /** - * Static value AFRI for Geo. + * AFRI. */ public static final Geo AFRI = fromString("AFRI"); /** - * Static value APAC for Geo. + * APAC. */ public static final Geo APAC = fromString("APAC"); /** - * Static value EURO for Geo. + * EURO. */ public static final Geo EURO = fromString("EURO"); /** - * Static value LATAM for Geo. + * LATAM. */ public static final Geo LATAM = fromString("LATAM"); /** - * Static value NAM for Geo. + * NAM. */ public static final Geo NAM = fromString("NAM"); /** - * Static value ME for Geo. + * ME. */ public static final Geo ME = fromString("ME"); /** - * Static value OCEANIA for Geo. + * OCEANIA. */ public static final Geo OCEANIA = fromString("OCEANIA"); /** - * Static value AQ for Geo. + * AQ. */ public static final Geo AQ = fromString("AQ"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java index 56c7b7b86069..1f41f3b4bffb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java index 66972889a196..c3ab65fbb05a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java index 207f9b7af757..8dcbc106e378 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java index b82241f4cd15..7da801659990 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java index 503773a21747..e80a2daa1b19 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupConnectivity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupConnectivity.java index 48b2723f0aac..c9bf3d3b34ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupConnectivity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupConnectivity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class GroupConnectivity extends ExpandableStringEnum { /** - * Static value None for GroupConnectivity. + * None. */ public static final GroupConnectivity NONE = fromString("None"); /** - * Static value DirectlyConnected for GroupConnectivity. + * DirectlyConnected. */ public static final GroupConnectivity DIRECTLY_CONNECTED = fromString("DirectlyConnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupMemberType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupMemberType.java index 4cca753107ca..15f764daeed0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupMemberType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupMemberType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class GroupMemberType extends ExpandableStringEnum { /** - * Static value VirtualNetwork for GroupMemberType. + * VirtualNetwork. */ public static final GroupMemberType VIRTUAL_NETWORK = fromString("VirtualNetwork"); /** - * Static value Subnet for GroupMemberType. + * Subnet. */ public static final GroupMemberType SUBNET = fromString("Subnet"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java index 308ab5b01a79..70d06a675d2f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HopLink.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HopLink.java index a4083b44e06e..d2d7ed8d2396 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HopLink.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HopLink.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -52,7 +52,7 @@ public final class HopLink implements JsonSerializable { /** * Creates an instance of HopLink class. */ - public HopLink() { + private HopLink() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfiguration.java index 15d4a2c94024..7fb642a47627 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfigurationMethod.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfigurationMethod.java index 04fd9cc40b5e..f817b4562809 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfigurationMethod.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpConfigurationMethod.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class HttpConfigurationMethod extends ExpandableStringEnum { /** - * Static value Get for HttpConfigurationMethod. + * Get. */ public static final HttpConfigurationMethod GET = fromString("Get"); /** - * Static value Post for HttpConfigurationMethod. + * Post. */ public static final HttpConfigurationMethod POST = fromString("Post"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpHeader.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpHeader.java index ff7174a5ea00..8aea94ce7579 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpHeader.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpHeader.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpMethod.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpMethod.java index 83a27f43983c..97c19022ffe8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpMethod.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HttpMethod.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class HttpMethod extends ExpandableStringEnum { /** - * Static value Get for HttpMethod. + * Get. */ public static final HttpMethod GET = fromString("Get"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Hub.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Hub.java index de52e05283c8..f07ed91e7a86 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Hub.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Hub.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubBgpConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubBgpConnectionStatus.java index 9cbd7b5b78d9..6a052dfd431a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubBgpConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubBgpConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class HubBgpConnectionStatus extends ExpandableStringEnum { /** - * Static value Unknown for HubBgpConnectionStatus. + * Unknown. */ public static final HubBgpConnectionStatus UNKNOWN = fromString("Unknown"); /** - * Static value Connecting for HubBgpConnectionStatus. + * Connecting. */ public static final HubBgpConnectionStatus CONNECTING = fromString("Connecting"); /** - * Static value Connected for HubBgpConnectionStatus. + * Connected. */ public static final HubBgpConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value NotConnected for HubBgpConnectionStatus. + * NotConnected. */ public static final HubBgpConnectionStatus NOT_CONNECTED = fromString("NotConnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubIpAddresses.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubIpAddresses.java index 73fd4aed3bd2..e01a2c6dcf27 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubIpAddresses.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubIpAddresses.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubPublicIpAddresses.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubPublicIpAddresses.java index a17dd0d56a0d..bb474f9b61b3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubPublicIpAddresses.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubPublicIpAddresses.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java index a02c71d943bb..464702b3fd3b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoutingPreference.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoutingPreference.java index 91e172ed0872..05aa73ff2b48 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoutingPreference.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoutingPreference.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class HubRoutingPreference extends ExpandableStringEnum { /** - * Static value ExpressRoute for HubRoutingPreference. + * ExpressRoute. */ public static final HubRoutingPreference EXPRESS_ROUTE = fromString("ExpressRoute"); /** - * Static value VpnGateway for HubRoutingPreference. + * VpnGateway. */ public static final HubRoutingPreference VPN_GATEWAY = fromString("VpnGateway"); /** - * Static value ASPath for HubRoutingPreference. + * ASPath. */ public static final HubRoutingPreference ASPATH = fromString("ASPath"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IdpsQueryObject.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IdpsQueryObject.java index d0c9a39fc317..cccd91e6147e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IdpsQueryObject.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IdpsQueryObject.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeEncryption.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeEncryption.java index 95a808770c93..b3c05e310cc9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeEncryption.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeEncryption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,37 +12,37 @@ */ public final class IkeEncryption extends ExpandableStringEnum { /** - * Static value DES for IkeEncryption. + * DES. */ public static final IkeEncryption DES = fromString("DES"); /** - * Static value DES3 for IkeEncryption. + * DES3. */ public static final IkeEncryption DES3 = fromString("DES3"); /** - * Static value AES128 for IkeEncryption. + * AES128. */ public static final IkeEncryption AES128 = fromString("AES128"); /** - * Static value AES192 for IkeEncryption. + * AES192. */ public static final IkeEncryption AES192 = fromString("AES192"); /** - * Static value AES256 for IkeEncryption. + * AES256. */ public static final IkeEncryption AES256 = fromString("AES256"); /** - * Static value GCMAES256 for IkeEncryption. + * GCMAES256. */ public static final IkeEncryption GCMAES256 = fromString("GCMAES256"); /** - * Static value GCMAES128 for IkeEncryption. + * GCMAES128. */ public static final IkeEncryption GCMAES128 = fromString("GCMAES128"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeIntegrity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeIntegrity.java index 85d6b281cc52..176d1688ed54 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeIntegrity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IkeIntegrity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class IkeIntegrity extends ExpandableStringEnum { /** - * Static value MD5 for IkeIntegrity. + * MD5. */ public static final IkeIntegrity MD5 = fromString("MD5"); /** - * Static value SHA1 for IkeIntegrity. + * SHA1. */ public static final IkeIntegrity SHA1 = fromString("SHA1"); /** - * Static value SHA256 for IkeIntegrity. + * SHA256. */ public static final IkeIntegrity SHA256 = fromString("SHA256"); /** - * Static value SHA384 for IkeIntegrity. + * SHA384. */ public static final IkeIntegrity SHA384 = fromString("SHA384"); /** - * Static value GCMAES256 for IkeIntegrity. + * GCMAES256. */ public static final IkeIntegrity GCMAES256 = fromString("GCMAES256"); /** - * Static value GCMAES128 for IkeIntegrity. + * GCMAES128. */ public static final IkeIntegrity GCMAES128 = fromString("GCMAES128"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java index a0130062fb2d..438c537b8761 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRulePortMapping.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRulePortMapping.java index eadaf9dea026..d0102929dcec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRulePortMapping.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatRulePortMapping.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -39,7 +39,7 @@ public final class InboundNatRulePortMapping implements JsonSerializable { /** - * Static value AutoExpire for InboundSecurityRuleType. + * AutoExpire. */ public static final InboundSecurityRuleType AUTO_EXPIRE = fromString("AutoExpire"); /** - * Static value Permanent for InboundSecurityRuleType. + * Permanent. */ public static final InboundSecurityRuleType PERMANENT = fromString("Permanent"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java index ff16e328d88a..b4b08c94c194 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRulesProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRulesProtocol.java index 3634914c143d..abb0232671d1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRulesProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRulesProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class InboundSecurityRulesProtocol extends ExpandableStringEnum { /** - * Static value TCP for InboundSecurityRulesProtocol. + * TCP. */ public static final InboundSecurityRulesProtocol TCP = fromString("TCP"); /** - * Static value UDP for InboundSecurityRulesProtocol. + * UDP. */ public static final InboundSecurityRulesProtocol UDP = fromString("UDP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IntentContent.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IntentContent.java index 168b61c6517a..9fae41c8fd2a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IntentContent.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IntentContent.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -15,7 +15,7 @@ /** * Intent information. */ -@Fluent +@Immutable public final class IntentContent implements JsonSerializable { /* * The description property. @@ -40,7 +40,7 @@ public final class IntentContent implements JsonSerializable { /** * Creates an instance of IntentContent class. */ - public IntentContent() { + private IntentContent() { } /** @@ -52,17 +52,6 @@ public String description() { return this.description; } - /** - * Set the description property: The description property. - * - * @param description the description value to set. - * @return the IntentContent object itself. - */ - public IntentContent withDescription(String description) { - this.description = description; - return this; - } - /** * Get the sourceResourceId property: Source resource id of the intent. * @@ -72,17 +61,6 @@ public String sourceResourceId() { return this.sourceResourceId; } - /** - * Set the sourceResourceId property: Source resource id of the intent. - * - * @param sourceResourceId the sourceResourceId value to set. - * @return the IntentContent object itself. - */ - public IntentContent withSourceResourceId(String sourceResourceId) { - this.sourceResourceId = sourceResourceId; - return this; - } - /** * Get the destinationResourceId property: Destination resource id of the intent. * @@ -92,17 +70,6 @@ public String destinationResourceId() { return this.destinationResourceId; } - /** - * Set the destinationResourceId property: Destination resource id of the intent. - * - * @param destinationResourceId the destinationResourceId value to set. - * @return the IntentContent object itself. - */ - public IntentContent withDestinationResourceId(String destinationResourceId) { - this.destinationResourceId = destinationResourceId; - return this; - } - /** * Get the ipTraffic property: IP traffic information. * @@ -112,17 +79,6 @@ public IpTraffic ipTraffic() { return this.ipTraffic; } - /** - * Set the ipTraffic property: IP traffic information. - * - * @param ipTraffic the ipTraffic value to set. - * @return the IntentContent object itself. - */ - public IntentContent withIpTraffic(IpTraffic ipTraffic) { - this.ipTraffic = ipTraffic; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InternetIngressPublicIpsProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InternetIngressPublicIpsProperties.java index 0da6966c2f55..9cef178de646 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InternetIngressPublicIpsProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InternetIngressPublicIpsProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationMethod.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationMethod.java index 50697fdd31b3..437b3996db43 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationMethod.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationMethod.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IpAllocationMethod extends ExpandableStringEnum { /** - * Static value Static for IpAllocationMethod. + * Static. */ public static final IpAllocationMethod STATIC = fromString("Static"); /** - * Static value Dynamic for IpAllocationMethod. + * Dynamic. */ public static final IpAllocationMethod DYNAMIC = fromString("Dynamic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationType.java index 5b16e6348965..78fae4ecf27a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpAllocationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IpAllocationType extends ExpandableStringEnum { /** - * Static value Undefined for IpAllocationType. + * Undefined. */ public static final IpAllocationType UNDEFINED = fromString("Undefined"); /** - * Static value Hypernet for IpAllocationType. + * Hypernet. */ public static final IpAllocationType HYPERNET = fromString("Hypernet"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java index a50ab1b63e64..1ed558d09e49 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpFlowProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpFlowProtocol.java index f13ccb243be6..90cb2897b841 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpFlowProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpFlowProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IpFlowProtocol extends ExpandableStringEnum { /** - * Static value TCP for IpFlowProtocol. + * TCP. */ public static final IpFlowProtocol TCP = fromString("TCP"); /** - * Static value UDP for IpFlowProtocol. + * UDP. */ public static final IpFlowProtocol UDP = fromString("UDP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpRule.java index b9dd40d890c7..7343116dbf5f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTag.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTag.java index 2fb6f11f254e..f51a521dda40 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTag.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTag.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTraffic.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTraffic.java index e92d63369c6f..28ddb638fe92 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTraffic.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpTraffic.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpType.java index a3f74accc523..7fc74494f138 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IpType extends ExpandableStringEnum { /** - * Static value IPv4 for IpType. + * IPv4. */ public static final IpType IPV4 = fromString("IPv4"); /** - * Static value IPv6 for IpType. + * IPv6. */ public static final IpType IPV6 = fromString("IPv6"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpVersion.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpVersion.java index 3b820b2e1c81..c5675cfb98a2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpVersion.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpVersion.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IpVersion extends ExpandableStringEnum { /** - * Static value IPv4 for IpVersion. + * IPv4. */ public static final IpVersion IPV4 = fromString("IPv4"); /** - * Static value IPv6 for IpVersion. + * IPv6. */ public static final IpVersion IPV6 = fromString("IPv6"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolPrefixAllocation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolPrefixAllocation.java index 9eeb4e465ef7..95451222b9cc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolPrefixAllocation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolPrefixAllocation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolProperties.java index 74f130c9da5e..d7cf22fc9edb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -154,17 +154,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Set the provisioningState property: Provisioning states of a resource. - * - * @param provisioningState the provisioningState value to set. - * @return the IpamPoolProperties object itself. - */ - public IpamPoolProperties withProvisioningState(ProvisioningState provisioningState) { - this.provisioningState = provisioningState; - return this; - } - /** * Validates the instance. * @@ -191,8 +180,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("description", this.description); jsonWriter.writeStringField("displayName", this.displayName); jsonWriter.writeStringField("parentPoolName", this.parentPoolName); - jsonWriter.writeStringField("provisioningState", - this.provisioningState == null ? null : this.provisioningState.toString()); return jsonWriter.writeEndObject(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdate.java index 7c69deb10251..af22a6595bfd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdateProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdateProperties.java index 02bd2edc685f..3a56646afb0c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdateProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecEncryption.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecEncryption.java index 53d20320d02a..44764f125446 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecEncryption.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecEncryption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class IpsecEncryption extends ExpandableStringEnum { /** - * Static value None for IpsecEncryption. + * None. */ public static final IpsecEncryption NONE = fromString("None"); /** - * Static value DES for IpsecEncryption. + * DES. */ public static final IpsecEncryption DES = fromString("DES"); /** - * Static value DES3 for IpsecEncryption. + * DES3. */ public static final IpsecEncryption DES3 = fromString("DES3"); /** - * Static value AES128 for IpsecEncryption. + * AES128. */ public static final IpsecEncryption AES128 = fromString("AES128"); /** - * Static value AES192 for IpsecEncryption. + * AES192. */ public static final IpsecEncryption AES192 = fromString("AES192"); /** - * Static value AES256 for IpsecEncryption. + * AES256. */ public static final IpsecEncryption AES256 = fromString("AES256"); /** - * Static value GCMAES128 for IpsecEncryption. + * GCMAES128. */ public static final IpsecEncryption GCMAES128 = fromString("GCMAES128"); /** - * Static value GCMAES192 for IpsecEncryption. + * GCMAES192. */ public static final IpsecEncryption GCMAES192 = fromString("GCMAES192"); /** - * Static value GCMAES256 for IpsecEncryption. + * GCMAES256. */ public static final IpsecEncryption GCMAES256 = fromString("GCMAES256"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecIntegrity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecIntegrity.java index 5c807dedc1bf..7512e7f9fe17 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecIntegrity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecIntegrity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class IpsecIntegrity extends ExpandableStringEnum { /** - * Static value MD5 for IpsecIntegrity. + * MD5. */ public static final IpsecIntegrity MD5 = fromString("MD5"); /** - * Static value SHA1 for IpsecIntegrity. + * SHA1. */ public static final IpsecIntegrity SHA1 = fromString("SHA1"); /** - * Static value SHA256 for IpsecIntegrity. + * SHA256. */ public static final IpsecIntegrity SHA256 = fromString("SHA256"); /** - * Static value GCMAES128 for IpsecIntegrity. + * GCMAES128. */ public static final IpsecIntegrity GCMAES128 = fromString("GCMAES128"); /** - * Static value GCMAES192 for IpsecIntegrity. + * GCMAES192. */ public static final IpsecIntegrity GCMAES192 = fromString("GCMAES192"); /** - * Static value GCMAES256 for IpsecIntegrity. + * GCMAES256. */ public static final IpsecIntegrity GCMAES256 = fromString("GCMAES256"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java index 02848cc28015..fe81b29207ca 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6CircuitConnectionConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6CircuitConnectionConfig.java index 9d413c8db43d..05d0ba0cba6f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6CircuitConnectionConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6CircuitConnectionConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6ExpressRouteCircuitPeeringConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6ExpressRouteCircuitPeeringConfig.java index 34434dca3b92..8beb67cb4b1e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6ExpressRouteCircuitPeeringConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Ipv6ExpressRouteCircuitPeeringConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsGlobal.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsGlobal.java index 537f454b8add..7f67e46a9a66 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsGlobal.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsGlobal.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IsGlobal extends ExpandableStringEnum { /** - * Static value False for IsGlobal. + * False. */ public static final IsGlobal FALSE = fromString("False"); /** - * Static value True for IsGlobal. + * True. */ public static final IsGlobal TRUE = fromString("True"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsRollback.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsRollback.java index 901bf69df463..57f8fdb4958b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsRollback.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsRollback.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IsRollback extends ExpandableStringEnum { /** - * Static value true for IsRollback. + * true. */ public static final IsRollback TRUE = fromString("true"); /** - * Static value false for IsRollback. + * false. */ public static final IsRollback FALSE = fromString("false"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsWorkloadProtected.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsWorkloadProtected.java index 0c5f3ece61dc..ae3843415f14 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsWorkloadProtected.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IsWorkloadProtected.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class IsWorkloadProtected extends ExpandableStringEnum { /** - * Static value False for IsWorkloadProtected. + * False. */ public static final IsWorkloadProtected FALSE = fromString("False"); /** - * Static value True for IsWorkloadProtected. + * True. */ public static final IsWorkloadProtected TRUE = fromString("True"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IssueType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IssueType.java index 357242704fcc..df7cddfd68b2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IssueType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IssueType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class IssueType extends ExpandableStringEnum { /** - * Static value Unknown for IssueType. + * Unknown. */ public static final IssueType UNKNOWN = fromString("Unknown"); /** - * Static value AgentStopped for IssueType. + * AgentStopped. */ public static final IssueType AGENT_STOPPED = fromString("AgentStopped"); /** - * Static value GuestFirewall for IssueType. + * GuestFirewall. */ public static final IssueType GUEST_FIREWALL = fromString("GuestFirewall"); /** - * Static value DnsResolution for IssueType. + * DnsResolution. */ public static final IssueType DNS_RESOLUTION = fromString("DnsResolution"); /** - * Static value SocketBind for IssueType. + * SocketBind. */ public static final IssueType SOCKET_BIND = fromString("SocketBind"); /** - * Static value NetworkSecurityRule for IssueType. + * NetworkSecurityRule. */ public static final IssueType NETWORK_SECURITY_RULE = fromString("NetworkSecurityRule"); /** - * Static value UserDefinedRoute for IssueType. + * UserDefinedRoute. */ public static final IssueType USER_DEFINED_ROUTE = fromString("UserDefinedRoute"); /** - * Static value PortThrottled for IssueType. + * PortThrottled. */ public static final IssueType PORT_THROTTLED = fromString("PortThrottled"); /** - * Static value Platform for IssueType. + * Platform. */ public static final IssueType PLATFORM = fromString("Platform"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddress.java index e93c9a9a1109..1992c0bec04d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressAdminState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressAdminState.java index d89791543e0f..2677599acca9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressAdminState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressAdminState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -14,17 +14,17 @@ public final class LoadBalancerBackendAddressAdminState extends ExpandableStringEnum { /** - * Static value None for LoadBalancerBackendAddressAdminState. + * None. */ public static final LoadBalancerBackendAddressAdminState NONE = fromString("None"); /** - * Static value Up for LoadBalancerBackendAddressAdminState. + * Up. */ public static final LoadBalancerBackendAddressAdminState UP = fromString("Up"); /** - * Static value Down for LoadBalancerBackendAddressAdminState. + * Down. */ public static final LoadBalancerBackendAddressAdminState DOWN = fromString("Down"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerHealthPerRulePerBackendAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerHealthPerRulePerBackendAddress.java index 761736a4cba2..69e78d0a0ca7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerHealthPerRulePerBackendAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerHealthPerRulePerBackendAddress.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The information about health per rule per backend address. */ -@Fluent +@Immutable public final class LoadBalancerHealthPerRulePerBackendAddress implements JsonSerializable { /* @@ -40,7 +40,7 @@ public final class LoadBalancerHealthPerRulePerBackendAddress /** * Creates an instance of LoadBalancerHealthPerRulePerBackendAddress class. */ - public LoadBalancerHealthPerRulePerBackendAddress() { + private LoadBalancerHealthPerRulePerBackendAddress() { } /** @@ -52,17 +52,6 @@ public String ipAddress() { return this.ipAddress; } - /** - * Set the ipAddress property: The IP address belonging to the backend address. - * - * @param ipAddress the ipAddress value to set. - * @return the LoadBalancerHealthPerRulePerBackendAddress object itself. - */ - public LoadBalancerHealthPerRulePerBackendAddress withIpAddress(String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - /** * Get the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration. * @@ -72,18 +61,6 @@ public String networkInterfaceIpConfigurationId() { return this.networkInterfaceIpConfigurationId; } - /** - * Set the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration. - * - * @param networkInterfaceIpConfigurationId the networkInterfaceIpConfigurationId value to set. - * @return the LoadBalancerHealthPerRulePerBackendAddress object itself. - */ - public LoadBalancerHealthPerRulePerBackendAddress - withNetworkInterfaceIpConfigurationId(String networkInterfaceIpConfigurationId) { - this.networkInterfaceIpConfigurationId = networkInterfaceIpConfigurationId; - return this; - } - /** * Get the state property: The current health of the backend instances that is associated to the LB rule. * @@ -93,17 +70,6 @@ public String state() { return this.state; } - /** - * Set the state property: The current health of the backend instances that is associated to the LB rule. - * - * @param state the state value to set. - * @return the LoadBalancerHealthPerRulePerBackendAddress object itself. - */ - public LoadBalancerHealthPerRulePerBackendAddress withState(String state) { - this.state = state; - return this; - } - /** * Get the reason property: The explanation of the State. * @@ -113,17 +79,6 @@ public String reason() { return this.reason; } - /** - * Set the reason property: The explanation of the State. - * - * @param reason the reason value to set. - * @return the LoadBalancerHealthPerRulePerBackendAddress object itself. - */ - public LoadBalancerHealthPerRulePerBackendAddress withReason(String reason) { - this.reason = reason; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleProtocol.java index 0175dd7953e0..c78454c7b4d2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class LoadBalancerOutboundRuleProtocol extends ExpandableStringEnum { /** - * Static value Tcp for LoadBalancerOutboundRuleProtocol. + * Tcp. */ public static final LoadBalancerOutboundRuleProtocol TCP = fromString("Tcp"); /** - * Static value Udp for LoadBalancerOutboundRuleProtocol. + * Udp. */ public static final LoadBalancerOutboundRuleProtocol UDP = fromString("Udp"); /** - * Static value All for LoadBalancerOutboundRuleProtocol. + * All. */ public static final LoadBalancerOutboundRuleProtocol ALL = fromString("All"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerScope.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerScope.java index 2bb4e59cb711..63f6b8d146cf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerScope.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerScope.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class LoadBalancerScope extends ExpandableStringEnum { /** - * Static value Public for LoadBalancerScope. + * Public. */ public static final LoadBalancerScope PUBLIC = fromString("Public"); /** - * Static value Private for LoadBalancerScope. + * Private. */ public static final LoadBalancerScope PRIVATE = fromString("Private"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSku.java index 5076371132c5..8a4c0cc2b578 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuName.java index 2d77320ce054..a8168b864966 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class LoadBalancerSkuName extends ExpandableStringEnum { /** - * Static value Basic for LoadBalancerSkuName. + * Basic. */ public static final LoadBalancerSkuName BASIC = fromString("Basic"); /** - * Static value Standard for LoadBalancerSkuName. + * Standard. */ public static final LoadBalancerSkuName STANDARD = fromString("Standard"); /** - * Static value Gateway for LoadBalancerSkuName. + * Gateway. */ public static final LoadBalancerSkuName GATEWAY = fromString("Gateway"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuTier.java index eb246d733777..4fd86fa356a5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class LoadBalancerSkuTier extends ExpandableStringEnum { /** - * Static value Regional for LoadBalancerSkuTier. + * Regional. */ public static final LoadBalancerSkuTier REGIONAL = fromString("Regional"); /** - * Static value Global for LoadBalancerSkuTier. + * Global. */ public static final LoadBalancerSkuTier GLOBAL = fromString("Global"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequest.java index b206d73cbce8..db090fd4448d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequestFrontendIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequestFrontendIpConfiguration.java index 233cf5de262c..c89c75a0d26d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequestFrontendIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequestFrontendIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadDistribution.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadDistribution.java index 8ca0d04b0748..4d14edc677f0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadDistribution.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LoadDistribution.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class LoadDistribution extends ExpandableStringEnum { /** - * Static value Default for LoadDistribution. + * Default. */ public static final LoadDistribution DEFAULT = fromString("Default"); /** - * Static value SourceIP for LoadDistribution. + * SourceIP. */ public static final LoadDistribution SOURCE_IP = fromString("SourceIP"); /** - * Static value SourceIPProtocol for LoadDistribution. + * SourceIPProtocol. */ public static final LoadDistribution SOURCE_IPPROTOCOL = fromString("SourceIPProtocol"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LogSpecification.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LogSpecification.java index 4b0fbc783a17..1b2aeabf8770 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LogSpecification.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/LogSpecification.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Description of logging specification. */ -@Fluent +@Immutable public final class LogSpecification implements JsonSerializable { /* * The name of the specification. @@ -34,7 +34,7 @@ public final class LogSpecification implements JsonSerializable { /** - * Static value Disabled for ManagedRuleEnabledState. + * Disabled. */ public static final ManagedRuleEnabledState DISABLED = fromString("Disabled"); /** - * Static value Enabled for ManagedRuleEnabledState. + * Enabled. */ public static final ManagedRuleEnabledState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java index 369e0cda6c55..440fde78fca3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java index 9bb768c0fe92..3ce53ce8bd63 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java index 51df2768ddf7..0e2497ff8d70 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSetRuleGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSetRuleGroup.java index e47e2ccae488..5074d542d36d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSetRuleGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSetRuleGroup.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -16,7 +16,7 @@ /** * Defines a managed rule set rule group. */ -@Fluent +@Immutable public final class ManagedRuleSetRuleGroup implements JsonSerializable { /* * Name of the rule group @@ -31,7 +31,7 @@ public final class ManagedRuleSetRuleGroup implements JsonSerializable rules() { return this.rules; } - /** - * Set the rules property: List of rules within the rule group. - * - * @param rules the rules value to set. - * @return the ManagedRuleSetRuleGroup object itself. - */ - public ManagedRuleSetRuleGroup withRules(List rules) { - this.rules = rules; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java index dee37e8834a3..529777d9a1eb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java index d9c34b928da6..ca6a6e5188a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentityUserAssignedIdentities.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentityUserAssignedIdentities.java index 86ca386c46a2..609e8fdd8f9f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentityUserAssignedIdentities.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentityUserAssignedIdentities.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java index c7123cb56fe4..dccc29d7c702 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java index 362c54ba4531..741040fd9d91 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchedRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchedRule.java index 9a0ab253d854..83ee4e2e76d4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchedRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchedRule.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Matched rule. */ -@Fluent +@Immutable public final class MatchedRule implements JsonSerializable { /* * Name of the matched network security rule. @@ -29,7 +29,7 @@ public final class MatchedRule implements JsonSerializable { /** * Creates an instance of MatchedRule class. */ - public MatchedRule() { + private MatchedRule() { } /** @@ -41,17 +41,6 @@ public String ruleName() { return this.ruleName; } - /** - * Set the ruleName property: Name of the matched network security rule. - * - * @param ruleName the ruleName value to set. - * @return the MatchedRule object itself. - */ - public MatchedRule withRuleName(String ruleName) { - this.ruleName = ruleName; - return this; - } - /** * Get the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. * @@ -61,17 +50,6 @@ public String action() { return this.action; } - /** - * Set the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. - * - * @param action the action value to set. - * @return the MatchedRule object itself. - */ - public MatchedRule withAction(String action) { - this.action = action; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MetricSpecification.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MetricSpecification.java index ae3fa2b6e58c..afcf370a67b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MetricSpecification.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MetricSpecification.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Description of metrics specification. */ -@Fluent +@Immutable public final class MetricSpecification implements JsonSerializable { /* * The name of the metric. @@ -90,7 +90,7 @@ public final class MetricSpecification implements JsonSerializable availabilities() { return this.availabilities; } - /** - * Set the availabilities property: List of availability. - * - * @param availabilities the availabilities value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withAvailabilities(List availabilities) { - this.availabilities = availabilities; - return this; - } - /** * Get the enableRegionalMdmAccount property: Whether regional MDM account enabled. * @@ -222,17 +156,6 @@ public Boolean enableRegionalMdmAccount() { return this.enableRegionalMdmAccount; } - /** - * Set the enableRegionalMdmAccount property: Whether regional MDM account enabled. - * - * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) { - this.enableRegionalMdmAccount = enableRegionalMdmAccount; - return this; - } - /** * Get the fillGapWithZero property: Whether gaps would be filled with zeros. * @@ -242,17 +165,6 @@ public Boolean fillGapWithZero() { return this.fillGapWithZero; } - /** - * Set the fillGapWithZero property: Whether gaps would be filled with zeros. - * - * @param fillGapWithZero the fillGapWithZero value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { - this.fillGapWithZero = fillGapWithZero; - return this; - } - /** * Get the metricFilterPattern property: Pattern for the filter of the metric. * @@ -262,17 +174,6 @@ public String metricFilterPattern() { return this.metricFilterPattern; } - /** - * Set the metricFilterPattern property: Pattern for the filter of the metric. - * - * @param metricFilterPattern the metricFilterPattern value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withMetricFilterPattern(String metricFilterPattern) { - this.metricFilterPattern = metricFilterPattern; - return this; - } - /** * Get the dimensions property: List of dimensions. * @@ -282,17 +183,6 @@ public List dimensions() { return this.dimensions; } - /** - * Set the dimensions property: List of dimensions. - * - * @param dimensions the dimensions value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withDimensions(List dimensions) { - this.dimensions = dimensions; - return this; - } - /** * Get the isInternal property: Whether the metric is internal. * @@ -302,17 +192,6 @@ public Boolean isInternal() { return this.isInternal; } - /** - * Set the isInternal property: Whether the metric is internal. - * - * @param isInternal the isInternal value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withIsInternal(Boolean isInternal) { - this.isInternal = isInternal; - return this; - } - /** * Get the sourceMdmAccount property: The source MDM account. * @@ -322,17 +201,6 @@ public String sourceMdmAccount() { return this.sourceMdmAccount; } - /** - * Set the sourceMdmAccount property: The source MDM account. - * - * @param sourceMdmAccount the sourceMdmAccount value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { - this.sourceMdmAccount = sourceMdmAccount; - return this; - } - /** * Get the sourceMdmNamespace property: The source MDM namespace. * @@ -342,17 +210,6 @@ public String sourceMdmNamespace() { return this.sourceMdmNamespace; } - /** - * Set the sourceMdmNamespace property: The source MDM namespace. - * - * @param sourceMdmNamespace the sourceMdmNamespace value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { - this.sourceMdmNamespace = sourceMdmNamespace; - return this; - } - /** * Get the resourceIdDimensionNameOverride property: The resource Id dimension name override. * @@ -362,17 +219,6 @@ public String resourceIdDimensionNameOverride() { return this.resourceIdDimensionNameOverride; } - /** - * Set the resourceIdDimensionNameOverride property: The resource Id dimension name override. - * - * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set. - * @return the MetricSpecification object itself. - */ - public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) { - this.resourceIdDimensionNameOverride = resourceIdDimensionNameOverride; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MigrateLoadBalancerToIpBasedRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MigrateLoadBalancerToIpBasedRequest.java index 06528114400f..e2b6625fd1ee 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MigrateLoadBalancerToIpBasedRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MigrateLoadBalancerToIpBasedRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySku.java index 26ea946f0ca9..d7bea357b035 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySkuName.java index be8cb89764cb..28c7b8413ff5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatGatewaySkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class NatGatewaySkuName extends ExpandableStringEnum { /** - * Static value Standard for NatGatewaySkuName. + * Standard. */ public static final NatGatewaySkuName STANDARD = fromString("Standard"); /** - * Static value StandardV2 for NatGatewaySkuName. + * StandardV2. */ public static final NatGatewaySkuName STANDARD_V2 = fromString("StandardV2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java index 597c4a0a78f4..5cb285a50b1d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRulePortMapping.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRulePortMapping.java index 32c8aa73d2d9..795287d0de24 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRulePortMapping.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRulePortMapping.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Individual port mappings for inbound NAT rule created for backend pool. */ -@Fluent +@Immutable public final class NatRulePortMapping implements JsonSerializable { /* * Name of inbound NAT rule. @@ -34,7 +34,7 @@ public final class NatRulePortMapping implements JsonSerializable { /* @@ -30,7 +30,7 @@ public final class NetworkConfigurationDiagnosticResult /** * Creates an instance of NetworkConfigurationDiagnosticResult class. */ - public NetworkConfigurationDiagnosticResult() { + private NetworkConfigurationDiagnosticResult() { } /** @@ -42,17 +42,6 @@ public NetworkConfigurationDiagnosticProfile profile() { return this.profile; } - /** - * Set the profile property: Network configuration diagnostic profile. - * - * @param profile the profile value to set. - * @return the NetworkConfigurationDiagnosticResult object itself. - */ - public NetworkConfigurationDiagnosticResult withProfile(NetworkConfigurationDiagnosticProfile profile) { - this.profile = profile; - return this; - } - /** * Get the networkSecurityGroupResult property: Network security group result. * @@ -62,18 +51,6 @@ public NetworkSecurityGroupResult networkSecurityGroupResult() { return this.networkSecurityGroupResult; } - /** - * Set the networkSecurityGroupResult property: Network security group result. - * - * @param networkSecurityGroupResult the networkSecurityGroupResult value to set. - * @return the NetworkConfigurationDiagnosticResult object itself. - */ - public NetworkConfigurationDiagnosticResult - withNetworkSecurityGroupResult(NetworkSecurityGroupResult networkSecurityGroupResult) { - this.networkSecurityGroupResult = networkSecurityGroupResult; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateHeaders.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateHeaders.java index 6e4203c7a9c8..49e8e6a441a5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateHeaders.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateHeaders.java @@ -1,22 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; /** * The NetworkGroupsCreateOrUpdateHeaders model. */ -@Fluent +@Immutable public final class NetworkGroupsCreateOrUpdateHeaders { /* - * The Etag property. + * The ETag property. */ - private String etag; + private final String etag; // HttpHeaders containing the raw property values. /** @@ -29,7 +29,7 @@ public NetworkGroupsCreateOrUpdateHeaders(HttpHeaders rawHeaders) { } /** - * Get the etag property: The Etag property. + * Get the etag property: The ETag property. * * @return the etag value. */ @@ -37,17 +37,6 @@ public String etag() { return this.etag; } - /** - * Set the etag property: The Etag property. - * - * @param etag the etag value to set. - * @return the NetworkGroupsCreateOrUpdateHeaders object itself. - */ - public NetworkGroupsCreateOrUpdateHeaders withEtag(String etag) { - this.etag = etag; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateResponse.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateResponse.java index fc1728fffb76..233fc6b34c2b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateResponse.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicy.java index f6b5e409629d..db743c7ac595 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyBasedService.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyBasedService.java index 96bf66e9be87..505fd8664ee6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyBasedService.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyBasedService.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class NetworkIntentPolicyBasedService extends ExpandableStringEnum { /** - * Static value None for NetworkIntentPolicyBasedService. + * None. */ public static final NetworkIntentPolicyBasedService NONE = fromString("None"); /** - * Static value All for NetworkIntentPolicyBasedService. + * All. */ public static final NetworkIntentPolicyBasedService ALL = fromString("All"); /** - * Static value AllowRulesOnly for NetworkIntentPolicyBasedService. + * AllowRulesOnly. */ public static final NetworkIntentPolicyBasedService ALLOW_RULES_ONLY = fromString("AllowRulesOnly"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyConfiguration.java index ee5d69ca0cb0..d99d0608fbc1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAssociation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAssociation.java index 3c1ef758eed8..b1aa215a5645 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAssociation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAssociation.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Network interface and its custom security rules. */ -@Fluent +@Immutable public final class NetworkInterfaceAssociation implements JsonSerializable { /* * Network interface ID. @@ -31,7 +31,7 @@ public final class NetworkInterfaceAssociation implements JsonSerializable securityRules() { return this.securityRules; } - /** - * Set the securityRules property: Collection of custom security rules. - * - * @param securityRules the securityRules value to set. - * @return the NetworkInterfaceAssociation object itself. - */ - public NetworkInterfaceAssociation withSecurityRules(List securityRules) { - this.securityRules = securityRules; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliaryMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliaryMode.java index 6197a7f9d3ad..285eb054f13e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliaryMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliaryMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class NetworkInterfaceAuxiliaryMode extends ExpandableStringEnum { /** - * Static value None for NetworkInterfaceAuxiliaryMode. + * None. */ public static final NetworkInterfaceAuxiliaryMode NONE = fromString("None"); /** - * Static value MaxConnections for NetworkInterfaceAuxiliaryMode. + * MaxConnections. */ public static final NetworkInterfaceAuxiliaryMode MAX_CONNECTIONS = fromString("MaxConnections"); /** - * Static value Floating for NetworkInterfaceAuxiliaryMode. + * Floating. */ public static final NetworkInterfaceAuxiliaryMode FLOATING = fromString("Floating"); /** - * Static value AcceleratedConnections for NetworkInterfaceAuxiliaryMode. + * AcceleratedConnections. */ public static final NetworkInterfaceAuxiliaryMode ACCELERATED_CONNECTIONS = fromString("AcceleratedConnections"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliarySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliarySku.java index 76491b9dd45f..f4fd89b885cc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliarySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliarySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class NetworkInterfaceAuxiliarySku extends ExpandableStringEnum { /** - * Static value None for NetworkInterfaceAuxiliarySku. + * None. */ public static final NetworkInterfaceAuxiliarySku NONE = fromString("None"); /** - * Static value A1 for NetworkInterfaceAuxiliarySku. + * A1. */ public static final NetworkInterfaceAuxiliarySku A1 = fromString("A1"); /** - * Static value A2 for NetworkInterfaceAuxiliarySku. + * A2. */ public static final NetworkInterfaceAuxiliarySku A2 = fromString("A2"); /** - * Static value A4 for NetworkInterfaceAuxiliarySku. + * A4. */ public static final NetworkInterfaceAuxiliarySku A4 = fromString("A4"); /** - * Static value A8 for NetworkInterfaceAuxiliarySku. + * A8. */ public static final NetworkInterfaceAuxiliarySku A8 = fromString("A8"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java index 90d5459e9597..88e1847e0a38 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties.java index 645f802dcb38..59a8a1b77a82 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -36,7 +36,7 @@ public final class NetworkInterfaceIpConfigurationPrivateLinkConnectionPropertie /** * Creates an instance of NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties class. */ - public NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties() { + private NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceMigrationPhase.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceMigrationPhase.java index aac5a315e242..bffdd3184e49 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceMigrationPhase.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceMigrationPhase.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class NetworkInterfaceMigrationPhase extends ExpandableStringEnum { /** - * Static value None for NetworkInterfaceMigrationPhase. + * None. */ public static final NetworkInterfaceMigrationPhase NONE = fromString("None"); /** - * Static value Prepare for NetworkInterfaceMigrationPhase. + * Prepare. */ public static final NetworkInterfaceMigrationPhase PREPARE = fromString("Prepare"); /** - * Static value Commit for NetworkInterfaceMigrationPhase. + * Commit. */ public static final NetworkInterfaceMigrationPhase COMMIT = fromString("Commit"); /** - * Static value Abort for NetworkInterfaceMigrationPhase. + * Abort. */ public static final NetworkInterfaceMigrationPhase ABORT = fromString("Abort"); /** - * Static value Committed for NetworkInterfaceMigrationPhase. + * Committed. */ public static final NetworkInterfaceMigrationPhase COMMITTED = fromString("Committed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceNicType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceNicType.java index 194a342de723..d73e9b53dbd1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceNicType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceNicType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class NetworkInterfaceNicType extends ExpandableStringEnum { /** - * Static value Standard for NetworkInterfaceNicType. + * Standard. */ public static final NetworkInterfaceNicType STANDARD = fromString("Standard"); /** - * Static value Elastic for NetworkInterfaceNicType. + * Elastic. */ public static final NetworkInterfaceNicType ELASTIC = fromString("Elastic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatus.java index 0cc0ea837a9e..71bcbbd14422 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatus.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * Network Manager Deployment Status. */ -@Fluent +@Immutable public final class NetworkManagerDeploymentStatus implements JsonSerializable { /* * Commit Time. @@ -53,7 +53,7 @@ public final class NetworkManagerDeploymentStatus implements JsonSerializable configurationIds() { return this.configurationIds; } - /** - * Set the configurationIds property: List of configuration ids. - * - * @param configurationIds the configurationIds value to set. - * @return the NetworkManagerDeploymentStatus object itself. - */ - public NetworkManagerDeploymentStatus withConfigurationIds(List configurationIds) { - this.configurationIds = configurationIds; - return this; - } - /** * Get the deploymentType property: Configuration Deployment Type. * @@ -145,17 +101,6 @@ public ConfigurationType deploymentType() { return this.deploymentType; } - /** - * Set the deploymentType property: Configuration Deployment Type. - * - * @param deploymentType the deploymentType value to set. - * @return the NetworkManagerDeploymentStatus object itself. - */ - public NetworkManagerDeploymentStatus withDeploymentType(ConfigurationType deploymentType) { - this.deploymentType = deploymentType; - return this; - } - /** * Get the errorMessage property: Error Message. * @@ -165,17 +110,6 @@ public String errorMessage() { return this.errorMessage; } - /** - * Set the errorMessage property: Error Message. - * - * @param errorMessage the errorMessage value to set. - * @return the NetworkManagerDeploymentStatus object itself. - */ - public NetworkManagerDeploymentStatus withErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatusParameter.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatusParameter.java index b48806e6d25e..b00a27a54a8e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatusParameter.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatusParameter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerPropertiesNetworkManagerScopes.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerPropertiesNetworkManagerScopes.java index 7cca30274079..cb4fa9ff56ba 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerPropertiesNetworkManagerScopes.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerPropertiesNetworkManagerScopes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingGroupItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingGroupItem.java index e522f0a1ec8e..c7d051ba5184 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingGroupItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingGroupItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java index 4efc9976e5d2..f1a111cb43fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProtocol.java index 0334f9e9346a..5de0ce21c1d5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class NetworkProtocol extends ExpandableStringEnum { /** - * Static value Any for NetworkProtocol. + * Any. */ public static final NetworkProtocol ANY = fromString("Any"); /** - * Static value TCP for NetworkProtocol. + * TCP. */ public static final NetworkProtocol TCP = fromString("TCP"); /** - * Static value UDP for NetworkProtocol. + * UDP. */ public static final NetworkProtocol UDP = fromString("UDP"); /** - * Static value ICMP for NetworkProtocol. + * ICMP. */ public static final NetworkProtocol ICMP = fromString("ICMP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java index d3c493e5edbf..baddf93fe0d1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupResult.java index e01233340833..9ff12369e0da 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Network configuration diagnostic result corresponded provided traffic query. */ -@Fluent +@Immutable public final class NetworkSecurityGroupResult implements JsonSerializable { /* * The network traffic is allowed or denied. @@ -30,7 +30,7 @@ public final class NetworkSecurityGroupResult implements JsonSerializable { /* @@ -50,7 +50,7 @@ public final class NetworkSecurityRulesEvaluationResult /** * Creates an instance of NetworkSecurityRulesEvaluationResult class. */ - public NetworkSecurityRulesEvaluationResult() { + private NetworkSecurityRulesEvaluationResult() { } /** @@ -62,17 +62,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of the network security rule. - * - * @param name the name value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withName(String name) { - this.name = name; - return this; - } - /** * Get the protocolMatched property: Value indicating whether protocol is matched. * @@ -82,17 +71,6 @@ public Boolean protocolMatched() { return this.protocolMatched; } - /** - * Set the protocolMatched property: Value indicating whether protocol is matched. - * - * @param protocolMatched the protocolMatched value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withProtocolMatched(Boolean protocolMatched) { - this.protocolMatched = protocolMatched; - return this; - } - /** * Get the sourceMatched property: Value indicating whether source is matched. * @@ -102,17 +80,6 @@ public Boolean sourceMatched() { return this.sourceMatched; } - /** - * Set the sourceMatched property: Value indicating whether source is matched. - * - * @param sourceMatched the sourceMatched value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withSourceMatched(Boolean sourceMatched) { - this.sourceMatched = sourceMatched; - return this; - } - /** * Get the sourcePortMatched property: Value indicating whether source port is matched. * @@ -122,17 +89,6 @@ public Boolean sourcePortMatched() { return this.sourcePortMatched; } - /** - * Set the sourcePortMatched property: Value indicating whether source port is matched. - * - * @param sourcePortMatched the sourcePortMatched value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withSourcePortMatched(Boolean sourcePortMatched) { - this.sourcePortMatched = sourcePortMatched; - return this; - } - /** * Get the destinationMatched property: Value indicating whether destination is matched. * @@ -142,17 +98,6 @@ public Boolean destinationMatched() { return this.destinationMatched; } - /** - * Set the destinationMatched property: Value indicating whether destination is matched. - * - * @param destinationMatched the destinationMatched value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withDestinationMatched(Boolean destinationMatched) { - this.destinationMatched = destinationMatched; - return this; - } - /** * Get the destinationPortMatched property: Value indicating whether destination port is matched. * @@ -162,17 +107,6 @@ public Boolean destinationPortMatched() { return this.destinationPortMatched; } - /** - * Set the destinationPortMatched property: Value indicating whether destination port is matched. - * - * @param destinationPortMatched the destinationPortMatched value to set. - * @return the NetworkSecurityRulesEvaluationResult object itself. - */ - public NetworkSecurityRulesEvaluationResult withDestinationPortMatched(Boolean destinationPortMatched) { - this.destinationPortMatched = destinationPortMatched; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceBootDiagnosticParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceBootDiagnosticParameters.java index 964c48dbbcbe..55abfb3abd6b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceBootDiagnosticParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceBootDiagnosticParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java index ba530411a8b5..dfc2452c6c73 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuInstances.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuInstances.java index 2f6d519a4e37..bfe786c1e863 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuInstances.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuInstances.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -32,7 +32,7 @@ public final class NetworkVirtualApplianceSkuInstances /** * Creates an instance of NetworkVirtualApplianceSkuInstances class. */ - public NetworkVirtualApplianceSkuInstances() { + private NetworkVirtualApplianceSkuInstances() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java index 4237130b9256..f88c86569ed4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopType.java index a36d09d33161..f96634dc6d39 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class NextHopType extends ExpandableStringEnum { /** - * Static value Internet for NextHopType. + * Internet. */ public static final NextHopType INTERNET = fromString("Internet"); /** - * Static value VirtualAppliance for NextHopType. + * VirtualAppliance. */ public static final NextHopType VIRTUAL_APPLIANCE = fromString("VirtualAppliance"); /** - * Static value VirtualNetworkGateway for NextHopType. + * VirtualNetworkGateway. */ public static final NextHopType VIRTUAL_NETWORK_GATEWAY = fromString("VirtualNetworkGateway"); /** - * Static value VnetLocal for NextHopType. + * VnetLocal. */ public static final NextHopType VNET_LOCAL = fromString("VnetLocal"); /** - * Static value HyperNetGateway for NextHopType. + * HyperNetGateway. */ public static final NextHopType HYPER_NET_GATEWAY = fromString("HyperNetGateway"); /** - * Static value None for NextHopType. + * None. */ public static final NextHopType NONE = fromString("None"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextStep.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextStep.java index b6d4cd57ee49..9a7fd9fa251f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextStep.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextStep.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class NextStep extends ExpandableStringEnum { /** - * Static value Unknown for NextStep. + * Unknown. */ public static final NextStep UNKNOWN = fromString("Unknown"); /** - * Static value Continue for NextStep. + * Continue. */ public static final NextStep CONTINUE = fromString("Continue"); /** - * Static value Terminate for NextStep. + * Terminate. */ public static final NextStep TERMINATE = fromString("Terminate"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java index cf23de6b5eb1..ca4d2b949119 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class NicTypeInRequest extends ExpandableStringEnum { /** - * Static value PublicNic for NicTypeInRequest. + * PublicNic. */ public static final NicTypeInRequest PUBLIC_NIC = fromString("PublicNic"); /** - * Static value PrivateNic for NicTypeInRequest. + * PrivateNic. */ public static final NicTypeInRequest PRIVATE_NIC = fromString("PrivateNic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java index 093b78115530..98eabd717f0c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ */ public final class NicTypeInResponse extends ExpandableStringEnum { /** - * Static value PublicNic for NicTypeInResponse. + * PublicNic. */ public static final NicTypeInResponse PUBLIC_NIC = fromString("PublicNic"); /** - * Static value PrivateNic for NicTypeInResponse. + * PrivateNic. */ public static final NicTypeInResponse PRIVATE_NIC = fromString("PrivateNic"); /** - * Static value AdditionalNic for NicTypeInResponse. + * AdditionalNic. */ public static final NicTypeInResponse ADDITIONAL_NIC = fromString("AdditionalNic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkProvisioningState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkProvisioningState.java index 7f82b8b1e845..c8745bc3f0c6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkProvisioningState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,37 +12,37 @@ */ public final class NspLinkProvisioningState extends ExpandableStringEnum { /** - * Static value Succeeded for NspLinkProvisioningState. + * Succeeded. */ public static final NspLinkProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Static value Creating for NspLinkProvisioningState. + * Creating. */ public static final NspLinkProvisioningState CREATING = fromString("Creating"); /** - * Static value Updating for NspLinkProvisioningState. + * Updating. */ public static final NspLinkProvisioningState UPDATING = fromString("Updating"); /** - * Static value Deleting for NspLinkProvisioningState. + * Deleting. */ public static final NspLinkProvisioningState DELETING = fromString("Deleting"); /** - * Static value Accepted for NspLinkProvisioningState. + * Accepted. */ public static final NspLinkProvisioningState ACCEPTED = fromString("Accepted"); /** - * Static value Failed for NspLinkProvisioningState. + * Failed. */ public static final NspLinkProvisioningState FAILED = fromString("Failed"); /** - * Static value WaitForRemoteCompletion for NspLinkProvisioningState. + * WaitForRemoteCompletion. */ public static final NspLinkProvisioningState WAIT_FOR_REMOTE_COMPLETION = fromString("WaitForRemoteCompletion"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkStatus.java index 81276f1d155c..1f6e6b1424c2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspLinkStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class NspLinkStatus extends ExpandableStringEnum { /** - * Static value Approved for NspLinkStatus. + * Approved. */ public static final NspLinkStatus APPROVED = fromString("Approved"); /** - * Static value Pending for NspLinkStatus. + * Pending. */ public static final NspLinkStatus PENDING = fromString("Pending"); /** - * Static value Rejected for NspLinkStatus. + * Rejected. */ public static final NspLinkStatus REJECTED = fromString("Rejected"); /** - * Static value Disconnected for NspLinkStatus. + * Disconnected. */ public static final NspLinkStatus DISCONNECTED = fromString("Disconnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProvisioningState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProvisioningState.java index 7832e91650fa..5382d8055a96 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProvisioningState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NspProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class NspProvisioningState extends ExpandableStringEnum { /** - * Static value Succeeded for NspProvisioningState. + * Succeeded. */ public static final NspProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Static value Creating for NspProvisioningState. + * Creating. */ public static final NspProvisioningState CREATING = fromString("Creating"); /** - * Static value Updating for NspProvisioningState. + * Updating. */ public static final NspProvisioningState UPDATING = fromString("Updating"); /** - * Static value Deleting for NspProvisioningState. + * Deleting. */ public static final NspProvisioningState DELETING = fromString("Deleting"); /** - * Static value Accepted for NspProvisioningState. + * Accepted. */ public static final NspProvisioningState ACCEPTED = fromString("Accepted"); /** - * Static value Failed for NspProvisioningState. + * Failed. */ public static final NspProvisioningState FAILED = fromString("Failed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInVnetSubnetReferenceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInVnetSubnetReferenceProperties.java index a6df6063ea0e..7f530c1d5db1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInVnetSubnetReferenceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInVnetSubnetReferenceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInterfaceConfigurationsProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInterfaceConfigurationsProperties.java index 4776866d0b86..32f4b9db3839 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInterfaceConfigurationsProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaInterfaceConfigurationsProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaNicType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaNicType.java index c895308e489f..5870acf934e1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaNicType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NvaNicType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class NvaNicType extends ExpandableStringEnum { /** - * Static value PrivateNic for NvaNicType. + * The private NIC type. */ public static final NvaNicType PRIVATE_NIC = fromString("PrivateNic"); /** - * Static value PublicNic for NvaNicType. + * The public NIC type. */ public static final NvaNicType PUBLIC_NIC = fromString("PublicNic"); /** - * Static value AdditionalPrivateNic for NvaNicType. + * An additional private NIC type. */ public static final NvaNicType ADDITIONAL_PRIVATE_NIC = fromString("AdditionalPrivateNic"); /** - * Static value AdditionalPublicNic for NvaNicType. + * An additional public NIC type. */ public static final NvaNicType ADDITIONAL_PUBLIC_NIC = fromString("AdditionalPublicNic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365BreakOutCategoryPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365BreakOutCategoryPolicies.java index 8ddfccab3f07..33e263e0e87e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365BreakOutCategoryPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365BreakOutCategoryPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365PolicyProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365PolicyProperties.java index 8183cf7b606e..c6a5a10e8a94 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365PolicyProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/O365PolicyProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Office365PolicyProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Office365PolicyProperties.java index f3fe9f4fe290..6882b8ff5332 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Office365PolicyProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Office365PolicyProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OfficeTrafficCategory.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OfficeTrafficCategory.java index 5f5e6f261f14..71ba5d5bf442 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OfficeTrafficCategory.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OfficeTrafficCategory.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class OfficeTrafficCategory extends ExpandableStringEnum { /** - * Static value Optimize for OfficeTrafficCategory. + * Optimize. */ public static final OfficeTrafficCategory OPTIMIZE = fromString("Optimize"); /** - * Static value OptimizeAndAllow for OfficeTrafficCategory. + * OptimizeAndAllow. */ public static final OfficeTrafficCategory OPTIMIZE_AND_ALLOW = fromString("OptimizeAndAllow"); /** - * Static value All for OfficeTrafficCategory. + * All. */ public static final OfficeTrafficCategory ALL = fromString("All"); /** - * Static value None for OfficeTrafficCategory. + * None. */ public static final OfficeTrafficCategory NONE = fromString("None"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationDisplay.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationDisplay.java index 1ce1e36d09f0..08357896a7be 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationDisplay.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationDisplay.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Display metadata associated with the operation. */ -@Fluent +@Immutable public final class OperationDisplay implements JsonSerializable { /* * Service provider: Microsoft Network. @@ -39,7 +39,7 @@ public final class OperationDisplay implements JsonSerializable { /* @@ -31,7 +31,7 @@ public final class OperationPropertiesFormatServiceSpecification /** * Creates an instance of OperationPropertiesFormatServiceSpecification class. */ - public OperationPropertiesFormatServiceSpecification() { + private OperationPropertiesFormatServiceSpecification() { } /** @@ -43,18 +43,6 @@ public List metricSpecifications() { return this.metricSpecifications; } - /** - * Set the metricSpecifications property: Operation service specification. - * - * @param metricSpecifications the metricSpecifications value to set. - * @return the OperationPropertiesFormatServiceSpecification object itself. - */ - public OperationPropertiesFormatServiceSpecification - withMetricSpecifications(List metricSpecifications) { - this.metricSpecifications = metricSpecifications; - return this; - } - /** * Get the logSpecifications property: Operation log specification. * @@ -64,18 +52,6 @@ public List logSpecifications() { return this.logSpecifications; } - /** - * Set the logSpecifications property: Operation log specification. - * - * @param logSpecifications the logSpecifications value to set. - * @return the OperationPropertiesFormatServiceSpecification object itself. - */ - public OperationPropertiesFormatServiceSpecification - withLogSpecifications(List logSpecifications) { - this.logSpecifications = logSpecifications; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OrderBy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OrderBy.java index 66dda6e8b51c..bab28ab9be65 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OrderBy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OrderBy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Origin.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Origin.java index 09423aebf420..a1cc00fe1ab6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Origin.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Origin.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class Origin extends ExpandableStringEnum { /** - * Static value Local for Origin. + * Local. */ public static final Origin LOCAL = fromString("Local"); /** - * Static value Inbound for Origin. + * Inbound. */ public static final Origin INBOUND = fromString("Inbound"); /** - * Static value Outbound for Origin. + * Outbound. */ public static final Origin OUTBOUND = fromString("Outbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OutputType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OutputType.java index f742d1b975aa..5703fc972fe3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OutputType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OutputType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class OutputType extends ExpandableStringEnum { /** - * Static value Workspace for OutputType. + * Workspace. */ public static final OutputType WORKSPACE = fromString("Workspace"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java index c8e8d7a01316..634e1df893c7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntryMatchVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntryMatchVariable.java index da5a9e90fa45..db07487aedb3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntryMatchVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntryMatchVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,47 +13,47 @@ public final class OwaspCrsExclusionEntryMatchVariable extends ExpandableStringEnum { /** - * Static value RequestHeaderNames for OwaspCrsExclusionEntryMatchVariable. + * RequestHeaderNames. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_HEADER_NAMES = fromString("RequestHeaderNames"); /** - * Static value RequestCookieNames for OwaspCrsExclusionEntryMatchVariable. + * RequestCookieNames. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_COOKIE_NAMES = fromString("RequestCookieNames"); /** - * Static value RequestArgNames for OwaspCrsExclusionEntryMatchVariable. + * RequestArgNames. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_ARG_NAMES = fromString("RequestArgNames"); /** - * Static value RequestHeaderKeys for OwaspCrsExclusionEntryMatchVariable. + * RequestHeaderKeys. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_HEADER_KEYS = fromString("RequestHeaderKeys"); /** - * Static value RequestHeaderValues for OwaspCrsExclusionEntryMatchVariable. + * RequestHeaderValues. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_HEADER_VALUES = fromString("RequestHeaderValues"); /** - * Static value RequestCookieKeys for OwaspCrsExclusionEntryMatchVariable. + * RequestCookieKeys. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_COOKIE_KEYS = fromString("RequestCookieKeys"); /** - * Static value RequestCookieValues for OwaspCrsExclusionEntryMatchVariable. + * RequestCookieValues. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_COOKIE_VALUES = fromString("RequestCookieValues"); /** - * Static value RequestArgKeys for OwaspCrsExclusionEntryMatchVariable. + * RequestArgKeys. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_ARG_KEYS = fromString("RequestArgKeys"); /** - * Static value RequestArgValues for OwaspCrsExclusionEntryMatchVariable. + * RequestArgValues. */ public static final OwaspCrsExclusionEntryMatchVariable REQUEST_ARG_VALUES = fromString("RequestArgValues"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntrySelectorMatchOperator.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntrySelectorMatchOperator.java index 8ebde235ac42..f599320f45f1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntrySelectorMatchOperator.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntrySelectorMatchOperator.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -14,27 +14,27 @@ public final class OwaspCrsExclusionEntrySelectorMatchOperator extends ExpandableStringEnum { /** - * Static value Equals for OwaspCrsExclusionEntrySelectorMatchOperator. + * Equals. */ public static final OwaspCrsExclusionEntrySelectorMatchOperator EQUALS = fromString("Equals"); /** - * Static value Contains for OwaspCrsExclusionEntrySelectorMatchOperator. + * Contains. */ public static final OwaspCrsExclusionEntrySelectorMatchOperator CONTAINS = fromString("Contains"); /** - * Static value StartsWith for OwaspCrsExclusionEntrySelectorMatchOperator. + * StartsWith. */ public static final OwaspCrsExclusionEntrySelectorMatchOperator STARTS_WITH = fromString("StartsWith"); /** - * Static value EndsWith for OwaspCrsExclusionEntrySelectorMatchOperator. + * EndsWith. */ public static final OwaspCrsExclusionEntrySelectorMatchOperator ENDS_WITH = fromString("EndsWith"); /** - * Static value EqualsAny for OwaspCrsExclusionEntrySelectorMatchOperator. + * EqualsAny. */ public static final OwaspCrsExclusionEntrySelectorMatchOperator EQUALS_ANY = fromString("EqualsAny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java index 499b861a52af..51bc57a0a91f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionHealthRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionHealthRequest.java index 4958e611009a..bb90a79236c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionHealthRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionHealthRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionRequest.java index 24acbac1113e..feea79a6c9ab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnProfileParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnProfileParameters.java index 852b5c3c5105..9185202dccb7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnProfileParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SVpnProfileParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java index 3f95da7b416f..809467c2895e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureMachineScope.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureMachineScope.java index 8e9ebe71fb7c..157524c1801c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureMachineScope.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureMachineScope.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java index 75c2f5612482..e6051ea92681 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java index 6c0bcc803fe0..7d58385b930e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureTargetType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureTargetType.java index 846c16dffbb1..417d756a84b9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureTargetType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureTargetType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -9,12 +9,12 @@ */ public enum PacketCaptureTargetType { /** - * Enum value AzureVM. + * AzureVM. */ AZURE_VM("AzureVM"), /** - * Enum value AzureVMSS. + * AzureVMSS. */ AZURE_VMSS("AzureVMSS"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Parameter.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Parameter.java index 37c0556b2cd4..6d6a3b269dab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Parameter.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Parameter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PartnerManagedResourceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PartnerManagedResourceProperties.java index 7daf98f23b48..7379528b8046 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PartnerManagedResourceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PartnerManagedResourceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PatchObject.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PatchObject.java index 14d14b0dcd37..210f63306ae1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PatchObject.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PatchObject.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcError.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcError.java index ff19d32ca03f..1f5700e61c0c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcError.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcError.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class PcError extends ExpandableStringEnum { /** - * Static value InternalError for PcError. + * InternalError. */ public static final PcError INTERNAL_ERROR = fromString("InternalError"); /** - * Static value AgentStopped for PcError. + * AgentStopped. */ public static final PcError AGENT_STOPPED = fromString("AgentStopped"); /** - * Static value CaptureFailed for PcError. + * CaptureFailed. */ public static final PcError CAPTURE_FAILED = fromString("CaptureFailed"); /** - * Static value LocalFileFailed for PcError. + * LocalFileFailed. */ public static final PcError LOCAL_FILE_FAILED = fromString("LocalFileFailed"); /** - * Static value StorageFailed for PcError. + * StorageFailed. */ public static final PcError STORAGE_FAILED = fromString("StorageFailed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcProtocol.java index 552ecaad2d10..28decd8c07fa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class PcProtocol extends ExpandableStringEnum { /** - * Static value TCP for PcProtocol. + * TCP. */ public static final PcProtocol TCP = fromString("TCP"); /** - * Static value UDP for PcProtocol. + * UDP. */ public static final PcProtocol UDP = fromString("UDP"); /** - * Static value Any for PcProtocol. + * Any. */ public static final PcProtocol ANY = fromString("Any"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcStatus.java index 30c06284ff14..029ca63ad8bf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PcStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class PcStatus extends ExpandableStringEnum { /** - * Static value NotStarted for PcStatus. + * NotStarted. */ public static final PcStatus NOT_STARTED = fromString("NotStarted"); /** - * Static value Running for PcStatus. + * Running. */ public static final PcStatus RUNNING = fromString("Running"); /** - * Static value Stopped for PcStatus. + * Stopped. */ public static final PcStatus STOPPED = fromString("Stopped"); /** - * Static value Error for PcStatus. + * Error. */ public static final PcStatus ERROR = fromString("Error"); /** - * Static value Unknown for PcStatus. + * Unknown. */ public static final PcStatus UNKNOWN = fromString("Unknown"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerRoute.java index dedb7ba7cb70..86191d07d381 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeerRoute.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -54,7 +54,7 @@ public final class PeerRoute implements JsonSerializable { /** * Creates an instance of PeerRoute class. */ - public PeerRoute() { + private PeerRoute() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeeringEnforcement.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeeringEnforcement.java index 1126e22d7a33..af3c7438bf2b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeeringEnforcement.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PeeringEnforcement.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,14 @@ */ public final class PeeringEnforcement extends ExpandableStringEnum { /** - * Static value Unenforced for PeeringEnforcement. + * Default. Peerings created by the connectivity configuration may be modified or deleted outside of the network + * manager. */ public static final PeeringEnforcement UNENFORCED = fromString("Unenforced"); /** - * Static value Enforced for PeeringEnforcement. + * Peerings created by the connectivity configuration will not be modifiable or deletable outside of the network + * manager. */ public static final PeeringEnforcement ENFORCED = fromString("Enforced"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterBasedAccessRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterBasedAccessRule.java index b63404a5f775..e14757a3f388 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterBasedAccessRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PerimeterBasedAccessRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -34,7 +34,7 @@ public final class PerimeterBasedAccessRule implements JsonSerializable { /** - * Static value None for PfsGroup. + * None. */ public static final PfsGroup NONE = fromString("None"); /** - * Static value PFS1 for PfsGroup. + * PFS1. */ public static final PfsGroup PFS1 = fromString("PFS1"); /** - * Static value PFS2 for PfsGroup. + * PFS2. */ public static final PfsGroup PFS2 = fromString("PFS2"); /** - * Static value PFS2048 for PfsGroup. + * PFS2048. */ public static final PfsGroup PFS2048 = fromString("PFS2048"); /** - * Static value ECP256 for PfsGroup. + * ECP256. */ public static final PfsGroup ECP256 = fromString("ECP256"); /** - * Static value ECP384 for PfsGroup. + * ECP384. */ public static final PfsGroup ECP384 = fromString("ECP384"); /** - * Static value PFS24 for PfsGroup. + * PFS24. */ public static final PfsGroup PFS24 = fromString("PFS24"); /** - * Static value PFS14 for PfsGroup. + * PFS14. */ public static final PfsGroup PFS14 = fromString("PFS14"); /** - * Static value PFSMM for PfsGroup. + * PFSMM. */ public static final PfsGroup PFSMM = fromString("PFSMM"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java index ecd658101497..97664cd65083 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettingsLogScrubbing.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettingsLogScrubbing.java index 6e1acbb48014..f8def5065653 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettingsLogScrubbing.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettingsLogScrubbing.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredIpVersion.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredIpVersion.java index 2f6329d3c75e..891f5e0bee45 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredIpVersion.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredIpVersion.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ */ public final class PreferredIpVersion extends ExpandableStringEnum { /** - * Static value IPv4 for PreferredIpVersion. + * IPv4. */ public static final PreferredIpVersion IPV4 = fromString("IPv4"); /** - * Static value IPv6 for PreferredIpVersion. + * IPv6. */ public static final PreferredIpVersion IPV6 = fromString("IPv6"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredRoutingGateway.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredRoutingGateway.java index a356075bd10f..680039d4abfe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredRoutingGateway.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PreferredRoutingGateway.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class PreferredRoutingGateway extends ExpandableStringEnum { /** - * Static value ExpressRoute for PreferredRoutingGateway. + * ExpressRoute. */ public static final PreferredRoutingGateway EXPRESS_ROUTE = fromString("ExpressRoute"); /** - * Static value VpnGateway for PreferredRoutingGateway. + * VpnGateway. */ public static final PreferredRoutingGateway VPN_GATEWAY = fromString("VpnGateway"); /** - * Static value None for PreferredRoutingGateway. + * None. */ public static final PreferredRoutingGateway NONE = fromString("None"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrepareNetworkPoliciesRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrepareNetworkPoliciesRequest.java index 13a3f76b5afb..35c0bdd89162 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrepareNetworkPoliciesRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrepareNetworkPoliciesRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneConfig.java index eccb894ea303..cf68b7797b46 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpConfiguration.java index 926a3e8148cc..5692bde7413e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpVersionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpVersionType.java index 64e01c942f4e..f90846a562de 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpVersionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpVersionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class PrivateEndpointIpVersionType extends ExpandableStringEnum { /** - * Static value IPv4 for PrivateEndpointIpVersionType. + * Indicates that the Private IPs of the private endpoint will be IPv4 only. */ public static final PrivateEndpointIpVersionType IPV4 = fromString("IPv4"); /** - * Static value IPv6 for PrivateEndpointIpVersionType. + * Indicates that the Private IPs of the private endpoint will be IPv6 only. */ public static final PrivateEndpointIpVersionType IPV6 = fromString("IPv6"); /** - * Static value DualStack for PrivateEndpointIpVersionType. + * Indicates that the Private IPs of the private endpoint can be both IPv4 and IPv6. */ public static final PrivateEndpointIpVersionType DUAL_STACK = fromString("DualStack"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointVNetPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointVNetPolicies.java index 1c6de31156af..2f555fbab419 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointVNetPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointVNetPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class PrivateEndpointVNetPolicies extends ExpandableStringEnum { /** - * Static value Disabled for PrivateEndpointVNetPolicies. + * Disabled. */ public static final PrivateEndpointVNetPolicies DISABLED = fromString("Disabled"); /** - * Static value Basic for PrivateEndpointVNetPolicies. + * Basic. */ public static final PrivateEndpointVNetPolicies BASIC = fromString("Basic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java index 02d6c8e930f7..9ff167ad9663 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnectionState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnectionState.java index 5f009e223dc3..49ba7a7c6365 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnectionState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnectionState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesAutoApproval.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesAutoApproval.java index 7d372f291028..7f7a328daeec 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesAutoApproval.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesAutoApproval.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesVisibility.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesVisibility.java index 460ff1ab7304..52fcc05e677e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesVisibility.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesVisibility.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeNoHealthyBackendsBehavior.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeNoHealthyBackendsBehavior.java index 75c5fa791ba3..971750c3256d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeNoHealthyBackendsBehavior.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeNoHealthyBackendsBehavior.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ProbeNoHealthyBackendsBehavior extends ExpandableStringEnum { /** - * Static value AllProbedDown for ProbeNoHealthyBackendsBehavior. + * No new flows will be sent to the backend pool. */ public static final ProbeNoHealthyBackendsBehavior ALL_PROBED_DOWN = fromString("AllProbedDown"); /** - * Static value AllProbedUp for ProbeNoHealthyBackendsBehavior. + * When all backend instances are probed down, incoming packets will be sent to all instances. */ public static final ProbeNoHealthyBackendsBehavior ALL_PROBED_UP = fromString("AllProbedUp"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeProtocol.java index 22775b37ccea..173c25090cf8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProbeProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ */ public final class ProbeProtocol extends ExpandableStringEnum { /** - * Static value Http for ProbeProtocol. + * Http. */ public static final ProbeProtocol HTTP = fromString("Http"); /** - * Static value Tcp for ProbeProtocol. + * Tcp. */ public static final ProbeProtocol TCP = fromString("Tcp"); /** - * Static value Https for ProbeProtocol. + * Https. */ public static final ProbeProtocol HTTPS = fromString("Https"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProcessorArchitecture.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProcessorArchitecture.java index 9116a2c9d022..a3e2680d1991 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProcessorArchitecture.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProcessorArchitecture.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ProcessorArchitecture extends ExpandableStringEnum { /** - * Static value Amd64 for ProcessorArchitecture. + * Amd64. */ public static final ProcessorArchitecture AMD64 = fromString("Amd64"); /** - * Static value X86 for ProcessorArchitecture. + * X86. */ public static final ProcessorArchitecture X86 = fromString("X86"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PropagatedRouteTable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PropagatedRouteTable.java index 8f6e32772658..60fa79c84d9c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PropagatedRouteTable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PropagatedRouteTable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Protocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Protocol.java index 981adaad0292..4cf78b1c06fe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Protocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Protocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class Protocol extends ExpandableStringEnum { /** - * Static value Tcp for Protocol. + * Tcp. */ public static final Protocol TCP = fromString("Tcp"); /** - * Static value Http for Protocol. + * Http. */ public static final Protocol HTTP = fromString("Http"); /** - * Static value Https for Protocol. + * Https. */ public static final Protocol HTTPS = fromString("Https"); /** - * Static value Icmp for Protocol. + * Icmp. */ public static final Protocol ICMP = fromString("Icmp"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolConfiguration.java index aba73f7a2b57..9816362499a3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolType.java index 388b97c9b479..aa8dd1c39948 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProtocolType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,47 +12,47 @@ */ public final class ProtocolType extends ExpandableStringEnum { /** - * Static value DoNotUse for ProtocolType. + * DoNotUse. */ public static final ProtocolType DO_NOT_USE = fromString("DoNotUse"); /** - * Static value Icmp for ProtocolType. + * Icmp. */ public static final ProtocolType ICMP = fromString("Icmp"); /** - * Static value Tcp for ProtocolType. + * Tcp. */ public static final ProtocolType TCP = fromString("Tcp"); /** - * Static value Udp for ProtocolType. + * Udp. */ public static final ProtocolType UDP = fromString("Udp"); /** - * Static value Gre for ProtocolType. + * Gre. */ public static final ProtocolType GRE = fromString("Gre"); /** - * Static value Esp for ProtocolType. + * Esp. */ public static final ProtocolType ESP = fromString("Esp"); /** - * Static value Ah for ProtocolType. + * Ah. */ public static final ProtocolType AH = fromString("Ah"); /** - * Static value Vxlan for ProtocolType. + * Vxlan. */ public static final ProtocolType VXLAN = fromString("Vxlan"); /** - * Static value All for ProtocolType. + * All. */ public static final ProtocolType ALL = fromString("All"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProvisioningState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProvisioningState.java index f1848d1b0ded..379a5057794b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProvisioningState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -8,38 +8,38 @@ import java.util.Collection; /** - * Provisioning states of a resource. + * Defines values for ProvisioningState. */ public final class ProvisioningState extends ExpandableStringEnum { /** - * Static value Failed for ProvisioningState. + * Static value Succeeded for ProvisioningState. */ - public static final ProvisioningState FAILED = fromString("Failed"); + public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Static value Succeeded for ProvisioningState. + * Static value Updating for ProvisioningState. */ - public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); + public static final ProvisioningState UPDATING = fromString("Updating"); /** - * Static value Canceled for ProvisioningState. + * Static value Deleting for ProvisioningState. */ - public static final ProvisioningState CANCELED = fromString("Canceled"); + public static final ProvisioningState DELETING = fromString("Deleting"); /** - * Static value Creating for ProvisioningState. + * Static value Failed for ProvisioningState. */ - public static final ProvisioningState CREATING = fromString("Creating"); + public static final ProvisioningState FAILED = fromString("Failed"); /** - * Static value Updating for ProvisioningState. + * Static value Canceled for ProvisioningState. */ - public static final ProvisioningState UPDATING = fromString("Updating"); + public static final ProvisioningState CANCELED = fromString("Canceled"); /** - * Static value Deleting for ProvisioningState. + * Static value Creating for ProvisioningState. */ - public static final ProvisioningState DELETING = fromString("Deleting"); + public static final ProvisioningState CREATING = fromString("Creating"); /** * Creates a new instance of ProvisioningState value. diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithReadOnlyID.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithReadOnlyID.java new file mode 100644 index 000000000000..28544b331e58 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithReadOnlyID.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Proxy resource representation. + */ +@Immutable +public class ProxyResourceWithReadOnlyID implements JsonSerializable { + /* + * Resource ID. + */ + private String id; + + /* + * Resource name. + */ + private String name; + + /* + * Resource type. + */ + private String type; + + /** + * Creates an instance of ProxyResourceWithReadOnlyID class. + */ + public ProxyResourceWithReadOnlyID() { + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID. + * + * @param id the id value to set. + * @return the ProxyResourceWithReadOnlyID object itself. + */ + ProxyResourceWithReadOnlyID withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the ProxyResourceWithReadOnlyID object itself. + */ + ProxyResourceWithReadOnlyID withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Resource type. + * + * @param type the type value to set. + * @return the ProxyResourceWithReadOnlyID object itself. + */ + ProxyResourceWithReadOnlyID withType(String type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProxyResourceWithReadOnlyID from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProxyResourceWithReadOnlyID if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProxyResourceWithReadOnlyID. + */ + public static ProxyResourceWithReadOnlyID fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProxyResourceWithReadOnlyID deserializedProxyResourceWithReadOnlyID = new ProxyResourceWithReadOnlyID(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedProxyResourceWithReadOnlyID.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedProxyResourceWithReadOnlyID.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedProxyResourceWithReadOnlyID.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedProxyResourceWithReadOnlyID; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithSettableId.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithSettableId.java new file mode 100644 index 000000000000..d94f7311d24b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithSettableId.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Proxy resource representation. + */ +@Immutable +public class ProxyResourceWithSettableId implements JsonSerializable { + /* + * Resource ID. + */ + private String id; + + /* + * Resource name. + */ + private String name; + + /* + * Resource type. + */ + private String type; + + /** + * Creates an instance of ProxyResourceWithSettableId class. + */ + protected ProxyResourceWithSettableId() { + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID. + * + * @param id the id value to set. + * @return the ProxyResourceWithSettableId object itself. + */ + ProxyResourceWithSettableId withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the ProxyResourceWithSettableId object itself. + */ + ProxyResourceWithSettableId withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Resource type. + * + * @param type the type value to set. + * @return the ProxyResourceWithSettableId object itself. + */ + ProxyResourceWithSettableId withType(String type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProxyResourceWithSettableId from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProxyResourceWithSettableId if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProxyResourceWithSettableId. + */ + public static ProxyResourceWithSettableId fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProxyResourceWithSettableId deserializedProxyResourceWithSettableId = new ProxyResourceWithSettableId(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedProxyResourceWithSettableId.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedProxyResourceWithSettableId.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedProxyResourceWithSettableId.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedProxyResourceWithSettableId; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java index ec00f1bfea62..af68c5ac45b8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettingsDomainNameLabelScope.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettingsDomainNameLabelScope.java index 56dabdf0652d..56acaa015764 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettingsDomainNameLabelScope.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettingsDomainNameLabelScope.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -10,22 +10,22 @@ */ public enum PublicIpAddressDnsSettingsDomainNameLabelScope { /** - * Enum value TenantReuse. + * TenantReuse. */ TENANT_REUSE("TenantReuse"), /** - * Enum value SubscriptionReuse. + * SubscriptionReuse. */ SUBSCRIPTION_REUSE("SubscriptionReuse"), /** - * Enum value ResourceGroupReuse. + * ResourceGroupReuse. */ RESOURCE_GROUP_REUSE("ResourceGroupReuse"), /** - * Enum value NoReuse. + * NoReuse. */ NO_REUSE("NoReuse"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressMigrationPhase.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressMigrationPhase.java index 5286503f3b88..d926e492e922 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressMigrationPhase.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressMigrationPhase.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class PublicIpAddressMigrationPhase extends ExpandableStringEnum { /** - * Static value None for PublicIpAddressMigrationPhase. + * None. */ public static final PublicIpAddressMigrationPhase NONE = fromString("None"); /** - * Static value Prepare for PublicIpAddressMigrationPhase. + * Prepare. */ public static final PublicIpAddressMigrationPhase PREPARE = fromString("Prepare"); /** - * Static value Commit for PublicIpAddressMigrationPhase. + * Commit. */ public static final PublicIpAddressMigrationPhase COMMIT = fromString("Commit"); /** - * Static value Abort for PublicIpAddressMigrationPhase. + * Abort. */ public static final PublicIpAddressMigrationPhase ABORT = fromString("Abort"); /** - * Static value Committed for PublicIpAddressMigrationPhase. + * Committed. */ public static final PublicIpAddressMigrationPhase COMMITTED = fromString("Committed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSku.java index 69eb215a7b88..e5526c96889a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuName.java index 3bf486583d3f..749f0a8a76f2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class PublicIpAddressSkuName extends ExpandableStringEnum { /** - * Static value Basic for PublicIpAddressSkuName. + * Basic. */ public static final PublicIpAddressSkuName BASIC = fromString("Basic"); /** - * Static value Standard for PublicIpAddressSkuName. + * Standard. */ public static final PublicIpAddressSkuName STANDARD = fromString("Standard"); /** - * Static value StandardV2 for PublicIpAddressSkuName. + * StandardV2. */ public static final PublicIpAddressSkuName STANDARD_V2 = fromString("StandardV2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuTier.java index da5b536eefaf..098f17861ce9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class PublicIpAddressSkuTier extends ExpandableStringEnum { /** - * Static value Regional for PublicIpAddressSkuTier. + * Regional. */ public static final PublicIpAddressSkuTier REGIONAL = fromString("Regional"); /** - * Static value Global for PublicIpAddressSkuTier. + * Global. */ public static final PublicIpAddressSkuTier GLOBAL = fromString("Global"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSku.java index 74743728fec8..c8c9a3b71d42 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuName.java index 5ce39b432703..c551d1b2083c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class PublicIpPrefixSkuName extends ExpandableStringEnum { /** - * Static value Standard for PublicIpPrefixSkuName. + * Standard. */ public static final PublicIpPrefixSkuName STANDARD = fromString("Standard"); /** - * Static value StandardV2 for PublicIpPrefixSkuName. + * StandardV2. */ public static final PublicIpPrefixSkuName STANDARD_V2 = fromString("StandardV2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuTier.java index 427505b2f74c..c8b728e77ccc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class PublicIpPrefixSkuTier extends ExpandableStringEnum { /** - * Static value Regional for PublicIpPrefixSkuTier. + * Regional. */ public static final PublicIpPrefixSkuTier REGIONAL = fromString("Regional"); /** - * Static value Global for PublicIpPrefixSkuTier. + * Global. */ public static final PublicIpPrefixSkuTier GLOBAL = fromString("Global"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosDefinition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosDefinition.java index 4ef62f6aa3c3..dfb240d3dc5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosDefinition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosDefinition.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosIpRange.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosIpRange.java index 16ae8e6be9e2..52c8e5844684 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosIpRange.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosIpRange.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosPortRange.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosPortRange.java index 4a2e4cb68adf..5a047cc9d625 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosPortRange.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QosPortRange.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryInboundNatRulePortMappingRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryInboundNatRulePortMappingRequest.java index 3f4f99218eb4..66448add3f5f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryInboundNatRulePortMappingRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryInboundNatRulePortMappingRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java index eeb50a0e10b9..3a7fd0b0635f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java index 9fb29aa0e6a3..f879fd4d3fa5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusAuthServer.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusAuthServer.java index 2b44d629b389..5885d9e10b6a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusAuthServer.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusAuthServer.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Gateway or VpnServerConfiguration Radius server with radius secret details. */ -@Fluent +@Immutable public final class RadiusAuthServer implements JsonSerializable { /* * Radius server IPAddress @@ -29,7 +29,7 @@ public final class RadiusAuthServer implements JsonSerializable { + /* + * Resource ID. + */ + private String id; + + /* + * Name of the resource. + */ + private String name; + + /* + * Type of the resource. + */ + private String type; + + /** + * Creates an instance of ReadOnlySubResourceModel class. + */ + public ReadOnlySubResourceModel() { + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID. + * + * @param id the id value to set. + * @return the ReadOnlySubResourceModel object itself. + */ + ReadOnlySubResourceModel withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name of the resource. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the resource. + * + * @param name the name value to set. + * @return the ReadOnlySubResourceModel object itself. + */ + ReadOnlySubResourceModel withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Type of the resource. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Type of the resource. + * + * @param type the type value to set. + * @return the ReadOnlySubResourceModel object itself. + */ + ReadOnlySubResourceModel withType(String type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReadOnlySubResourceModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReadOnlySubResourceModel if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ReadOnlySubResourceModel. + */ + public static ReadOnlySubResourceModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReadOnlySubResourceModel deserializedReadOnlySubResourceModel = new ReadOnlySubResourceModel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedReadOnlySubResourceModel.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedReadOnlySubResourceModel.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedReadOnlySubResourceModel.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReadOnlySubResourceModel; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RecordSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RecordSet.java index d722258df70b..1bbcafe92c5d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RecordSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RecordSet.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * A collective group of information about the record set information. */ -@Fluent +@Immutable public final class RecordSet implements JsonSerializable { /* * Resource record type. @@ -50,7 +50,7 @@ public final class RecordSet implements JsonSerializable { /** * Creates an instance of RecordSet class. */ - public RecordSet() { + private RecordSet() { } /** @@ -62,17 +62,6 @@ public String recordType() { return this.recordType; } - /** - * Set the recordType property: Resource record type. - * - * @param recordType the recordType value to set. - * @return the RecordSet object itself. - */ - public RecordSet withRecordType(String recordType) { - this.recordType = recordType; - return this; - } - /** * Get the recordSetName property: Recordset name. * @@ -82,17 +71,6 @@ public String recordSetName() { return this.recordSetName; } - /** - * Set the recordSetName property: Recordset name. - * - * @param recordSetName the recordSetName value to set. - * @return the RecordSet object itself. - */ - public RecordSet withRecordSetName(String recordSetName) { - this.recordSetName = recordSetName; - return this; - } - /** * Get the fqdn property: Fqdn that resolves to private endpoint ip address. * @@ -102,17 +80,6 @@ public String fqdn() { return this.fqdn; } - /** - * Set the fqdn property: Fqdn that resolves to private endpoint ip address. - * - * @param fqdn the fqdn value to set. - * @return the RecordSet object itself. - */ - public RecordSet withFqdn(String fqdn) { - this.fqdn = fqdn; - return this; - } - /** * Get the provisioningState property: The provisioning state of the recordset. * @@ -131,17 +98,6 @@ public Integer ttl() { return this.ttl; } - /** - * Set the ttl property: Recordset time to live. - * - * @param ttl the ttl value to set. - * @return the RecordSet object itself. - */ - public RecordSet withTtl(Integer ttl) { - this.ttl = ttl; - return this; - } - /** * Get the ipAddresses property: The private ip address of the private endpoint. * @@ -151,17 +107,6 @@ public List ipAddresses() { return this.ipAddresses; } - /** - * Set the ipAddresses property: The private ip address of the private endpoint. - * - * @param ipAddresses the ipAddresses value to set. - * @return the RecordSet object itself. - */ - public RecordSet withIpAddresses(List ipAddresses) { - this.ipAddresses = ipAddresses; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReferencedPublicIpAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReferencedPublicIpAddress.java index 53bd1e9ff6a0..76871aba9664 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReferencedPublicIpAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ReferencedPublicIpAddress.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Reference to a public IP address. */ -@Fluent +@Immutable public final class ReferencedPublicIpAddress implements JsonSerializable { /* * The PublicIPAddress Reference. @@ -24,7 +24,7 @@ public final class ReferencedPublicIpAddress implements JsonSerializable { /** - * Static value SingleHomed for ResiliencyModel. + * SingleHomed. */ public static final ResiliencyModel SINGLE_HOMED = fromString("SingleHomed"); /** - * Static value MultiHomed for ResiliencyModel. + * MultiHomed. */ public static final ResiliencyModel MULTI_HOMED = fromString("MultiHomed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResiliencyRecommendationComponents.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResiliencyRecommendationComponents.java index 3846c01fc9f1..46f7bf4a76b8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResiliencyRecommendationComponents.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResiliencyRecommendationComponents.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Gateway Resiliency based Recommendations. */ -@Fluent +@Immutable public final class ResiliencyRecommendationComponents implements JsonSerializable { /* * Name of the Resiliency based Recommendation Component @@ -40,7 +40,7 @@ public final class ResiliencyRecommendationComponents implements JsonSerializabl /** * Creates an instance of ResiliencyRecommendationComponents class. */ - public ResiliencyRecommendationComponents() { + private ResiliencyRecommendationComponents() { } /** @@ -52,17 +52,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of the Resiliency based Recommendation Component. - * - * @param name the name value to set. - * @return the ResiliencyRecommendationComponents object itself. - */ - public ResiliencyRecommendationComponents withName(String name) { - this.name = name; - return this; - } - /** * Get the currentScore property: Current Score of the gateway. * @@ -72,17 +61,6 @@ public String currentScore() { return this.currentScore; } - /** - * Set the currentScore property: Current Score of the gateway. - * - * @param currentScore the currentScore value to set. - * @return the ResiliencyRecommendationComponents object itself. - */ - public ResiliencyRecommendationComponents withCurrentScore(String currentScore) { - this.currentScore = currentScore; - return this; - } - /** * Get the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied. * @@ -92,17 +70,6 @@ public String maxScore() { return this.maxScore; } - /** - * Set the maxScore property: Max score that the gateway can achieve if the specified recommendation is applied. - * - * @param maxScore the maxScore value to set. - * @return the ResiliencyRecommendationComponents object itself. - */ - public ResiliencyRecommendationComponents withMaxScore(String maxScore) { - this.maxScore = maxScore; - return this; - } - /** * Get the recommendations property: List of Gateway Resiliency based Recommendations. * @@ -112,18 +79,6 @@ public List recommendations() { return this.recommendations; } - /** - * Set the recommendations property: List of Gateway Resiliency based Recommendations. - * - * @param recommendations the recommendations value to set. - * @return the ResiliencyRecommendationComponents object itself. - */ - public ResiliencyRecommendationComponents - withRecommendations(List recommendations) { - this.recommendations = recommendations; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceBasics.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceBasics.java index ba12bba873df..a2d637af3542 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceBasics.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceBasics.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Representation of basic resource information. */ -@Fluent +@Immutable public final class ResourceBasics implements JsonSerializable { /* * ResourceId of the Azure resource. @@ -30,7 +30,7 @@ public final class ResourceBasics implements JsonSerializable { /** * Creates an instance of ResourceBasics class. */ - public ResourceBasics() { + private ResourceBasics() { } /** @@ -42,17 +42,6 @@ public String resourceId() { return this.resourceId; } - /** - * Set the resourceId property: ResourceId of the Azure resource. - * - * @param resourceId the resourceId value to set. - * @return the ResourceBasics object itself. - */ - public ResourceBasics withResourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - /** * Get the addressPrefixes property: List of IP address prefixes of the resource. * @@ -62,17 +51,6 @@ public List addressPrefixes() { return this.addressPrefixes; } - /** - * Set the addressPrefixes property: List of IP address prefixes of the resource. - * - * @param addressPrefixes the addressPrefixes value to set. - * @return the ResourceBasics object itself. - */ - public ResourceBasics withAddressPrefixes(List addressPrefixes) { - this.addressPrefixes = addressPrefixes; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceIdentityType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceIdentityType.java index 0ce28c8de749..8c14ed605bd4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceIdentityType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceIdentityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -11,22 +11,22 @@ */ public enum ResourceIdentityType { /** - * Enum value SystemAssigned. + * SystemAssigned. */ SYSTEM_ASSIGNED("SystemAssigned"), /** - * Enum value UserAssigned. + * UserAssigned. */ USER_ASSIGNED("UserAssigned"), /** - * Enum value SystemAssigned, UserAssigned. + * SystemAssigned, UserAssigned. */ SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned, UserAssigned"), /** - * Enum value None. + * None. */ NONE("None"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceNavigationLink.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceNavigationLink.java index 724658951ed3..52936020a2a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceNavigationLink.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceNavigationLink.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * ResourceNavigationLink resource. */ -@Fluent +@Immutable public final class ResourceNavigationLink extends SubResource { /* * Resource navigation link properties format. @@ -27,6 +27,11 @@ public final class ResourceNavigationLink extends SubResource { */ private String name; + /* + * Resource navigation link identifier. + */ + private String id; + /* * A unique read-only string that changes whenever the resource is updated. */ @@ -40,7 +45,7 @@ public final class ResourceNavigationLink extends SubResource { /** * Creates an instance of ResourceNavigationLink class. */ - public ResourceNavigationLink() { + private ResourceNavigationLink() { } /** @@ -63,15 +68,13 @@ public String name() { } /** - * Set the name property: Name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Get the id property: Resource navigation link identifier. * - * @param name the name value to set. - * @return the ResourceNavigationLink object itself. + * @return the id value. */ - public ResourceNavigationLink withName(String name) { - this.name = name; - return this; + @Override + public String id() { + return this.id; } /** @@ -92,15 +95,6 @@ public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public ResourceNavigationLink withId(String id) { - super.withId(id); - return this; - } - /** * Get the linkedResourceType property: Resource type of the linked resource. * @@ -110,20 +104,6 @@ public String linkedResourceType() { return this.innerProperties() == null ? null : this.innerProperties().linkedResourceType(); } - /** - * Set the linkedResourceType property: Resource type of the linked resource. - * - * @param linkedResourceType the linkedResourceType value to set. - * @return the ResourceNavigationLink object itself. - */ - public ResourceNavigationLink withLinkedResourceType(String linkedResourceType) { - if (this.innerProperties() == null) { - this.innerProperties = new ResourceNavigationLinkFormat(); - } - this.innerProperties().withLinkedResourceType(linkedResourceType); - return this; - } - /** * Get the link property: Link to the external resource. * @@ -133,20 +113,6 @@ public String link() { return this.innerProperties() == null ? null : this.innerProperties().link(); } - /** - * Set the link property: Link to the external resource. - * - * @param link the link value to set. - * @return the ResourceNavigationLink object itself. - */ - public ResourceNavigationLink withLink(String link) { - if (this.innerProperties() == null) { - this.innerProperties = new ResourceNavigationLinkFormat(); - } - this.innerProperties().withLink(link); - return this; - } - /** * Get the provisioningState property: The provisioning state of the resource navigation link resource. * @@ -173,7 +139,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("id", id()); jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); @@ -194,12 +159,12 @@ public static ResourceNavigationLink fromJson(JsonReader jsonReader) throws IOEx String fieldName = reader.getFieldName(); reader.nextToken(); - if ("id".equals(fieldName)) { - deserializedResourceNavigationLink.withId(reader.getString()); - } else if ("properties".equals(fieldName)) { + if ("properties".equals(fieldName)) { deserializedResourceNavigationLink.innerProperties = ResourceNavigationLinkFormat.fromJson(reader); } else if ("name".equals(fieldName)) { deserializedResourceNavigationLink.name = reader.getString(); + } else if ("id".equals(fieldName)) { + deserializedResourceNavigationLink.id = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedResourceNavigationLink.etag = reader.getString(); } else if ("type".equals(fieldName)) { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceSet.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceSet.java index 990e5648fe4b..2799f5c1a6e4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceSet.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ResourceSet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RetentionPolicyParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RetentionPolicyParameters.java index bd4c930b847c..55de1f121c30 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RetentionPolicyParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RetentionPolicyParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleType.java index 4d14899c7dc2..12355924c6d6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class RouteFilterRuleType extends ExpandableStringEnum { /** - * Static value Community for RouteFilterRuleType. + * Community. */ public static final RouteFilterRuleType COMMUNITY = fromString("Community"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapActionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapActionType.java index 8bf6c2c21f9a..882745ba85c3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapActionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,27 +13,27 @@ */ public final class RouteMapActionType extends ExpandableStringEnum { /** - * Static value Unknown for RouteMapActionType. + * Unknown. */ public static final RouteMapActionType UNKNOWN = fromString("Unknown"); /** - * Static value Remove for RouteMapActionType. + * Remove. */ public static final RouteMapActionType REMOVE = fromString("Remove"); /** - * Static value Add for RouteMapActionType. + * Add. */ public static final RouteMapActionType ADD = fromString("Add"); /** - * Static value Replace for RouteMapActionType. + * Replace. */ public static final RouteMapActionType REPLACE = fromString("Replace"); /** - * Static value Drop for RouteMapActionType. + * Drop. */ public static final RouteMapActionType DROP = fromString("Drop"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapMatchCondition.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapMatchCondition.java index e1bf3db63063..e8e8baa23026 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapMatchCondition.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapMatchCondition.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class RouteMapMatchCondition extends ExpandableStringEnum { /** - * Static value Unknown for RouteMapMatchCondition. + * Unknown. */ public static final RouteMapMatchCondition UNKNOWN = fromString("Unknown"); /** - * Static value Contains for RouteMapMatchCondition. + * Contains. */ public static final RouteMapMatchCondition CONTAINS = fromString("Contains"); /** - * Static value Equals for RouteMapMatchCondition. + * Equals. */ public static final RouteMapMatchCondition EQUALS = fromString("Equals"); /** - * Static value NotContains for RouteMapMatchCondition. + * NotContains. */ public static final RouteMapMatchCondition NOT_CONTAINS = fromString("NotContains"); /** - * Static value NotEquals for RouteMapMatchCondition. + * NotEquals. */ public static final RouteMapMatchCondition NOT_EQUALS = fromString("NotEquals"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapRule.java index 6834b2b964cd..cfaf1608babf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteMapRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteNextHopType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteNextHopType.java index 1fb99a4f79b6..e68143877f0a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteNextHopType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteNextHopType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class RouteNextHopType extends ExpandableStringEnum { /** - * Static value VirtualNetworkGateway for RouteNextHopType. + * VirtualNetworkGateway. */ public static final RouteNextHopType VIRTUAL_NETWORK_GATEWAY = fromString("VirtualNetworkGateway"); /** - * Static value VnetLocal for RouteNextHopType. + * VnetLocal. */ public static final RouteNextHopType VNET_LOCAL = fromString("VnetLocal"); /** - * Static value Internet for RouteNextHopType. + * Internet. */ public static final RouteNextHopType INTERNET = fromString("Internet"); /** - * Static value VirtualAppliance for RouteNextHopType. + * VirtualAppliance. */ public static final RouteNextHopType VIRTUAL_APPLIANCE = fromString("VirtualAppliance"); /** - * Static value None for RouteNextHopType. + * None. */ public static final RouteNextHopType NONE = fromString("None"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteSourceDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteSourceDetails.java index f75151a2ce06..e7a63554087c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteSourceDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RouteSourceDetails.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The RouteSourceDetails model. */ -@Fluent +@Immutable public final class RouteSourceDetails implements JsonSerializable { /* * Express Route Circuit identifier @@ -34,7 +34,7 @@ public final class RouteSourceDetails implements JsonSerializable { /** - * Static value ManagedOnly for RouteTableUsageMode. + * Only route tables managed by the routing configuration will be used. */ public static final RouteTableUsageMode MANAGED_ONLY = fromString("ManagedOnly"); /** - * Static value UseExisting for RouteTableUsageMode. + * Use existing user-defined route tables already associated with resources. */ public static final RouteTableUsageMode USE_EXISTING = fromString("UseExisting"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingConfiguration.java index 8e8f5a21e47f..942a26b346f1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java index 160969966d6e..234d14018110 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleDestinationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleDestinationType.java index 1049a2e2df35..ed06052ac35f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleDestinationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleDestinationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class RoutingRuleDestinationType extends ExpandableStringEnum { /** - * Static value AddressPrefix for RoutingRuleDestinationType. + * Destination specified as an IP address prefix (CIDR). */ public static final RoutingRuleDestinationType ADDRESS_PREFIX = fromString("AddressPrefix"); /** - * Static value ServiceTag for RoutingRuleDestinationType. + * Destination specified as an Azure service tag. */ public static final RoutingRuleDestinationType SERVICE_TAG = fromString("ServiceTag"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHop.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHop.java index 30f989c8482e..ac12a39a860b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHop.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHop.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHopType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHopType.java index ec39777d2d39..caac31680f2f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHopType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHopType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class RoutingRuleNextHopType extends ExpandableStringEnum { /** - * Static value Internet for RoutingRuleNextHopType. + * Forward traffic to the Internet. */ public static final RoutingRuleNextHopType INTERNET = fromString("Internet"); /** - * Static value NoNextHop for RoutingRuleNextHopType. + * No next hop will be used. */ public static final RoutingRuleNextHopType NO_NEXT_HOP = fromString("NoNextHop"); /** - * Static value VirtualAppliance for RoutingRuleNextHopType. + * Forward traffic to a specified virtual appliance IP address. */ public static final RoutingRuleNextHopType VIRTUAL_APPLIANCE = fromString("VirtualAppliance"); /** - * Static value VirtualNetworkGateway for RoutingRuleNextHopType. + * Forward traffic to the virtual network gateway. */ public static final RoutingRuleNextHopType VIRTUAL_NETWORK_GATEWAY = fromString("VirtualNetworkGateway"); /** - * Static value VnetLocal for RoutingRuleNextHopType. + * Keep traffic within the local virtual network. */ public static final RoutingRuleNextHopType VNET_LOCAL = fromString("VnetLocal"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleRouteDestination.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleRouteDestination.java index 209690efa548..d6d8c2f00a88 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleRouteDestination.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingRuleRouteDestination.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingState.java index b2203f983899..62dfa2d26a19 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class RoutingState extends ExpandableStringEnum { /** - * Static value None for RoutingState. + * None. */ public static final RoutingState NONE = fromString("None"); /** - * Static value Provisioned for RoutingState. + * Provisioned. */ public static final RoutingState PROVISIONED = fromString("Provisioned"); /** - * Static value Provisioning for RoutingState. + * Provisioning. */ public static final RoutingState PROVISIONING = fromString("Provisioning"); /** - * Static value Failed for RoutingState. + * Failed. */ public static final RoutingState FAILED = fromString("Failed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionState.java index 0c27f238fff6..9056cfdea1a0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class ScopeConnectionState extends ExpandableStringEnum { /** - * Static value Connected for ScopeConnectionState. + * Connected. */ public static final ScopeConnectionState CONNECTED = fromString("Connected"); /** - * Static value Pending for ScopeConnectionState. + * Pending. */ public static final ScopeConnectionState PENDING = fromString("Pending"); /** - * Static value Conflict for ScopeConnectionState. + * Conflict. */ public static final ScopeConnectionState CONFLICT = fromString("Conflict"); /** - * Static value Revoked for ScopeConnectionState. + * Revoked. */ public static final ScopeConnectionState REVOKED = fromString("Revoked"); /** - * Static value Rejected for ScopeConnectionState. + * Rejected. */ public static final ScopeConnectionState REJECTED = fromString("Rejected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchOperator.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchOperator.java index aebda4f4a6d7..10454a40ac2d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchOperator.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchOperator.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ */ public final class ScrubbingRuleEntryMatchOperator extends ExpandableStringEnum { /** - * Static value Equals for ScrubbingRuleEntryMatchOperator. + * Equals. */ public static final ScrubbingRuleEntryMatchOperator EQUALS = fromString("Equals"); /** - * Static value EqualsAny for ScrubbingRuleEntryMatchOperator. + * EqualsAny. */ public static final ScrubbingRuleEntryMatchOperator EQUALS_ANY = fromString("EqualsAny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchVariable.java index 4b86a285abe2..44bfaab4e8af 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class ScrubbingRuleEntryMatchVariable extends ExpandableStringEnum { /** - * Static value RequestHeaderNames for ScrubbingRuleEntryMatchVariable. + * RequestHeaderNames. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_HEADER_NAMES = fromString("RequestHeaderNames"); /** - * Static value RequestCookieNames for ScrubbingRuleEntryMatchVariable. + * RequestCookieNames. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_COOKIE_NAMES = fromString("RequestCookieNames"); /** - * Static value RequestArgNames for ScrubbingRuleEntryMatchVariable. + * RequestArgNames. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_ARG_NAMES = fromString("RequestArgNames"); /** - * Static value RequestPostArgNames for ScrubbingRuleEntryMatchVariable. + * RequestPostArgNames. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_POST_ARG_NAMES = fromString("RequestPostArgNames"); /** - * Static value RequestJSONArgNames for ScrubbingRuleEntryMatchVariable. + * RequestJSONArgNames. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_JSONARG_NAMES = fromString("RequestJSONArgNames"); /** - * Static value RequestIPAddress for ScrubbingRuleEntryMatchVariable. + * RequestIPAddress. */ public static final ScrubbingRuleEntryMatchVariable REQUEST_IPADDRESS = fromString("RequestIPAddress"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryState.java index 988fc2895fd6..4c54662b8bff 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class ScrubbingRuleEntryState extends ExpandableStringEnum { /** - * Static value Enabled for ScrubbingRuleEntryState. + * Enabled. */ public static final ScrubbingRuleEntryState ENABLED = fromString("Enabled"); /** - * Static value Disabled for ScrubbingRuleEntryState. + * Disabled. */ public static final ScrubbingRuleEntryState DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleAccess.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleAccess.java index 383fff9bd000..7c2345c88d7d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleAccess.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleAccess.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class SecurityConfigurationRuleAccess extends ExpandableStringEnum { /** - * Static value Allow for SecurityConfigurationRuleAccess. + * Allow. */ public static final SecurityConfigurationRuleAccess ALLOW = fromString("Allow"); /** - * Static value Deny for SecurityConfigurationRuleAccess. + * Deny. */ public static final SecurityConfigurationRuleAccess DENY = fromString("Deny"); /** - * Static value AlwaysAllow for SecurityConfigurationRuleAccess. + * AlwaysAllow. */ public static final SecurityConfigurationRuleAccess ALWAYS_ALLOW = fromString("AlwaysAllow"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleDirection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleDirection.java index 1beca2d2bc94..5fc1ecc2b613 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleDirection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleDirection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class SecurityConfigurationRuleDirection extends ExpandableStringEnum { /** - * Static value Inbound for SecurityConfigurationRuleDirection. + * Inbound. */ public static final SecurityConfigurationRuleDirection INBOUND = fromString("Inbound"); /** - * Static value Outbound for SecurityConfigurationRuleDirection. + * Outbound. */ public static final SecurityConfigurationRuleDirection OUTBOUND = fromString("Outbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleProtocol.java index 8655a204a434..03a474fe7b84 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class SecurityConfigurationRuleProtocol extends ExpandableStringEnum { /** - * Static value Tcp for SecurityConfigurationRuleProtocol. + * Tcp. */ public static final SecurityConfigurationRuleProtocol TCP = fromString("Tcp"); /** - * Static value Udp for SecurityConfigurationRuleProtocol. + * Udp. */ public static final SecurityConfigurationRuleProtocol UDP = fromString("Udp"); /** - * Static value Icmp for SecurityConfigurationRuleProtocol. + * Icmp. */ public static final SecurityConfigurationRuleProtocol ICMP = fromString("Icmp"); /** - * Static value Esp for SecurityConfigurationRuleProtocol. + * Esp. */ public static final SecurityConfigurationRuleProtocol ESP = fromString("Esp"); /** - * Static value Any for SecurityConfigurationRuleProtocol. + * Any. */ public static final SecurityConfigurationRuleProtocol ANY = fromString("Any"); /** - * Static value Ah for SecurityConfigurationRuleProtocol. + * Ah. */ public static final SecurityConfigurationRuleProtocol AH = fromString("Ah"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupNetworkInterface.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupNetworkInterface.java index 87bbc2baf8b3..60cfd89c402a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupNetworkInterface.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupNetworkInterface.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Network interface and all its associated security rules. */ -@Fluent +@Immutable public final class SecurityGroupNetworkInterface implements JsonSerializable { /* * ID of the network interface. @@ -29,7 +29,7 @@ public final class SecurityGroupNetworkInterface implements JsonSerializable { /** - * Static value Unknown for SecurityPartnerProviderConnectionStatus. + * Unknown. */ public static final SecurityPartnerProviderConnectionStatus UNKNOWN = fromString("Unknown"); /** - * Static value PartiallyConnected for SecurityPartnerProviderConnectionStatus. + * PartiallyConnected. */ public static final SecurityPartnerProviderConnectionStatus PARTIALLY_CONNECTED = fromString("PartiallyConnected"); /** - * Static value Connected for SecurityPartnerProviderConnectionStatus. + * Connected. */ public static final SecurityPartnerProviderConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value NotConnected for SecurityPartnerProviderConnectionStatus. + * NotConnected. */ public static final SecurityPartnerProviderConnectionStatus NOT_CONNECTED = fromString("NotConnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterProxyResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterProxyResource.java index de5f8091ace7..a62404773122 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterProxyResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterProxyResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -11,8 +11,6 @@ import java.io.IOException; /** - * Proxy Resource - * * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. */ @Immutable @@ -23,17 +21,18 @@ public class SecurityPerimeterProxyResource extends SecurityPerimeterResource { private SecurityPerimeterSystemData systemData; /* - * The type of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ private String type; /* - * The name of the resource. + * The name of the resource */ private String name; /* - * Fully qualified resource Id for the resource. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ private String id; @@ -54,7 +53,8 @@ public SecurityPerimeterSystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -74,7 +74,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -110,7 +111,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityPerimeterProxyResource if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityPerimeterProxyResource. */ public static SecurityPerimeterProxyResource fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterResource.java index 9ed5d3b4e786..2028fcba7f47 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterResource.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterResource.java @@ -1,42 +1,41 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; import com.azure.core.annotation.Immutable; -import com.azure.core.management.ProxyResource; import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; /** - * Resource - * * Common fields that are returned in the response for all Azure Resource Manager resources. */ @Immutable -public class SecurityPerimeterResource extends ProxyResource { +public class SecurityPerimeterResource implements JsonSerializable { /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ - private SecurityPerimeterSystemData systemData; + private String id; /* - * The type of the resource. + * The name of the resource */ - private String type; + private String name; /* - * The name of the resource. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - private String name; + private String type; /* - * Fully qualified resource Id for the resource. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - private String id; + private SecurityPerimeterSystemData systemData; /** * Creates an instance of SecurityPerimeterResource class. @@ -45,53 +44,87 @@ public SecurityPerimeterResource() { } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * - * @return the systemData value. + * @return the id value. */ - public SecurityPerimeterSystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** - * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Set the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * - * @param systemData the systemData value to set. + * @param id the id value to set. * @return the SecurityPerimeterResource object itself. */ - SecurityPerimeterResource withSystemData(SecurityPerimeterSystemData systemData) { - this.systemData = systemData; + SecurityPerimeterResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the resource. + * + * @param name the name value to set. + * @return the SecurityPerimeterResource object itself. + */ + SecurityPerimeterResource withName(String name) { + this.name = name; return this; } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ - @Override public String type() { return this.type; } /** - * Get the name property: The name of the resource. + * Set the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * - * @return the name value. + * @param type the type value to set. + * @return the SecurityPerimeterResource object itself. */ - @Override - public String name() { - return this.name; + SecurityPerimeterResource withType(String type) { + this.type = type; + return this; } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the id value. + * @return the systemData value. */ - @Override - public String id() { - return this.id; + public SecurityPerimeterSystemData systemData() { + return this.systemData; + } + + /** + * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @param systemData the systemData value to set. + * @return the SecurityPerimeterResource object itself. + */ + SecurityPerimeterResource withSystemData(SecurityPerimeterSystemData systemData) { + this.systemData = systemData; + return this; } /** @@ -120,7 +153,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SecurityPerimeterResource if the JsonReader was pointing to an instance of it, or null if * it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SecurityPerimeterResource. */ public static SecurityPerimeterResource fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterSystemData.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterSystemData.java index f59c61bc652c..2a2e4ded22ed 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterSystemData.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterSystemData.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * Metadata pertaining to creation and last modification of the resource. */ -@Fluent +@Immutable public final class SecurityPerimeterSystemData implements JsonSerializable { /* * The identity that created the resource. @@ -52,7 +52,7 @@ public final class SecurityPerimeterSystemData implements JsonSerializable tags() { * Set the tags property: Resource tags. * * @param tags the tags value to set. - * @return the TrackedResource object itself. + * @return the SecurityPerimeterTrackedResource object itself. */ - public TrackedResource withTags(Map tags) { + public SecurityPerimeterTrackedResource withTags(Map tags) { this.tags = tags; return this; } @@ -89,9 +87,9 @@ public String location() { * Set the location property: The geo-location where the resource lives. * * @param location the location value to set. - * @return the TrackedResource object itself. + * @return the SecurityPerimeterTrackedResource object itself. */ - public TrackedResource withLocation(String location) { + public SecurityPerimeterTrackedResource withLocation(String location) { this.location = location; return this; } @@ -107,7 +105,8 @@ public SecurityPerimeterSystemData systemData() { } /** - * Get the type property: The type of the resource. + * Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts". * * @return the type value. */ @@ -127,7 +126,8 @@ public String name() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the id property: Fully qualified resource ID for the resource. E.g. + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". * * @return the id value. */ @@ -145,14 +145,15 @@ public String id() { public void validate() { if (location() == null) { throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property location in model TrackedResource")); + .log(new IllegalArgumentException( + "Missing required property location in model SecurityPerimeterTrackedResource")); } if (systemData() != null) { systemData().validate(); } } - private static final ClientLogger LOGGER = new ClientLogger(TrackedResource.class); + private static final ClientLogger LOGGER = new ClientLogger(SecurityPerimeterTrackedResource.class); /** * {@inheritDoc} @@ -166,40 +167,42 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of TrackedResource from the JsonReader. + * Reads an instance of SecurityPerimeterTrackedResource from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of TrackedResource if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. + * @return An instance of SecurityPerimeterTrackedResource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the TrackedResource. + * @throws IOException If an error occurs while reading the SecurityPerimeterTrackedResource. */ - public static TrackedResource fromJson(JsonReader jsonReader) throws IOException { + public static SecurityPerimeterTrackedResource fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - TrackedResource deserializedTrackedResource = new TrackedResource(); + SecurityPerimeterTrackedResource deserializedSecurityPerimeterTrackedResource + = new SecurityPerimeterTrackedResource(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedTrackedResource.id = reader.getString(); + deserializedSecurityPerimeterTrackedResource.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedTrackedResource.name = reader.getString(); + deserializedSecurityPerimeterTrackedResource.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedTrackedResource.type = reader.getString(); + deserializedSecurityPerimeterTrackedResource.type = reader.getString(); } else if ("systemData".equals(fieldName)) { - deserializedTrackedResource.systemData = SecurityPerimeterSystemData.fromJson(reader); + deserializedSecurityPerimeterTrackedResource.systemData + = SecurityPerimeterSystemData.fromJson(reader); } else if ("location".equals(fieldName)) { - deserializedTrackedResource.location = reader.getString(); + deserializedSecurityPerimeterTrackedResource.location = reader.getString(); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedTrackedResource.tags = tags; + deserializedSecurityPerimeterTrackedResource.tags = tags; } else { reader.skipChildren(); } } - return deserializedTrackedResource; + return deserializedSecurityPerimeterTrackedResource; }); } } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityProviderName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityProviderName.java index a9da578a23e6..2f53f8d1b3d5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityProviderName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityProviderName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class SecurityProviderName extends ExpandableStringEnum { /** - * Static value ZScaler for SecurityProviderName. + * ZScaler. */ public static final SecurityProviderName ZSCALER = fromString("ZScaler"); /** - * Static value IBoss for SecurityProviderName. + * IBoss. */ public static final SecurityProviderName IBOSS = fromString("IBoss"); /** - * Static value Checkpoint for SecurityProviderName. + * Checkpoint. */ public static final SecurityProviderName CHECKPOINT = fromString("Checkpoint"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAccess.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAccess.java index d6535b8292c7..4c8d7d0ec9a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAccess.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAccess.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class SecurityRuleAccess extends ExpandableStringEnum { /** - * Static value Allow for SecurityRuleAccess. + * Allow. */ public static final SecurityRuleAccess ALLOW = fromString("Allow"); /** - * Static value Deny for SecurityRuleAccess. + * Deny. */ public static final SecurityRuleAccess DENY = fromString("Deny"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAssociations.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAssociations.java index 4e722eb3767f..5731157abe59 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAssociations.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAssociations.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * All security rules associated with the network interface. */ -@Fluent +@Immutable public final class SecurityRuleAssociations implements JsonSerializable { /* * Network interface and it's custom security rules. @@ -41,7 +41,7 @@ public final class SecurityRuleAssociations implements JsonSerializable defaultSecurityRules() { return this.defaultSecurityRules; } - /** - * Set the defaultSecurityRules property: Collection of default security rules of the network security group. - * - * @param defaultSecurityRules the defaultSecurityRules value to set. - * @return the SecurityRuleAssociations object itself. - */ - public SecurityRuleAssociations withDefaultSecurityRules(List defaultSecurityRules) { - this.defaultSecurityRules = defaultSecurityRules; - return this; - } - /** * Get the effectiveSecurityRules property: Collection of effective security rules. * @@ -114,18 +80,6 @@ public List effectiveSecurityRules() { return this.effectiveSecurityRules; } - /** - * Set the effectiveSecurityRules property: Collection of effective security rules. - * - * @param effectiveSecurityRules the effectiveSecurityRules value to set. - * @return the SecurityRuleAssociations object itself. - */ - public SecurityRuleAssociations - withEffectiveSecurityRules(List effectiveSecurityRules) { - this.effectiveSecurityRules = effectiveSecurityRules; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleDirection.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleDirection.java index 05a30cbb67b7..e2bebb1f2147 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleDirection.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleDirection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class SecurityRuleDirection extends ExpandableStringEnum { /** - * Static value Inbound for SecurityRuleDirection. + * Inbound. */ public static final SecurityRuleDirection INBOUND = fromString("Inbound"); /** - * Static value Outbound for SecurityRuleDirection. + * Outbound. */ public static final SecurityRuleDirection OUTBOUND = fromString("Outbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleProtocol.java index 450994bb6526..ea7b09aa7c06 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityRuleProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,32 +12,32 @@ */ public final class SecurityRuleProtocol extends ExpandableStringEnum { /** - * Static value Tcp for SecurityRuleProtocol. + * Tcp. */ public static final SecurityRuleProtocol TCP = fromString("Tcp"); /** - * Static value Udp for SecurityRuleProtocol. + * Udp. */ public static final SecurityRuleProtocol UDP = fromString("Udp"); /** - * Static value Icmp for SecurityRuleProtocol. + * Icmp. */ public static final SecurityRuleProtocol ICMP = fromString("Icmp"); /** - * Static value Esp for SecurityRuleProtocol. + * Esp. */ public static final SecurityRuleProtocol ESP = fromString("Esp"); /** - * Static value * for SecurityRuleProtocol. + * *. */ public static final SecurityRuleProtocol ASTERISK = fromString("*"); /** - * Static value Ah for SecurityRuleProtocol. + * Ah. */ public static final SecurityRuleProtocol AH = fromString("Ah"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserGroupItem.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserGroupItem.java index 3cecc74e093d..7f8d4648bb0a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserGroupItem.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityUserGroupItem.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SensitivityType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SensitivityType.java index e87ee25910e5..56acd733dd14 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SensitivityType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SensitivityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class SensitivityType extends ExpandableStringEnum { /** - * Static value Low for SensitivityType. + * Low. */ public static final SensitivityType LOW = fromString("Low"); /** - * Static value Medium for SensitivityType. + * Medium. */ public static final SensitivityType MEDIUM = fromString("Medium"); /** - * Static value High for SensitivityType. + * High. */ public static final SensitivityType HIGH = fromString("High"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceAssociationLink.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceAssociationLink.java index 1c14e782f408..1dbb26d60ace 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceAssociationLink.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceAssociationLink.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * ServiceAssociationLink resource. */ -@Fluent +@Immutable public final class ServiceAssociationLink extends SubResource { /* * Resource navigation link properties format. @@ -41,7 +41,7 @@ public final class ServiceAssociationLink extends SubResource { /** * Creates an instance of ServiceAssociationLink class. */ - public ServiceAssociationLink() { + private ServiceAssociationLink() { } /** @@ -63,18 +63,6 @@ public String name() { return this.name; } - /** - * Set the name property: Name of the resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @param name the name value to set. - * @return the ServiceAssociationLink object itself. - */ - public ServiceAssociationLink withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -93,15 +81,6 @@ public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public ServiceAssociationLink withId(String id) { - super.withId(id); - return this; - } - /** * Get the linkedResourceType property: Resource type of the linked resource. * @@ -111,20 +90,6 @@ public String linkedResourceType() { return this.innerProperties() == null ? null : this.innerProperties().linkedResourceType(); } - /** - * Set the linkedResourceType property: Resource type of the linked resource. - * - * @param linkedResourceType the linkedResourceType value to set. - * @return the ServiceAssociationLink object itself. - */ - public ServiceAssociationLink withLinkedResourceType(String linkedResourceType) { - if (this.innerProperties() == null) { - this.innerProperties = new ServiceAssociationLinkPropertiesFormat(); - } - this.innerProperties().withLinkedResourceType(linkedResourceType); - return this; - } - /** * Get the link property: Link to the external resource. * @@ -134,20 +99,6 @@ public String link() { return this.innerProperties() == null ? null : this.innerProperties().link(); } - /** - * Set the link property: Link to the external resource. - * - * @param link the link value to set. - * @return the ServiceAssociationLink object itself. - */ - public ServiceAssociationLink withLink(String link) { - if (this.innerProperties() == null) { - this.innerProperties = new ServiceAssociationLinkPropertiesFormat(); - } - this.innerProperties().withLink(link); - return this; - } - /** * Get the provisioningState property: The provisioning state of the service association link resource. * @@ -166,20 +117,6 @@ public Boolean allowDelete() { return this.innerProperties() == null ? null : this.innerProperties().allowDelete(); } - /** - * Set the allowDelete property: If true, the resource can be deleted. - * - * @param allowDelete the allowDelete value to set. - * @return the ServiceAssociationLink object itself. - */ - public ServiceAssociationLink withAllowDelete(Boolean allowDelete) { - if (this.innerProperties() == null) { - this.innerProperties = new ServiceAssociationLinkPropertiesFormat(); - } - this.innerProperties().withAllowDelete(allowDelete); - return this; - } - /** * Get the locations property: A list of locations. * @@ -189,20 +126,6 @@ public List locations() { return this.innerProperties() == null ? null : this.innerProperties().locations(); } - /** - * Set the locations property: A list of locations. - * - * @param locations the locations value to set. - * @return the ServiceAssociationLink object itself. - */ - public ServiceAssociationLink withLocations(List locations) { - if (this.innerProperties() == null) { - this.innerProperties = new ServiceAssociationLinkPropertiesFormat(); - } - this.innerProperties().withLocations(locations); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPropertiesFormat.java index 939d8f033fcc..74e54353125d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddress.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddress.java index 3233b2c1bc23..b6272b598814 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddress.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddress.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddressLocation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddressLocation.java index 4450ba99ef5f..47d4051696b8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddressLocation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddressLocation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySku.java index 6e087229a199..92f4bbf8d2dd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuName.java index 548df187f15f..ac4332572954 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class ServiceGatewaySkuName extends ExpandableStringEnum { /** - * Static value Standard for ServiceGatewaySkuName. + * Standard. */ public static final ServiceGatewaySkuName STANDARD = fromString("Standard"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuTier.java index c34718aedd3f..14e11c4d0409 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class ServiceGatewaySkuTier extends ExpandableStringEnum { /** - * Static value Regional for ServiceGatewaySkuTier. + * Regional. */ public static final ServiceGatewaySkuTier REGIONAL = fromString("Regional"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateAddressLocationsRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateAddressLocationsRequest.java index 2c63707cea75..35d66273591b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateAddressLocationsRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateAddressLocationsRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateServicesRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateServicesRequest.java index f3a0b423354c..64fc83f32c8a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateServicesRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateServicesRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceProviderProvisioningState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceProviderProvisioningState.java index 2928b955d0da..f5fee8e56773 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceProviderProvisioningState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceProviderProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class ServiceProviderProvisioningState extends ExpandableStringEnum { /** - * Static value NotProvisioned for ServiceProviderProvisioningState. + * NotProvisioned. */ public static final ServiceProviderProvisioningState NOT_PROVISIONED = fromString("NotProvisioned"); /** - * Static value Provisioning for ServiceProviderProvisioningState. + * Provisioning. */ public static final ServiceProviderProvisioningState PROVISIONING = fromString("Provisioning"); /** - * Static value Provisioned for ServiceProviderProvisioningState. + * Provisioned. */ public static final ServiceProviderProvisioningState PROVISIONED = fromString("Provisioned"); /** - * Static value Deprovisioning for ServiceProviderProvisioningState. + * Deprovisioning. */ public static final ServiceProviderProvisioningState DEPROVISIONING = fromString("Deprovisioning"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationPropertiesFormat.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationPropertiesFormat.java index c40b5e57754b..9e2bb362f9fe 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationPropertiesFormat.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationPropertiesFormat.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -46,7 +46,7 @@ public final class ServiceTagInformationPropertiesFormat /** * Creates an instance of ServiceTagInformationPropertiesFormat class. */ - public ServiceTagInformationPropertiesFormat() { + private ServiceTagInformationPropertiesFormat() { } /** diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceType.java index 39d7d31b2d02..52fb44f7e169 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class ServiceType extends ExpandableStringEnum { /** - * Static value Inbound for ServiceType. + * Inbound. */ public static final ServiceType INBOUND = fromString("Inbound"); /** - * Static value Outbound for ServiceType. + * Outbound. */ public static final ServiceType OUTBOUND = fromString("Outbound"); /** - * Static value InboundOutbound for ServiceType. + * InboundOutbound. */ public static final ServiceType INBOUND_OUTBOUND = fromString("InboundOutbound"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceUpdateAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceUpdateAction.java index 1ad4cd3e5015..6d86d2eaf187 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceUpdateAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ServiceUpdateAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -16,12 +16,12 @@ */ public final class ServiceUpdateAction extends ExpandableStringEnum { /** - * Static value FullUpdate for ServiceUpdateAction. + * FullUpdate. */ public static final ServiceUpdateAction FULL_UPDATE = fromString("FullUpdate"); /** - * Static value PartialUpdate for ServiceUpdateAction. + * PartialUpdate. */ public static final ServiceUpdateAction PARTIAL_UPDATE = fromString("PartialUpdate"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SessionIds.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SessionIds.java index 5d94d284b61b..87c1f2ca9f3a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SessionIds.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SessionIds.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Severity.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Severity.java index f19a2cd5f6a4..ddcae2685593 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Severity.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Severity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class Severity extends ExpandableStringEnum { /** - * Static value Error for Severity. + * Error. */ public static final Severity ERROR = fromString("Error"); /** - * Static value Warning for Severity. + * Warning. */ public static final Severity WARNING = fromString("Warning"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharedKeyProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharedKeyProperties.java index ad0ce5849a5b..0868eadd81c8 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharedKeyProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharedKeyProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java index de2652de31a7..94be68b5757b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ */ public final class SharingScope extends ExpandableStringEnum { /** - * Static value Tenant for SharingScope. + * Tenant. */ public static final SharingScope TENANT = fromString("Tenant"); /** - * Static value DelegatedServices for SharingScope. + * DelegatedServices. */ public static final SharingScope DELEGATED_SERVICES = fromString("DelegatedServices"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignatureOverridesFilterValuesQuery.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignatureOverridesFilterValuesQuery.java index b5abdd847d17..d4b1ca59c9ad 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignatureOverridesFilterValuesQuery.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignatureOverridesFilterValuesQuery.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignaturesOverridesProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignaturesOverridesProperties.java index 84f74aeb4932..88d746da95d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignaturesOverridesProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SignaturesOverridesProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java index 447198b53a06..6853b27c2042 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The SingleQueryResult model. */ -@Fluent +@Immutable public final class SingleQueryResult implements JsonSerializable { /* * The ID of the signature @@ -76,7 +76,7 @@ public final class SingleQueryResult implements JsonSerializable sourcePorts() { return this.sourcePorts; } - /** - * Set the sourcePorts property: Describes the list of source ports related to this signature. - * - * @param sourcePorts the sourcePorts value to set. - * @return the SingleQueryResult object itself. - */ - public SingleQueryResult withSourcePorts(List sourcePorts) { - this.sourcePorts = sourcePorts; - return this; - } - /** * Get the destinationPorts property: Describes the list of destination ports related to this signature. * @@ -250,17 +161,6 @@ public List destinationPorts() { return this.destinationPorts; } - /** - * Set the destinationPorts property: Describes the list of destination ports related to this signature. - * - * @param destinationPorts the destinationPorts value to set. - * @return the SingleQueryResult object itself. - */ - public SingleQueryResult withDestinationPorts(List destinationPorts) { - this.destinationPorts = destinationPorts; - return this; - } - /** * Get the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor). * @@ -270,17 +170,6 @@ public String lastUpdated() { return this.lastUpdated; } - /** - * Set the lastUpdated property: Describes the last updated time of the signature (provided from 3rd party vendor). - * - * @param lastUpdated the lastUpdated value to set. - * @return the SingleQueryResult object itself. - */ - public SingleQueryResult withLastUpdated(String lastUpdated) { - this.lastUpdated = lastUpdated; - return this; - } - /** * Get the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not. * @@ -290,17 +179,6 @@ public Boolean inheritedFromParentPolicy() { return this.inheritedFromParentPolicy; } - /** - * Set the inheritedFromParentPolicy property: Describes if this override is inherited from base policy or not. - * - * @param inheritedFromParentPolicy the inheritedFromParentPolicy value to set. - * @return the SingleQueryResult object itself. - */ - public SingleQueryResult withInheritedFromParentPolicy(Boolean inheritedFromParentPolicy) { - this.inheritedFromParentPolicy = inheritedFromParentPolicy; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Sku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Sku.java index 07824b4f1df5..2b29d06ccb78 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Sku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Sku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SlotType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SlotType.java index a9507dd7b408..09984b282079 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SlotType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SlotType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -9,12 +9,12 @@ */ public enum SlotType { /** - * Enum value Production. + * Production. */ PRODUCTION("Production"), /** - * Enum value Staging. + * Staging. */ STAGING("Staging"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrProperties.java index 29e1cea54771..1279f00541e4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticCidrProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -129,17 +129,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Set the provisioningState property: Provisioning states of a resource. - * - * @param provisioningState the provisioningState value to set. - * @return the StaticCidrProperties object itself. - */ - public StaticCidrProperties withProvisioningState(ProvisioningState provisioningState) { - this.provisioningState = provisioningState; - return this; - } - /** * Validates the instance. * @@ -158,8 +147,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("numberOfIPAddressesToAllocate", this.numberOfIpAddressesToAllocate); jsonWriter.writeArrayField("addressPrefixes", this.addressPrefixes, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("provisioningState", - this.provisioningState == null ? null : this.provisioningState.toString()); return jsonWriter.writeEndObject(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoute.java index b6d2a7cb0b89..c2524705633e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoute.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java index c813932f78a6..c37645d70312 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubResourceModel.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubResourceModel.java new file mode 100644 index 000000000000..47e7fcc9bd92 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubResourceModel.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.SubResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Reference to another subresource. + */ +@Fluent +public class SubResourceModel extends SubResource { + /* + * Name of the resource. + */ + private String name; + + /* + * Resource type. + */ + private String type; + + /** + * Creates an instance of SubResourceModel class. + */ + public SubResourceModel() { + } + + /** + * Get the name property: Name of the resource. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the resource. + * + * @param name the name value to set. + * @return the SubResourceModel object itself. + */ + public SubResourceModel withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Resource type. + * + * @param type the type value to set. + * @return the SubResourceModel object itself. + */ + SubResourceModel withType(String type) { + this.type = type; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public SubResourceModel withId(String id) { + super.withId(id); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", id()); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SubResourceModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SubResourceModel if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the SubResourceModel. + */ + public static SubResourceModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SubResourceModel deserializedSubResourceModel = new SubResourceModel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSubResourceModel.withId(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedSubResourceModel.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSubResourceModel.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSubResourceModel; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetAssociation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetAssociation.java index dbb526cc9902..5c8a0a7475e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetAssociation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubnetAssociation.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -16,7 +16,7 @@ /** * Subnet and it's custom security rules. */ -@Fluent +@Immutable public final class SubnetAssociation implements JsonSerializable { /* * Subnet ID. @@ -31,7 +31,7 @@ public final class SubnetAssociation implements JsonSerializable securityRules() { return this.securityRules; } - /** - * Set the securityRules property: Collection of custom security rules. - * - * @param securityRules the securityRules value to set. - * @return the SubnetAssociation object itself. - */ - public SubnetAssociation withSecurityRules(List securityRules) { - this.securityRules = securityRules; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubscriptionId.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubscriptionId.java index 24bd8b568ede..9c5c9943e19a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubscriptionId.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SubscriptionId.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SwapResourceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SwapResourceProperties.java index a426c05070ef..48f43dbd8ace 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SwapResourceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SwapResourceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncMode.java index a4eaa0d8ac98..324b36e0fc95 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class SyncMode extends ExpandableStringEnum { /** - * Static value Automatic for SyncMode. + * Automatic. */ public static final SyncMode AUTOMATIC = fromString("Automatic"); /** - * Static value Manual for SyncMode. + * Manual. */ public static final SyncMode MANUAL = fromString("Manual"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncRemoteAddressSpace.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncRemoteAddressSpace.java index d461c19de9e3..92239d20de25 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncRemoteAddressSpace.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SyncRemoteAddressSpace.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class SyncRemoteAddressSpace extends ExpandableStringEnum { /** - * Static value true for SyncRemoteAddressSpace. + * true. */ public static final SyncRemoteAddressSpace TRUE = fromString("true"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TagsObject.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TagsObject.java index d3f5b13e7414..d993f389b9f1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TagsObject.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TagsObject.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TopologyAssociation.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TopologyAssociation.java index 2a869deab170..94d414647b6f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TopologyAssociation.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TopologyAssociation.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Resources that have an association with the parent resource. */ -@Fluent +@Immutable public final class TopologyAssociation implements JsonSerializable { /* * The name of the resource that is associated with the parent resource. @@ -34,7 +34,7 @@ public final class TopologyAssociation implements JsonSerializable { /* * Name of the resource. @@ -40,7 +40,7 @@ public final class TopologyResource implements JsonSerializable associations() { return this.associations; } - /** - * Set the associations property: Holds the associations the resource has with other resources in the resource - * group. - * - * @param associations the associations value to set. - * @return the TopologyResource object itself. - */ - public TopologyResource withAssociations(List associations) { - this.associations = associations; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithEtag.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithEtag.java new file mode 100644 index 000000000000..4a8b080f4a76 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithEtag.java @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Tracked resource with optional location. + */ +@Fluent +public class TrackedResourceWithEtag implements JsonSerializable { + /* + * ID of the connection monitor. + */ + private String id; + + /* + * Name of the connection monitor. + */ + private String name; + + /* + * Connection monitor type. + */ + private String type; + + /* + * A unique read-only string that changes whenever the resource is updated. + */ + private String etag; + + /* + * Connection monitor location. + */ + private String location; + + /* + * Connection monitor tags. + */ + private Map tags; + + /** + * Creates an instance of TrackedResourceWithEtag class. + */ + public TrackedResourceWithEtag() { + } + + /** + * Get the id property: ID of the connection monitor. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: ID of the connection monitor. + * + * @param id the id value to set. + * @return the TrackedResourceWithEtag object itself. + */ + TrackedResourceWithEtag withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name of the connection monitor. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the connection monitor. + * + * @param name the name value to set. + * @return the TrackedResourceWithEtag object itself. + */ + TrackedResourceWithEtag withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Connection monitor type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Connection monitor type. + * + * @param type the type value to set. + * @return the TrackedResourceWithEtag object itself. + */ + TrackedResourceWithEtag withType(String type) { + this.type = type; + return this; + } + + /** + * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Set the etag property: A unique read-only string that changes whenever the resource is updated. + * + * @param etag the etag value to set. + * @return the TrackedResourceWithEtag object itself. + */ + TrackedResourceWithEtag withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the location property: Connection monitor location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Connection monitor location. + * + * @param location the location value to set. + * @return the TrackedResourceWithEtag object itself. + */ + public TrackedResourceWithEtag withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags property: Connection monitor tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Connection monitor tags. + * + * @param tags the tags value to set. + * @return the TrackedResourceWithEtag object itself. + */ + public TrackedResourceWithEtag withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrackedResourceWithEtag from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrackedResourceWithEtag if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the TrackedResourceWithEtag. + */ + public static TrackedResourceWithEtag fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrackedResourceWithEtag deserializedTrackedResourceWithEtag = new TrackedResourceWithEtag(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedTrackedResourceWithEtag.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedTrackedResourceWithEtag.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedTrackedResourceWithEtag.type = reader.getString(); + } else if ("etag".equals(fieldName)) { + deserializedTrackedResourceWithEtag.etag = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedTrackedResourceWithEtag.location = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedTrackedResourceWithEtag.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedTrackedResourceWithEtag; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithSettableName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithSettableName.java new file mode 100644 index 000000000000..2cf861935338 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithSettableName.java @@ -0,0 +1,207 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Common resource representation. + */ +@Fluent +public class TrackedResourceWithSettableName implements JsonSerializable { + /* + * Resource ID. + */ + private String id; + + /* + * Resource name. + */ + private String name; + + /* + * Resource type. + */ + private String type; + + /* + * Resource location. + */ + private String location; + + /* + * Resource tags. + */ + private Map tags; + + /** + * Creates an instance of TrackedResourceWithSettableName class. + */ + public TrackedResourceWithSettableName() { + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID. + * + * @param id the id value to set. + * @return the TrackedResourceWithSettableName object itself. + */ + public TrackedResourceWithSettableName withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the TrackedResourceWithSettableName object itself. + */ + public TrackedResourceWithSettableName withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Resource type. + * + * @param type the type value to set. + * @return the TrackedResourceWithSettableName object itself. + */ + TrackedResourceWithSettableName withType(String type) { + this.type = type; + return this; + } + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Resource location. + * + * @param location the location value to set. + * @return the TrackedResourceWithSettableName object itself. + */ + public TrackedResourceWithSettableName withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the TrackedResourceWithSettableName object itself. + */ + public TrackedResourceWithSettableName withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrackedResourceWithSettableName from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrackedResourceWithSettableName if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the TrackedResourceWithSettableName. + */ + public static TrackedResourceWithSettableName fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrackedResourceWithSettableName deserializedTrackedResourceWithSettableName + = new TrackedResourceWithSettableName(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedTrackedResourceWithSettableName.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedTrackedResourceWithSettableName.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedTrackedResourceWithSettableName.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedTrackedResourceWithSettableName.location = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedTrackedResourceWithSettableName.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedTrackedResourceWithSettableName; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsConfigurationProperties.java index 9b1d5fafb9a3..d2b33ec7a8a7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsProperties.java index adadd3f58ec8..02afec706acb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficDetectionRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficDetectionRule.java index 162a124e3d47..4707f7f279d6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficDetectionRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficDetectionRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java index ccd029d9ea6a..db4bb6b188c4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TransportProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TransportProtocol.java index 50c6baaf5a51..e9a5321deaf5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TransportProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TransportProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class TransportProtocol extends ExpandableStringEnum { /** - * Static value Udp for TransportProtocol. + * Udp. */ public static final TransportProtocol UDP = fromString("Udp"); /** - * Static value Tcp for TransportProtocol. + * Tcp. */ public static final TransportProtocol TCP = fromString("Tcp"); /** - * Static value All for TransportProtocol. + * All. */ public static final TransportProtocol ALL = fromString("All"); /** - * Static value Quic for TransportProtocol. + * Quic. */ public static final TransportProtocol QUIC = fromString("Quic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingDetails.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingDetails.java index fad8336ac600..38b730f4b34b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingDetails.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingDetails.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * Information gained from troubleshooting of specified resource. */ -@Fluent +@Immutable public final class TroubleshootingDetails implements JsonSerializable { /* * The id of the get troubleshoot operation. @@ -45,7 +45,7 @@ public final class TroubleshootingDetails implements JsonSerializable recommendedActions() { return this.recommendedActions; } - /** - * Set the recommendedActions property: List of recommended actions. - * - * @param recommendedActions the recommendedActions value to set. - * @return the TroubleshootingDetails object itself. - */ - public TroubleshootingDetails withRecommendedActions(List recommendedActions) { - this.recommendedActions = recommendedActions; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java index 7d168feef59a..308bdd07997f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingRecommendedActions.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingRecommendedActions.java index 47d1b0cf61f7..e55f164df692 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingRecommendedActions.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingRecommendedActions.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Recommended actions based on discovered issues. */ -@Fluent +@Immutable public final class TroubleshootingRecommendedActions implements JsonSerializable { /* * ID of the recommended action. @@ -39,7 +39,7 @@ public final class TroubleshootingRecommendedActions implements JsonSerializable /** * Creates an instance of TroubleshootingRecommendedActions class. */ - public TroubleshootingRecommendedActions() { + private TroubleshootingRecommendedActions() { } /** @@ -51,17 +51,6 @@ public String actionId() { return this.actionId; } - /** - * Set the actionId property: ID of the recommended action. - * - * @param actionId the actionId value to set. - * @return the TroubleshootingRecommendedActions object itself. - */ - public TroubleshootingRecommendedActions withActionId(String actionId) { - this.actionId = actionId; - return this; - } - /** * Get the actionText property: Description of recommended actions. * @@ -71,17 +60,6 @@ public String actionText() { return this.actionText; } - /** - * Set the actionText property: Description of recommended actions. - * - * @param actionText the actionText value to set. - * @return the TroubleshootingRecommendedActions object itself. - */ - public TroubleshootingRecommendedActions withActionText(String actionText) { - this.actionText = actionText; - return this; - } - /** * Get the actionUri property: The uri linking to a documentation for the recommended troubleshooting actions. * @@ -91,17 +69,6 @@ public String actionUri() { return this.actionUri; } - /** - * Set the actionUri property: The uri linking to a documentation for the recommended troubleshooting actions. - * - * @param actionUri the actionUri value to set. - * @return the TroubleshootingRecommendedActions object itself. - */ - public TroubleshootingRecommendedActions withActionUri(String actionUri) { - this.actionUri = actionUri; - return this; - } - /** * Get the actionUriText property: The information from the URI for the recommended troubleshooting actions. * @@ -111,17 +78,6 @@ public String actionUriText() { return this.actionUriText; } - /** - * Set the actionUriText property: The information from the URI for the recommended troubleshooting actions. - * - * @param actionUriText the actionUriText value to set. - * @return the TroubleshootingRecommendedActions object itself. - */ - public TroubleshootingRecommendedActions withActionUriText(String actionUriText) { - this.actionUriText = actionUriText; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TunnelConnectionHealth.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TunnelConnectionHealth.java index 5668fad5a54a..b6183cbbace2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TunnelConnectionHealth.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TunnelConnectionHealth.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -44,7 +44,7 @@ public final class TunnelConnectionHealth implements JsonSerializable { /** - * Static value FullUpdate for UpdateAction. + * FullUpdate. */ public static final UpdateAction FULL_UPDATE = fromString("FullUpdate"); /** - * Static value PartialUpdate for UpdateAction. + * PartialUpdate. */ public static final UpdateAction PARTIAL_UPDATE = fromString("PartialUpdate"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UpdateTagsRequest.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UpdateTagsRequest.java index ecef5a11a38b..3865571e5027 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UpdateTagsRequest.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UpdateTagsRequest.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageName.java index 73ac4e174444..2b8ac2511bab 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageName.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * The usage names. */ -@Fluent +@Immutable public final class UsageName implements JsonSerializable { /* * A string describing the resource name. @@ -29,7 +29,7 @@ public final class UsageName implements JsonSerializable { /** * Creates an instance of UsageName class. */ - public UsageName() { + private UsageName() { } /** @@ -41,17 +41,6 @@ public String value() { return this.value; } - /** - * Set the value property: A string describing the resource name. - * - * @param value the value value to set. - * @return the UsageName object itself. - */ - public UsageName withValue(String value) { - this.value = value; - return this; - } - /** * Get the localizedValue property: A localized string describing the resource name. * @@ -61,17 +50,6 @@ public String localizedValue() { return this.localizedValue; } - /** - * Set the localizedValue property: A localized string describing the resource name. - * - * @param localizedValue the localizedValue value to set. - * @return the UsageName object itself. - */ - public UsageName withLocalizedValue(String localizedValue) { - this.localizedValue = localizedValue; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageUnit.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageUnit.java index 17f4c2395c94..ef73d5f44f17 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageUnit.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UsageUnit.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class UsageUnit extends ExpandableStringEnum { /** - * Static value Count for UsageUnit. + * Count. */ public static final UsageUnit COUNT = fromString("Count"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UseHubGateway.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UseHubGateway.java index 41fc55a4757b..302291bb5bbc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UseHubGateway.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/UseHubGateway.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class UseHubGateway extends ExpandableStringEnum { /** - * Static value False for UseHubGateway. + * False. */ public static final UseHubGateway FALSE = fromString("False"); /** - * Static value True for UseHubGateway. + * True. */ public static final UseHubGateway TRUE = fromString("True"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VM.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VM.java index cbc97bd7f348..9164ea03c278 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VM.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VM.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerbosityLevel.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerbosityLevel.java index 84d4f1547069..55717cecb165 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerbosityLevel.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerbosityLevel.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VerbosityLevel extends ExpandableStringEnum { /** - * Static value Normal for VerbosityLevel. + * Normal. */ public static final VerbosityLevel NORMAL = fromString("Normal"); /** - * Static value Minimum for VerbosityLevel. + * Minimum. */ public static final VerbosityLevel MINIMUM = fromString("Minimum"); /** - * Static value Full for VerbosityLevel. + * Full. */ public static final VerbosityLevel FULL = fromString("Full"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java index cad29e2077cd..9688a846faa2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceProperties.java index caaa8842ad5e..f5aa2d829d4e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -61,17 +61,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Set the provisioningState property: Provisioning states of a resource. - * - * @param provisioningState the provisioningState value to set. - * @return the VerifierWorkspaceProperties object itself. - */ - public VerifierWorkspaceProperties withProvisioningState(ProvisioningState provisioningState) { - this.provisioningState = provisioningState; - return this; - } - /** * Validates the instance. * @@ -87,8 +76,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", this.description); - jsonWriter.writeStringField("provisioningState", - this.provisioningState == null ? null : this.provisioningState.toString()); return jsonWriter.writeEndObject(); } diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdate.java index 1c81d082807a..16b7c726c2bf 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdateProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdateProperties.java index 5cb3a88b3e5a..aafe418184f5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdateProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceAdditionalNicProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceAdditionalNicProperties.java index c85e5ca94eb3..3b39190c8983 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceAdditionalNicProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceAdditionalNicProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java index 6b5d01f918f4..44c6c0953baa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java index e82ef04ea51f..ed8e80b8a394 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java index ea80fef0b128..cb151d7d3816 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java index 21f1cb8ad193..84ad2bcfa2d4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java index 3de06bf181a7..44f215b2d4ce 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -45,7 +45,7 @@ public final class VirtualApplianceNicProperties implements JsonSerializable { /* * The list of address prefixes. @@ -45,7 +45,7 @@ public final class VirtualHubEffectiveRoute implements JsonSerializable addressPrefixes() { return this.addressPrefixes; } - /** - * Set the addressPrefixes property: The list of address prefixes. - * - * @param addressPrefixes the addressPrefixes value to set. - * @return the VirtualHubEffectiveRoute object itself. - */ - public VirtualHubEffectiveRoute withAddressPrefixes(List addressPrefixes) { - this.addressPrefixes = addressPrefixes; - return this; - } - /** * Get the nextHops property: The list of next hops. * @@ -77,17 +66,6 @@ public List nextHops() { return this.nextHops; } - /** - * Set the nextHops property: The list of next hops. - * - * @param nextHops the nextHops value to set. - * @return the VirtualHubEffectiveRoute object itself. - */ - public VirtualHubEffectiveRoute withNextHops(List nextHops) { - this.nextHops = nextHops; - return this; - } - /** * Get the nextHopType property: The type of the next hop. * @@ -97,17 +75,6 @@ public String nextHopType() { return this.nextHopType; } - /** - * Set the nextHopType property: The type of the next hop. - * - * @param nextHopType the nextHopType value to set. - * @return the VirtualHubEffectiveRoute object itself. - */ - public VirtualHubEffectiveRoute withNextHopType(String nextHopType) { - this.nextHopType = nextHopType; - return this; - } - /** * Get the asPath property: The ASPath of this route. * @@ -117,17 +84,6 @@ public String asPath() { return this.asPath; } - /** - * Set the asPath property: The ASPath of this route. - * - * @param asPath the asPath value to set. - * @return the VirtualHubEffectiveRoute object itself. - */ - public VirtualHubEffectiveRoute withAsPath(String asPath) { - this.asPath = asPath; - return this; - } - /** * Get the routeOrigin property: The origin of this route. * @@ -137,17 +93,6 @@ public String routeOrigin() { return this.routeOrigin; } - /** - * Set the routeOrigin property: The origin of this route. - * - * @param routeOrigin the routeOrigin value to set. - * @return the VirtualHubEffectiveRoute object itself. - */ - public VirtualHubEffectiveRoute withRouteOrigin(String routeOrigin) { - this.routeOrigin = routeOrigin; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java index 8a28f017d106..609d890b7c34 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRoute.java index 9f2b4af557d0..24d8d7c1860b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRoute.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteTable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteTable.java index 2c49ad6c728b..3a4a1a9d7c90 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteTable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteTable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java index ecb134803115..7e797eee00a7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceIpConfiguration.java index b1669f49a5d8..42fea7b0e81c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceIpConfiguration.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.SubResource; import com.azure.json.JsonReader; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * The virtual network appliance ip configuration. */ -@Fluent +@Immutable public final class VirtualNetworkApplianceIpConfiguration extends SubResource { /* * Properties of the virtual network appliance ip configuration. @@ -40,7 +40,7 @@ public final class VirtualNetworkApplianceIpConfiguration extends SubResource { /** * Creates an instance of VirtualNetworkApplianceIpConfiguration class. */ - public VirtualNetworkApplianceIpConfiguration() { + private VirtualNetworkApplianceIpConfiguration() { } /** @@ -61,17 +61,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of virtual network appliance ip configuration. - * - * @param name the name value to set. - * @return the VirtualNetworkApplianceIpConfiguration object itself. - */ - public VirtualNetworkApplianceIpConfiguration withName(String name) { - this.name = name; - return this; - } - /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -90,15 +79,6 @@ public String type() { return this.type; } - /** - * {@inheritDoc} - */ - @Override - public VirtualNetworkApplianceIpConfiguration withId(String id) { - super.withId(id); - return this; - } - /** * Get the privateIpAddress property: The private IP address of the IP configuration. * @@ -108,20 +88,6 @@ public String privateIpAddress() { return this.innerProperties() == null ? null : this.innerProperties().privateIpAddress(); } - /** - * Set the privateIpAddress property: The private IP address of the IP configuration. - * - * @param privateIpAddress the privateIpAddress value to set. - * @return the VirtualNetworkApplianceIpConfiguration object itself. - */ - public VirtualNetworkApplianceIpConfiguration withPrivateIpAddress(String privateIpAddress) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkApplianceIpConfigurationProperties(); - } - this.innerProperties().withPrivateIpAddress(privateIpAddress); - return this; - } - /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -131,21 +97,6 @@ public IpAllocationMethod privateIpAllocationMethod() { return this.innerProperties() == null ? null : this.innerProperties().privateIpAllocationMethod(); } - /** - * Set the privateIpAllocationMethod property: The private IP address allocation method. - * - * @param privateIpAllocationMethod the privateIpAllocationMethod value to set. - * @return the VirtualNetworkApplianceIpConfiguration object itself. - */ - public VirtualNetworkApplianceIpConfiguration - withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkApplianceIpConfigurationProperties(); - } - this.innerProperties().withPrivateIpAllocationMethod(privateIpAllocationMethod); - return this; - } - /** * Get the primary property: Whether the ip configuration is primary or not. * @@ -155,20 +106,6 @@ public Boolean primary() { return this.innerProperties() == null ? null : this.innerProperties().primary(); } - /** - * Set the primary property: Whether the ip configuration is primary or not. - * - * @param primary the primary value to set. - * @return the VirtualNetworkApplianceIpConfiguration object itself. - */ - public VirtualNetworkApplianceIpConfiguration withPrimary(Boolean primary) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkApplianceIpConfigurationProperties(); - } - this.innerProperties().withPrimary(primary); - return this; - } - /** * Get the provisioningState property: The provisioning state of the private link service IP configuration resource. * @@ -187,20 +124,6 @@ public IpVersion privateIpAddressVersion() { return this.innerProperties() == null ? null : this.innerProperties().privateIpAddressVersion(); } - /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. - * - * @param privateIpAddressVersion the privateIpAddressVersion value to set. - * @return the VirtualNetworkApplianceIpConfiguration object itself. - */ - public VirtualNetworkApplianceIpConfiguration withPrivateIpAddressVersion(IpVersion privateIpAddressVersion) { - if (this.innerProperties() == null) { - this.innerProperties = new VirtualNetworkApplianceIpConfigurationProperties(); - } - this.innerProperties().withPrivateIpAddressVersion(privateIpAddressVersion); - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java index 5b22c385abf7..84156ccf8be1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java index d656fbafbf67..dc24c8b877aa 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -15,7 +15,7 @@ /** * A reference to VirtualNetworkGateway or LocalNetworkGateway resource. */ -@Fluent +@Immutable public final class VirtualNetworkConnectionGatewayReference implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class VirtualNetworkConnectionGatewayReference /** * Creates an instance of VirtualNetworkConnectionGatewayReference class. */ - public VirtualNetworkConnectionGatewayReference() { + private VirtualNetworkConnectionGatewayReference() { } /** @@ -38,17 +38,6 @@ public String id() { return this.id; } - /** - * Set the id property: The ID of VirtualNetworkGateway or LocalNetworkGateway resource. - * - * @param id the id value to set. - * @return the VirtualNetworkConnectionGatewayReference object itself. - */ - public VirtualNetworkConnectionGatewayReference withId(String id) { - this.id = id; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryption.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryption.java index 11e256c57d6f..4e85131388e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryption.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryptionEnforcement.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryptionEnforcement.java index 1a4d7ebb804e..b9782b11aba5 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryptionEnforcement.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryptionEnforcement.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -14,12 +14,12 @@ public final class VirtualNetworkEncryptionEnforcement extends ExpandableStringEnum { /** - * Static value DropUnencrypted for VirtualNetworkEncryptionEnforcement. + * DropUnencrypted. */ public static final VirtualNetworkEncryptionEnforcement DROP_UNENCRYPTED = fromString("DropUnencrypted"); /** - * Static value AllowUnencrypted for VirtualNetworkEncryptionEnforcement. + * AllowUnencrypted. */ public static final VirtualNetworkEncryptionEnforcement ALLOW_UNENCRYPTED = fromString("AllowUnencrypted"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleBounds.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleBounds.java index 71210dc4e69b..b72d6cb8c075 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleBounds.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleBounds.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleConfiguration.java index 0d0e1ad5ada8..f5c320ea0cae 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionMode.java index a3976649239a..ea41d9ffa7a1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,17 +13,17 @@ public final class VirtualNetworkGatewayConnectionMode extends ExpandableStringEnum { /** - * Static value Default for VirtualNetworkGatewayConnectionMode. + * Default. */ public static final VirtualNetworkGatewayConnectionMode DEFAULT = fromString("Default"); /** - * Static value ResponderOnly for VirtualNetworkGatewayConnectionMode. + * ResponderOnly. */ public static final VirtualNetworkGatewayConnectionMode RESPONDER_ONLY = fromString("ResponderOnly"); /** - * Static value InitiatorOnly for VirtualNetworkGatewayConnectionMode. + * InitiatorOnly. */ public static final VirtualNetworkGatewayConnectionMode INITIATOR_ONLY = fromString("InitiatorOnly"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionProtocol.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionProtocol.java index 8b7652e3e256..30aebcade57c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionProtocol.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionProtocol.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class VirtualNetworkGatewayConnectionProtocol extends ExpandableStringEnum { /** - * Static value IKEv2 for VirtualNetworkGatewayConnectionProtocol. + * IKEv2. */ public static final VirtualNetworkGatewayConnectionProtocol IKEV2 = fromString("IKEv2"); /** - * Static value IKEv1 for VirtualNetworkGatewayConnectionProtocol. + * IKEv1. */ public static final VirtualNetworkGatewayConnectionProtocol IKEV1 = fromString("IKEv1"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionStatus.java index 78344935c4ce..9244fae6a80e 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class VirtualNetworkGatewayConnectionStatus extends ExpandableStringEnum { /** - * Static value Unknown for VirtualNetworkGatewayConnectionStatus. + * Unknown. */ public static final VirtualNetworkGatewayConnectionStatus UNKNOWN = fromString("Unknown"); /** - * Static value Connecting for VirtualNetworkGatewayConnectionStatus. + * Connecting. */ public static final VirtualNetworkGatewayConnectionStatus CONNECTING = fromString("Connecting"); /** - * Static value Connected for VirtualNetworkGatewayConnectionStatus. + * Connected. */ public static final VirtualNetworkGatewayConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value NotConnected for VirtualNetworkGatewayConnectionStatus. + * NotConnected. */ public static final VirtualNetworkGatewayConnectionStatus NOT_CONNECTED = fromString("NotConnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionTunnelProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionTunnelProperties.java index 6f23d0a64783..00d3477c5cdd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionTunnelProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionTunnelProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionType.java index 632889ee5d3f..216cca852124 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class VirtualNetworkGatewayConnectionType extends ExpandableStringEnum { /** - * Static value IPsec for VirtualNetworkGatewayConnectionType. + * IPsec. */ public static final VirtualNetworkGatewayConnectionType IPSEC = fromString("IPsec"); /** - * Static value Vnet2Vnet for VirtualNetworkGatewayConnectionType. + * Vnet2Vnet. */ public static final VirtualNetworkGatewayConnectionType VNET2VNET = fromString("Vnet2Vnet"); /** - * Static value ExpressRoute for VirtualNetworkGatewayConnectionType. + * ExpressRoute. */ public static final VirtualNetworkGatewayConnectionType EXPRESS_ROUTE = fromString("ExpressRoute"); /** - * Static value VPNClient for VirtualNetworkGatewayConnectionType. + * VPNClient. */ public static final VirtualNetworkGatewayConnectionType VPNCLIENT = fromString("VPNClient"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationParameters.java index 497b7029777d..8a53614949c9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationPhase.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationPhase.java index 77e4dd68c35c..5fe7e8bdcdb9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationPhase.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationPhase.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,47 +13,51 @@ public final class VirtualNetworkGatewayMigrationPhase extends ExpandableStringEnum { /** - * Static value None for VirtualNetworkGatewayMigrationPhase. + * No migration phase set on gateway. */ public static final VirtualNetworkGatewayMigrationPhase NONE = fromString("None"); /** - * Static value Prepare for VirtualNetworkGatewayMigrationPhase. + * Gateway is going through prepare migration or prepare has failed. Please see state and error details for more + * information. */ public static final VirtualNetworkGatewayMigrationPhase PREPARE = fromString("Prepare"); /** - * Static value PrepareSucceeded for VirtualNetworkGatewayMigrationPhase. + * Prepare succeeded on gateway. */ public static final VirtualNetworkGatewayMigrationPhase PREPARE_SUCCEEDED = fromString("PrepareSucceeded"); /** - * Static value Execute for VirtualNetworkGatewayMigrationPhase. + * Gateway is going through execute migration or execute has failed. Please see state and error details for more + * information. */ public static final VirtualNetworkGatewayMigrationPhase EXECUTE = fromString("Execute"); /** - * Static value ExecuteSucceeded for VirtualNetworkGatewayMigrationPhase. + * Execute succeeded on gateway. */ public static final VirtualNetworkGatewayMigrationPhase EXECUTE_SUCCEEDED = fromString("ExecuteSucceeded"); /** - * Static value Commit for VirtualNetworkGatewayMigrationPhase. + * Gateway is going through commit migration or commit has failed. Please see state and error details for more + * information. */ public static final VirtualNetworkGatewayMigrationPhase COMMIT = fromString("Commit"); /** - * Static value CommitSucceeded for VirtualNetworkGatewayMigrationPhase. + * Commit succeeded, represent migration is complete for the gateway. */ public static final VirtualNetworkGatewayMigrationPhase COMMIT_SUCCEEDED = fromString("CommitSucceeded"); /** - * Static value AbortSucceeded for VirtualNetworkGatewayMigrationPhase. + * Represent abort succeeded on gateway, start with prepare to retrigger migration. */ public static final VirtualNetworkGatewayMigrationPhase ABORT_SUCCEEDED = fromString("AbortSucceeded"); /** - * Static value Abort for VirtualNetworkGatewayMigrationPhase. + * Gateway is going through abort migration or abort has failed. Please see state and error details for more + * information. */ public static final VirtualNetworkGatewayMigrationPhase ABORT = fromString("Abort"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationState.java index ee116bf9e494..7f346b4016e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,22 +13,22 @@ public final class VirtualNetworkGatewayMigrationState extends ExpandableStringEnum { /** - * Static value None for VirtualNetworkGatewayMigrationState. + * None. */ public static final VirtualNetworkGatewayMigrationState NONE = fromString("None"); /** - * Static value InProgress for VirtualNetworkGatewayMigrationState. + * InProgress. */ public static final VirtualNetworkGatewayMigrationState IN_PROGRESS = fromString("InProgress"); /** - * Static value Succeeded for VirtualNetworkGatewayMigrationState. + * Succeeded. */ public static final VirtualNetworkGatewayMigrationState SUCCEEDED = fromString("Succeeded"); /** - * Static value Failed for VirtualNetworkGatewayMigrationState. + * Failed. */ public static final VirtualNetworkGatewayMigrationState FAILED = fromString("Failed"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationStatus.java index 733d82c31b35..26f666bb312a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationType.java index 88ca46d5f727..29357a19e3a4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,7 +12,7 @@ */ public final class VirtualNetworkGatewayMigrationType extends ExpandableStringEnum { /** - * Static value UpgradeDeploymentToStandardIP for VirtualNetworkGatewayMigrationType. + * Indicates that it is a migration process from basic IP CSES to standard IP VMSS. */ public static final VirtualNetworkGatewayMigrationType UPGRADE_DEPLOYMENT_TO_STANDARD_IP = fromString("UpgradeDeploymentToStandardIP"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroup.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroup.java index 092601892207..5336c1974902 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroup.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroup.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroupMember.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroupMember.java index 4deec4d9f72f..6793c90f1621 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroupMember.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroupMember.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySku.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySku.java index 0c06d4dca6ae..52663467ff8a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySku.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuName.java index 5eb53bd76789..21ce469fbdde 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,92 +12,92 @@ */ public final class VirtualNetworkGatewaySkuName extends ExpandableStringEnum { /** - * Static value Basic for VirtualNetworkGatewaySkuName. + * Basic. */ public static final VirtualNetworkGatewaySkuName BASIC = fromString("Basic"); /** - * Static value HighPerformance for VirtualNetworkGatewaySkuName. + * HighPerformance. */ public static final VirtualNetworkGatewaySkuName HIGH_PERFORMANCE = fromString("HighPerformance"); /** - * Static value Standard for VirtualNetworkGatewaySkuName. + * Standard. */ public static final VirtualNetworkGatewaySkuName STANDARD = fromString("Standard"); /** - * Static value UltraPerformance for VirtualNetworkGatewaySkuName. + * UltraPerformance. */ public static final VirtualNetworkGatewaySkuName ULTRA_PERFORMANCE = fromString("UltraPerformance"); /** - * Static value VpnGw1 for VirtualNetworkGatewaySkuName. + * VpnGw1. */ public static final VirtualNetworkGatewaySkuName VPN_GW1 = fromString("VpnGw1"); /** - * Static value VpnGw2 for VirtualNetworkGatewaySkuName. + * VpnGw2. */ public static final VirtualNetworkGatewaySkuName VPN_GW2 = fromString("VpnGw2"); /** - * Static value VpnGw3 for VirtualNetworkGatewaySkuName. + * VpnGw3. */ public static final VirtualNetworkGatewaySkuName VPN_GW3 = fromString("VpnGw3"); /** - * Static value VpnGw4 for VirtualNetworkGatewaySkuName. + * VpnGw4. */ public static final VirtualNetworkGatewaySkuName VPN_GW4 = fromString("VpnGw4"); /** - * Static value VpnGw5 for VirtualNetworkGatewaySkuName. + * VpnGw5. */ public static final VirtualNetworkGatewaySkuName VPN_GW5 = fromString("VpnGw5"); /** - * Static value VpnGw1AZ for VirtualNetworkGatewaySkuName. + * VpnGw1AZ. */ public static final VirtualNetworkGatewaySkuName VPN_GW1AZ = fromString("VpnGw1AZ"); /** - * Static value VpnGw2AZ for VirtualNetworkGatewaySkuName. + * VpnGw2AZ. */ public static final VirtualNetworkGatewaySkuName VPN_GW2AZ = fromString("VpnGw2AZ"); /** - * Static value VpnGw3AZ for VirtualNetworkGatewaySkuName. + * VpnGw3AZ. */ public static final VirtualNetworkGatewaySkuName VPN_GW3AZ = fromString("VpnGw3AZ"); /** - * Static value VpnGw4AZ for VirtualNetworkGatewaySkuName. + * VpnGw4AZ. */ public static final VirtualNetworkGatewaySkuName VPN_GW4AZ = fromString("VpnGw4AZ"); /** - * Static value VpnGw5AZ for VirtualNetworkGatewaySkuName. + * VpnGw5AZ. */ public static final VirtualNetworkGatewaySkuName VPN_GW5AZ = fromString("VpnGw5AZ"); /** - * Static value ErGw1AZ for VirtualNetworkGatewaySkuName. + * ErGw1AZ. */ public static final VirtualNetworkGatewaySkuName ER_GW1AZ = fromString("ErGw1AZ"); /** - * Static value ErGw2AZ for VirtualNetworkGatewaySkuName. + * ErGw2AZ. */ public static final VirtualNetworkGatewaySkuName ER_GW2AZ = fromString("ErGw2AZ"); /** - * Static value ErGw3AZ for VirtualNetworkGatewaySkuName. + * ErGw3AZ. */ public static final VirtualNetworkGatewaySkuName ER_GW3AZ = fromString("ErGw3AZ"); /** - * Static value ErGwScale for VirtualNetworkGatewaySkuName. + * ErGwScale. */ public static final VirtualNetworkGatewaySkuName ER_GW_SCALE = fromString("ErGwScale"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuTier.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuTier.java index 76038984f465..25a7c1366111 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuTier.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,92 +12,92 @@ */ public final class VirtualNetworkGatewaySkuTier extends ExpandableStringEnum { /** - * Static value Basic for VirtualNetworkGatewaySkuTier. + * Basic. */ public static final VirtualNetworkGatewaySkuTier BASIC = fromString("Basic"); /** - * Static value HighPerformance for VirtualNetworkGatewaySkuTier. + * HighPerformance. */ public static final VirtualNetworkGatewaySkuTier HIGH_PERFORMANCE = fromString("HighPerformance"); /** - * Static value Standard for VirtualNetworkGatewaySkuTier. + * Standard. */ public static final VirtualNetworkGatewaySkuTier STANDARD = fromString("Standard"); /** - * Static value UltraPerformance for VirtualNetworkGatewaySkuTier. + * UltraPerformance. */ public static final VirtualNetworkGatewaySkuTier ULTRA_PERFORMANCE = fromString("UltraPerformance"); /** - * Static value VpnGw1 for VirtualNetworkGatewaySkuTier. + * VpnGw1. */ public static final VirtualNetworkGatewaySkuTier VPN_GW1 = fromString("VpnGw1"); /** - * Static value VpnGw2 for VirtualNetworkGatewaySkuTier. + * VpnGw2. */ public static final VirtualNetworkGatewaySkuTier VPN_GW2 = fromString("VpnGw2"); /** - * Static value VpnGw3 for VirtualNetworkGatewaySkuTier. + * VpnGw3. */ public static final VirtualNetworkGatewaySkuTier VPN_GW3 = fromString("VpnGw3"); /** - * Static value VpnGw4 for VirtualNetworkGatewaySkuTier. + * VpnGw4. */ public static final VirtualNetworkGatewaySkuTier VPN_GW4 = fromString("VpnGw4"); /** - * Static value VpnGw5 for VirtualNetworkGatewaySkuTier. + * VpnGw5. */ public static final VirtualNetworkGatewaySkuTier VPN_GW5 = fromString("VpnGw5"); /** - * Static value VpnGw1AZ for VirtualNetworkGatewaySkuTier. + * VpnGw1AZ. */ public static final VirtualNetworkGatewaySkuTier VPN_GW1AZ = fromString("VpnGw1AZ"); /** - * Static value VpnGw2AZ for VirtualNetworkGatewaySkuTier. + * VpnGw2AZ. */ public static final VirtualNetworkGatewaySkuTier VPN_GW2AZ = fromString("VpnGw2AZ"); /** - * Static value VpnGw3AZ for VirtualNetworkGatewaySkuTier. + * VpnGw3AZ. */ public static final VirtualNetworkGatewaySkuTier VPN_GW3AZ = fromString("VpnGw3AZ"); /** - * Static value VpnGw4AZ for VirtualNetworkGatewaySkuTier. + * VpnGw4AZ. */ public static final VirtualNetworkGatewaySkuTier VPN_GW4AZ = fromString("VpnGw4AZ"); /** - * Static value VpnGw5AZ for VirtualNetworkGatewaySkuTier. + * VpnGw5AZ. */ public static final VirtualNetworkGatewaySkuTier VPN_GW5AZ = fromString("VpnGw5AZ"); /** - * Static value ErGw1AZ for VirtualNetworkGatewaySkuTier. + * ErGw1AZ. */ public static final VirtualNetworkGatewaySkuTier ER_GW1AZ = fromString("ErGw1AZ"); /** - * Static value ErGw2AZ for VirtualNetworkGatewaySkuTier. + * ErGw2AZ. */ public static final VirtualNetworkGatewaySkuTier ER_GW2AZ = fromString("ErGw2AZ"); /** - * Static value ErGw3AZ for VirtualNetworkGatewaySkuTier. + * ErGw3AZ. */ public static final VirtualNetworkGatewaySkuTier ER_GW3AZ = fromString("ErGw3AZ"); /** - * Static value ErGwScale for VirtualNetworkGatewaySkuTier. + * ErGwScale. */ public static final VirtualNetworkGatewaySkuTier ER_GW_SCALE = fromString("ErGwScale"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayType.java index ec7814483aca..31bf5ba667e3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VirtualNetworkGatewayType extends ExpandableStringEnum { /** - * Static value Vpn for VirtualNetworkGatewayType. + * Vpn. */ public static final VirtualNetworkGatewayType VPN = fromString("Vpn"); /** - * Static value ExpressRoute for VirtualNetworkGatewayType. + * ExpressRoute. */ public static final VirtualNetworkGatewayType EXPRESS_ROUTE = fromString("ExpressRoute"); /** - * Static value LocalGateway for VirtualNetworkGatewayType. + * LocalGateway. */ public static final VirtualNetworkGatewayType LOCAL_GATEWAY = fromString("LocalGateway"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringLevel.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringLevel.java index c69cdf9454e5..0053e23bf65f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringLevel.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringLevel.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class VirtualNetworkPeeringLevel extends ExpandableStringEnum { /** - * Static value FullyInSync for VirtualNetworkPeeringLevel. + * FullyInSync. */ public static final VirtualNetworkPeeringLevel FULLY_IN_SYNC = fromString("FullyInSync"); /** - * Static value RemoteNotInSync for VirtualNetworkPeeringLevel. + * RemoteNotInSync. */ public static final VirtualNetworkPeeringLevel REMOTE_NOT_IN_SYNC = fromString("RemoteNotInSync"); /** - * Static value LocalNotInSync for VirtualNetworkPeeringLevel. + * LocalNotInSync. */ public static final VirtualNetworkPeeringLevel LOCAL_NOT_IN_SYNC = fromString("LocalNotInSync"); /** - * Static value LocalAndRemoteNotInSync for VirtualNetworkPeeringLevel. + * LocalAndRemoteNotInSync. */ public static final VirtualNetworkPeeringLevel LOCAL_AND_REMOTE_NOT_IN_SYNC = fromString("LocalAndRemoteNotInSync"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringState.java index 7b5e09bc764f..eeb0edcb7bbd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VirtualNetworkPeeringState extends ExpandableStringEnum { /** - * Static value Initiated for VirtualNetworkPeeringState. + * Initiated. */ public static final VirtualNetworkPeeringState INITIATED = fromString("Initiated"); /** - * Static value Connected for VirtualNetworkPeeringState. + * Connected. */ public static final VirtualNetworkPeeringState CONNECTED = fromString("Connected"); /** - * Static value Disconnected for VirtualNetworkPeeringState. + * Disconnected. */ public static final VirtualNetworkPeeringState DISCONNECTED = fromString("Disconnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateEndpointNetworkPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateEndpointNetworkPolicies.java index 6d2bf44fc0a7..9c40e2172ba4 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateEndpointNetworkPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateEndpointNetworkPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,23 +13,23 @@ public final class VirtualNetworkPrivateEndpointNetworkPolicies extends ExpandableStringEnum { /** - * Static value Enabled for VirtualNetworkPrivateEndpointNetworkPolicies. + * Enabled. */ public static final VirtualNetworkPrivateEndpointNetworkPolicies ENABLED = fromString("Enabled"); /** - * Static value Disabled for VirtualNetworkPrivateEndpointNetworkPolicies. + * Disabled. */ public static final VirtualNetworkPrivateEndpointNetworkPolicies DISABLED = fromString("Disabled"); /** - * Static value NetworkSecurityGroupEnabled for VirtualNetworkPrivateEndpointNetworkPolicies. + * NetworkSecurityGroupEnabled. */ public static final VirtualNetworkPrivateEndpointNetworkPolicies NETWORK_SECURITY_GROUP_ENABLED = fromString("NetworkSecurityGroupEnabled"); /** - * Static value RouteTableEnabled for VirtualNetworkPrivateEndpointNetworkPolicies. + * RouteTableEnabled. */ public static final VirtualNetworkPrivateEndpointNetworkPolicies ROUTE_TABLE_ENABLED = fromString("RouteTableEnabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateLinkServiceNetworkPolicies.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateLinkServiceNetworkPolicies.java index 218363885550..f9607cbc679d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateLinkServiceNetworkPolicies.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateLinkServiceNetworkPolicies.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class VirtualNetworkPrivateLinkServiceNetworkPolicies extends ExpandableStringEnum { /** - * Static value Enabled for VirtualNetworkPrivateLinkServiceNetworkPolicies. + * Enabled. */ public static final VirtualNetworkPrivateLinkServiceNetworkPolicies ENABLED = fromString("Enabled"); /** - * Static value Disabled for VirtualNetworkPrivateLinkServiceNetworkPolicies. + * Disabled. */ public static final VirtualNetworkPrivateLinkServiceNetworkPolicies DISABLED = fromString("Disabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkUsageName.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkUsageName.java index bea24b463080..2bc41c647b8a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkUsageName.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkUsageName.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -29,7 +29,7 @@ public final class VirtualNetworkUsageName implements JsonSerializable { /* * Name of the security provider. @@ -34,7 +34,7 @@ public final class VirtualWanSecurityProvider implements JsonSerializable { /** - * Static value External for VirtualWanSecurityProviderType. + * External. */ public static final VirtualWanSecurityProviderType EXTERNAL = fromString("External"); /** - * Static value Native for VirtualWanSecurityProviderType. + * Native. */ public static final VirtualWanSecurityProviderType NATIVE = fromString("Native"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualWanVpnProfileParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualWanVpnProfileParameters.java index edcdb7c4b7a6..61fd4591dd60 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualWanVpnProfileParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualWanVpnProfileParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetLocalRouteOverrideCriteria.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetLocalRouteOverrideCriteria.java index dd07a34b3477..5e13296842ed 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetLocalRouteOverrideCriteria.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetLocalRouteOverrideCriteria.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class VnetLocalRouteOverrideCriteria extends ExpandableStringEnum { /** - * Static value Contains for VnetLocalRouteOverrideCriteria. + * Contains. */ public static final VnetLocalRouteOverrideCriteria CONTAINS = fromString("Contains"); /** - * Static value Equal for VnetLocalRouteOverrideCriteria. + * Equal. */ public static final VnetLocalRouteOverrideCriteria EQUAL = fromString("Equal"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetRoute.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetRoute.java index 4eb7b52cb76e..e0e3c2488fbd 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetRoute.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VnetRoute.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java index 2aaf4d9bbf15..5f67270ec50b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnAuthenticationType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnAuthenticationType.java index 334e83c4970c..daa0b7da970f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnAuthenticationType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnAuthenticationType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VpnAuthenticationType extends ExpandableStringEnum { /** - * Static value Certificate for VpnAuthenticationType. + * Certificate. */ public static final VpnAuthenticationType CERTIFICATE = fromString("Certificate"); /** - * Static value Radius for VpnAuthenticationType. + * Radius. */ public static final VpnAuthenticationType RADIUS = fromString("Radius"); /** - * Static value AAD for VpnAuthenticationType. + * AAD. */ public static final VpnAuthenticationType AAD = fromString("AAD"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java index 89ae32d9e990..617c8840b6fc 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java index a72c929886cf..a0aba171a206 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,7 +15,7 @@ /** * VpnClientConnectionHealth properties. */ -@Fluent +@Immutable public final class VpnClientConnectionHealth implements JsonSerializable { /* * Total of the Ingress Bytes Transferred in this P2S Vpn connection. @@ -40,7 +40,7 @@ public final class VpnClientConnectionHealth implements JsonSerializable allocatedIpAddresses() { return this.allocatedIpAddresses; } - /** - * Set the allocatedIpAddresses property: List of allocated ip addresses to the connected p2s vpn clients. - * - * @param allocatedIpAddresses the allocatedIpAddresses value to set. - * @return the VpnClientConnectionHealth object itself. - */ - public VpnClientConnectionHealth withAllocatedIpAddresses(List allocatedIpAddresses) { - this.allocatedIpAddresses = allocatedIpAddresses; - return this; - } - /** * Validates the instance. * diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealthDetail.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealthDetail.java index 5448d4140aa1..a4446be678b7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealthDetail.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealthDetail.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -79,7 +79,7 @@ public final class VpnClientConnectionHealthDetail implements JsonSerializable { /** - * Static value IkeV2 for VpnClientProtocol. + * IkeV2. */ public static final VpnClientProtocol IKE_V2 = fromString("IkeV2"); /** - * Static value SSTP for VpnClientProtocol. + * SSTP. */ public static final VpnClientProtocol SSTP = fromString("SSTP"); /** - * Static value OpenVPN for VpnClientProtocol. + * OpenVPN. */ public static final VpnClientProtocol OPEN_VPN = fromString("OpenVPN"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRevokedCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRevokedCertificate.java index cdbd8f7dda45..399e7378970f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRevokedCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRevokedCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java index 95c7e4ede5c7..7588c7682fd3 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStartParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStartParameters.java index f43b59d87e67..a0e7d4199742 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStartParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStartParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStopParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStopParameters.java index 2bca7b1f155b..1bd37526f23a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStopParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStopParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionStatus.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionStatus.java index d9e1bd60e8ca..16f485245f1b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionStatus.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,22 +12,22 @@ */ public final class VpnConnectionStatus extends ExpandableStringEnum { /** - * Static value Unknown for VpnConnectionStatus. + * Unknown. */ public static final VpnConnectionStatus UNKNOWN = fromString("Unknown"); /** - * Static value Connecting for VpnConnectionStatus. + * Connecting. */ public static final VpnConnectionStatus CONNECTING = fromString("Connecting"); /** - * Static value Connected for VpnConnectionStatus. + * Connected. */ public static final VpnConnectionStatus CONNECTED = fromString("Connected"); /** - * Static value NotConnected for VpnConnectionStatus. + * NotConnected. */ public static final VpnConnectionStatus NOT_CONNECTED = fromString("NotConnected"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnDeviceScriptParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnDeviceScriptParameters.java index bbf5623ce27a..56890629765a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnDeviceScriptParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnDeviceScriptParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayGeneration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayGeneration.java index 768dc3fecc5f..5845ae4e7485 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayGeneration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayGeneration.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VpnGatewayGeneration extends ExpandableStringEnum { /** - * Static value None for VpnGatewayGeneration. + * None. */ public static final VpnGatewayGeneration NONE = fromString("None"); /** - * Static value Generation1 for VpnGatewayGeneration. + * Generation1. */ public static final VpnGatewayGeneration GENERATION1 = fromString("Generation1"); /** - * Static value Generation2 for VpnGatewayGeneration. + * Generation2. */ public static final VpnGatewayGeneration GENERATION2 = fromString("Generation2"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayIpConfiguration.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayIpConfiguration.java index cad51d3d05f6..b608ab0eb8d7 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayIpConfiguration.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnGatewayIpConfiguration.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * IP Configuration of a VPN Gateway Resource. */ -@Fluent +@Immutable public final class VpnGatewayIpConfiguration implements JsonSerializable { /* * The identifier of the IP configuration for a VPN Gateway. @@ -34,7 +34,7 @@ public final class VpnGatewayIpConfiguration implements JsonSerializable { /** - * Static value IkeV2 for VpnGatewayTunnelingProtocol. + * IkeV2. */ public static final VpnGatewayTunnelingProtocol IKE_V2 = fromString("IkeV2"); /** - * Static value OpenVPN for VpnGatewayTunnelingProtocol. + * OpenVPN. */ public static final VpnGatewayTunnelingProtocol OPEN_VPN = fromString("OpenVPN"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkBgpSettings.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkBgpSettings.java index 5d763e2ff46d..646491ebab3d 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkBgpSettings.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkBgpSettings.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkConnectionMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkConnectionMode.java index 0fbef852d101..8c02c82046e9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkConnectionMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkConnectionMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VpnLinkConnectionMode extends ExpandableStringEnum { /** - * Static value Default for VpnLinkConnectionMode. + * Default. */ public static final VpnLinkConnectionMode DEFAULT = fromString("Default"); /** - * Static value ResponderOnly for VpnLinkConnectionMode. + * ResponderOnly. */ public static final VpnLinkConnectionMode RESPONDER_ONLY = fromString("ResponderOnly"); /** - * Static value InitiatorOnly for VpnLinkConnectionMode. + * InitiatorOnly. */ public static final VpnLinkConnectionMode INITIATOR_ONLY = fromString("InitiatorOnly"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkProviderProperties.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkProviderProperties.java index 95d57ae52828..1bef4f2ff288 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkProviderProperties.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnLinkProviderProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMapping.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMapping.java index f15b379cedd8..4f476a5e5dde 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMapping.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMapping.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMode.java index 46bef265c96e..5820b1db6135 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class VpnNatRuleMode extends ExpandableStringEnum { /** - * Static value EgressSnat for VpnNatRuleMode. + * EgressSnat. */ public static final VpnNatRuleMode EGRESS_SNAT = fromString("EgressSnat"); /** - * Static value IngressSnat for VpnNatRuleMode. + * IngressSnat. */ public static final VpnNatRuleMode INGRESS_SNAT = fromString("IngressSnat"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleType.java index e540b24a27f7..81c9cad74d43 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class VpnNatRuleType extends ExpandableStringEnum { /** - * Static value Static for VpnNatRuleType. + * Static. */ public static final VpnNatRuleType STATIC = fromString("Static"); /** - * Static value Dynamic for VpnNatRuleType. + * Dynamic. */ public static final VpnNatRuleType DYNAMIC = fromString("Dynamic"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStartParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStartParameters.java index 30f4a299b952..c0bc9d3fd750 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStartParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStartParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStopParameters.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStopParameters.java index 4a875fd9c558..4ebf5e60ace2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStopParameters.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStopParameters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPolicyMemberAttributeType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPolicyMemberAttributeType.java index 098496369896..50816bb12e65 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPolicyMemberAttributeType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnPolicyMemberAttributeType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class VpnPolicyMemberAttributeType extends ExpandableStringEnum { /** - * Static value CertificateGroupId for VpnPolicyMemberAttributeType. + * CertificateGroupId. */ public static final VpnPolicyMemberAttributeType CERTIFICATE_GROUP_ID = fromString("CertificateGroupId"); /** - * Static value AADGroupId for VpnPolicyMemberAttributeType. + * AADGroupId. */ public static final VpnPolicyMemberAttributeType AADGROUP_ID = fromString("AADGroupId"); /** - * Static value RadiusAzureGroupId for VpnPolicyMemberAttributeType. + * RadiusAzureGroupId. */ public static final VpnPolicyMemberAttributeType RADIUS_AZURE_GROUP_ID = fromString("RadiusAzureGroupId"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusClientRootCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusClientRootCertificate.java index 40f128e8a8e9..7afafef9e0d1 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusClientRootCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusClientRootCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusServerRootCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusServerRootCertificate.java index 8bb51e354a90..a990f3bd025a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusServerRootCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusServerRootCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRevokedCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRevokedCertificate.java index 213d28340b89..3aa3bd7023fb 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRevokedCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRevokedCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRootCertificate.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRootCertificate.java index 6b52415335b5..52305e1ea75f 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRootCertificate.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRootCertificate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigurationPolicyGroupMember.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigurationPolicyGroupMember.java index 274773893f72..26bda4cddd3b 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigurationPolicyGroupMember.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigurationPolicyGroupMember.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnType.java index 51259c8b1882..a4819082fc9a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class VpnType extends ExpandableStringEnum { /** - * Static value PolicyBased for VpnType. + * PolicyBased. */ public static final VpnType POLICY_BASED = fromString("PolicyBased"); /** - * Static value RouteBased for VpnType. + * RouteBased. */ public static final VpnType ROUTE_BASED = fromString("RouteBased"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallAction.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallAction.java index 2308920c88ef..cfa31fdad9d9 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallAction.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallAction.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,27 +12,27 @@ */ public final class WebApplicationFirewallAction extends ExpandableStringEnum { /** - * Static value Allow for WebApplicationFirewallAction. + * Allow. */ public static final WebApplicationFirewallAction ALLOW = fromString("Allow"); /** - * Static value Block for WebApplicationFirewallAction. + * Block. */ public static final WebApplicationFirewallAction BLOCK = fromString("Block"); /** - * Static value Log for WebApplicationFirewallAction. + * Log. */ public static final WebApplicationFirewallAction LOG = fromString("Log"); /** - * Static value JSChallenge for WebApplicationFirewallAction. + * JSChallenge. */ public static final WebApplicationFirewallAction JSCHALLENGE = fromString("JSChallenge"); /** - * Static value CAPTCHA for WebApplicationFirewallAction. + * CAPTCHA. */ public static final WebApplicationFirewallAction CAPTCHA = fromString("CAPTCHA"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java index 7b5abea5724f..4480c24426f6 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallEnabledState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallEnabledState.java index 0429ddf705e9..138e9a5ee219 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallEnabledState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallEnabledState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class WebApplicationFirewallEnabledState extends ExpandableStringEnum { /** - * Static value Disabled for WebApplicationFirewallEnabledState. + * Disabled. */ public static final WebApplicationFirewallEnabledState DISABLED = fromString("Disabled"); /** - * Static value Enabled for WebApplicationFirewallEnabledState. + * Enabled. */ public static final WebApplicationFirewallEnabledState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMatchVariable.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMatchVariable.java index 8dd5c1872c19..af062c85a831 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMatchVariable.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMatchVariable.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,42 +13,42 @@ public final class WebApplicationFirewallMatchVariable extends ExpandableStringEnum { /** - * Static value RemoteAddr for WebApplicationFirewallMatchVariable. + * RemoteAddr. */ public static final WebApplicationFirewallMatchVariable REMOTE_ADDR = fromString("RemoteAddr"); /** - * Static value RequestMethod for WebApplicationFirewallMatchVariable. + * RequestMethod. */ public static final WebApplicationFirewallMatchVariable REQUEST_METHOD = fromString("RequestMethod"); /** - * Static value QueryString for WebApplicationFirewallMatchVariable. + * QueryString. */ public static final WebApplicationFirewallMatchVariable QUERY_STRING = fromString("QueryString"); /** - * Static value PostArgs for WebApplicationFirewallMatchVariable. + * PostArgs. */ public static final WebApplicationFirewallMatchVariable POST_ARGS = fromString("PostArgs"); /** - * Static value RequestUri for WebApplicationFirewallMatchVariable. + * RequestUri. */ public static final WebApplicationFirewallMatchVariable REQUEST_URI = fromString("RequestUri"); /** - * Static value RequestHeaders for WebApplicationFirewallMatchVariable. + * RequestHeaders. */ public static final WebApplicationFirewallMatchVariable REQUEST_HEADERS = fromString("RequestHeaders"); /** - * Static value RequestBody for WebApplicationFirewallMatchVariable. + * RequestBody. */ public static final WebApplicationFirewallMatchVariable REQUEST_BODY = fromString("RequestBody"); /** - * Static value RequestCookies for WebApplicationFirewallMatchVariable. + * RequestCookies. */ public static final WebApplicationFirewallMatchVariable REQUEST_COOKIES = fromString("RequestCookies"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMode.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMode.java index 1e616b59ffe3..004f684dbc55 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMode.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMode.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class WebApplicationFirewallMode extends ExpandableStringEnum { /** - * Static value Prevention for WebApplicationFirewallMode. + * Prevention. */ public static final WebApplicationFirewallMode PREVENTION = fromString("Prevention"); /** - * Static value Detection for WebApplicationFirewallMode. + * Detection. */ public static final WebApplicationFirewallMode DETECTION = fromString("Detection"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallOperator.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallOperator.java index 54ea121d2267..60fb09951444 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallOperator.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallOperator.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,62 +12,62 @@ */ public final class WebApplicationFirewallOperator extends ExpandableStringEnum { /** - * Static value IPMatch for WebApplicationFirewallOperator. + * IPMatch. */ public static final WebApplicationFirewallOperator IPMATCH = fromString("IPMatch"); /** - * Static value Equal for WebApplicationFirewallOperator. + * Equal. */ public static final WebApplicationFirewallOperator EQUAL = fromString("Equal"); /** - * Static value Contains for WebApplicationFirewallOperator. + * Contains. */ public static final WebApplicationFirewallOperator CONTAINS = fromString("Contains"); /** - * Static value LessThan for WebApplicationFirewallOperator. + * LessThan. */ public static final WebApplicationFirewallOperator LESS_THAN = fromString("LessThan"); /** - * Static value GreaterThan for WebApplicationFirewallOperator. + * GreaterThan. */ public static final WebApplicationFirewallOperator GREATER_THAN = fromString("GreaterThan"); /** - * Static value LessThanOrEqual for WebApplicationFirewallOperator. + * LessThanOrEqual. */ public static final WebApplicationFirewallOperator LESS_THAN_OR_EQUAL = fromString("LessThanOrEqual"); /** - * Static value GreaterThanOrEqual for WebApplicationFirewallOperator. + * GreaterThanOrEqual. */ public static final WebApplicationFirewallOperator GREATER_THAN_OR_EQUAL = fromString("GreaterThanOrEqual"); /** - * Static value BeginsWith for WebApplicationFirewallOperator. + * BeginsWith. */ public static final WebApplicationFirewallOperator BEGINS_WITH = fromString("BeginsWith"); /** - * Static value EndsWith for WebApplicationFirewallOperator. + * EndsWith. */ public static final WebApplicationFirewallOperator ENDS_WITH = fromString("EndsWith"); /** - * Static value Regex for WebApplicationFirewallOperator. + * Regex. */ public static final WebApplicationFirewallOperator REGEX = fromString("Regex"); /** - * Static value GeoMatch for WebApplicationFirewallOperator. + * GeoMatch. */ public static final WebApplicationFirewallOperator GEO_MATCH = fromString("GeoMatch"); /** - * Static value Any for WebApplicationFirewallOperator. + * Any. */ public static final WebApplicationFirewallOperator ANY = fromString("Any"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyResourceState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyResourceState.java index 784acb7eabb2..a0e3f6dd055a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyResourceState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyResourceState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,32 +13,32 @@ public final class WebApplicationFirewallPolicyResourceState extends ExpandableStringEnum { /** - * Static value Creating for WebApplicationFirewallPolicyResourceState. + * Creating. */ public static final WebApplicationFirewallPolicyResourceState CREATING = fromString("Creating"); /** - * Static value Enabling for WebApplicationFirewallPolicyResourceState. + * Enabling. */ public static final WebApplicationFirewallPolicyResourceState ENABLING = fromString("Enabling"); /** - * Static value Enabled for WebApplicationFirewallPolicyResourceState. + * Enabled. */ public static final WebApplicationFirewallPolicyResourceState ENABLED = fromString("Enabled"); /** - * Static value Disabling for WebApplicationFirewallPolicyResourceState. + * Disabling. */ public static final WebApplicationFirewallPolicyResourceState DISABLING = fromString("Disabling"); /** - * Static value Disabled for WebApplicationFirewallPolicyResourceState. + * Disabled. */ public static final WebApplicationFirewallPolicyResourceState DISABLED = fromString("Disabled"); /** - * Static value Deleting for WebApplicationFirewallPolicyResourceState. + * Deleting. */ public static final WebApplicationFirewallPolicyResourceState DELETING = fromString("Deleting"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallRuleType.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallRuleType.java index 1a1bdea308bb..6be8b0edd742 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallRuleType.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallRuleType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,17 +12,17 @@ */ public final class WebApplicationFirewallRuleType extends ExpandableStringEnum { /** - * Static value MatchRule for WebApplicationFirewallRuleType. + * MatchRule. */ public static final WebApplicationFirewallRuleType MATCH_RULE = fromString("MatchRule"); /** - * Static value RateLimitRule for WebApplicationFirewallRuleType. + * RateLimitRule. */ public static final WebApplicationFirewallRuleType RATE_LIMIT_RULE = fromString("RateLimitRule"); /** - * Static value Invalid for WebApplicationFirewallRuleType. + * Invalid. */ public static final WebApplicationFirewallRuleType INVALID = fromString("Invalid"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java index 47c03e0d6ec0..95c5aa52331c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingState.java index e1642f398c72..0bb3f3bc5528 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -13,12 +13,12 @@ public final class WebApplicationFirewallScrubbingState extends ExpandableStringEnum { /** - * Static value Disabled for WebApplicationFirewallScrubbingState. + * Disabled. */ public static final WebApplicationFirewallScrubbingState DISABLED = fromString("Disabled"); /** - * Static value Enabled for WebApplicationFirewallScrubbingState. + * Enabled. */ public static final WebApplicationFirewallScrubbingState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallState.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallState.java index 00d66fe59a1d..dc970cd2ef9a 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallState.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,12 +12,12 @@ */ public final class WebApplicationFirewallState extends ExpandableStringEnum { /** - * Static value Disabled for WebApplicationFirewallState. + * Disabled. */ public static final WebApplicationFirewallState DISABLED = fromString("Disabled"); /** - * Static value Enabled for WebApplicationFirewallState. + * Enabled. */ public static final WebApplicationFirewallState ENABLED = fromString("Enabled"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallTransform.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallTransform.java index b52337d9640e..12eb5fcfb51c 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallTransform.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallTransform.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.network.models; @@ -12,37 +12,37 @@ */ public final class WebApplicationFirewallTransform extends ExpandableStringEnum { /** - * Static value Uppercase for WebApplicationFirewallTransform. + * Uppercase. */ public static final WebApplicationFirewallTransform UPPERCASE = fromString("Uppercase"); /** - * Static value Lowercase for WebApplicationFirewallTransform. + * Lowercase. */ public static final WebApplicationFirewallTransform LOWERCASE = fromString("Lowercase"); /** - * Static value Trim for WebApplicationFirewallTransform. + * Trim. */ public static final WebApplicationFirewallTransform TRIM = fromString("Trim"); /** - * Static value UrlDecode for WebApplicationFirewallTransform. + * UrlDecode. */ public static final WebApplicationFirewallTransform URL_DECODE = fromString("UrlDecode"); /** - * Static value UrlEncode for WebApplicationFirewallTransform. + * UrlEncode. */ public static final WebApplicationFirewallTransform URL_ENCODE = fromString("UrlEncode"); /** - * Static value RemoveNulls for WebApplicationFirewallTransform. + * RemoveNulls. */ public static final WebApplicationFirewallTransform REMOVE_NULLS = fromString("RemoveNulls"); /** - * Static value HtmlEntityDecode for WebApplicationFirewallTransform. + * HtmlEntityDecode. */ public static final WebApplicationFirewallTransform HTML_ENTITY_DECODE = fromString("HtmlEntityDecode"); diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WritableResource.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WritableResource.java new file mode 100644 index 000000000000..844d74b72991 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WritableResource.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Common resource representation. + */ +@Fluent +public class WritableResource implements JsonSerializable { + /* + * Resource ID. + */ + private String id; + + /* + * Resource name. + */ + private String name; + + /* + * Resource type. + */ + private String type; + + /** + * Creates an instance of WritableResource class. + */ + public WritableResource() { + } + + /** + * Get the id property: Resource ID. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Resource ID. + * + * @param id the id value to set. + * @return the WritableResource object itself. + */ + public WritableResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Resource name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Resource name. + * + * @param name the name value to set. + * @return the WritableResource object itself. + */ + public WritableResource withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: Resource type. + * + * @param type the type value to set. + * @return the WritableResource object itself. + */ + public WritableResource withType(String type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WritableResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WritableResource if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the WritableResource. + */ + public static WritableResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WritableResource deserializedWritableResource = new WritableResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedWritableResource.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedWritableResource.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedWritableResource.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedWritableResource; + }); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/package-info.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/package-info.java index 1affd0445fb7..dd3c94f560e2 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/package-info.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the data models for NetworkManagementClient. - * Network Client. + * Package containing the data models for Network. + * APIs to manage web application firewall rules. */ package com.azure.resourcemanager.network.models; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/package-info.java b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/package-info.java index 5a03e487716d..6479699ef091 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/package-info.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the classes for NetworkManagementClient. - * Network Client. + * Package containing the classes for Network. + * APIs to manage web application firewall rules. */ package com.azure.resourcemanager.network; diff --git a/sdk/network/azure-resourcemanager-network/src/main/java/module-info.java b/sdk/network/azure-resourcemanager-network/src/main/java/module-info.java index e6d8d6f70cbf..99d75d07d0d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/main/java/module-info.java +++ b/sdk/network/azure-resourcemanager-network/src/main/java/module-info.java @@ -13,4 +13,5 @@ // open packages specifically for azure core opens com.azure.resourcemanager.network.fluent.models to com.azure.core; opens com.azure.resourcemanager.network.models to com.azure.core; + opens com.azure.resourcemanager.network.implementation.models to com.azure.core; } diff --git a/sdk/network/azure-resourcemanager-network/src/main/resources/META-INF/azure-resourcemanager-network_metadata.json b/sdk/network/azure-resourcemanager-network/src/main/resources/META-INF/azure-resourcemanager-network_metadata.json new file mode 100644 index 000000000000..799e75ac4171 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/main/resources/META-INF/azure-resourcemanager-network_metadata.json @@ -0,0 +1 @@ +{"flavor":"azure","apiVersions":{"Microsoft.Network":"2025-05-01","Microsoft.Compute":"2018-10-01"},"generatedFiles":["src/main/java/com/azure/resourcemanager/network/fluent/AdminRuleCollectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AdminRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayPrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewayWafDynamicManifestsDefaultsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ApplicationSecurityGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AvailableDelegationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AvailableEndpointServicesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AvailablePrivateEndpointTypesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AvailableResourceGroupDelegationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AvailableServiceAliasesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallFqdnTagsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/AzureFirewallsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/BastionHostsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/BgpServiceCommunitiesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ConfigurationPolicyGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ConnectivityConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/CustomIpPrefixesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/DdosCustomPoliciesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/DdosProtectionPlansClient.java","src/main/java/com/azure/resourcemanager/network/fluent/DefaultSecurityRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/DscpConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitAuthorizationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteLinksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortAuthorizationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRoutePortsLocationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteProviderPortsLocationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteServiceProvidersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPoliciesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesFilterValuesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyIdpsSignaturesOverridesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/FlowLogsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/HubRouteTablesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/HubVirtualNetworkConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/InboundNatRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/InboundSecurityRuleOperationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/IpAllocationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/IpGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/IpamPoolsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerBackendAddressPoolsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerFrontendIpConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerLoadBalancingRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerNetworkInterfacesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerOutboundRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancerProbesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ManagementGroupNetworkManagerConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NatGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NatRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceIpConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceLoadBalancersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfaceTapConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerCommitsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerDeploymentStatusOperationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagerRoutingConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkProfilesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAccessRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociableResourceTypesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterAssociationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinkReferencesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLinksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterLoggingConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterProfilesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimeterServiceTagsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkSecurityPerimetersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualApplianceConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/NetworkWatchersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/P2SVpnGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PacketCapturesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PeerExpressRouteCircuitConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PrivateDnsZoneGroupsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PrivateEndpointsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PrivateLinkServicesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PublicIpAddressesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/PublicIpPrefixesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisIntentsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ReachabilityAnalysisRunsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ResourceNavigationLinksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RouteFilterRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RouteFiltersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RouteMapsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RouteTablesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RoutesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RoutingIntentsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RoutingRuleCollectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/RoutingRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ScopeConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityAdminConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityPartnerProvidersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRuleCollectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SecurityUserRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceAssociationLinksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPoliciesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceEndpointPolicyDefinitionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagInformationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/ServiceTagsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/StaticCidrsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/StaticMembersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SubnetsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/SubscriptionNetworkManagerConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VerifierWorkspacesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VipSwapsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSitesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualApplianceSkusClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubBgpConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubIpConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubRouteTableV2SClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualHubsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkAppliancesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewayNatRulesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkPeeringsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworkTapsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualNetworksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualRouterPeeringsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualRoutersClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VirtualWansClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnGatewaysClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnLinkConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsAssociatedWithVirtualWansClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnServerConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinkConnectionsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnSiteLinksClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/VpnSitesConfigurationsClient.java","src/main/java/com/azure/resourcemanager/network/fluent/WebApplicationFirewallPoliciesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/WebCategoriesClient.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveSecurityAdminRulesListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AdminPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificateInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAuthenticationCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableSslOptionsPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayAvailableWafRuleSetsResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendAddressPoolPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthOnDemandInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHealthServerInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayEntraJwtValidationConfigPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFrontendPortPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayLoadDistributionTargetPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPathRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkIpConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRedirectConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRequestRoutingRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRewriteRuleSetPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayRoutingRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificateInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslPredefinedPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewaySslProfilePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedClientCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayTrustedRootCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayUrlPathMapPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestPropertiesResult.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayWafDynamicManifestResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AuthorizationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AutoApprovedPrivateLinkServiceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableDelegationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AvailablePrivateEndpointTypeInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableServiceAliasInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallApplicationRuleCollectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallFqdnTagPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNatRuleCollectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallNetworkRuleCollectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPacketCaptureResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/AzureWebCategoryPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressInboundNatRulePortMappingsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionActiveSessionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionSessionStateInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BastionShareableLinkInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BgpConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BgpConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BgpPeerStatusListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/BgpServiceCommunityPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorParameters.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorResultProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionResetSharedKeyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityInformationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ContainerNetworkInterfaceConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ContainerNetworkInterfaceIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ContainerNetworkInterfacePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DdosDetectionRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultRuleSetPropertyFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DnsNameAvailabilityResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DscpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/DscpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveNetworkSecurityGroupListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/EffectiveRouteMapRouteListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/EndpointServiceResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitAuthorizationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitConnectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPeeringPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitStatsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsArpTableListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitsRoutesTableSummaryListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionPeeringProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverSingleTestDetailsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteFailoverTestDetailsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteGatewayProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteLinkPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortAuthorizationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRoutePortsLocationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteProviderPortProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteServiceProviderPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayResiliencyInformationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/GatewayRouteSetsInformationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/GenerateExpressRoutePortsLoaResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HopLinkProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubIpConfigurationPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubRouteTableInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubRouteTableProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatPoolPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRulePropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpAddressAvailabilityResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpAllocationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfileInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationProfilePropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpConfigurationPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpGroupPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpPrefixesListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/IpamPoolPrefixAllocationPool.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerHealthPerRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerVipSwapRequestFrontendIpConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/MigratedPoolsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NatGatewayPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkConfigurationDiagnosticResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkGroupProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceTapConfigurationPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerRoutingConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfileInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkProfilePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityPerimeterProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceSkuPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkWatcherPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspAccessRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspAccessRuleProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspAssociationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspAssociationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLinkReferenceProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspLoggingConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspProfileProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/NspServiceTagsResourceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/OperationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/OperationStatusResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnConnectionHealthInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/P2SVpnGatewayProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureParameters.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureQueryStatusResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PerimeterAssociableResourceProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PoolAssociationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PoolUsageInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZoneGroupPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointIpConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceVisibilityInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpAddressPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpPrefixPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/QueryResultsInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RadiusAuthServerListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisIntentInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ReachabilityAnalysisRunInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinkFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ResourceNavigationLinksListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTableInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTablePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RouteTargetAddressPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingIntentProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleCollectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/RoutingRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ScopeConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityAdminConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityGroupViewResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityPartnerProviderPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleCollectionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityUserRulePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinkPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceAssociationLinksListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceDelegationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyDefinitionPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceEndpointPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayAddressLocationResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServicePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceGatewayServiceRequestInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagInformationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/ServiceTagsListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SignatureOverridesFilterValuesResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SignaturesOverridesListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/StaticCidrInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/StaticMemberProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/SwapResourceListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/TopologyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VerificationIpFlowResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VerifierWorkspaceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualApplianceSiteProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubEffectiveRouteListInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Inner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualHubRouteTableV2Properties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkApplianceIpConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkAppliancePropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayIpConfigurationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayNatRuleProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkUsageInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualRouterInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualRouterPeeringInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualRouterPeeringProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualRouterPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualWanInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualWanProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualWanSecurityProvidersInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientConnectionHealthDetailListResultInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRevokedCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayNatRuleProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnGatewayProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnProfileResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationPolicyGroupProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationsResponseInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteProperties.java","src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyInner.java","src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/network/fluent/package-info.java","src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/IpamPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerRoutingConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAccessRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociableResourceTypesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterAssociationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinkReferencesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLinksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterLoggingConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimeterServiceTagsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityPerimetersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ReachabilityAnalysisRunsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RoutingRuleCollectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/RoutingRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRuleCollectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SecurityUserRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/StaticCidrsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VerifierWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkAppliancesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleCollectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AdminRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayAvailableSslPredefinedPolicies.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayPrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationGatewayWafDynamicManifestResultList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ApplicationSecurityGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AuthorizationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AutoApprovedPrivateLinkServicesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableDelegationsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AvailablePrivateEndpointTypesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AvailableServiceAliasesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallFqdnTagListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AzureFirewallListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/AzureWebCategoryListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/BastionActiveSessionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/BastionHostListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/BastionSessionDeleteResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/BastionShareableLinkListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/BgpServiceCommunityListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionMonitorListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectionSharedKeyResultList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ConnectivityConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/CustomIpPrefixListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/DdosProtectionPlanListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/DscpConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/EndpointServicesListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCircuitPeeringListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteCrossConnectionPeeringList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteLinkListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortAuthorizationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRoutePortsLocationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ExpressRouteServiceProviderListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/FirewallPolicyRuleCollectionGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/FlowLogListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayAddressLocationsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/GetServiceGatewayServicesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/InboundNatRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/IpAllocationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/IpGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/IpamPoolList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubRouteTablesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListHubVirtualNetworkConnectionsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListP2SVpnGatewaysResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListRouteMapsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListRoutingIntentResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubBgpConnectionResults.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubIpConfigurationResults.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubRouteTableV2sResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualHubsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualNetworkGatewayNatRulesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVirtualWANsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnConnectionsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewayNatRulesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnGatewaysResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationPolicyGroupsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnServerConfigurationsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinkConnectionsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSiteLinksResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ListVpnSitesResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerBackendAddressPoolListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerFrontendIPConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerLoadBalancingRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerOutboundRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LoadBalancerProbeListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/LocalNetworkGatewayListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NatGatewayListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceIPConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceLoadBalancerListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkInterfaceTapConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkManagerRoutingConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkProfileListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkSecurityPerimeterListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceConnectionList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSiteListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkVirtualApplianceSkuListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NetworkWatcherListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspAccessRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspAssociationsListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspLinkReferenceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspLoggingConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspProfileListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/NspServiceTagsListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PacketCaptureListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PeerExpressRouteCircuitConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PerimeterAssociableResourcesListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PoolAssociationList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateDnsZoneGroupListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateEndpointListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PrivateLinkServiceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPAddressListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/PublicIPPrefixListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisIntentListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ReachabilityAnalysisRunListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RouteFilterRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RouteListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RouteTableListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleCollectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/RoutingRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ScopeConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityAdminConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityPartnerProviderListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserConfigurationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleCollectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SecurityUserRuleListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyDefinitionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceEndpointPolicyListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceGatewayListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/ServiceTagInformationListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/StaticCidrList.java","src/main/java/com/azure/resourcemanager/network/implementation/models/StaticMemberListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/SubnetListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VerifierWorkspaceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkApplianceListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkDdosProtectionStatusResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayConnectionListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListConnectionsResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkGatewayListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkListUsageResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkPeeringListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualNetworkTapListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/VirtualRouterPeeringListResult.java","src/main/java/com/azure/resourcemanager/network/implementation/models/WebApplicationFirewallPolicyListResult.java","src/main/java/com/azure/resourcemanager/network/models/AadAuthenticationParameters.java","src/main/java/com/azure/resourcemanager/network/models/Access.java","src/main/java/com/azure/resourcemanager/network/models/AccessMode.java","src/main/java/com/azure/resourcemanager/network/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/network/models/Action.java","src/main/java/com/azure/resourcemanager/network/models/ActionType.java","src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java","src/main/java/com/azure/resourcemanager/network/models/ActiveConnectivityConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/AddressPrefixItem.java","src/main/java/com/azure/resourcemanager/network/models/AddressPrefixType.java","src/main/java/com/azure/resourcemanager/network/models/AddressSpace.java","src/main/java/com/azure/resourcemanager/network/models/AddressSpaceAggregationOption.java","src/main/java/com/azure/resourcemanager/network/models/AddressUpdateAction.java","src/main/java/com/azure/resourcemanager/network/models/AdminRule.java","src/main/java/com/azure/resourcemanager/network/models/AdminRuleKind.java","src/main/java/com/azure/resourcemanager/network/models/AdminState.java","src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixProperties.java","src/main/java/com/azure/resourcemanager/network/models/AdvertisedPublicPrefixPropertiesValidationState.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayAutoscaleConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddress.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendAddressPool.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthHttpSettings.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthPool.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHealthServerHealth.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendHttpSettings.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientAuthVerificationModes.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayClientRevocationOptions.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayConnectionDraining.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCookieBasedAffinity.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomError.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayCustomErrorStatusCode.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayEntraJwtValidationConfig.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallDisabledRuleGroup.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallMode.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRateLimitDuration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRule.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleGroup.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleSet.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallUserSessionVariable.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayForContainersReferenceDefinition.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFrontendPort.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayGlobalConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionAlgorithm.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionPolicy.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayLoadDistributionTarget.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOperationalState.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProbeHealthResponseMatch.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayProtocol.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRedirectType.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRequestRoutingRuleType.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleActionSet.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleSet.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRoutingRule.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRuleSetStatusOptions.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySku.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuName.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslCipherSuite.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicy.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyName.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslPolicyType.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProfile.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySslProtocol.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTier.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTierTypes.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedClientCertificate.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayTrustedRootCertificate.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUnAuthorizedRequestAction.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleActionTypes.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleSensitivityTypes.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWafRuleStateTypes.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java","src/main/java/com/azure/resourcemanager/network/models/AssociationAccessMode.java","src/main/java/com/azure/resourcemanager/network/models/AssociationType.java","src/main/java/com/azure/resourcemanager/network/models/AuthenticationMethod.java","src/main/java/com/azure/resourcemanager/network/models/AuthorizationUseStatus.java","src/main/java/com/azure/resourcemanager/network/models/AutoLearnPrivateRangesMode.java","src/main/java/com/azure/resourcemanager/network/models/Availability.java","src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCity.java","src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListCountry.java","src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListParameters.java","src/main/java/com/azure/resourcemanager/network/models/AvailableProvidersListState.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRule.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallApplicationRuleProtocolType.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallAutoscaleConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallIpGroups.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRCAction.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRCActionType.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRule.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNatRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRule.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallNetworkRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlags.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureFlagsType.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureOperationType.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureResponseCode.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPacketCaptureRule.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallPublicIpAddress.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCAction.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallRCActionType.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSku.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuName.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallSkuTier.java","src/main/java/com/azure/resourcemanager/network/models/AzureFirewallThreatIntelMode.java","src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportItem.java","src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLatencyInfo.java","src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportLocation.java","src/main/java/com/azure/resourcemanager/network/models/AzureReachabilityReportParameters.java","src/main/java/com/azure/resourcemanager/network/models/BastionConnectProtocol.java","src/main/java/com/azure/resourcemanager/network/models/BastionHostIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/BastionHostPropertiesFormatNetworkAcls.java","src/main/java/com/azure/resourcemanager/network/models/BastionHostSkuName.java","src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkListRequest.java","src/main/java/com/azure/resourcemanager/network/models/BastionShareableLinkTokenListRequest.java","src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java","src/main/java/com/azure/resourcemanager/network/models/BgpPeerState.java","src/main/java/com/azure/resourcemanager/network/models/BgpPeerStatus.java","src/main/java/com/azure/resourcemanager/network/models/BgpSettings.java","src/main/java/com/azure/resourcemanager/network/models/BreakOutCategoryPolicies.java","src/main/java/com/azure/resourcemanager/network/models/CertificateAuthentication.java","src/main/java/com/azure/resourcemanager/network/models/CheckPrivateLinkServiceVisibilityRequest.java","src/main/java/com/azure/resourcemanager/network/models/ChildResource.java","src/main/java/com/azure/resourcemanager/network/models/CircuitConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/CircuitMetadataMap.java","src/main/java/com/azure/resourcemanager/network/models/CommissionedState.java","src/main/java/com/azure/resourcemanager/network/models/CommonProxyResource.java","src/main/java/com/azure/resourcemanager/network/models/CommonResource.java","src/main/java/com/azure/resourcemanager/network/models/CommonTrackedResource.java","src/main/java/com/azure/resourcemanager/network/models/ConfigurationGroup.java","src/main/java/com/azure/resourcemanager/network/models/ConfigurationType.java","src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupAddressOverlap.java","src/main/java/com/azure/resourcemanager/network/models/ConnectedGroupPrivateEndpointsScale.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionAuthenticationType.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorDestination.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilter.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItem.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterItemType.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointFilterType.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScope.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointScopeItem.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorHttpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorOutput.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfigurationProtocol.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorType.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorWorkspaceSettings.java","src/main/java/com/azure/resourcemanager/network/models/ConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationPropertiesConnectivityCapabilities.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityDestination.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityGroupItem.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityHop.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityIssue.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityParameters.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivitySource.java","src/main/java/com/azure/resourcemanager/network/models/ConnectivityTopology.java","src/main/java/com/azure/resourcemanager/network/models/Container.java","src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterface.java","src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ContainerNetworkInterfaceIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/CoverageLevel.java","src/main/java/com/azure/resourcemanager/network/models/CreatedByType.java","src/main/java/com/azure/resourcemanager/network/models/Criterion.java","src/main/java/com/azure/resourcemanager/network/models/CrossTenantScopes.java","src/main/java/com/azure/resourcemanager/network/models/CustomDnsConfigPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/models/CustomIpPrefixType.java","src/main/java/com/azure/resourcemanager/network/models/DdosDetectionMode.java","src/main/java/com/azure/resourcemanager/network/models/DdosDetectionRule.java","src/main/java/com/azure/resourcemanager/network/models/DdosSettings.java","src/main/java/com/azure/resourcemanager/network/models/DdosSettingsProtectionMode.java","src/main/java/com/azure/resourcemanager/network/models/DdosTrafficType.java","src/main/java/com/azure/resourcemanager/network/models/DefaultAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/Delegation.java","src/main/java/com/azure/resourcemanager/network/models/DelegationProperties.java","src/main/java/com/azure/resourcemanager/network/models/DeleteExistingPeering.java","src/main/java/com/azure/resourcemanager/network/models/DeleteOptions.java","src/main/java/com/azure/resourcemanager/network/models/DeploymentStatus.java","src/main/java/com/azure/resourcemanager/network/models/DestinationPortBehavior.java","src/main/java/com/azure/resourcemanager/network/models/DeviceProperties.java","src/main/java/com/azure/resourcemanager/network/models/DhGroup.java","src/main/java/com/azure/resourcemanager/network/models/DhcpOptions.java","src/main/java/com/azure/resourcemanager/network/models/Dimension.java","src/main/java/com/azure/resourcemanager/network/models/Direction.java","src/main/java/com/azure/resourcemanager/network/models/DisableBgpRoutePropagation.java","src/main/java/com/azure/resourcemanager/network/models/DisassociateCloudServicePublicIpRequest.java","src/main/java/com/azure/resourcemanager/network/models/DnsSettings.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveAdminRuleKind.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveConnectivityConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroup.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityGroupAssociation.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveRoute.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteMapRoute.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteSource.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveRouteState.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java","src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/EndpointType.java","src/main/java/com/azure/resourcemanager/network/models/Error.java","src/main/java/com/azure/resourcemanager/network/models/ErrorAdditionalInfo.java","src/main/java/com/azure/resourcemanager/network/models/ErrorDetail.java","src/main/java/com/azure/resourcemanager/network/models/ErrorException.java","src/main/java/com/azure/resourcemanager/network/models/EvaluatedNetworkSecurityGroup.java","src/main/java/com/azure/resourcemanager/network/models/ExceptionEntry.java","src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryMatchVariable.java","src/main/java/com/azure/resourcemanager/network/models/ExceptionEntrySelectorMatchOperator.java","src/main/java/com/azure/resourcemanager/network/models/ExceptionEntryValueMatchOperator.java","src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java","src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java","src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java","src/main/java/com/azure/resourcemanager/network/models/ExplicitProxy.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitArpTable.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringAdvertisedPublicPrefixState.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringConfig.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringId.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitPeeringState.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitReference.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTable.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTableSummary.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitServiceProviderProperties.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSku.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuFamily.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitSkuTier.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteConnectionId.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverCircuitResourceDetails.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverConnectionResourceDetails.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverRedundantRoute.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteFailoverStopApiParameters.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkAdminState.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkConnectorType.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecCipher.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecConfig.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteLinkMacSecSciState.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringState.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePeeringType.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortAuthorizationUseStatus.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsBillingType.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsEncapsulation.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRoutePortsLocationBandwidths.java","src/main/java/com/azure/resourcemanager/network/models/ExpressRouteServiceProviderBandwidthsOffered.java","src/main/java/com/azure/resourcemanager/network/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/network/models/ExtendedLocationTypes.java","src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionDetails.java","src/main/java/com/azure/resourcemanager/network/models/FailoverConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatus.java","src/main/java/com/azure/resourcemanager/network/models/FailoverTestStatusForSingleTest.java","src/main/java/com/azure/resourcemanager/network/models/FailoverTestType.java","src/main/java/com/azure/resourcemanager/network/models/FilterItems.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPacketCaptureParameters.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyCertificateAuthority.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollectionAction.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollectionActionType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyHttpHeaderToInsert.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsQuerySortOrder.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureDirection.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureMode.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIdpsSignatureSeverity.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyInsights.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProfileType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionProtocol.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionSignatureSpecification.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionStateType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsResources.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyLogAnalyticsWorkspace.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionAction.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyNatRuleCollectionActionType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocol.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleApplicationProtocolType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollectionType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleNetworkProtocol.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleType.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySku.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySkuTier.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySnat.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyThreatIntelWhitelist.java","src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyTransportSecurity.java","src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatParameters.java","src/main/java/com/azure/resourcemanager/network/models/FlowLogFormatType.java","src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java","src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterface.java","src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelInterfaceType.java","src/main/java/com/azure/resourcemanager/network/models/GatewayLoadBalancerTunnelProtocol.java","src/main/java/com/azure/resourcemanager/network/models/GatewayResiliencyRecommendation.java","src/main/java/com/azure/resourcemanager/network/models/GatewayRoute.java","src/main/java/com/azure/resourcemanager/network/models/GatewayRouteSet.java","src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java","src/main/java/com/azure/resourcemanager/network/models/Geo.java","src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java","src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java","src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java","src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java","src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java","src/main/java/com/azure/resourcemanager/network/models/GroupConnectivity.java","src/main/java/com/azure/resourcemanager/network/models/GroupMemberType.java","src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java","src/main/java/com/azure/resourcemanager/network/models/HopLink.java","src/main/java/com/azure/resourcemanager/network/models/HttpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/HttpConfigurationMethod.java","src/main/java/com/azure/resourcemanager/network/models/HttpHeader.java","src/main/java/com/azure/resourcemanager/network/models/HttpMethod.java","src/main/java/com/azure/resourcemanager/network/models/Hub.java","src/main/java/com/azure/resourcemanager/network/models/HubBgpConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/HubIpAddresses.java","src/main/java/com/azure/resourcemanager/network/models/HubPublicIpAddresses.java","src/main/java/com/azure/resourcemanager/network/models/HubRoute.java","src/main/java/com/azure/resourcemanager/network/models/HubRoutingPreference.java","src/main/java/com/azure/resourcemanager/network/models/IdpsQueryObject.java","src/main/java/com/azure/resourcemanager/network/models/IkeEncryption.java","src/main/java/com/azure/resourcemanager/network/models/IkeIntegrity.java","src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java","src/main/java/com/azure/resourcemanager/network/models/InboundNatRulePortMapping.java","src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRuleType.java","src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java","src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRulesProtocol.java","src/main/java/com/azure/resourcemanager/network/models/IntentContent.java","src/main/java/com/azure/resourcemanager/network/models/InternetIngressPublicIpsProperties.java","src/main/java/com/azure/resourcemanager/network/models/IpAllocationMethod.java","src/main/java/com/azure/resourcemanager/network/models/IpAllocationType.java","src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java","src/main/java/com/azure/resourcemanager/network/models/IpFlowProtocol.java","src/main/java/com/azure/resourcemanager/network/models/IpRule.java","src/main/java/com/azure/resourcemanager/network/models/IpTag.java","src/main/java/com/azure/resourcemanager/network/models/IpTraffic.java","src/main/java/com/azure/resourcemanager/network/models/IpType.java","src/main/java/com/azure/resourcemanager/network/models/IpVersion.java","src/main/java/com/azure/resourcemanager/network/models/IpamPoolPrefixAllocation.java","src/main/java/com/azure/resourcemanager/network/models/IpamPoolProperties.java","src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdate.java","src/main/java/com/azure/resourcemanager/network/models/IpamPoolUpdateProperties.java","src/main/java/com/azure/resourcemanager/network/models/IpsecEncryption.java","src/main/java/com/azure/resourcemanager/network/models/IpsecIntegrity.java","src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java","src/main/java/com/azure/resourcemanager/network/models/Ipv6CircuitConnectionConfig.java","src/main/java/com/azure/resourcemanager/network/models/Ipv6ExpressRouteCircuitPeeringConfig.java","src/main/java/com/azure/resourcemanager/network/models/IsGlobal.java","src/main/java/com/azure/resourcemanager/network/models/IsRollback.java","src/main/java/com/azure/resourcemanager/network/models/IsWorkloadProtected.java","src/main/java/com/azure/resourcemanager/network/models/IssueType.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddress.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerBackendAddressAdminState.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerHealthPerRulePerBackendAddress.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerOutboundRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerScope.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSku.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuName.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerSkuTier.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequest.java","src/main/java/com/azure/resourcemanager/network/models/LoadBalancerVipSwapRequestFrontendIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/LoadDistribution.java","src/main/java/com/azure/resourcemanager/network/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRuleEnabledState.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSetRuleGroup.java","src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java","src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentityUserAssignedIdentities.java","src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java","src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java","src/main/java/com/azure/resourcemanager/network/models/MatchedRule.java","src/main/java/com/azure/resourcemanager/network/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/network/models/MigrateLoadBalancerToIpBasedRequest.java","src/main/java/com/azure/resourcemanager/network/models/NatGatewaySku.java","src/main/java/com/azure/resourcemanager/network/models/NatGatewaySkuName.java","src/main/java/com/azure/resourcemanager/network/models/NatRule.java","src/main/java/com/azure/resourcemanager/network/models/NatRulePortMapping.java","src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticParameters.java","src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticProfile.java","src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticResult.java","src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateHeaders.java","src/main/java/com/azure/resourcemanager/network/models/NetworkGroupsCreateOrUpdateResponse.java","src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicy.java","src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyBasedService.java","src/main/java/com/azure/resourcemanager/network/models/NetworkIntentPolicyConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAssociation.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliaryMode.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceAuxiliarySku.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceIpConfigurationPrivateLinkConnectionProperties.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceMigrationPhase.java","src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceNicType.java","src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatus.java","src/main/java/com/azure/resourcemanager/network/models/NetworkManagerDeploymentStatusParameter.java","src/main/java/com/azure/resourcemanager/network/models/NetworkManagerPropertiesNetworkManagerScopes.java","src/main/java/com/azure/resourcemanager/network/models/NetworkManagerRoutingGroupItem.java","src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java","src/main/java/com/azure/resourcemanager/network/models/NetworkProtocol.java","src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java","src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityGroupResult.java","src/main/java/com/azure/resourcemanager/network/models/NetworkSecurityRulesEvaluationResult.java","src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceBootDiagnosticParameters.java","src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java","src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualApplianceSkuInstances.java","src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java","src/main/java/com/azure/resourcemanager/network/models/NextHopType.java","src/main/java/com/azure/resourcemanager/network/models/NextStep.java","src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java","src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java","src/main/java/com/azure/resourcemanager/network/models/NspLinkProvisioningState.java","src/main/java/com/azure/resourcemanager/network/models/NspLinkStatus.java","src/main/java/com/azure/resourcemanager/network/models/NspProvisioningState.java","src/main/java/com/azure/resourcemanager/network/models/NvaInVnetSubnetReferenceProperties.java","src/main/java/com/azure/resourcemanager/network/models/NvaInterfaceConfigurationsProperties.java","src/main/java/com/azure/resourcemanager/network/models/NvaNicType.java","src/main/java/com/azure/resourcemanager/network/models/O365BreakOutCategoryPolicies.java","src/main/java/com/azure/resourcemanager/network/models/O365PolicyProperties.java","src/main/java/com/azure/resourcemanager/network/models/Office365PolicyProperties.java","src/main/java/com/azure/resourcemanager/network/models/OfficeTrafficCategory.java","src/main/java/com/azure/resourcemanager/network/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/network/models/OperationPropertiesFormatServiceSpecification.java","src/main/java/com/azure/resourcemanager/network/models/OrderBy.java","src/main/java/com/azure/resourcemanager/network/models/Origin.java","src/main/java/com/azure/resourcemanager/network/models/OutputType.java","src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java","src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntryMatchVariable.java","src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntrySelectorMatchOperator.java","src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionHealthRequest.java","src/main/java/com/azure/resourcemanager/network/models/P2SVpnConnectionRequest.java","src/main/java/com/azure/resourcemanager/network/models/P2SVpnProfileParameters.java","src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java","src/main/java/com/azure/resourcemanager/network/models/PacketCaptureMachineScope.java","src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java","src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java","src/main/java/com/azure/resourcemanager/network/models/PacketCaptureTargetType.java","src/main/java/com/azure/resourcemanager/network/models/Parameter.java","src/main/java/com/azure/resourcemanager/network/models/PartnerManagedResourceProperties.java","src/main/java/com/azure/resourcemanager/network/models/PatchObject.java","src/main/java/com/azure/resourcemanager/network/models/PcError.java","src/main/java/com/azure/resourcemanager/network/models/PcProtocol.java","src/main/java/com/azure/resourcemanager/network/models/PcStatus.java","src/main/java/com/azure/resourcemanager/network/models/PeerRoute.java","src/main/java/com/azure/resourcemanager/network/models/PeeringEnforcement.java","src/main/java/com/azure/resourcemanager/network/models/PerimeterBasedAccessRule.java","src/main/java/com/azure/resourcemanager/network/models/PfsGroup.java","src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java","src/main/java/com/azure/resourcemanager/network/models/PolicySettingsLogScrubbing.java","src/main/java/com/azure/resourcemanager/network/models/PreferredIpVersion.java","src/main/java/com/azure/resourcemanager/network/models/PreferredRoutingGateway.java","src/main/java/com/azure/resourcemanager/network/models/PrepareNetworkPoliciesRequest.java","src/main/java/com/azure/resourcemanager/network/models/PrivateDnsZoneConfig.java","src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointIpVersionType.java","src/main/java/com/azure/resourcemanager/network/models/PrivateEndpointVNetPolicies.java","src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java","src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesAutoApproval.java","src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServicePropertiesVisibility.java","src/main/java/com/azure/resourcemanager/network/models/ProbeNoHealthyBackendsBehavior.java","src/main/java/com/azure/resourcemanager/network/models/ProbeProtocol.java","src/main/java/com/azure/resourcemanager/network/models/ProcessorArchitecture.java","src/main/java/com/azure/resourcemanager/network/models/PropagatedRouteTable.java","src/main/java/com/azure/resourcemanager/network/models/Protocol.java","src/main/java/com/azure/resourcemanager/network/models/ProtocolConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/network/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithReadOnlyID.java","src/main/java/com/azure/resourcemanager/network/models/ProxyResourceWithSettableId.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettingsDomainNameLabelScope.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressMigrationPhase.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSku.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuName.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressSkuTier.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSku.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuName.java","src/main/java/com/azure/resourcemanager/network/models/PublicIpPrefixSkuTier.java","src/main/java/com/azure/resourcemanager/network/models/QosDefinition.java","src/main/java/com/azure/resourcemanager/network/models/QosIpRange.java","src/main/java/com/azure/resourcemanager/network/models/QosPortRange.java","src/main/java/com/azure/resourcemanager/network/models/QueryInboundNatRulePortMappingRequest.java","src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java","src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java","src/main/java/com/azure/resourcemanager/network/models/RadiusAuthServer.java","src/main/java/com/azure/resourcemanager/network/models/RadiusServer.java","src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisIntentProperties.java","src/main/java/com/azure/resourcemanager/network/models/ReachabilityAnalysisRunProperties.java","src/main/java/com/azure/resourcemanager/network/models/ReadOnlySubResourceModel.java","src/main/java/com/azure/resourcemanager/network/models/RecordSet.java","src/main/java/com/azure/resourcemanager/network/models/ReferencedPublicIpAddress.java","src/main/java/com/azure/resourcemanager/network/models/ReserveCloudServicePublicIpAddressRequest.java","src/main/java/com/azure/resourcemanager/network/models/ResiliencyModel.java","src/main/java/com/azure/resourcemanager/network/models/ResiliencyRecommendationComponents.java","src/main/java/com/azure/resourcemanager/network/models/ResourceBasics.java","src/main/java/com/azure/resourcemanager/network/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/network/models/ResourceNavigationLink.java","src/main/java/com/azure/resourcemanager/network/models/ResourceSet.java","src/main/java/com/azure/resourcemanager/network/models/RetentionPolicyParameters.java","src/main/java/com/azure/resourcemanager/network/models/RouteFilterRuleType.java","src/main/java/com/azure/resourcemanager/network/models/RouteMapActionType.java","src/main/java/com/azure/resourcemanager/network/models/RouteMapMatchCondition.java","src/main/java/com/azure/resourcemanager/network/models/RouteMapRule.java","src/main/java/com/azure/resourcemanager/network/models/RouteNextHopType.java","src/main/java/com/azure/resourcemanager/network/models/RouteSourceDetails.java","src/main/java/com/azure/resourcemanager/network/models/RouteTableUsageMode.java","src/main/java/com/azure/resourcemanager/network/models/RoutingConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java","src/main/java/com/azure/resourcemanager/network/models/RoutingRuleDestinationType.java","src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHop.java","src/main/java/com/azure/resourcemanager/network/models/RoutingRuleNextHopType.java","src/main/java/com/azure/resourcemanager/network/models/RoutingRuleRouteDestination.java","src/main/java/com/azure/resourcemanager/network/models/RoutingState.java","src/main/java/com/azure/resourcemanager/network/models/ScopeConnectionState.java","src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchOperator.java","src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryMatchVariable.java","src/main/java/com/azure/resourcemanager/network/models/ScrubbingRuleEntryState.java","src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleAccess.java","src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleDirection.java","src/main/java/com/azure/resourcemanager/network/models/SecurityConfigurationRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/SecurityGroupNetworkInterface.java","src/main/java/com/azure/resourcemanager/network/models/SecurityGroupViewParameters.java","src/main/java/com/azure/resourcemanager/network/models/SecurityPartnerProviderConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterProxyResource.java","src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterResource.java","src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterSystemData.java","src/main/java/com/azure/resourcemanager/network/models/SecurityPerimeterTrackedResource.java","src/main/java/com/azure/resourcemanager/network/models/SecurityProviderName.java","src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAccess.java","src/main/java/com/azure/resourcemanager/network/models/SecurityRuleAssociations.java","src/main/java/com/azure/resourcemanager/network/models/SecurityRuleDirection.java","src/main/java/com/azure/resourcemanager/network/models/SecurityRuleProtocol.java","src/main/java/com/azure/resourcemanager/network/models/SecurityUserGroupItem.java","src/main/java/com/azure/resourcemanager/network/models/SensitivityType.java","src/main/java/com/azure/resourcemanager/network/models/ServiceAssociationLink.java","src/main/java/com/azure/resourcemanager/network/models/ServiceEndpointPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddress.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayAddressLocation.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySku.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuName.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewaySkuTier.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateAddressLocationsRequest.java","src/main/java/com/azure/resourcemanager/network/models/ServiceGatewayUpdateServicesRequest.java","src/main/java/com/azure/resourcemanager/network/models/ServiceProviderProvisioningState.java","src/main/java/com/azure/resourcemanager/network/models/ServiceTagInformationPropertiesFormat.java","src/main/java/com/azure/resourcemanager/network/models/ServiceType.java","src/main/java/com/azure/resourcemanager/network/models/ServiceUpdateAction.java","src/main/java/com/azure/resourcemanager/network/models/SessionIds.java","src/main/java/com/azure/resourcemanager/network/models/Severity.java","src/main/java/com/azure/resourcemanager/network/models/SharedKeyProperties.java","src/main/java/com/azure/resourcemanager/network/models/SharingScope.java","src/main/java/com/azure/resourcemanager/network/models/SignatureOverridesFilterValuesQuery.java","src/main/java/com/azure/resourcemanager/network/models/SignaturesOverridesProperties.java","src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java","src/main/java/com/azure/resourcemanager/network/models/Sku.java","src/main/java/com/azure/resourcemanager/network/models/SlotType.java","src/main/java/com/azure/resourcemanager/network/models/StaticCidrProperties.java","src/main/java/com/azure/resourcemanager/network/models/StaticRoute.java","src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java","src/main/java/com/azure/resourcemanager/network/models/SubResourceModel.java","src/main/java/com/azure/resourcemanager/network/models/SubnetAssociation.java","src/main/java/com/azure/resourcemanager/network/models/SubscriptionId.java","src/main/java/com/azure/resourcemanager/network/models/SwapResourceProperties.java","src/main/java/com/azure/resourcemanager/network/models/SyncMode.java","src/main/java/com/azure/resourcemanager/network/models/SyncRemoteAddressSpace.java","src/main/java/com/azure/resourcemanager/network/models/TagsObject.java","src/main/java/com/azure/resourcemanager/network/models/TopologyAssociation.java","src/main/java/com/azure/resourcemanager/network/models/TopologyParameters.java","src/main/java/com/azure/resourcemanager/network/models/TopologyResource.java","src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithEtag.java","src/main/java/com/azure/resourcemanager/network/models/TrackedResourceWithSettableName.java","src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/models/TrafficAnalyticsProperties.java","src/main/java/com/azure/resourcemanager/network/models/TrafficDetectionRule.java","src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java","src/main/java/com/azure/resourcemanager/network/models/TransportProtocol.java","src/main/java/com/azure/resourcemanager/network/models/TroubleshootingDetails.java","src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java","src/main/java/com/azure/resourcemanager/network/models/TroubleshootingRecommendedActions.java","src/main/java/com/azure/resourcemanager/network/models/TunnelConnectionHealth.java","src/main/java/com/azure/resourcemanager/network/models/UnprepareNetworkPoliciesRequest.java","src/main/java/com/azure/resourcemanager/network/models/UpdateAction.java","src/main/java/com/azure/resourcemanager/network/models/UpdateTagsRequest.java","src/main/java/com/azure/resourcemanager/network/models/UsageName.java","src/main/java/com/azure/resourcemanager/network/models/UsageUnit.java","src/main/java/com/azure/resourcemanager/network/models/UseHubGateway.java","src/main/java/com/azure/resourcemanager/network/models/VM.java","src/main/java/com/azure/resourcemanager/network/models/VerbosityLevel.java","src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java","src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceProperties.java","src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdate.java","src/main/java/com/azure/resourcemanager/network/models/VerifierWorkspaceUpdateProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceAdditionalNicProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceSkuProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualHubEffectiveRoute.java","src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java","src/main/java/com/azure/resourcemanager/network/models/VirtualHubRoute.java","src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteTable.java","src/main/java/com/azure/resourcemanager/network/models/VirtualHubRouteV2.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkApplianceIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryption.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkEncryptionEnforcement.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleBounds.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayAutoScaleConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionMode.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionProtocol.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionTunnelProperties.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayConnectionType.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationParameters.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationPhase.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationState.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationStatus.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayMigrationType.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroup.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayPolicyGroupMember.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySku.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuName.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewaySkuTier.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkGatewayType.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringLevel.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPeeringState.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateEndpointNetworkPolicies.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkPrivateLinkServiceNetworkPolicies.java","src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkUsageName.java","src/main/java/com/azure/resourcemanager/network/models/VirtualRouterAutoScaleConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VirtualWanSecurityProvider.java","src/main/java/com/azure/resourcemanager/network/models/VirtualWanSecurityProviderType.java","src/main/java/com/azure/resourcemanager/network/models/VirtualWanVpnProfileParameters.java","src/main/java/com/azure/resourcemanager/network/models/VnetLocalRouteOverrideCriteria.java","src/main/java/com/azure/resourcemanager/network/models/VnetRoute.java","src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VpnAuthenticationType.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealthDetail.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientProtocol.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientRevokedCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStartParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnConnectionPacketCaptureStopParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnConnectionStatus.java","src/main/java/com/azure/resourcemanager/network/models/VpnDeviceScriptParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnGatewayGeneration.java","src/main/java/com/azure/resourcemanager/network/models/VpnGatewayIpConfiguration.java","src/main/java/com/azure/resourcemanager/network/models/VpnGatewayPacketCaptureStartParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnGatewayPacketCaptureStopParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnGatewayTunnelingProtocol.java","src/main/java/com/azure/resourcemanager/network/models/VpnLinkBgpSettings.java","src/main/java/com/azure/resourcemanager/network/models/VpnLinkConnectionMode.java","src/main/java/com/azure/resourcemanager/network/models/VpnLinkProviderProperties.java","src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMapping.java","src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleMode.java","src/main/java/com/azure/resourcemanager/network/models/VpnNatRuleType.java","src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStartParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnPacketCaptureStopParameters.java","src/main/java/com/azure/resourcemanager/network/models/VpnPolicyMemberAttributeType.java","src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusClientRootCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigRadiusServerRootCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRevokedCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigVpnClientRootCertificate.java","src/main/java/com/azure/resourcemanager/network/models/VpnServerConfigurationPolicyGroupMember.java","src/main/java/com/azure/resourcemanager/network/models/VpnType.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallAction.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallEnabledState.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMatchVariable.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallMode.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallOperator.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallPolicyResourceState.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallRuleType.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingState.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallState.java","src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallTransform.java","src/main/java/com/azure/resourcemanager/network/models/WritableResource.java","src/main/java/com/azure/resourcemanager/network/models/package-info.java","src/main/java/com/azure/resourcemanager/network/package-info.java"]} \ No newline at end of file diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..455eb908b3cb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.AdminRuleCollectionInner; +import com.azure.resourcemanager.network.models.NetworkManagerSecurityGroupItem; +import java.util.Arrays; + +/** + * Samples for AdminRuleCollections CreateOrUpdate. + */ +public final class AdminRuleCollectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleCollectionPut.json + */ + /** + * Sample code: Create or Update an admin rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateAnAdminRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRuleCollections() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + new AdminRuleCollectionInner().withDescription("A sample policy") + .withAppliesToGroups(Arrays.asList(new NetworkManagerSecurityGroupItem().withNetworkGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java new file mode 100644 index 000000000000..cad9e362940e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRuleCollections Delete. + */ +public final class AdminRuleCollectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleCollectionDelete.json + */ + /** + * Sample code: Deletes an admin rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesAnAdminRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRuleCollections() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java new file mode 100644 index 000000000000..44bbd2152380 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRuleCollections Get. + */ +public final class AdminRuleCollectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleCollectionGet.json + */ + /** + * Sample code: Gets security admin rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsSecurityAdminRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRuleCollections() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java new file mode 100644 index 000000000000..c07e64ac40b1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRuleCollections List. + */ +public final class AdminRuleCollectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleCollectionList.json + */ + /** + * Sample code: List security admin rule collections. + * + * @param manager Entry point to NetworkManager. + */ + public static void listSecurityAdminRuleCollections(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRuleCollections() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7306ef5c5e49 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AddressPrefixItem; +import com.azure.resourcemanager.network.models.AddressPrefixType; +import com.azure.resourcemanager.network.models.AdminRule; +import com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess; +import com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection; +import com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol; +import java.util.Arrays; + +/** + * Samples for AdminRules CreateOrUpdate. + */ +public final class AdminRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRulePut_NetworkGroupSource.json + */ + /** + * Sample code: Create a admin rule with network group as source or destination. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAAdminRuleWithNetworkGroupAsSourceOrDestination( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleAdminRule", + new AdminRule().withDescription("This is Sample Admin Rule") + .withProtocol(SecurityConfigurationRuleProtocol.TCP) + .withSources(Arrays.asList(new AddressPrefixItem().withAddressPrefix("Internet") + .withAddressPrefixType(AddressPrefixType.SERVICE_TAG))) + .withDestinations(Arrays.asList(new AddressPrefixItem().withAddressPrefix( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/ng1") + .withAddressPrefixType(AddressPrefixType.NETWORK_GROUP))) + .withSourcePortRanges(Arrays.asList("0-65535")) + .withDestinationPortRanges(Arrays.asList("22")) + .withAccess(SecurityConfigurationRuleAccess.DENY) + .withPriority(1) + .withDirection(SecurityConfigurationRuleDirection.INBOUND), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRulePut.json + */ + /** + * Sample code: Create an admin rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAnAdminRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleAdminRule", + new AdminRule().withDescription("This is Sample Admin Rule") + .withProtocol(SecurityConfigurationRuleProtocol.TCP) + .withSources(Arrays.asList(new AddressPrefixItem().withAddressPrefix("Internet") + .withAddressPrefixType(AddressPrefixType.SERVICE_TAG))) + .withDestinations(Arrays.asList(new AddressPrefixItem().withAddressPrefix("*") + .withAddressPrefixType(AddressPrefixType.IPPREFIX))) + .withSourcePortRanges(Arrays.asList("0-65535")) + .withDestinationPortRanges(Arrays.asList("22")) + .withAccess(SecurityConfigurationRuleAccess.DENY) + .withPriority(1) + .withDirection(SecurityConfigurationRuleDirection.INBOUND), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java new file mode 100644 index 000000000000..43aa9d531300 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRules Delete. + */ +public final class AdminRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleDelete.json + */ + /** + * Sample code: Deletes an admin rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesAnAdminRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", "SampleAdminRule", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java new file mode 100644 index 000000000000..a4850f003004 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRules Get. + */ +public final class AdminRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerDefaultAdminRuleGet.json + */ + /** + * Sample code: Gets security default admin rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsSecurityDefaultAdminRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleDefaultAdminRule", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleGet.json + */ + /** + * Sample code: Gets security admin rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsSecurityAdminRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleAdminRule", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java new file mode 100644 index 000000000000..5292e685f1ae --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AdminRules List. + */ +public final class AdminRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerAdminRuleList.json + */ + /** + * Sample code: List security admin rules. + * + * @param manager Entry point to NetworkManager. + */ + public static void listSecurityAdminRules(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAdminRules() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java new file mode 100644 index 000000000000..d75f80936437 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayPrivateEndpointConnections Delete. + */ +public final class ApplicationGatewayPrivateEndpointConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayPrivateEndpointConnectionDelete.json + */ + /** + * Sample code: Delete Application Gateway Private Endpoint Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .delete("rg1", "appgw", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java new file mode 100644 index 000000000000..0a3b2ec6349d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayPrivateEndpointConnections Get. + */ +public final class ApplicationGatewayPrivateEndpointConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayPrivateEndpointConnectionGet.json + */ + /** + * Sample code: Get Application Gateway Private Endpoint Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .getWithResponse("rg1", "appgw", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java new file mode 100644 index 000000000000..e4cb7d76f692 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayPrivateEndpointConnections List. + */ +public final class ApplicationGatewayPrivateEndpointConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayPrivateEndpointConnectionList.json + */ + /** + * Sample code: Lists all private endpoint connections on application gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void listsAllPrivateEndpointConnectionsOnApplicationGateway( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .list("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java new file mode 100644 index 000000000000..9345ca2eed58 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPrivateEndpointConnectionInner; +import com.azure.resourcemanager.network.models.PrivateLinkServiceConnectionState; + +/** + * Samples for ApplicationGatewayPrivateEndpointConnections Update. + */ +public final class ApplicationGatewayPrivateEndpointConnectionsUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayPrivateEndpointConnectionUpdate.json + */ + /** + * Sample code: Update Application Gateway Private Endpoint Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + updateApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .update("rg1", "appgw", "connection1", + new ApplicationGatewayPrivateEndpointConnectionInner().withName("connection1") + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("approved it for some reason.")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java new file mode 100644 index 000000000000..fdeed078b3ed --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayPrivateLinkResources List. + */ +public final class ApplicationGatewayPrivateLinkResourcesListSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayPrivateLinkResourceList.json + */ + /** + * Sample code: Lists all private link resources on application gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listsAllPrivateLinkResourcesOnApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayPrivateLinkResources() + .list("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java new file mode 100644 index 000000000000..f64294e308f5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayWafDynamicManifestsDefault Get. + */ +public final class ApplicationGatewayWafDynamicManifestsDefaultGetSamples { + /* + * x-ms-original-file: 2025-05-01/GetApplicationGatewayWafDynamicManifestsDefault.json + */ + /** + * Sample code: Gets WAF default manifest. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsWAFDefaultManifest(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayWafDynamicManifestsDefaults() + .getWithResponse("westus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java new file mode 100644 index 000000000000..59c757c6e743 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGatewayWafDynamicManifests Get. + */ +public final class ApplicationGatewayWafDynamicManifestsGetSamples { + /* + * x-ms-original-file: 2025-05-01/GetApplicationGatewayWafDynamicManifests.json + */ + /** + * Sample code: Gets WAF manifests. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsWAFManifests(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGatewayWafDynamicManifests() + .get("westus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java new file mode 100644 index 000000000000..3315d0456d8e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.models.ApplicationGatewayOnDemandProbe; +import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; + +/** + * Samples for ApplicationGateways BackendHealthOnDemand. + */ +public final class ApplicationGatewaysBackendHealthOnDemandSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayBackendHealthTest.json + */ + /** + * Sample code: Test Backend Health. + * + * @param manager Entry point to NetworkManager. + */ + public static void testBackendHealth(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .backendHealthOnDemand("rg1", "appgw", new ApplicationGatewayOnDemandProbe() + .withProtocol(ApplicationGatewayProtocol.HTTP) + .withPath("/") + .withTimeout(30) + .withPickHostnameFromBackendHttpSettings(true) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool")) + .withBackendHttpSettings(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings")), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java new file mode 100644 index 000000000000..5d273d7d9e1c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways BackendHealth. + */ +public final class ApplicationGatewaysBackendHealthSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayBackendHealthGet.json + */ + /** + * Sample code: Get Backend Health. + * + * @param manager Entry point to NetworkManager. + */ + public static void getBackendHealth(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .backendHealth("appgw", "appgw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ab72a39924c9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayInner; +import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayRequestRoutingRuleInner; +import com.azure.resourcemanager.network.fluent.models.ApplicationGatewaySslCertificateInner; +import com.azure.resourcemanager.network.models.ApplicationGatewayBackendAddress; +import com.azure.resourcemanager.network.models.ApplicationGatewayBackendAddressPool; +import com.azure.resourcemanager.network.models.ApplicationGatewayBackendHttpSettings; +import com.azure.resourcemanager.network.models.ApplicationGatewayClientAuthConfiguration; +import com.azure.resourcemanager.network.models.ApplicationGatewayCookieBasedAffinity; +import com.azure.resourcemanager.network.models.ApplicationGatewayEntraJwtValidationConfig; +import com.azure.resourcemanager.network.models.ApplicationGatewayFrontendIpConfiguration; +import com.azure.resourcemanager.network.models.ApplicationGatewayFrontendPort; +import com.azure.resourcemanager.network.models.ApplicationGatewayGlobalConfiguration; +import com.azure.resourcemanager.network.models.ApplicationGatewayHeaderConfiguration; +import com.azure.resourcemanager.network.models.ApplicationGatewayHttpListener; +import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; +import com.azure.resourcemanager.network.models.ApplicationGatewayRequestRoutingRuleType; +import com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRule; +import com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRuleActionSet; +import com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRuleCondition; +import com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRuleSet; +import com.azure.resourcemanager.network.models.ApplicationGatewaySku; +import com.azure.resourcemanager.network.models.ApplicationGatewaySkuName; +import com.azure.resourcemanager.network.models.ApplicationGatewaySslCipherSuite; +import com.azure.resourcemanager.network.models.ApplicationGatewaySslPolicy; +import com.azure.resourcemanager.network.models.ApplicationGatewaySslPolicyType; +import com.azure.resourcemanager.network.models.ApplicationGatewaySslProfile; +import com.azure.resourcemanager.network.models.ApplicationGatewaySslProtocol; +import com.azure.resourcemanager.network.models.ApplicationGatewayTier; +import com.azure.resourcemanager.network.models.ApplicationGatewayTrustedClientCertificate; +import com.azure.resourcemanager.network.models.ApplicationGatewayTrustedRootCertificate; +import com.azure.resourcemanager.network.models.ApplicationGatewayUnAuthorizedRequestAction; +import com.azure.resourcemanager.network.models.ApplicationGatewayUrlConfiguration; +import com.azure.resourcemanager.network.models.ManagedServiceIdentity; +import com.azure.resourcemanager.network.models.ManagedServiceIdentityUserAssignedIdentities; +import com.azure.resourcemanager.network.models.ResourceIdentityType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ApplicationGateways CreateOrUpdate. + */ +public final class ApplicationGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayCreate.json + */ + /** + * Sample code: Create Application Gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .createOrUpdate("rg1", "appgw", new ApplicationGatewayInner().withLocation("eastus") + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withSku(new ApplicationGatewaySku().withName(ApplicationGatewaySkuName.STANDARD_V2) + .withTier(ApplicationGatewayTier.STANDARD_V2) + .withCapacity(3)) + .withGatewayIpConfigurations(Arrays.asList(new ApplicationGatewayIpConfigurationInner() + .withName("appgwipc") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/appgwsubnet")))) + .withTrustedRootCertificates( + Arrays.asList(new ApplicationGatewayTrustedRootCertificate().withName("rootcert").withData("****"), + new ApplicationGatewayTrustedRootCertificate().withName("rootcert1") + .withKeyVaultSecretId("fakeTokenPlaceholder"))) + .withTrustedClientCertificates(Arrays + .asList(new ApplicationGatewayTrustedClientCertificate().withName("clientcert").withData("****"))) + .withSslCertificates(Arrays.asList( + new ApplicationGatewaySslCertificateInner().withName("sslcert") + .withData("****") + .withPassword("fakeTokenPlaceholder"), + new ApplicationGatewaySslCertificateInner().withName("sslcert2") + .withKeyVaultSecretId("fakeTokenPlaceholder"))) + .withFrontendIpConfigurations(Arrays.asList(new ApplicationGatewayFrontendIpConfiguration() + .withName("appgwfip") + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/appgwpip")))) + .withFrontendPorts(Arrays.asList(new ApplicationGatewayFrontendPort().withName("appgwfp").withPort(443), + new ApplicationGatewayFrontendPort().withName("appgwfp80").withPort(80))) + .withBackendAddressPools( + Arrays.asList( + new ApplicationGatewayBackendAddressPool().withName("appgwpool") + .withBackendAddresses(Arrays.asList( + new ApplicationGatewayBackendAddress().withIpAddress("10.0.1.1"), + new ApplicationGatewayBackendAddress().withIpAddress("10.0.1.2"))), + new ApplicationGatewayBackendAddressPool().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool1") + .withName("appgwpool1") + .withBackendAddresses( + Arrays.asList(new ApplicationGatewayBackendAddress().withIpAddress("10.0.0.1"), + new ApplicationGatewayBackendAddress().withIpAddress("10.0.0.2"))))) + .withBackendHttpSettingsCollection( + Arrays.asList(new ApplicationGatewayBackendHttpSettings().withName("appgwbhs") + .withPort(80) + .withProtocol(ApplicationGatewayProtocol.HTTP) + .withCookieBasedAffinity(ApplicationGatewayCookieBasedAffinity.DISABLED) + .withRequestTimeout(30))) + .withHttpListeners(Arrays.asList(new ApplicationGatewayHttpListener().withName("appgwhl") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip")) + .withFrontendPort(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp")) + .withProtocol(ApplicationGatewayProtocol.HTTPS) + .withSslCertificate(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslCertificates/sslcert")) + .withSslProfile(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/sslProfiles/sslProfile1")) + .withRequireServerNameIndication(false), + new ApplicationGatewayHttpListener().withName("appgwhttplistener") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip")) + .withFrontendPort(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80")) + .withProtocol(ApplicationGatewayProtocol.HTTP))) + .withSslProfiles(Arrays.asList(new ApplicationGatewaySslProfile().withName("sslProfile1") + .withTrustedClientCertificates(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/trustedClientCertificates/clientcert"))) + .withSslPolicy( + new ApplicationGatewaySslPolicy().withPolicyType(ApplicationGatewaySslPolicyType.CUSTOM) + .withCipherSuites( + Arrays.asList(ApplicationGatewaySslCipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256)) + .withMinProtocolVersion(ApplicationGatewaySslProtocol.TLSV1_1)) + .withClientAuthConfiguration( + new ApplicationGatewayClientAuthConfiguration().withVerifyClientCertIssuerDN(true)))) + .withRequestRoutingRules(Arrays.asList(new ApplicationGatewayRequestRoutingRuleInner() + .withName("appgwrule") + .withRuleType(ApplicationGatewayRequestRoutingRuleType.BASIC) + .withPriority(10) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool")) + .withBackendHttpSettings(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/appgwbhs")) + .withHttpListener(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/httpListeners/appgwhl")) + .withRewriteRuleSet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/rewriteRuleSets/rewriteRuleSet1")) + .withEntraJWTValidationConfig(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/entraJWTValidationConfigs/entraJWTValidationConfig1")))) + .withRewriteRuleSets( + Arrays + .asList(new ApplicationGatewayRewriteRuleSet().withName("rewriteRuleSet1") + .withRewriteRules(Arrays.asList(new ApplicationGatewayRewriteRule() + .withName("Set X-Forwarded-For") + .withRuleSequence(102) + .withConditions(Arrays.asList(new ApplicationGatewayRewriteRuleCondition() + .withVariable("http_req_Authorization") + .withPattern("^Bearer") + .withIgnoreCase(true) + .withNegate(false))) + .withActionSet(new ApplicationGatewayRewriteRuleActionSet() + .withRequestHeaderConfigurations(Arrays.asList( + new ApplicationGatewayHeaderConfiguration().withHeaderName("X-Forwarded-For") + .withHeaderValue("{var_add_x_forwarded_for_proxy}"))) + .withResponseHeaderConfigurations( + Arrays.asList(new ApplicationGatewayHeaderConfiguration() + .withHeaderName("Strict-Transport-Security") + .withHeaderValue("max-age=31536000"))) + .withUrlConfiguration( + new ApplicationGatewayUrlConfiguration().withModifiedPath("/abc"))))))) + .withEntraJWTValidationConfigs( + Arrays.asList(new ApplicationGatewayEntraJwtValidationConfig().withName("entraJWTValidationConfig1") + .withUnAuthorizedRequestAction(ApplicationGatewayUnAuthorizedRequestAction.DENY) + .withTenantId("70a036f6-8e4d-4615-bad6-149c02e7720d") + .withClientId("37293f5a-97b3-451d-b786-f532d711c9ff"))) + .withGlobalConfiguration(new ApplicationGatewayGlobalConfiguration().withEnableRequestBuffering(true) + .withEnableResponseBuffering(true)), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java new file mode 100644 index 000000000000..885ebfef71e8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways Delete. + */ +public final class ApplicationGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayDelete.json + */ + /** + * Sample code: Delete ApplicationGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationGateways().delete("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..c0406b757ec1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways GetByResourceGroup. + */ +public final class ApplicationGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayGet.json + */ + /** + * Sample code: Get ApplicationGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .getByResourceGroupWithResponse("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java new file mode 100644 index 000000000000..00325bbe91df --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways GetSslPredefinedPolicy. + */ +public final class ApplicationGatewaysGetSslPredefinedPolicySamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + */ + /** + * Sample code: Get Available Ssl Predefined Policy by name. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableSslPredefinedPolicyByName(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .getSslPredefinedPolicyWithResponse("AppGwSslPolicy20150501", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java new file mode 100644 index 000000000000..340fbe4b4a6b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableRequestHeaders. + */ +public final class ApplicationGatewaysListAvailableRequestHeadersSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableRequestHeadersGet.json + */ + /** + * Sample code: Get Available Request Headers. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableRequestHeaders(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableRequestHeadersWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java new file mode 100644 index 000000000000..17d55fcb726c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableResponseHeaders. + */ +public final class ApplicationGatewaysListAvailableResponseHeadersSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableResponseHeadersGet.json + */ + /** + * Sample code: Get Available Response Headers. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableResponseHeaders(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableResponseHeadersWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java new file mode 100644 index 000000000000..7acb8959e7ef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableServerVariables. + */ +public final class ApplicationGatewaysListAvailableServerVariablesSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableServerVariablesGet.json + */ + /** + * Sample code: Get Available Server Variables. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableServerVariables(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableServerVariablesWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java new file mode 100644 index 000000000000..cb997385c050 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableSslOptions. + */ +public final class ApplicationGatewaysListAvailableSslOptionsSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableSslOptionsGet.json + */ + /** + * Sample code: Get Available Ssl Options. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableSslOptions(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableSslOptionsWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java new file mode 100644 index 000000000000..a12f73a55f4b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableSslPredefinedPolicies. + */ +public final class ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + */ + /** + * Sample code: Get Available Ssl Predefined Policies. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableSslPredefinedPolicies(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableSslPredefinedPolicies(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java new file mode 100644 index 000000000000..76973160634e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListAvailableWafRuleSets. + */ +public final class ApplicationGatewaysListAvailableWafRuleSetsSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayAvailableWafRuleSetsGet.json + */ + /** + * Sample code: Get Available Waf Rule Sets. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableWafRuleSets(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .listAvailableWafRuleSetsWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..831e05168511 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways ListByResourceGroup. + */ +public final class ApplicationGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayList.json + */ + /** + * Sample code: Lists all application gateways in a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listsAllApplicationGatewaysInAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java new file mode 100644 index 000000000000..2886b1c25c51 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways List. + */ +public final class ApplicationGatewaysListSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayListAll.json + */ + /** + * Sample code: Lists all application gateways in a subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listsAllApplicationGatewaysInASubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationGateways().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java new file mode 100644 index 000000000000..39adc7bcd620 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways Start. + */ +public final class ApplicationGatewaysStartSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayStart.json + */ + /** + * Sample code: Start Application Gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void startApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationGateways().start("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java new file mode 100644 index 000000000000..2d09b989a1ce --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationGateways Stop. + */ +public final class ApplicationGatewaysStopSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayStop.json + */ + /** + * Sample code: Stop Application Gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void stopApplicationGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationGateways().stop("rg1", "appgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..e0560fcf2870 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ApplicationGateways UpdateTags. + */ +public final class ApplicationGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationGatewayUpdateTags.json + */ + /** + * Sample code: Update Application Gateway tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateApplicationGatewayTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationGateways() + .updateTagsWithResponse("rg1", "AppGw", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..cc7924a400ff --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ApplicationSecurityGroupInner; + +/** + * Samples for ApplicationSecurityGroups CreateOrUpdate. + */ +public final class ApplicationSecurityGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupCreate.json + */ + /** + * Sample code: Create application security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void createApplicationSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationSecurityGroups() + .createOrUpdate("rg1", "test-asg", new ApplicationSecurityGroupInner().withLocation("westus"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java new file mode 100644 index 000000000000..6b74a55bae65 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationSecurityGroups Delete. + */ +public final class ApplicationSecurityGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupDelete.json + */ + /** + * Sample code: Delete application security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteApplicationSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationSecurityGroups() + .delete("rg1", "test-asg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..218d67cd8f55 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationSecurityGroups GetByResourceGroup. + */ +public final class ApplicationSecurityGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupGet.json + */ + /** + * Sample code: Get application security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void getApplicationSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationSecurityGroups() + .getByResourceGroupWithResponse("rg1", "test-asg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java new file mode 100644 index 000000000000..1eab5abc469b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationSecurityGroups ListByResourceGroup. + */ +public final class ApplicationSecurityGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupList.json + */ + /** + * Sample code: List load balancers in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listLoadBalancersInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationSecurityGroups() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java new file mode 100644 index 000000000000..404a99a6a45b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ApplicationSecurityGroups List. + */ +public final class ApplicationSecurityGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupListAll.json + */ + /** + * Sample code: List all application security groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllApplicationSecurityGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getApplicationSecurityGroups().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java new file mode 100644 index 000000000000..3e867a1f1657 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ApplicationSecurityGroups UpdateTags. + */ +public final class ApplicationSecurityGroupsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ApplicationSecurityGroupUpdateTags.json + */ + /** + * Sample code: Update application security group tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateApplicationSecurityGroupTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getApplicationSecurityGroups() + .updateTagsWithResponse("rg1", "test-asg", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java new file mode 100644 index 000000000000..3b8372d4e922 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailableDelegations List. + */ +public final class AvailableDelegationsListSamples { + /* + * x-ms-original-file: 2025-05-01/AvailableDelegationsSubscriptionGet.json + */ + /** + * Sample code: Get available delegations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableDelegations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAvailableDelegations().list("westcentralus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java new file mode 100644 index 000000000000..10d097d65092 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailableEndpointServices List. + */ +public final class AvailableEndpointServicesListSamples { + /* + * x-ms-original-file: 2025-05-01/EndpointServicesList.json + */ + /** + * Sample code: EndpointServicesList. + * + * @param manager Entry point to NetworkManager. + */ + public static void endpointServicesList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAvailableEndpointServices().list("westus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java new file mode 100644 index 000000000000..251dc5327162 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailablePrivateEndpointTypes ListByResourceGroup. + */ +public final class AvailablePrivateEndpointTypesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/AvailablePrivateEndpointTypesResourceGroupGet.json + */ + /** + * Sample code: Get available PrivateEndpoint types in the resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getAvailablePrivateEndpointTypesInTheResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAvailablePrivateEndpointTypes() + .listByResourceGroup("regionName", "rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java new file mode 100644 index 000000000000..f862982f029f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailablePrivateEndpointTypes List. + */ +public final class AvailablePrivateEndpointTypesListSamples { + /* + * x-ms-original-file: 2025-05-01/AvailablePrivateEndpointTypesGet.json + */ + /** + * Sample code: Get available PrivateEndpoint types. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailablePrivateEndpointTypes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAvailablePrivateEndpointTypes().list("regionName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java new file mode 100644 index 000000000000..c8f12f595765 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailableResourceGroupDelegations List. + */ +public final class AvailableResourceGroupDelegationsListSamples { + /* + * x-ms-original-file: 2025-05-01/AvailableDelegationsResourceGroupGet.json + */ + /** + * Sample code: Get available delegations in the resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getAvailableDelegationsInTheResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAvailableResourceGroupDelegations() + .list("westcentralus", "rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java new file mode 100644 index 000000000000..22b55fdc2dc3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailableServiceAliases ListByResourceGroup. + */ +public final class AvailableServiceAliasesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/AvailableServiceAliasesListByResourceGroup.json + */ + /** + * Sample code: Get available service aliases in the resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getAvailableServiceAliasesInTheResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAvailableServiceAliases() + .listByResourceGroup("rg1", "westcentralus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java new file mode 100644 index 000000000000..011e2e6eea46 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AvailableServiceAliases List. + */ +public final class AvailableServiceAliasesListSamples { + /* + * x-ms-original-file: 2025-05-01/AvailableServiceAliasesList.json + */ + /** + * Sample code: Get available service aliases. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableServiceAliases(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAvailableServiceAliases().list("westcentralus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java new file mode 100644 index 000000000000..0210554aea0d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewallFqdnTags List. + */ +public final class AzureFirewallFqdnTagsListSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallFqdnTagsListBySubscription.json + */ + /** + * Sample code: List all Azure Firewall FQDN Tags for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllAzureFirewallFQDNTagsForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAzureFirewallFqdnTags().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..57c67096efb0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java @@ -0,0 +1,488 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.AzureFirewallInner; +import com.azure.resourcemanager.network.models.AzureFirewallApplicationRule; +import com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleCollection; +import com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleProtocol; +import com.azure.resourcemanager.network.models.AzureFirewallApplicationRuleProtocolType; +import com.azure.resourcemanager.network.models.AzureFirewallIpConfiguration; +import com.azure.resourcemanager.network.models.AzureFirewallNatRCAction; +import com.azure.resourcemanager.network.models.AzureFirewallNatRCActionType; +import com.azure.resourcemanager.network.models.AzureFirewallNatRule; +import com.azure.resourcemanager.network.models.AzureFirewallNatRuleCollection; +import com.azure.resourcemanager.network.models.AzureFirewallNetworkRule; +import com.azure.resourcemanager.network.models.AzureFirewallNetworkRuleCollection; +import com.azure.resourcemanager.network.models.AzureFirewallNetworkRuleProtocol; +import com.azure.resourcemanager.network.models.AzureFirewallRCAction; +import com.azure.resourcemanager.network.models.AzureFirewallRCActionType; +import com.azure.resourcemanager.network.models.AzureFirewallSku; +import com.azure.resourcemanager.network.models.AzureFirewallSkuName; +import com.azure.resourcemanager.network.models.AzureFirewallSkuTier; +import com.azure.resourcemanager.network.models.AzureFirewallThreatIntelMode; +import com.azure.resourcemanager.network.models.HubIpAddresses; +import com.azure.resourcemanager.network.models.HubPublicIpAddresses; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for AzureFirewalls CreateOrUpdate. + */ +public final class AzureFirewallsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPutWithIpGroups.json + */ + /** + * Sample code: Create Azure Firewall With IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAzureFirewallWithIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList()) + .withApplicationRuleCollections(Arrays.asList(new AzureFirewallApplicationRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/applicationRuleCollections/apprulecoll") + .withName("apprulecoll") + .withPriority(110) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules(Arrays.asList(new AzureFirewallApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new AzureFirewallApplicationRuleProtocol() + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) + .withTargetFqdns(Arrays.asList("www.test.com")))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/natRuleCollections/natrulecoll") + .withName("natrulecoll") + .withPriority(112) + .withAction(new AzureFirewallNatRCAction().withType(AzureFirewallNatRCActionType.DNAT)) + .withRules(Arrays.asList( + new AzureFirewallNatRule().withName("DNAT-HTTPS-traffic") + .withDescription("D-NAT all outbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("443")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedAddress("1.2.3.5") + .withTranslatedPort("8443"), + new AzureFirewallNatRule().withName("DNAT-HTTP-traffic-With-FQDN") + .withDescription("D-NAT all inbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("80")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedPort("880") + .withTranslatedFqdn("internalhttpserver"))))) + .withNetworkRuleCollections(Arrays.asList(new AzureFirewallNetworkRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/networkRuleCollections/netrulecoll") + .withName("netrulecoll") + .withPriority(112) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules( + Arrays + .asList( + new AzureFirewallNetworkRule().withName("L4-traffic") + .withDescription("Block traffic based on source IPs and ports") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses( + Arrays.asList("192.168.1.1-192.168.1.12", "10.1.4.12-10.1.4.255")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("443-444", "8443")), + new AzureFirewallNetworkRule().withName("L4-traffic-with-FQDN") + .withDescription("Block traffic based on source IPs and ports to amazon") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.2.4.12-10.2.4.255")) + .withDestinationPorts(Arrays.asList("443-444", "8443")) + .withDestinationFqdns(Arrays.asList("www.amazon.com")))))) + .withIpConfigurations(Arrays.asList(new AzureFirewallIpConfiguration() + .withName("azureFirewallIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPutWithZones.json + */ + /** + * Sample code: Create Azure Firewall With Zones. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAzureFirewallWithZones(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US 2") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList("1", "2", "3")) + .withApplicationRuleCollections(Arrays.asList(new AzureFirewallApplicationRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/applicationRuleCollections/apprulecoll") + .withName("apprulecoll") + .withPriority(110) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules(Arrays.asList(new AzureFirewallApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new AzureFirewallApplicationRuleProtocol() + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) + .withTargetFqdns(Arrays.asList("www.test.com")))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/natRuleCollections/natrulecoll") + .withName("natrulecoll") + .withPriority(112) + .withAction(new AzureFirewallNatRCAction().withType(AzureFirewallNatRCActionType.DNAT)) + .withRules(Arrays.asList( + new AzureFirewallNatRule().withName("DNAT-HTTPS-traffic") + .withDescription("D-NAT all outbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("443")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedAddress("1.2.3.5") + .withTranslatedPort("8443"), + new AzureFirewallNatRule().withName("DNAT-HTTP-traffic-With-FQDN") + .withDescription("D-NAT all inbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("80")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedPort("880") + .withTranslatedFqdn("internalhttpserver"))))) + .withNetworkRuleCollections(Arrays.asList(new AzureFirewallNetworkRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/networkRuleCollections/netrulecoll") + .withName("netrulecoll") + .withPriority(112) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules( + Arrays + .asList( + new AzureFirewallNetworkRule().withName("L4-traffic") + .withDescription("Block traffic based on source IPs and ports") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses( + Arrays.asList("192.168.1.1-192.168.1.12", "10.1.4.12-10.1.4.255")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("443-444", "8443")), + new AzureFirewallNetworkRule().withName("L4-traffic-with-FQDN") + .withDescription("Block traffic based on source IPs and ports to amazon") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.2.4.12-10.2.4.255")) + .withDestinationPorts(Arrays.asList("443-444", "8443")) + .withDestinationFqdns(Arrays.asList("www.amazon.com")))))) + .withIpConfigurations(Arrays.asList(new AzureFirewallIpConfiguration() + .withName("azureFirewallIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPut.json + */ + /** + * Sample code: Create Azure Firewall. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAzureFirewall(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList()) + .withApplicationRuleCollections(Arrays.asList(new AzureFirewallApplicationRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/applicationRuleCollections/apprulecoll") + .withName("apprulecoll") + .withPriority(110) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules(Arrays.asList(new AzureFirewallApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new AzureFirewallApplicationRuleProtocol() + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) + .withTargetFqdns(Arrays.asList("www.test.com")))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/natRuleCollections/natrulecoll") + .withName("natrulecoll") + .withPriority(112) + .withAction(new AzureFirewallNatRCAction().withType(AzureFirewallNatRCActionType.DNAT)) + .withRules(Arrays.asList( + new AzureFirewallNatRule().withName("DNAT-HTTPS-traffic") + .withDescription("D-NAT all outbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("443")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedAddress("1.2.3.5") + .withTranslatedPort("8443"), + new AzureFirewallNatRule().withName("DNAT-HTTP-traffic-With-FQDN") + .withDescription("D-NAT all inbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("80")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedPort("880") + .withTranslatedFqdn("internalhttpserver"))))) + .withNetworkRuleCollections(Arrays.asList(new AzureFirewallNetworkRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/networkRuleCollections/netrulecoll") + .withName("netrulecoll") + .withPriority(112) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules( + Arrays + .asList( + new AzureFirewallNetworkRule().withName("L4-traffic") + .withDescription("Block traffic based on source IPs and ports") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses( + Arrays.asList("192.168.1.1-192.168.1.12", "10.1.4.12-10.1.4.255")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("443-444", "8443")), + new AzureFirewallNetworkRule().withName("L4-traffic-with-FQDN") + .withDescription("Block traffic based on source IPs and ports to amazon") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.2.4.12-10.2.4.255")) + .withDestinationPorts(Arrays.asList("443-444", "8443")) + .withDestinationFqdns(Arrays.asList("www.amazon.com")))))) + .withIpConfigurations(Arrays.asList(new AzureFirewallIpConfiguration() + .withName("azureFirewallIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPutWithAdditionalProperties.json + */ + /** + * Sample code: Create Azure Firewall With Additional Properties. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createAzureFirewallWithAdditionalProperties(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList()) + .withApplicationRuleCollections(Arrays.asList(new AzureFirewallApplicationRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/applicationRuleCollections/apprulecoll") + .withName("apprulecoll") + .withPriority(110) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules(Arrays.asList(new AzureFirewallApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new AzureFirewallApplicationRuleProtocol() + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) + .withTargetFqdns(Arrays.asList("www.test.com")))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/natRuleCollections/natrulecoll") + .withName("natrulecoll") + .withPriority(112) + .withAction(new AzureFirewallNatRCAction().withType(AzureFirewallNatRCActionType.DNAT)) + .withRules(Arrays.asList( + new AzureFirewallNatRule().withName("DNAT-HTTPS-traffic") + .withDescription("D-NAT all outbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("443")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedAddress("1.2.3.5") + .withTranslatedPort("8443"), + new AzureFirewallNatRule().withName("DNAT-HTTP-traffic-With-FQDN") + .withDescription("D-NAT all inbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("80")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedPort("880") + .withTranslatedFqdn("internalhttpserver"))))) + .withNetworkRuleCollections(Arrays.asList(new AzureFirewallNetworkRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/networkRuleCollections/netrulecoll") + .withName("netrulecoll") + .withPriority(112) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules( + Arrays + .asList( + new AzureFirewallNetworkRule().withName("L4-traffic") + .withDescription("Block traffic based on source IPs and ports") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses( + Arrays.asList("192.168.1.1-192.168.1.12", "10.1.4.12-10.1.4.255")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("443-444", "8443")), + new AzureFirewallNetworkRule().withName("L4-traffic-with-FQDN") + .withDescription("Block traffic based on source IPs and ports to amazon") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.2.4.12-10.2.4.255")) + .withDestinationPorts(Arrays.asList("443-444", "8443")) + .withDestinationFqdns(Arrays.asList("www.amazon.com")))))) + .withIpConfigurations(Arrays.asList(new AzureFirewallIpConfiguration() + .withName("azureFirewallIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)) + .withAdditionalProperties(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPutInHub.json + */ + /** + * Sample code: Create Azure Firewall in virtual Hub. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAzureFirewallInVirtualHub(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList()) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) + .withFirewallPolicy(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/policy1")) + .withHubIPAddresses(new HubIpAddresses() + .withPublicIPs(new HubPublicIpAddresses().withAddresses(Arrays.asList()).withCount(1))) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_HUB) + .withTier(AzureFirewallSkuTier.STANDARD)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPutWithMgmtSubnet.json + */ + /** + * Sample code: Create Azure Firewall With management subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createAzureFirewallWithManagementSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .createOrUpdate("rg1", "azurefirewall", new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withZones(Arrays.asList()) + .withApplicationRuleCollections(Arrays.asList(new AzureFirewallApplicationRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/applicationRuleCollections/apprulecoll") + .withName("apprulecoll") + .withPriority(110) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules(Arrays.asList(new AzureFirewallApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new AzureFirewallApplicationRuleProtocol() + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) + .withTargetFqdns(Arrays.asList("www.test.com")))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/natRuleCollections/natrulecoll") + .withName("natrulecoll") + .withPriority(112) + .withAction(new AzureFirewallNatRCAction().withType(AzureFirewallNatRCActionType.DNAT)) + .withRules(Arrays.asList( + new AzureFirewallNatRule().withName("DNAT-HTTPS-traffic") + .withDescription("D-NAT all outbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("443")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedAddress("1.2.3.5") + .withTranslatedPort("8443"), + new AzureFirewallNatRule().withName("DNAT-HTTP-traffic-With-FQDN") + .withDescription("D-NAT all inbound web traffic for inspection") + .withSourceAddresses(Arrays.asList("*")) + .withDestinationAddresses(Arrays.asList("1.2.3.4")) + .withDestinationPorts(Arrays.asList("80")) + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withTranslatedPort("880") + .withTranslatedFqdn("internalhttpserver"))))) + .withNetworkRuleCollections(Arrays.asList(new AzureFirewallNetworkRuleCollection().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azurefirewall/networkRuleCollections/netrulecoll") + .withName("netrulecoll") + .withPriority(112) + .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) + .withRules( + Arrays + .asList( + new AzureFirewallNetworkRule().withName("L4-traffic") + .withDescription("Block traffic based on source IPs and ports") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses( + Arrays.asList("192.168.1.1-192.168.1.12", "10.1.4.12-10.1.4.255")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("443-444", "8443")), + new AzureFirewallNetworkRule().withName("L4-traffic-with-FQDN") + .withDescription("Block traffic based on source IPs and ports to amazon") + .withProtocols(Arrays.asList(AzureFirewallNetworkRuleProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.2.4.12-10.2.4.255")) + .withDestinationPorts(Arrays.asList("443-444", "8443")) + .withDestinationFqdns(Arrays.asList("www.amazon.com")))))) + .withIpConfigurations(Arrays.asList(new AzureFirewallIpConfiguration() + .withName("azureFirewallIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) + .withManagementIpConfiguration(new AzureFirewallIpConfiguration() + .withName("azureFirewallMgmtIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallManagementSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/managementPipName"))) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java new file mode 100644 index 000000000000..d4c95c289e4a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewalls Delete. + */ +public final class AzureFirewallsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallDelete.json + */ + /** + * Sample code: Delete Azure Firewall. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteAzureFirewall(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAzureFirewalls().delete("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..77d180c9e651 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewalls GetByResourceGroup. + */ +public final class AzureFirewallsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallGetWithAdditionalProperties.json + */ + /** + * Sample code: Get Azure Firewall With Additional Properties. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getAzureFirewallWithAdditionalProperties(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallGetWithIpGroups.json + */ + /** + * Sample code: Get Azure Firewall With IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureFirewallWithIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallGetWithZones.json + */ + /** + * Sample code: Get Azure Firewall With Zones. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureFirewallWithZones(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallGetWithMgmtSubnet.json + */ + /** + * Sample code: Get Azure Firewall With management subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureFirewallWithManagementSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/AzureFirewallGet.json + */ + /** + * Sample code: Get Azure Firewall. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureFirewall(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java new file mode 100644 index 000000000000..1b173c82df9a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewalls ListByResourceGroup. + */ +public final class AzureFirewallsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallListByResourceGroup.json + */ + /** + * Sample code: List all Azure Firewalls for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllAzureFirewallsForAGivenResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAzureFirewalls().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java new file mode 100644 index 000000000000..b4b185d3f3f2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewalls ListLearnedPrefixes. + */ +public final class AzureFirewallsListLearnedPrefixesSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallListLearnedIPPrefixes.json + */ + /** + * Sample code: AzureFirewallListLearnedPrefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void azureFirewallListLearnedPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .listLearnedPrefixes("rg1", "azureFirewall1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java new file mode 100644 index 000000000000..2deccab44e12 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for AzureFirewalls List. + */ +public final class AzureFirewallsListSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallListBySubscription.json + */ + /** + * Sample code: List all Azure Firewalls for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllAzureFirewallsForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getAzureFirewalls().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureOperationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureOperationSamples.java new file mode 100644 index 000000000000..b43747e1501b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureOperationSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AzureFirewallNetworkRuleProtocol; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureFlags; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureFlagsType; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureOperationType; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureRule; +import com.azure.resourcemanager.network.models.FirewallPacketCaptureParameters; +import java.util.Arrays; + +/** + * Samples for AzureFirewalls PacketCaptureOperation. + */ +public final class AzureFirewallsPacketCaptureOperationSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPacketCaptureOperation.json + */ + /** + * Sample code: AzureFirewallPacketCaptureOperation. + * + * @param manager Entry point to NetworkManager. + */ + public static void azureFirewallPacketCaptureOperation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .packetCaptureOperation("rg1", "azureFirewall1", + new FirewallPacketCaptureParameters().withDurationInSeconds(300) + .withNumberOfPacketsToCapture(5000) + .withSasUrl("someSASURL") + .withFileName("azureFirewallPacketCapture") + .withProtocol(AzureFirewallNetworkRuleProtocol.ANY) + .withFlags(Arrays.asList( + new AzureFirewallPacketCaptureFlags().withType(AzureFirewallPacketCaptureFlagsType.SYN), + new AzureFirewallPacketCaptureFlags().withType(AzureFirewallPacketCaptureFlagsType.FIN))) + .withFilters(Arrays.asList( + new AzureFirewallPacketCaptureRule().withSources(Arrays.asList("20.1.1.0")) + .withDestinations(Arrays.asList("20.1.2.0")) + .withDestinationPorts(Arrays.asList("4500")), + new AzureFirewallPacketCaptureRule().withSources(Arrays.asList("10.1.1.0", "10.1.1.1")) + .withDestinations(Arrays.asList("10.1.2.0")) + .withDestinationPorts(Arrays.asList("123", "80")))) + .withOperation(AzureFirewallPacketCaptureOperationType.STATUS), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java new file mode 100644 index 000000000000..a984cae039a2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AzureFirewallNetworkRuleProtocol; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureFlags; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureFlagsType; +import com.azure.resourcemanager.network.models.AzureFirewallPacketCaptureRule; +import com.azure.resourcemanager.network.models.FirewallPacketCaptureParameters; +import java.util.Arrays; + +/** + * Samples for AzureFirewalls PacketCapture. + */ +public final class AzureFirewallsPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallPacketCapture.json + */ + /** + * Sample code: AzureFirewallPacketCapture. + * + * @param manager Entry point to NetworkManager. + */ + public static void azureFirewallPacketCapture(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .packetCapture("rg1", "azureFirewall1", + new FirewallPacketCaptureParameters().withDurationInSeconds(300) + .withNumberOfPacketsToCapture(5000) + .withSasUrl("someSASURL") + .withFileName("azureFirewallPacketCapture") + .withProtocol(AzureFirewallNetworkRuleProtocol.ANY) + .withFlags(Arrays.asList( + new AzureFirewallPacketCaptureFlags().withType(AzureFirewallPacketCaptureFlagsType.SYN), + new AzureFirewallPacketCaptureFlags().withType(AzureFirewallPacketCaptureFlagsType.FIN))) + .withFilters(Arrays.asList( + new AzureFirewallPacketCaptureRule().withSources(Arrays.asList("20.1.1.0")) + .withDestinations(Arrays.asList("20.1.2.0")) + .withDestinationPorts(Arrays.asList("4500")), + new AzureFirewallPacketCaptureRule().withSources(Arrays.asList("10.1.1.0", "10.1.1.1")) + .withDestinations(Arrays.asList("10.1.2.0")) + .withDestinationPorts(Arrays.asList("123", "80")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java new file mode 100644 index 000000000000..e66e4bb78dec --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for AzureFirewalls UpdateTags. + */ +public final class AzureFirewallsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/AzureFirewallUpdateTags.json + */ + /** + * Sample code: Update Azure Firewall Tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateAzureFirewallTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getAzureFirewalls() + .updateTags("azfwtest", "fw1", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..34c549d40a4b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.BastionHostInner; +import com.azure.resourcemanager.network.models.BastionHostIpConfiguration; +import com.azure.resourcemanager.network.models.BastionHostPropertiesFormatNetworkAcls; +import com.azure.resourcemanager.network.models.IpRule; +import java.util.Arrays; + +/** + * Samples for BastionHosts CreateOrUpdate. + */ +public final class BastionHostsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostPutWithPrivateOnly.json + */ + /** + * Sample code: Create Bastion Host With Private Only. + * + * @param manager Entry point to NetworkManager. + */ + public static void createBastionHostWithPrivateOnly(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .createOrUpdate("rg1", "bastionhosttenant", new BastionHostInner() + .withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() + .withName("bastionHostIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")))) + .withEnablePrivateOnlyBastion(true), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostDeveloperPut.json + */ + /** + * Sample code: Create Developer Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void createDeveloperBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .createOrUpdate("rg2", "bastionhostdeveloper", new BastionHostInner().withIpConfigurations(Arrays.asList()) + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2")) + .withNetworkAcls(new BastionHostPropertiesFormatNetworkAcls() + .withIpRules(Arrays.asList(new IpRule().withAddressPrefix("1.1.1.1/16")))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostPut.json + */ + /** + * Sample code: Create Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void createBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .createOrUpdate("rg1", "bastionhosttenant", + new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() + .withName("bastionHostIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostPutWithZones.json + */ + /** + * Sample code: Create Bastion Host With Zones. + * + * @param manager Entry point to NetworkManager. + */ + public static void createBastionHostWithZones(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .createOrUpdate("rg1", "bastionhosttenant", + new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() + .withName("bastionHostIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java new file mode 100644 index 000000000000..e494c0c892c6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for BastionHosts Delete. + */ +public final class BastionHostsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostDeveloperDelete.json + */ + /** + * Sample code: Delete Developer Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteDeveloperBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .delete("rg2", "bastionhostdeveloper", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostDelete.json + */ + /** + * Sample code: Delete Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getBastionHosts().delete("rg1", "bastionhosttenant", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..c79d70c45412 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for BastionHosts GetByResourceGroup. + */ +public final class BastionHostsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostDeveloperGet.json + */ + /** + * Sample code: Get Developer Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void getDeveloperBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhostdeveloper'", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostGetWithZones.json + */ + /** + * Sample code: Get Bastion Host With Zones. + * + * @param manager Entry point to NetworkManager. + */ + public static void getBastionHostWithZones(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhosttenant", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostGet.json + */ + /** + * Sample code: Get Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void getBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhosttenant'", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/BastionHostGetWithPrivateOnly.json + */ + /** + * Sample code: Get Bastion Host With Private Only. + * + * @param manager Entry point to NetworkManager. + */ + public static void getBastionHostWithPrivateOnly(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhosttenant", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java new file mode 100644 index 000000000000..a830d35d66ba --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for BastionHosts ListByResourceGroup. + */ +public final class BastionHostsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostListByResourceGroup.json + */ + /** + * Sample code: List all Bastion Hosts for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllBastionHostsForAGivenResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getBastionHosts().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java new file mode 100644 index 000000000000..255c623971e4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for BastionHosts List. + */ +public final class BastionHostsListSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostListBySubscription.json + */ + /** + * Sample code: List all Bastion Hosts for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllBastionHostsForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getBastionHosts().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java new file mode 100644 index 000000000000..fe13df64ce0a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for BastionHosts UpdateTags. + */ +public final class BastionHostsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/BastionHostPatch.json + */ + /** + * Sample code: Patch Bastion Host. + * + * @param manager Entry point to NetworkManager. + */ + public static void patchBastionHost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getBastionHosts() + .updateTags("rg1", "bastionhosttenant", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java new file mode 100644 index 000000000000..1200e822780d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for BgpServiceCommunities List. + */ +public final class BgpServiceCommunitiesListSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceCommunityList.json + */ + /** + * Sample code: ServiceCommunityList. + * + * @param manager Entry point to NetworkManager. + */ + public static void serviceCommunityList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getBgpServiceCommunities().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..1a9a7f13980e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationPolicyGroupInner; +import com.azure.resourcemanager.network.models.VpnPolicyMemberAttributeType; +import com.azure.resourcemanager.network.models.VpnServerConfigurationPolicyGroupMember; +import java.util.Arrays; + +/** + * Samples for ConfigurationPolicyGroups CreateOrUpdate. + */ +public final class ConfigurationPolicyGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ConfigurationPolicyGroupPut.json + */ + /** + * Sample code: ConfigurationPolicyGroupPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void configurationPolicyGroupPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConfigurationPolicyGroups() + .createOrUpdate("rg1", "vpnServerConfiguration1", "policyGroup1", + new VpnServerConfigurationPolicyGroupInner().withIsDefault(true) + .withPriority(0) + .withPolicyMembers(Arrays.asList( + new VpnServerConfigurationPolicyGroupMember().withName("policy1") + .withAttributeType(VpnPolicyMemberAttributeType.RADIUS_AZURE_GROUP_ID) + .withAttributeValue("6ad1bd08"), + new VpnServerConfigurationPolicyGroupMember().withName("policy2") + .withAttributeType(VpnPolicyMemberAttributeType.CERTIFICATE_GROUP_ID) + .withAttributeValue("red.com"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java new file mode 100644 index 000000000000..0a85043a8d4a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConfigurationPolicyGroups Delete. + */ +public final class ConfigurationPolicyGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ConfigurationPolicyGroupDelete.json + */ + /** + * Sample code: ConfigurationPolicyGroupDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void configurationPolicyGroupDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConfigurationPolicyGroups() + .delete("rg1", "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java new file mode 100644 index 000000000000..4c6f45dfc315 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConfigurationPolicyGroups Get. + */ +public final class ConfigurationPolicyGroupsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ConfigurationPolicyGroupGet.json + */ + /** + * Sample code: ConfigurationPolicyGroupGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void configurationPolicyGroupGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConfigurationPolicyGroups() + .getWithResponse("rg1", "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java new file mode 100644 index 000000000000..43ab331fb749 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConfigurationPolicyGroups ListByVpnServerConfiguration. + */ +public final class ConfigurationPolicyGroupsListByVpnServerConfigurationSamples { + /* + * x-ms-original-file: 2025-05-01/ConfigurationPolicyGroupListByVpnServerConfiguration.json + */ + /** + * Sample code: ConfigurationPolicyGroupListByVpnServerConfiguration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + configurationPolicyGroupListByVpnServerConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConfigurationPolicyGroups() + .listByVpnServerConfiguration("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..df1791d1d49d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ConnectionMonitorInner; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpoint; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointFilter; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointFilterItem; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointFilterItemType; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointFilterType; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointLocationDetails; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointScope; +import com.azure.resourcemanager.network.models.ConnectionMonitorEndpointScopeItem; +import com.azure.resourcemanager.network.models.ConnectionMonitorTcpConfiguration; +import com.azure.resourcemanager.network.models.ConnectionMonitorTestConfiguration; +import com.azure.resourcemanager.network.models.ConnectionMonitorTestConfigurationProtocol; +import com.azure.resourcemanager.network.models.ConnectionMonitorTestGroup; +import com.azure.resourcemanager.network.models.EndpointType; +import java.util.Arrays; + +/** + * Samples for ConnectionMonitors CreateOrUpdate. + */ +public final class ConnectionMonitorsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorCreate.json + */ + /** + * Sample code: Create connection monitor V1. + * + * @param manager Entry point to NetworkManager. + */ + public static void createConnectionMonitorV1(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectionMonitors() + .createOrUpdate("rg1", "nw1", "cm1", new ConnectionMonitorInner().withLocation("eastus") + .withEndpoints(Arrays.asList(new ConnectionMonitorEndpoint().withName("source") + .withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/ct1"), + new ConnectionMonitorEndpoint().withName("destination").withAddress("bing.com"))) + .withTestConfigurations(Arrays.asList(new ConnectionMonitorTestConfiguration().withName("tcp") + .withTestFrequencySec(60) + .withProtocol(ConnectionMonitorTestConfigurationProtocol.TCP) + .withTcpConfiguration(new ConnectionMonitorTcpConfiguration().withPort(80)))) + .withTestGroups(Arrays.asList(new ConnectionMonitorTestGroup().withName("tg") + .withTestConfigurations(Arrays.asList("tcp")) + .withSources(Arrays.asList("source")) + .withDestinations(Arrays.asList("destination")))), + null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json + */ + /** + * Sample code: Create connection monitor with Arc Network. + * + * @param manager Entry point to NetworkManager. + */ + public static void createConnectionMonitorWithArcNetwork(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectionMonitors() + .createOrUpdate("rg1", "nw1", "cm1", new ConnectionMonitorInner() + .withEndpoints(Arrays.asList(new ConnectionMonitorEndpoint().withName("vm1") + .withType(EndpointType.AZURE_VM) + .withResourceId( + "/subscriptions/9cece3e3-0f7d-47ca-af0e-9772773f90b7/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/TESTVM"), + new ConnectionMonitorEndpoint().withName("bing") + .withType(EndpointType.EXTERNAL_ADDRESS) + .withAddress("bing.com"), + new ConnectionMonitorEndpoint().withName("google") + .withType(EndpointType.EXTERNAL_ADDRESS) + .withAddress("google.com"), + new ConnectionMonitorEndpoint().withName("ArcBasedNetwork") + .withType(EndpointType.AZURE_ARC_NETWORK) + .withScope(new ConnectionMonitorEndpointScope().withInclude( + Arrays.asList(new ConnectionMonitorEndpointScopeItem().withAddress("172.21.128.0/20")))) + .withLocationDetails(new ConnectionMonitorEndpointLocationDetails().withRegion("eastus")) + .withSubscriptionId("9cece3e3-0f7d-47ca-af0e-9772773f90b7"))) + .withTestConfigurations(Arrays.asList(new ConnectionMonitorTestConfiguration().withName("testConfig1") + .withTestFrequencySec(60) + .withProtocol(ConnectionMonitorTestConfigurationProtocol.TCP) + .withTcpConfiguration( + new ConnectionMonitorTcpConfiguration().withPort(80).withDisableTraceRoute(false)))) + .withTestGroups(Arrays.asList(new ConnectionMonitorTestGroup().withName("test1") + .withDisable(false) + .withTestConfigurations(Arrays.asList("testConfig1")) + .withSources(Arrays.asList("vm1", "ArcBasedNetwork")) + .withDestinations(Arrays.asList("bing", "google")))) + .withOutputs(Arrays.asList()), null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorV2Create.json + */ + /** + * Sample code: Create connection monitor V2. + * + * @param manager Entry point to NetworkManager. + */ + public static void createConnectionMonitorV2(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectionMonitors() + .createOrUpdate("rg1", "nw1", "cm1", new ConnectionMonitorInner() + .withEndpoints(Arrays.asList(new ConnectionMonitorEndpoint() + .withName("vm1") + .withResourceId( + "/subscriptions/96e68903-0a56-4819-9987-8d08ad6a1f99/resourceGroups/NwRgIrinaCentralUSEUAP/providers/Microsoft.Compute/virtualMachines/vm1"), + new ConnectionMonitorEndpoint().withName("CanaryWorkspaceVamshi") + .withResourceId( + "/subscriptions/96e68903-0a56-4819-9987-8d08ad6a1f99/resourceGroups/vasamudrRG/providers/Microsoft.OperationalInsights/workspaces/vasamudrWorkspace") + .withFilter( + new ConnectionMonitorEndpointFilter().withType(ConnectionMonitorEndpointFilterType.INCLUDE) + .withItems(Arrays.asList(new ConnectionMonitorEndpointFilterItem() + .withType(ConnectionMonitorEndpointFilterItemType.AGENT_ADDRESS) + .withAddress("npmuser")))), + new ConnectionMonitorEndpoint().withName("bing").withAddress("bing.com"), + new ConnectionMonitorEndpoint().withName("google").withAddress("google.com"))) + .withTestConfigurations(Arrays.asList(new ConnectionMonitorTestConfiguration().withName("testConfig1") + .withTestFrequencySec(60) + .withProtocol(ConnectionMonitorTestConfigurationProtocol.TCP) + .withTcpConfiguration( + new ConnectionMonitorTcpConfiguration().withPort(80).withDisableTraceRoute(false)))) + .withTestGroups(Arrays.asList(new ConnectionMonitorTestGroup().withName("test1") + .withDisable(false) + .withTestConfigurations(Arrays.asList("testConfig1")) + .withSources(Arrays.asList("vm1", "CanaryWorkspaceVamshi")) + .withDestinations(Arrays.asList("bing", "google")))) + .withOutputs(Arrays.asList()), null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java new file mode 100644 index 000000000000..1434179c9d2e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectionMonitors Delete. + */ +public final class ConnectionMonitorsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorDelete.json + */ + /** + * Sample code: Delete connection monitor. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteConnectionMonitor(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getConnectionMonitors().delete("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java new file mode 100644 index 000000000000..0e4f92b1f791 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectionMonitors Get. + */ +public final class ConnectionMonitorsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorGet.json + */ + /** + * Sample code: Get connection monitor. + * + * @param manager Entry point to NetworkManager. + */ + public static void getConnectionMonitor(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectionMonitors() + .getWithResponse("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java new file mode 100644 index 000000000000..18976f412aa2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectionMonitors List. + */ +public final class ConnectionMonitorsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorList.json + */ + /** + * Sample code: List connection monitors. + * + * @param manager Entry point to NetworkManager. + */ + public static void listConnectionMonitors(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getConnectionMonitors().list("rg1", "nw1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java new file mode 100644 index 000000000000..bd5b95bdcf86 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectionMonitors Stop. + */ +public final class ConnectionMonitorsStopSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorStop.json + */ + /** + * Sample code: Stop connection monitor. + * + * @param manager Entry point to NetworkManager. + */ + public static void stopConnectionMonitor(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getConnectionMonitors().stop("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java new file mode 100644 index 000000000000..c4f31a18abc7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ConnectionMonitors UpdateTags. + */ +public final class ConnectionMonitorsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectionMonitorUpdateTags.json + */ + /** + * Sample code: Update connection monitor tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateConnectionMonitorTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectionMonitors() + .updateTagsWithResponse("rg1", "nw1", "cm1", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..246089db99f4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ConnectivityConfigurationInner; +import com.azure.resourcemanager.network.models.ConnectedGroupAddressOverlap; +import com.azure.resourcemanager.network.models.ConnectedGroupPrivateEndpointsScale; +import com.azure.resourcemanager.network.models.ConnectivityConfigurationPropertiesConnectivityCapabilities; +import com.azure.resourcemanager.network.models.ConnectivityGroupItem; +import com.azure.resourcemanager.network.models.ConnectivityTopology; +import com.azure.resourcemanager.network.models.DeleteExistingPeering; +import com.azure.resourcemanager.network.models.GroupConnectivity; +import com.azure.resourcemanager.network.models.Hub; +import com.azure.resourcemanager.network.models.IsGlobal; +import com.azure.resourcemanager.network.models.PeeringEnforcement; +import com.azure.resourcemanager.network.models.UseHubGateway; +import java.util.Arrays; + +/** + * Samples for ConnectivityConfigurations CreateOrUpdate. + */ +public final class ConnectivityConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectivityConfigurationPut.json + */ + /** + * Sample code: ConnectivityConfigurationsPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void connectivityConfigurationsPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectivityConfigurations() + .createOrUpdateWithResponse("myResourceGroup", "testNetworkManager", "myTestConnectivityConfig", + new ConnectivityConfigurationInner().withDescription("Sample Configuration") + .withConnectivityTopology(ConnectivityTopology.HUB_AND_SPOKE) + .withHubs(Arrays.asList(new Hub().withResourceId( + "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig") + .withResourceType("Microsoft.Network/virtualNetworks"))) + .withIsGlobal(IsGlobal.TRUE) + .withConnectivityCapabilities(new ConnectivityConfigurationPropertiesConnectivityCapabilities() + .withConnectedGroupPrivateEndpointsScale(ConnectedGroupPrivateEndpointsScale.STANDARD) + .withConnectedGroupAddressOverlap(ConnectedGroupAddressOverlap.ALLOWED) + .withPeeringEnforcement(PeeringEnforcement.UNENFORCED)) + .withAppliesToGroups(Arrays.asList(new ConnectivityGroupItem().withNetworkGroupId( + "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1") + .withUseHubGateway(UseHubGateway.TRUE) + .withIsGlobal(IsGlobal.FALSE) + .withGroupConnectivity(GroupConnectivity.NONE))) + .withDeleteExistingPeering(DeleteExistingPeering.TRUE), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..acfa79470625 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectivityConfigurations Delete. + */ +public final class ConnectivityConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectivityConfigurationDelete.json + */ + /** + * Sample code: ConnectivityConfigurationsDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void connectivityConfigurationsDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectivityConfigurations() + .delete("myResourceGroup", "testNetworkManager", "myTestConnectivityConfig", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java new file mode 100644 index 000000000000..1f68ba718220 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectivityConfigurations Get. + */ +public final class ConnectivityConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectivityConfigurationGet.json + */ + /** + * Sample code: ConnectivityConfigurationsGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void connectivityConfigurationsGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectivityConfigurations() + .getWithResponse("myResourceGroup", "testNetworkManager", "myTestConnectivityConfig", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java new file mode 100644 index 000000000000..14cb3c6832f9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ConnectivityConfigurations List. + */ +public final class ConnectivityConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectivityConfigurationList.json + */ + /** + * Sample code: ConnectivityConfigurationsList. + * + * @param manager Entry point to NetworkManager. + */ + public static void connectivityConfigurationsList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getConnectivityConfigurations() + .list("myResourceGroup", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..8147f3e9c8ab --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesCreateOrUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.CustomIpPrefixInner; + +/** + * Samples for CustomIpPrefixes CreateOrUpdate. + */ +public final class CustomIpPrefixesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixCreateCustomizedValues.json + */ + /** + * Sample code: Create custom IP prefix allocation method. + * + * @param manager Entry point to NetworkManager. + */ + public static void createCustomIPPrefixAllocationMethod(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getCustomIpPrefixes() + .createOrUpdate("rg1", "test-customipprefix", + new CustomIpPrefixInner().withLocation("westus").withCidr("0.0.0.0/24"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesDeleteSamples.java new file mode 100644 index 000000000000..1668f3ac2493 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for CustomIpPrefixes Delete. + */ +public final class CustomIpPrefixesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixDelete.json + */ + /** + * Sample code: Delete custom IP prefix. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteCustomIPPrefix(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getCustomIpPrefixes() + .delete("rg1", "test-customipprefix", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..fead3cc31a2e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for CustomIpPrefixes GetByResourceGroup. + */ +public final class CustomIpPrefixesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixGet.json + */ + /** + * Sample code: Get custom IP prefix. + * + * @param manager Entry point to NetworkManager. + */ + public static void getCustomIPPrefix(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getCustomIpPrefixes() + .getByResourceGroupWithResponse("rg1", "test-customipprefix", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListByResourceGroupSamples.java new file mode 100644 index 000000000000..70d22eede8ac --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for CustomIpPrefixes ListByResourceGroup. + */ +public final class CustomIpPrefixesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixList.json + */ + /** + * Sample code: List resource group Custom IP prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void listResourceGroupCustomIPPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getCustomIpPrefixes().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListSamples.java new file mode 100644 index 000000000000..8a6a7b9004cf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for CustomIpPrefixes List. + */ +public final class CustomIpPrefixesListSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixListAll.json + */ + /** + * Sample code: List all custom IP prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllCustomIPPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getCustomIpPrefixes().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesUpdateTagsSamples.java new file mode 100644 index 000000000000..174cb30ca714 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/CustomIPPrefixesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for CustomIpPrefixes UpdateTags. + */ +public final class CustomIpPrefixesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/CustomIpPrefixUpdateTags.json + */ + /** + * Sample code: Update public IP address tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updatePublicIPAddressTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getCustomIpPrefixes() + .updateTagsWithResponse("rg1", "test-customipprefix", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..5d3a55cf4ff2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.DdosCustomPolicyInner; +import com.azure.resourcemanager.network.models.DdosDetectionMode; +import com.azure.resourcemanager.network.models.DdosDetectionRule; +import com.azure.resourcemanager.network.models.DdosTrafficType; +import com.azure.resourcemanager.network.models.TrafficDetectionRule; +import java.util.Arrays; + +/** + * Samples for DdosCustomPolicies CreateOrUpdate. + */ +public final class DdosCustomPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/DdosCustomPolicyCreate.json + */ + /** + * Sample code: Create DDoS custom policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void createDDoSCustomPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosCustomPolicies() + .createOrUpdate("rg1", "test-ddos-custom-policy", + new DdosCustomPolicyInner().withLocation("centraluseuap") + .withDetectionRules(Arrays.asList(new DdosDetectionRule().withName("detectionRuleTcp") + .withDetectionMode(DdosDetectionMode.TRAFFIC_THRESHOLD) + .withTrafficDetectionRule(new TrafficDetectionRule().withTrafficType(DdosTrafficType.TCP) + .withPacketsPerSecond(1000000)))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java new file mode 100644 index 000000000000..ffc4b7a0b812 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosCustomPolicies Delete. + */ +public final class DdosCustomPoliciesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/DdosCustomPolicyDelete.json + */ + /** + * Sample code: Delete DDoS custom policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteDDoSCustomPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosCustomPolicies() + .delete("rg1", "test-ddos-custom-policy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..b67d0d6c82c3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosCustomPolicies GetByResourceGroup. + */ +public final class DdosCustomPoliciesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/DdosCustomPolicyGet.json + */ + /** + * Sample code: Get DDoS custom policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void getDDoSCustomPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosCustomPolicies() + .getByResourceGroupWithResponse("rg1", "test-ddos-custom-policy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java new file mode 100644 index 000000000000..1c185aad2a19 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for DdosCustomPolicies UpdateTags. + */ +public final class DdosCustomPoliciesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/DdosCustomPolicyUpdateTags.json + */ + /** + * Sample code: DDoS Custom policy Update tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void dDoSCustomPolicyUpdateTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosCustomPolicies() + .updateTagsWithResponse("rg1", "test-ddos-custom-policy", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ab96b089d0bc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.DdosProtectionPlanInner; + +/** + * Samples for DdosProtectionPlans CreateOrUpdate. + */ +public final class DdosProtectionPlansCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanCreate.json + */ + /** + * Sample code: Create DDoS protection plan. + * + * @param manager Entry point to NetworkManager. + */ + public static void createDDoSProtectionPlan(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosProtectionPlans() + .createOrUpdate("rg1", "test-plan", new DdosProtectionPlanInner().withLocation("westus"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java new file mode 100644 index 000000000000..bca5a8fb59b0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosProtectionPlans Delete. + */ +public final class DdosProtectionPlansDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanDelete.json + */ + /** + * Sample code: Delete DDoS protection plan. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteDDoSProtectionPlan(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDdosProtectionPlans().delete("rg1", "test-plan", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java new file mode 100644 index 000000000000..4142041aba53 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosProtectionPlans GetByResourceGroup. + */ +public final class DdosProtectionPlansGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanGet.json + */ + /** + * Sample code: Get DDoS protection plan. + * + * @param manager Entry point to NetworkManager. + */ + public static void getDDoSProtectionPlan(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosProtectionPlans() + .getByResourceGroupWithResponse("rg1", "test-plan", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java new file mode 100644 index 000000000000..2f4b2841a47f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosProtectionPlans ListByResourceGroup. + */ +public final class DdosProtectionPlansListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanList.json + */ + /** + * Sample code: List DDoS protection plans in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listDDoSProtectionPlansInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDdosProtectionPlans().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java new file mode 100644 index 000000000000..6df1e31e27b0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DdosProtectionPlans List. + */ +public final class DdosProtectionPlansListSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanListAll.json + */ + /** + * Sample code: List all DDoS protection plans. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllDDoSProtectionPlans(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDdosProtectionPlans().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java new file mode 100644 index 000000000000..bafe3ae77175 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for DdosProtectionPlans UpdateTags. + */ +public final class DdosProtectionPlansUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/DdosProtectionPlanUpdateTags.json + */ + /** + * Sample code: DDoS protection plan Update tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void dDoSProtectionPlanUpdateTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDdosProtectionPlans() + .updateTagsWithResponse("rg1", "test-plan", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java new file mode 100644 index 000000000000..a73d1afc5e6b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DefaultSecurityRules Get. + */ +public final class DefaultSecurityRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/DefaultSecurityRuleGet.json + */ + /** + * Sample code: DefaultSecurityRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void defaultSecurityRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDefaultSecurityRules() + .getWithResponse("testrg", "nsg1", "AllowVnetInBound", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java new file mode 100644 index 000000000000..f237bf22369c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DefaultSecurityRules List. + */ +public final class DefaultSecurityRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/DefaultSecurityRuleList.json + */ + /** + * Sample code: DefaultSecurityRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void defaultSecurityRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDefaultSecurityRules().list("testrg", "nsg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java new file mode 100644 index 000000000000..07815324920e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.DscpConfigurationInner; +import com.azure.resourcemanager.network.models.ProtocolType; +import com.azure.resourcemanager.network.models.QosDefinition; +import com.azure.resourcemanager.network.models.QosIpRange; +import com.azure.resourcemanager.network.models.QosPortRange; +import java.util.Arrays; + +/** + * Samples for DscpConfiguration CreateOrUpdate. + */ +public final class DscpConfigurationCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/DscpConfigurationCreate.json + */ + /** + * Sample code: Create DSCP Configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void createDSCPConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDscpConfigurations() + .createOrUpdate("rg1", "mydscpconfig", + new DscpConfigurationInner().withLocation("eastus") + .withQosDefinitionCollection(Arrays.asList( + new QosDefinition().withMarkings(Arrays.asList(1)) + .withSourceIpRanges( + Arrays.asList(new QosIpRange().withStartIp("127.0.0.1").withEndIp("127.0.0.2"))) + .withDestinationIpRanges( + Arrays.asList(new QosIpRange().withStartIp("127.0.10.1").withEndIp("127.0.10.2"))) + .withSourcePortRanges(Arrays.asList(new QosPortRange().withStart(10).withEnd(11), + new QosPortRange().withStart(20).withEnd(21))) + .withDestinationPortRanges(Arrays.asList(new QosPortRange().withStart(15).withEnd(15))) + .withProtocol(ProtocolType.TCP), + new QosDefinition().withMarkings(Arrays.asList(2)) + .withSourceIpRanges( + Arrays.asList(new QosIpRange().withStartIp("12.0.0.1").withEndIp("12.0.0.2"))) + .withDestinationIpRanges( + Arrays.asList(new QosIpRange().withStartIp("12.0.10.1").withEndIp("12.0.10.2"))) + .withSourcePortRanges(Arrays.asList(new QosPortRange().withStart(11).withEnd(12))) + .withDestinationPortRanges(Arrays.asList(new QosPortRange().withStart(51).withEnd(52))) + .withProtocol(ProtocolType.UDP))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java new file mode 100644 index 000000000000..988b67d211aa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DscpConfiguration Delete. + */ +public final class DscpConfigurationDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/DscpConfigurationDelete.json + */ + /** + * Sample code: Delete DSCP Configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteDSCPConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDscpConfigurations().delete("rg1", "mydscpConfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java new file mode 100644 index 000000000000..372fb42cf869 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DscpConfiguration GetByResourceGroup. + */ +public final class DscpConfigurationGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/DscpConfigurationGet.json + */ + /** + * Sample code: Get Dscp Configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void getDscpConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getDscpConfigurations() + .getByResourceGroupWithResponse("rg1", "mydscpConfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java new file mode 100644 index 000000000000..56ac46836bbb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DscpConfiguration ListByResourceGroup. + */ +public final class DscpConfigurationListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/DscpConfigurationList.json + */ + /** + * Sample code: Get Dscp Configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void getDscpConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDscpConfigurations().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java new file mode 100644 index 000000000000..a3dc13455334 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for DscpConfiguration List. + */ +public final class DscpConfigurationListSamples { + /* + * x-ms-original-file: 2025-05-01/DscpConfigurationListAll.json + */ + /** + * Sample code: List all network interfaces. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkInterfaces(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getDscpConfigurations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..554287ba4a98 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner; + +/** + * Samples for ExpressRouteCircuitAuthorizations CreateOrUpdate. + */ +public final class ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitAuthorizationCreate.json + */ + /** + * Sample code: Create ExpressRouteCircuit Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createExpressRouteCircuitAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitAuthorizations() + .createOrUpdate("rg1", "circuitName", "authorizatinName", new ExpressRouteCircuitAuthorizationInner(), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java new file mode 100644 index 000000000000..e841922ba52f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitAuthorizations Delete. + */ +public final class ExpressRouteCircuitAuthorizationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitAuthorizationDelete.json + */ + /** + * Sample code: Delete ExpressRouteCircuit Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteExpressRouteCircuitAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitAuthorizations() + .delete("rg1", "circuitName", "authorizationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java new file mode 100644 index 000000000000..9b153a9c4a10 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitAuthorizations Get. + */ +public final class ExpressRouteCircuitAuthorizationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitAuthorizationGet.json + */ + /** + * Sample code: Get ExpressRouteCircuit Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRouteCircuitAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitAuthorizations() + .getWithResponse("rg1", "circuitName", "authorizationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java new file mode 100644 index 000000000000..faa9be593ee5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitAuthorizations List. + */ +public final class ExpressRouteCircuitAuthorizationsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitAuthorizationList.json + */ + /** + * Sample code: List ExpressRouteCircuit Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void listExpressRouteCircuitAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitAuthorizations() + .list("rg1", "circuitName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..d9a5f6023536 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitConnectionInner; +import com.azure.resourcemanager.network.models.Ipv6CircuitConnectionConfig; + +/** + * Samples for ExpressRouteCircuitConnections CreateOrUpdate. + */ +public final class ExpressRouteCircuitConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitConnectionCreate.json + */ + /** + * Sample code: ExpressRouteCircuitConnectionCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteCircuitConnectionCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitConnections() + .createOrUpdate("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + new ExpressRouteCircuitConnectionInner().withExpressRouteCircuitPeering(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering")) + .withPeerExpressRouteCircuitPeering(new SubResource().withId( + "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/dedharcktpeer/providers/Microsoft.Network/expressRouteCircuits/dedharcktremote/peerings/AzurePrivatePeering")) + .withAddressPrefix("10.0.0.0/29") + .withAuthorizationKey("fakeTokenPlaceholder") + .withIpv6CircuitConnectionConfig( + new Ipv6CircuitConnectionConfig().withAddressPrefix("aa:bb::/125")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java new file mode 100644 index 000000000000..d87931eadf36 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitConnections Delete. + */ +public final class ExpressRouteCircuitConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitConnectionDelete.json + */ + /** + * Sample code: Delete ExpressRouteCircuit. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteExpressRouteCircuit(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitConnections() + .delete("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java new file mode 100644 index 000000000000..424bd006dbe1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitConnections Get. + */ +public final class ExpressRouteCircuitConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitConnectionGet.json + */ + /** + * Sample code: ExpressRouteCircuitConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteCircuitConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitConnections() + .getWithResponse("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java new file mode 100644 index 000000000000..d96893997f27 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitConnections List. + */ +public final class ExpressRouteCircuitConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitConnectionList.json + */ + /** + * Sample code: List ExpressRouteCircuit Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void listExpressRouteCircuitConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitConnections() + .list("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..a437209e2dba --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitPeeringInner; + +/** + * Samples for ExpressRouteCircuitPeerings CreateOrUpdate. + */ +public final class ExpressRouteCircuitPeeringsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitPeeringCreate.json + */ + /** + * Sample code: Create ExpressRouteCircuit Peerings. + * + * @param manager Entry point to NetworkManager. + */ + public static void createExpressRouteCircuitPeerings(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitPeerings() + .createOrUpdate("rg1", "circuitName", "AzurePrivatePeering", + new ExpressRouteCircuitPeeringInner().withPeerAsn(200L) + .withPrimaryPeerAddressPrefix("192.168.16.252/30") + .withSecondaryPeerAddressPrefix("192.168.18.252/30") + .withVlanId(200), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java new file mode 100644 index 000000000000..dcb5c8ad61a6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitPeerings Delete. + */ +public final class ExpressRouteCircuitPeeringsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitPeeringDelete.json + */ + /** + * Sample code: Delete ExpressRouteCircuit Peerings. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteExpressRouteCircuitPeerings(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitPeerings() + .delete("rg1", "circuitName", "peeringName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java new file mode 100644 index 000000000000..4f75288e63d8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitPeerings Get. + */ +public final class ExpressRouteCircuitPeeringsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitPeeringGet.json + */ + /** + * Sample code: Get ExpressRouteCircuit Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRouteCircuitPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitPeerings() + .getWithResponse("rg1", "circuitName", "MicrosoftPeering", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java new file mode 100644 index 000000000000..8838ae90fa56 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuitPeerings List. + */ +public final class ExpressRouteCircuitPeeringsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitPeeringList.json + */ + /** + * Sample code: List ExpressRouteCircuit Peerings. + * + * @param manager Entry point to NetworkManager. + */ + public static void listExpressRouteCircuitPeerings(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuitPeerings() + .list("rg1", "circuitName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..5dad323a44ef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitInner; +import com.azure.resourcemanager.network.models.ExpressRouteCircuitServiceProviderProperties; +import com.azure.resourcemanager.network.models.ExpressRouteCircuitSku; +import com.azure.resourcemanager.network.models.ExpressRouteCircuitSkuFamily; +import com.azure.resourcemanager.network.models.ExpressRouteCircuitSkuTier; +import java.util.Arrays; + +/** + * Samples for ExpressRouteCircuits CreateOrUpdate. + */ +public final class ExpressRouteCircuitsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitCreate.json + */ + /** + * Sample code: Create ExpressRouteCircuit. + * + * @param manager Entry point to NetworkManager. + */ + public static void createExpressRouteCircuit(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .createOrUpdate("rg1", "circuitName", + new ExpressRouteCircuitInner().withLocation("Brazil South") + .withSku(new ExpressRouteCircuitSku().withName("Standard_MeteredData") + .withTier(ExpressRouteCircuitSkuTier.STANDARD) + .withFamily(ExpressRouteCircuitSkuFamily.METERED_DATA)) + .withAllowClassicOperations(false) + .withAuthorizations(Arrays.asList()) + .withPeerings(Arrays.asList()) + .withServiceProviderProperties( + new ExpressRouteCircuitServiceProviderProperties().withServiceProviderName("Equinix") + .withPeeringLocation("Silicon Valley") + .withBandwidthInMbps(200)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitCreateOnExpressRoutePort.json + */ + /** + * Sample code: Create ExpressRouteCircuit on ExpressRoutePort. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createExpressRouteCircuitOnExpressRoutePort(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .createOrUpdate("rg1", "expressRouteCircuit1", new ExpressRouteCircuitInner().withLocation("westus") + .withSku(new ExpressRouteCircuitSku().withName("Premium_MeteredData") + .withTier(ExpressRouteCircuitSkuTier.PREMIUM) + .withFamily(ExpressRouteCircuitSkuFamily.METERED_DATA)) + .withExpressRoutePort(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName")) + .withBandwidthInGbps(10.0F) + .withAuthorizationKey("fakeTokenPlaceholder") + .withEnableDirectPortRateLimit(false), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java new file mode 100644 index 000000000000..ae0ac5a2c899 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits Delete. + */ +public final class ExpressRouteCircuitsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitDelete.json + */ + /** + * Sample code: Delete ExpressRouteCircuit. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteExpressRouteCircuit(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .delete("rg1", "circuitName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..078d943d5773 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits GetByResourceGroup. + */ +public final class ExpressRouteCircuitsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitGet.json + */ + /** + * Sample code: Get ExpressRouteCircuit. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRouteCircuit(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .getByResourceGroupWithResponse("rg1", "circuitName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java new file mode 100644 index 000000000000..1c33a0fb99aa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits GetPeeringStats. + */ +public final class ExpressRouteCircuitsGetPeeringStatsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitPeeringStats.json + */ + /** + * Sample code: Get ExpressRoute Circuit Peering Traffic Stats. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getExpressRouteCircuitPeeringTrafficStats(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .getPeeringStatsWithResponse("rg1", "circuitName", "peeringName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java new file mode 100644 index 000000000000..9088315e92f7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits GetStats. + */ +public final class ExpressRouteCircuitsGetStatsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitStats.json + */ + /** + * Sample code: Get ExpressRoute Circuit Traffic Stats. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRouteCircuitTrafficStats(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .getStatsWithResponse("rg1", "circuitName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java new file mode 100644 index 000000000000..c51b68e3fb92 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits ListArpTable. + */ +public final class ExpressRouteCircuitsListArpTableSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitARPTableList.json + */ + /** + * Sample code: List ARP Table. + * + * @param manager Entry point to NetworkManager. + */ + public static void listARPTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .listArpTable("rg1", "circuitName", "peeringName", "devicePath", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java new file mode 100644 index 000000000000..6463235a7d39 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits ListByResourceGroup. + */ +public final class ExpressRouteCircuitsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitListByResourceGroup.json + */ + /** + * Sample code: List ExpressRouteCircuits in a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listExpressRouteCircuitsInAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRouteCircuits().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java new file mode 100644 index 000000000000..52408429b93f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits ListRoutesTable. + */ +public final class ExpressRouteCircuitsListRoutesTableSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitRouteTableList.json + */ + /** + * Sample code: List Route Tables. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRouteTables(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .listRoutesTable("rg1", "circuitName", "peeringName", "devicePath", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java new file mode 100644 index 000000000000..96bdccfa26c2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits ListRoutesTableSummary. + */ +public final class ExpressRouteCircuitsListRoutesTableSummarySamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitRouteTableSummaryList.json + */ + /** + * Sample code: List Route Table Summary. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRouteTableSummary(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .listRoutesTableSummary("rg1", "circuitName", "peeringName", "devicePath", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java new file mode 100644 index 000000000000..d564fa4de4e3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCircuits List. + */ +public final class ExpressRouteCircuitsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitListBySubscription.json + */ + /** + * Sample code: List ExpressRouteCircuits in a subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listExpressRouteCircuitsInASubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRouteCircuits().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java new file mode 100644 index 000000000000..bc58c2058eab --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ExpressRouteCircuits UpdateTags. + */ +public final class ExpressRouteCircuitsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCircuitUpdateTags.json + */ + /** + * Sample code: Update Express Route Circuit Tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateExpressRouteCircuitTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCircuits() + .updateTagsWithResponse("ertest", "er1", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..d101e3eb5fa1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner; +import com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringId; +import com.azure.resourcemanager.network.models.PropagatedRouteTable; +import com.azure.resourcemanager.network.models.RoutingConfiguration; +import java.util.Arrays; + +/** + * Samples for ExpressRouteConnections CreateOrUpdate. + */ +public final class ExpressRouteConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteConnectionCreate.json + */ + /** + * Sample code: ExpressRouteConnectionCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteConnectionCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteConnections() + .createOrUpdate("resourceGroupName", "gateway-2", "connectionName", new ExpressRouteConnectionInner() + .withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName") + .withName("connectionName") + .withExpressRouteCircuitPeering(new ExpressRouteCircuitPeeringId().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering")) + .withAuthorizationKey("fakeTokenPlaceholder") + .withRoutingWeight(2) + .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")) + .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1", "label2")) + .withIds(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable2"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable3")))) + .withInboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")) + .withOutboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java new file mode 100644 index 000000000000..07f198ea27d7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteConnections Delete. + */ +public final class ExpressRouteConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteConnectionDelete.json + */ + /** + * Sample code: ExpressRouteConnectionDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteConnectionDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteConnections() + .delete("resourceGroupName", "expressRouteGatewayName", "connectionName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java new file mode 100644 index 000000000000..dec742856326 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteConnections Get. + */ +public final class ExpressRouteConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteConnectionGet.json + */ + /** + * Sample code: ExpressRouteConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteConnections() + .getWithResponse("resourceGroupName", "expressRouteGatewayName", "connectionName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java new file mode 100644 index 000000000000..a6587f3e5915 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteConnections List. + */ +public final class ExpressRouteConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteConnectionList.json + */ + /** + * Sample code: ExpressRouteConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteConnections() + .listWithResponse("resourceGroupName", "expressRouteGatewayName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..28cf8848811c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionPeeringInner; +import com.azure.resourcemanager.network.models.Ipv6ExpressRouteCircuitPeeringConfig; + +/** + * Samples for ExpressRouteCrossConnectionPeerings CreateOrUpdate. + */ +public final class ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionBgpPeeringCreate.json + */ + /** + * Sample code: ExpressRouteCrossConnectionBgpPeeringCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void + expressRouteCrossConnectionBgpPeeringCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnectionPeerings() + .createOrUpdate("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + new ExpressRouteCrossConnectionPeeringInner().withPeerAsn(200L) + .withPrimaryPeerAddressPrefix("192.168.16.252/30") + .withSecondaryPeerAddressPrefix("192.168.18.252/30") + .withVlanId(200) + .withIpv6PeeringConfig(new Ipv6ExpressRouteCircuitPeeringConfig() + .withPrimaryPeerAddressPrefix("3FFE:FFFF:0:CD30::/126") + .withSecondaryPeerAddressPrefix("3FFE:FFFF:0:CD30::4/126")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java new file mode 100644 index 000000000000..191533d87dd2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnectionPeerings Delete. + */ +public final class ExpressRouteCrossConnectionPeeringsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionBgpPeeringDelete.json + */ + /** + * Sample code: DeleteExpressRouteCrossConnectionBgpPeering. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteExpressRouteCrossConnectionBgpPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnectionPeerings() + .delete("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java new file mode 100644 index 000000000000..4d8188f81ce7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnectionPeerings Get. + */ +public final class ExpressRouteCrossConnectionPeeringsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionBgpPeeringGet.json + */ + /** + * Sample code: GetExpressRouteCrossConnectionBgpPeering. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getExpressRouteCrossConnectionBgpPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnectionPeerings() + .getWithResponse("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java new file mode 100644 index 000000000000..931b856030e6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnectionPeerings List. + */ +public final class ExpressRouteCrossConnectionPeeringsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionBgpPeeringList.json + */ + /** + * Sample code: ExpressRouteCrossConnectionBgpPeeringList. + * + * @param manager Entry point to NetworkManager. + */ + public static void + expressRouteCrossConnectionBgpPeeringList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnectionPeerings() + .list("CrossConnection-SiliconValley", "", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b6bc2b394c1c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionInner; +import com.azure.resourcemanager.network.models.ServiceProviderProvisioningState; + +/** + * Samples for ExpressRouteCrossConnections CreateOrUpdate. + */ +public final class ExpressRouteCrossConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionUpdate.json + */ + /** + * Sample code: UpdateExpressRouteCrossConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateExpressRouteCrossConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .createOrUpdate( + "CrossConnection-SiliconValley", "", new ExpressRouteCrossConnectionInner() + .withServiceProviderProvisioningState(ServiceProviderProvisioningState.NOT_PROVISIONED), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..f5fef9447240 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections GetByResourceGroup. + */ +public final class ExpressRouteCrossConnectionsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionGet.json + */ + /** + * Sample code: GetExpressRouteCrossConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRouteCrossConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .getByResourceGroupWithResponse("CrossConnection-SiliconValley", "", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java new file mode 100644 index 000000000000..5e1e10590936 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections ListArpTable. + */ +public final class ExpressRouteCrossConnectionsListArpTableSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionsArpTable.json + */ + /** + * Sample code: GetExpressRouteCrossConnectionsArpTable. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getExpressRouteCrossConnectionsArpTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .listArpTable("CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java new file mode 100644 index 000000000000..127ffd06a092 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections ListByResourceGroup. + */ +public final class ExpressRouteCrossConnectionsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionListByResourceGroup.json + */ + /** + * Sample code: ExpressRouteCrossConnectionListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + expressRouteCrossConnectionListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .listByResourceGroup("CrossConnection-SiliconValley", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java new file mode 100644 index 000000000000..69db7322ff76 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections ListRoutesTable. + */ +public final class ExpressRouteCrossConnectionsListRoutesTableSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionsRouteTable.json + */ + /** + * Sample code: GetExpressRouteCrossConnectionsRouteTable. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getExpressRouteCrossConnectionsRouteTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .listRoutesTable("CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java new file mode 100644 index 000000000000..0477aa0ef3ee --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections ListRoutesTableSummary. + */ +public final class ExpressRouteCrossConnectionsListRoutesTableSummarySamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionsRouteTableSummary.json + */ + /** + * Sample code: GetExpressRouteCrossConnectionsRouteTableSummary. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getExpressRouteCrossConnectionsRouteTableSummary(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .listRoutesTableSummary("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + "primary", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java new file mode 100644 index 000000000000..43fa3db521e0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteCrossConnections List. + */ +public final class ExpressRouteCrossConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionList.json + */ + /** + * Sample code: ExpressRouteCrossConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteCrossConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRouteCrossConnections().list(null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java new file mode 100644 index 000000000000..808742635fa4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ExpressRouteCrossConnections UpdateTags. + */ +public final class ExpressRouteCrossConnectionsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteCrossConnectionUpdateTags.json + */ + /** + * Sample code: UpdateExpressRouteCrossConnectionTags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateExpressRouteCrossConnectionTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteCrossConnections() + .updateTagsWithResponse("CrossConnection-SiliconValley", "", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..60dc132fd749 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteGatewayInner; +import com.azure.resourcemanager.network.models.ExpressRouteGatewayPropertiesAutoScaleConfiguration; +import com.azure.resourcemanager.network.models.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds; +import com.azure.resourcemanager.network.models.VirtualHubId; + +/** + * Samples for ExpressRouteGateways CreateOrUpdate. + */ +public final class ExpressRouteGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayCreate.json + */ + /** + * Sample code: ExpressRouteGatewayCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteGatewayCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .createOrUpdate("resourceGroupName", "gateway-2", new ExpressRouteGatewayInner().withLocation("westus") + .withAutoScaleConfiguration(new ExpressRouteGatewayPropertiesAutoScaleConfiguration() + .withBounds(new ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds().withMin(3))) + .withVirtualHub(new VirtualHubId().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupId/providers/Microsoft.Network/virtualHubs/virtualHubName")) + .withAllowNonVirtualWanTraffic(false), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java new file mode 100644 index 000000000000..d35a4e977aac --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteGateways Delete. + */ +public final class ExpressRouteGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayDelete.json + */ + /** + * Sample code: ExpressRouteGatewayDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteGatewayDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .delete("resourceGroupName", "expressRouteGatewayName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..170cccd831e7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteGateways GetByResourceGroup. + */ +public final class ExpressRouteGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayGet.json + */ + /** + * Sample code: ExpressRouteGatewayGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteGatewayGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .getByResourceGroupWithResponse("resourceGroupName", "expressRouteGatewayName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..9b913c414ffb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteGateways ListByResourceGroup. + */ +public final class ExpressRouteGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayListByResourceGroup.json + */ + /** + * Sample code: ExpressRouteGatewayListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + expressRouteGatewayListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .listByResourceGroupWithResponse("resourceGroupName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java new file mode 100644 index 000000000000..6a2a0f6dd5f1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteGateways ListBySubscription. + */ +public final class ExpressRouteGatewaysListBySubscriptionSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayListBySubscription.json + */ + /** + * Sample code: ExpressRouteGatewayListBySubscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteGatewayListBySubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .listBySubscriptionWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..e8b8eb6ee11e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ExpressRouteGateways UpdateTags. + */ +public final class ExpressRouteGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteGatewayUpdateTags.json + */ + /** + * Sample code: ExpressRouteGatewayUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteGatewayUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteGateways() + .updateTags("resourceGroupName", "expressRouteGatewayName", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java new file mode 100644 index 000000000000..4cd7bf393efe --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteLinks Get. + */ +public final class ExpressRouteLinksGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteLinkGet.json + */ + /** + * Sample code: ExpressRouteLinkGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteLinkGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteLinks() + .getWithResponse("rg1", "portName", "linkName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java new file mode 100644 index 000000000000..4d08dd9300eb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteLinks List. + */ +public final class ExpressRouteLinksListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteLinkList.json + */ + /** + * Sample code: ExpressRouteLinkGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteLinkGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRouteLinks().list("rg1", "portName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7b5b2f2dd751 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortAuthorizationInner; + +/** + * Samples for ExpressRoutePortAuthorizations CreateOrUpdate. + */ +public final class ExpressRoutePortAuthorizationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortAuthorizationCreate.json + */ + /** + * Sample code: Create ExpressRoutePort Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void createExpressRoutePortAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePortAuthorizations() + .createOrUpdate("rg1", "expressRoutePortName", "authorizatinName", new ExpressRoutePortAuthorizationInner(), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java new file mode 100644 index 000000000000..65c664faf5ad --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePortAuthorizations Delete. + */ +public final class ExpressRoutePortAuthorizationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortAuthorizationDelete.json + */ + /** + * Sample code: Delete ExpressRoutePort Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteExpressRoutePortAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePortAuthorizations() + .delete("rg1", "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java new file mode 100644 index 000000000000..520b1f98eaaf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePortAuthorizations Get. + */ +public final class ExpressRoutePortAuthorizationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortAuthorizationGet.json + */ + /** + * Sample code: Get ExpressRoutePort Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void getExpressRoutePortAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePortAuthorizations() + .getWithResponse("rg1", "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java new file mode 100644 index 000000000000..ccf50dfbe44f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePortAuthorizations List. + */ +public final class ExpressRoutePortAuthorizationsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortAuthorizationList.json + */ + /** + * Sample code: List ExpressRoutePort Authorization. + * + * @param manager Entry point to NetworkManager. + */ + public static void listExpressRoutePortAuthorization(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePortAuthorizations() + .list("rg1", "expressRoutePortName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..629c0541e835 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ExpressRouteLinkInner; +import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortInner; +import com.azure.resourcemanager.network.models.ExpressRouteLinkAdminState; +import com.azure.resourcemanager.network.models.ExpressRoutePortsBillingType; +import com.azure.resourcemanager.network.models.ExpressRoutePortsEncapsulation; +import java.util.Arrays; + +/** + * Samples for ExpressRoutePorts CreateOrUpdate. + */ +public final class ExpressRoutePortsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortUpdateLink.json + */ + /** + * Sample code: ExpressRoutePortUpdateLink. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortUpdateLink(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePorts() + .createOrUpdate("rg1", "portName", new ExpressRoutePortInner().withLocation("westus") + .withPeeringLocation("peeringLocationName") + .withBandwidthInGbps(100) + .withEncapsulation(ExpressRoutePortsEncapsulation.QINQ) + .withLinks(Arrays.asList( + new ExpressRouteLinkInner().withName("link1").withAdminState(ExpressRouteLinkAdminState.ENABLED))) + .withBillingType(ExpressRoutePortsBillingType.UNLIMITED_DATA), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortCreate.json + */ + /** + * Sample code: ExpressRoutePortCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePorts() + .createOrUpdate("rg1", "portName", + new ExpressRoutePortInner().withLocation("westus") + .withPeeringLocation("peeringLocationName") + .withBandwidthInGbps(100) + .withEncapsulation(ExpressRoutePortsEncapsulation.QINQ) + .withBillingType(ExpressRoutePortsBillingType.UNLIMITED_DATA), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java new file mode 100644 index 000000000000..dc2286ad4918 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePorts Delete. + */ +public final class ExpressRoutePortsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortDelete.json + */ + /** + * Sample code: ExpressRoutePortDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRoutePorts().delete("rg1", "portName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLOASamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLOASamples.java new file mode 100644 index 000000000000..53139f3abb8b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLOASamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.GenerateExpressRoutePortsLoaRequest; + +/** + * Samples for ExpressRoutePorts GenerateLoa. + */ +public final class ExpressRoutePortsGenerateLoaSamples { + /* + * x-ms-original-file: 2025-05-01/GenerateExpressRoutePortsLOA.json + */ + /** + * Sample code: GenerateExpressRoutePortLOA. + * + * @param manager Entry point to NetworkManager. + */ + public static void generateExpressRoutePortLOA(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePorts() + .generateLoaWithResponse("rg1", "portName", + new GenerateExpressRoutePortsLoaRequest().withCustomerName("customerName"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..37949b02f029 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePorts GetByResourceGroup. + */ +public final class ExpressRoutePortsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortGet.json + */ + /** + * Sample code: ExpressRoutePortGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePorts() + .getByResourceGroupWithResponse("rg1", "portName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java new file mode 100644 index 000000000000..136169a58529 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePorts ListByResourceGroup. + */ +public final class ExpressRoutePortsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortListByResourceGroup.json + */ + /** + * Sample code: ExpressRoutePortListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRoutePorts().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java new file mode 100644 index 000000000000..c7470d583f5f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePorts List. + */ +public final class ExpressRoutePortsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortList.json + */ + /** + * Sample code: ExpressRoutePortList. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRoutePorts().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java new file mode 100644 index 000000000000..2f52269dcae4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePortsLocations Get. + */ +public final class ExpressRoutePortsLocationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortsLocationGet.json + */ + /** + * Sample code: ExpressRoutePortsLocationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortsLocationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePortsLocations() + .getWithResponse("locationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java new file mode 100644 index 000000000000..d5973d7edf3a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRoutePortsLocations List. + */ +public final class ExpressRoutePortsLocationsListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortsLocationList.json + */ + /** + * Sample code: ExpressRoutePortsLocationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortsLocationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRoutePortsLocations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java new file mode 100644 index 000000000000..7cf17687953d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ExpressRoutePorts UpdateTags. + */ +public final class ExpressRoutePortsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRoutePortUpdateTags.json + */ + /** + * Sample code: ExpressRoutePortUpdateTags. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRoutePortUpdateTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRoutePorts() + .updateTagsWithResponse("rg1", "portName", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java new file mode 100644 index 000000000000..d68d6d4291a3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteProviderPortsLocation List. + */ +public final class ExpressRouteProviderPortsLocationListSamples { + /* + * x-ms-original-file: 2025-05-01/expressRouteProviderPortList.json + */ + /** + * Sample code: ExpressRouteProviderPortList. + * + * @param manager Entry point to NetworkManager. + */ + public static void expressRouteProviderPortList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getExpressRouteProviderPortsLocations() + .listWithResponse(null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java new file mode 100644 index 000000000000..7f765510ba29 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ExpressRouteServiceProviders List. + */ +public final class ExpressRouteServiceProvidersListSamples { + /* + * x-ms-original-file: 2025-05-01/ExpressRouteProviderList.json + */ + /** + * Sample code: List ExpressRoute providers. + * + * @param manager Entry point to NetworkManager. + */ + public static void listExpressRouteProviders(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getExpressRouteServiceProviders().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..009c64d62d8b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyInner; +import com.azure.resourcemanager.network.models.AzureFirewallThreatIntelMode; +import com.azure.resourcemanager.network.models.DnsSettings; +import com.azure.resourcemanager.network.models.ExplicitProxy; +import com.azure.resourcemanager.network.models.FirewallPolicyCertificateAuthority; +import com.azure.resourcemanager.network.models.FirewallPolicyInsights; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetection; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionConfiguration; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProfileType; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProtocol; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionSignatureSpecification; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionStateType; +import com.azure.resourcemanager.network.models.FirewallPolicyLogAnalyticsResources; +import com.azure.resourcemanager.network.models.FirewallPolicyLogAnalyticsWorkspace; +import com.azure.resourcemanager.network.models.FirewallPolicySku; +import com.azure.resourcemanager.network.models.FirewallPolicySkuTier; +import com.azure.resourcemanager.network.models.FirewallPolicySnat; +import com.azure.resourcemanager.network.models.FirewallPolicySql; +import com.azure.resourcemanager.network.models.FirewallPolicyThreatIntelWhitelist; +import com.azure.resourcemanager.network.models.FirewallPolicyTransportSecurity; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FirewallPolicies CreateOrUpdate. + */ +public final class FirewallPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyPut.json + */ + /** + * Sample code: Create FirewallPolicy. + * + * @param manager Entry point to NetworkManager. + */ + public static void createFirewallPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicies() + .createOrUpdate("rg1", "firewallPolicy", new FirewallPolicyInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withThreatIntelWhitelist( + new FirewallPolicyThreatIntelWhitelist().withIpAddresses(Arrays.asList("20.3.4.5")) + .withFqdns(Arrays.asList("*.microsoft.com"))) + .withInsights(new FirewallPolicyInsights().withIsEnabled(true) + .withRetentionDays(100) + .withLogAnalyticsResources(new FirewallPolicyLogAnalyticsResources().withWorkspaces(Arrays.asList( + new FirewallPolicyLogAnalyticsWorkspace().withRegion("westus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1")), + new FirewallPolicyLogAnalyticsWorkspace().withRegion("eastus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2")))) + .withDefaultWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace")))) + .withSnat(new FirewallPolicySnat().withPrivateRanges(Arrays.asList("IANAPrivateRanges"))) + .withSql(new FirewallPolicySql().withAllowSqlRedirect(true)) + .withDnsSettings(new DnsSettings().withServers(Arrays.asList("30.3.4.5")) + .withEnableProxy(true) + .withRequireProxyForNetworkRules(false)) + .withExplicitProxy(new ExplicitProxy().withEnableExplicitProxy(true) + .withHttpPort(8087) + .withHttpsPort(8087) + .withEnablePacFile(true) + .withPacFilePort(8087) + .withPacFile( + "https://tinawstorage.file.core.windows.net/?sv=2020-02-10&ss=bfqt&srt=sco&sp=rwdlacuptfx&se=2021-06-04T07:01:12Z&st=2021-06-03T23:01:12Z&sip=68.65.171.11&spr=https&sig=Plsa0RRVpGbY0IETZZOT6znOHcSro71LLTTbzquYPgs%3D")) + .withIntrusionDetection(new FirewallPolicyIntrusionDetection() + .withMode(FirewallPolicyIntrusionDetectionStateType.ALERT) + .withProfile(FirewallPolicyIntrusionDetectionProfileType.fromString("Balanced")) + .withConfiguration(new FirewallPolicyIntrusionDetectionConfiguration() + .withSignatureOverrides( + Arrays.asList(new FirewallPolicyIntrusionDetectionSignatureSpecification().withId("2525004") + .withMode(FirewallPolicyIntrusionDetectionStateType.DENY))) + .withBypassTrafficSettings(Arrays.asList( + new FirewallPolicyIntrusionDetectionBypassTrafficSpecifications().withName("bypassRule1") + .withDescription("Rule 1") + .withProtocol(FirewallPolicyIntrusionDetectionProtocol.TCP) + .withSourceAddresses(Arrays.asList("1.2.3.4")) + .withDestinationAddresses(Arrays.asList("5.6.7.8")) + .withDestinationPorts(Arrays.asList("*")))))) + .withTransportSecurity(new FirewallPolicyTransportSecurity().withCertificateAuthority( + new FirewallPolicyCertificateAuthority().withKeyVaultSecretId("fakeTokenPlaceholder") + .withName("clientcert"))) + .withSku(new FirewallPolicySku().withTier(FirewallPolicySkuTier.PREMIUM)), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java new file mode 100644 index 000000000000..d0c20805acfe --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicies Delete. + */ +public final class FirewallPoliciesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyDelete.json + */ + /** + * Sample code: Delete Firewall Policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteFirewallPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getFirewallPolicies().delete("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..2c34ef93b9b7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicies GetByResourceGroup. + */ +public final class FirewallPoliciesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyGet.json + */ + /** + * Sample code: Get FirewallPolicy. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFirewallPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicies() + .getByResourceGroupWithResponse("rg1", "firewallPolicy", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java new file mode 100644 index 000000000000..0a7a28775447 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicies ListByResourceGroup. + */ +public final class FirewallPoliciesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyListByResourceGroup.json + */ + /** + * Sample code: List all Firewall Policies for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllFirewallPoliciesForAGivenResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getFirewallPolicies().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java new file mode 100644 index 000000000000..102aefbcf6b3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicies List. + */ +public final class FirewallPoliciesListSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyListBySubscription.json + */ + /** + * Sample code: List all Firewall Policies for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllFirewallPoliciesForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getFirewallPolicies().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java new file mode 100644 index 000000000000..2bae39d17d9e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FirewallPolicies UpdateTags. + */ +public final class FirewallPoliciesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyPatch.json + */ + /** + * Sample code: Update FirewallPolicy Tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateFirewallPolicyTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicies() + .updateTagsWithResponse("myResourceGroup", "firewallPolicy", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java new file mode 100644 index 000000000000..33de24456d5f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDeployments Deploy. + */ +public final class FirewallPolicyDeploymentsDeploySamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyDraftDeploy.json + */ + /** + * Sample code: deploy firewall policy draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void deployFirewallPolicyDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyDeployments() + .deploy("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..fdf5dd5d0114 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftInner; +import com.azure.resourcemanager.network.models.AzureFirewallThreatIntelMode; +import com.azure.resourcemanager.network.models.DnsSettings; +import com.azure.resourcemanager.network.models.ExplicitProxy; +import com.azure.resourcemanager.network.models.FirewallPolicyInsights; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetection; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionConfiguration; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProfileType; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionProtocol; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionSignatureSpecification; +import com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionStateType; +import com.azure.resourcemanager.network.models.FirewallPolicyLogAnalyticsResources; +import com.azure.resourcemanager.network.models.FirewallPolicyLogAnalyticsWorkspace; +import com.azure.resourcemanager.network.models.FirewallPolicySnat; +import com.azure.resourcemanager.network.models.FirewallPolicySql; +import com.azure.resourcemanager.network.models.FirewallPolicyThreatIntelWhitelist; +import java.util.Arrays; + +/** + * Samples for FirewallPolicyDrafts CreateOrUpdate. + */ +public final class FirewallPolicyDraftsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyDraftPut.json + */ + /** + * Sample code: create or update firewall policy draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateFirewallPolicyDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyDrafts() + .createOrUpdateWithResponse("rg1", "firewallPolicy", new FirewallPolicyDraftInner() + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withThreatIntelWhitelist( + new FirewallPolicyThreatIntelWhitelist().withIpAddresses(Arrays.asList("20.3.4.5")) + .withFqdns(Arrays.asList("*.microsoft.com"))) + .withInsights(new FirewallPolicyInsights().withIsEnabled(true) + .withRetentionDays(100) + .withLogAnalyticsResources(new FirewallPolicyLogAnalyticsResources().withWorkspaces(Arrays.asList( + new FirewallPolicyLogAnalyticsWorkspace().withRegion("westus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1")), + new FirewallPolicyLogAnalyticsWorkspace().withRegion("eastus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2")))) + .withDefaultWorkspaceId(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace")))) + .withSnat(new FirewallPolicySnat().withPrivateRanges(Arrays.asList("IANAPrivateRanges"))) + .withSql(new FirewallPolicySql().withAllowSqlRedirect(true)) + .withDnsSettings(new DnsSettings().withServers(Arrays.asList("30.3.4.5")) + .withEnableProxy(true) + .withRequireProxyForNetworkRules(false)) + .withExplicitProxy(new ExplicitProxy().withEnableExplicitProxy(true) + .withHttpPort(8087) + .withHttpsPort(8087) + .withEnablePacFile(true) + .withPacFilePort(8087) + .withPacFile( + "https://tinawstorage.file.core.windows.net/?sv=2020-02-10&ss=bfqt&srt=sco&sp=rwdlacuptfx&se=2021-06-04T07:01:12Z&st=2021-06-03T23:01:12Z&sip=68.65.171.11&spr=https&sig=Plsa0RRVpGbY0IETZZOT6znOHcSro71LLTTbzquYPgs%3D")) + .withIntrusionDetection(new FirewallPolicyIntrusionDetection() + .withMode(FirewallPolicyIntrusionDetectionStateType.ALERT) + .withProfile(FirewallPolicyIntrusionDetectionProfileType.fromString("Balanced")) + .withConfiguration(new FirewallPolicyIntrusionDetectionConfiguration() + .withSignatureOverrides( + Arrays.asList(new FirewallPolicyIntrusionDetectionSignatureSpecification().withId("2525004") + .withMode(FirewallPolicyIntrusionDetectionStateType.DENY))) + .withBypassTrafficSettings(Arrays.asList( + new FirewallPolicyIntrusionDetectionBypassTrafficSpecifications().withName("bypassRule1") + .withDescription("Rule 1") + .withProtocol(FirewallPolicyIntrusionDetectionProtocol.TCP) + .withSourceAddresses(Arrays.asList("1.2.3.4")) + .withDestinationAddresses(Arrays.asList("5.6.7.8")) + .withDestinationPorts(Arrays.asList("*")))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java new file mode 100644 index 000000000000..36829c1e4350 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDrafts Delete. + */ +public final class FirewallPolicyDraftsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyDraftDelete.json + */ + /** + * Sample code: delete firewall policy draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteFirewallPolicyDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyDrafts() + .deleteWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java new file mode 100644 index 000000000000..a62e12b6c1ed --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDrafts Get. + */ +public final class FirewallPolicyDraftsGetSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyDraftGet.json + */ + /** + * Sample code: get firewall policy draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFirewallPolicyDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyDrafts() + .getWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java new file mode 100644 index 000000000000..5a8706e3b5df --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.SignatureOverridesFilterValuesQuery; + +/** + * Samples for FirewallPolicyIdpsSignaturesFilterValues List. + */ +public final class FirewallPolicyIdpsSignaturesFilterValuesListSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyQuerySignatureOverridesFilterValues.json + */ + /** + * Sample code: query signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void querySignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignaturesFilterValues() + .listWithResponse("rg1", "firewallPolicy", + new SignatureOverridesFilterValuesQuery().withFilterName("severity"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java new file mode 100644 index 000000000000..c0fdb8599217 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.FilterItems; +import com.azure.resourcemanager.network.models.FirewallPolicyIdpsQuerySortOrder; +import com.azure.resourcemanager.network.models.IdpsQueryObject; +import com.azure.resourcemanager.network.models.OrderBy; +import java.util.Arrays; + +/** + * Samples for FirewallPolicyIdpsSignatures List. + */ +public final class FirewallPolicyIdpsSignaturesListSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyQuerySignatureOverrides.json + */ + /** + * Sample code: query signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void querySignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignatures() + .listWithResponse("rg1", "firewallPolicy", new IdpsQueryObject() + .withFilters(Arrays.asList(new FilterItems().withField("Mode").withValues(Arrays.asList("Deny")))) + .withSearch("") + .withOrderBy(new OrderBy().withField("severity").withOrder(FirewallPolicyIdpsQuerySortOrder.ASCENDING)) + .withResultsPerPage(20) + .withSkip(0), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java new file mode 100644 index 000000000000..9a046c6769ef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyIdpsSignaturesOverrides Get. + */ +public final class FirewallPolicyIdpsSignaturesOverridesGetSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicySignatureOverridesGet.json + */ + /** + * Sample code: get signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .getWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java new file mode 100644 index 000000000000..fe9b226d5f1f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyIdpsSignaturesOverrides List. + */ +public final class FirewallPolicyIdpsSignaturesOverridesListSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicySignatureOverridesList.json + */ + /** + * Sample code: get signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .listWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java new file mode 100644 index 000000000000..f1074ee0dcea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SignaturesOverridesInner; +import com.azure.resourcemanager.network.models.SignaturesOverridesProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FirewallPolicyIdpsSignaturesOverrides Patch. + */ +public final class FirewallPolicyIdpsSignaturesOverridesPatchSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicySignatureOverridesPatch.json + */ + /** + * Sample code: patch signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void patchSignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .patchWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withId( + "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") + .withName("default") + .withType("Microsoft.Network/firewallPolicies/signatureOverrides") + .withProperties( + new SignaturesOverridesProperties().withSignatures(mapOf("2000105", "Off", "2000106", "Deny"))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java new file mode 100644 index 000000000000..c87ffe16180d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SignaturesOverridesInner; +import com.azure.resourcemanager.network.models.SignaturesOverridesProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FirewallPolicyIdpsSignaturesOverrides Put. + */ +public final class FirewallPolicyIdpsSignaturesOverridesPutSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicySignatureOverridesPut.json + */ + /** + * Sample code: put signature overrides. + * + * @param manager Entry point to NetworkManager. + */ + public static void putSignatureOverrides(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .putWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withId( + "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") + .withName("default") + .withType("Microsoft.Network/firewallPolicies/signatureOverrides") + .withProperties( + new SignaturesOverridesProperties().withSignatures(mapOf("2000105", "Off", "2000106", "Deny"))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..90cb3454e5fb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupDraftInner; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollection; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollectionAction; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollectionActionType; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol; +import com.azure.resourcemanager.network.models.NetworkRule; +import java.util.Arrays; + +/** + * Samples for FirewallPolicyRuleCollectionGroupDrafts CreateOrUpdate. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupDraftPut.json + */ + /** + * Sample code: create or update rule collection group draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createOrUpdateRuleCollectionGroupDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroupDrafts() + .createOrUpdateWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupDraftInner().withPriority(100) + .withRuleCollections(Arrays + .asList(new FirewallPolicyFilterRuleCollection().withName("Example-Filter-Rule-Collection") + .withPriority(100) + .withAction(new FirewallPolicyFilterRuleCollectionAction() + .withType(FirewallPolicyFilterRuleCollectionActionType.DENY)) + .withRules(Arrays.asList(new NetworkRule().withName("network-rule1") + .withIpProtocols(Arrays.asList(FirewallPolicyRuleNetworkProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.1.25.0/24")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("*")))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java new file mode 100644 index 000000000000..ebe4994835ad --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroupDrafts Delete. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupDraftDelete.json + */ + /** + * Sample code: delete firewall rule collection group draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteFirewallRuleCollectionGroupDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroupDrafts() + .deleteWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java new file mode 100644 index 000000000000..cb9a85332497 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroupDrafts Get. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsGetSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupDraftGet.json + */ + /** + * Sample code: get rule collection group draft. + * + * @param manager Entry point to NetworkManager. + */ + public static void getRuleCollectionGroupDraft(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroupDrafts() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..e49c895cc687 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupInner; +import com.azure.resourcemanager.network.models.ApplicationRule; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollection; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollectionAction; +import com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollectionActionType; +import com.azure.resourcemanager.network.models.FirewallPolicyHttpHeaderToInsert; +import com.azure.resourcemanager.network.models.FirewallPolicyNatRuleCollection; +import com.azure.resourcemanager.network.models.FirewallPolicyNatRuleCollectionAction; +import com.azure.resourcemanager.network.models.FirewallPolicyNatRuleCollectionActionType; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleApplicationProtocol; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleApplicationProtocolType; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol; +import com.azure.resourcemanager.network.models.NatRule; +import com.azure.resourcemanager.network.models.NetworkRule; +import java.util.Arrays; + +/** + * Samples for FirewallPolicyRuleCollectionGroups CreateOrUpdate. + */ +public final class FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupPut.json + */ + /** + * Sample code: Create Firewall Policy Rule Collection Group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .createOrUpdate("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupInner().withPriority(100) + .withRuleCollections(Arrays + .asList(new FirewallPolicyFilterRuleCollection().withName("Example-Filter-Rule-Collection") + .withPriority(100) + .withAction(new FirewallPolicyFilterRuleCollectionAction() + .withType(FirewallPolicyFilterRuleCollectionActionType.DENY)) + .withRules(Arrays.asList(new NetworkRule().withName("network-rule1") + .withIpProtocols(Arrays.asList(FirewallPolicyRuleNetworkProtocol.TCP)) + .withSourceAddresses(Arrays.asList("10.1.25.0/24")) + .withDestinationAddresses(Arrays.asList("*")) + .withDestinationPorts(Arrays.asList("*")))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + */ + /** + * Sample code: Create Firewall Policy Rule Collection Group With Web Categories. + * + * @param manager Entry point to NetworkManager. + */ + public static void createFirewallPolicyRuleCollectionGroupWithWebCategories( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .createOrUpdate("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupInner().withPriority(110) + .withRuleCollections(Arrays + .asList(new FirewallPolicyFilterRuleCollection().withName("Example-Filter-Rule-Collection") + .withAction(new FirewallPolicyFilterRuleCollectionAction() + .withType(FirewallPolicyFilterRuleCollectionActionType.DENY)) + .withRules(Arrays.asList(new ApplicationRule().withName("rule1") + .withDescription("Deny inbound rule") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new FirewallPolicyRuleApplicationProtocol() + .withProtocolType(FirewallPolicyRuleApplicationProtocolType.HTTPS) + .withPort(443))) + .withWebCategories(Arrays.asList("Hacking")))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyNatRuleCollectionGroupPut.json + */ + /** + * Sample code: Create Firewall Policy Nat Rule Collection Group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createFirewallPolicyNatRuleCollectionGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .createOrUpdate("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupInner().withPriority(100) + .withRuleCollections( + Arrays.asList(new FirewallPolicyNatRuleCollection().withName("Example-Nat-Rule-Collection") + .withPriority(100) + .withAction(new FirewallPolicyNatRuleCollectionAction() + .withType(FirewallPolicyNatRuleCollectionActionType.DNAT)) + .withRules(Arrays.asList(new NatRule().withName("nat-rule1") + .withIpProtocols(Arrays.asList(FirewallPolicyRuleNetworkProtocol.TCP, + FirewallPolicyRuleNetworkProtocol.UDP)) + .withSourceAddresses(Arrays.asList("2.2.2.2")) + .withDestinationAddresses(Arrays.asList("152.23.32.23")) + .withDestinationPorts(Arrays.asList("8080")) + .withTranslatedPort("8080") + .withSourceIpGroups(Arrays.asList()) + .withTranslatedFqdn("internalhttp.server.net"))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + */ + /** + * Sample code: Create Firewall Policy Rule Collection Group With http header to insert. + * + * @param manager Entry point to NetworkManager. + */ + public static void createFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .createOrUpdate("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupInner().withPriority(110) + .withRuleCollections( + Arrays + .asList(new FirewallPolicyFilterRuleCollection().withName("Example-Filter-Rule-Collection") + .withAction(new FirewallPolicyFilterRuleCollectionAction() + .withType(FirewallPolicyFilterRuleCollectionActionType.ALLOW)) + .withRules(Arrays.asList(new ApplicationRule().withName("rule1") + .withDescription("Insert trusted tenants header") + .withSourceAddresses(Arrays.asList("216.58.216.164", "10.0.0.0/24")) + .withProtocols(Arrays.asList(new FirewallPolicyRuleApplicationProtocol() + .withProtocolType(FirewallPolicyRuleApplicationProtocolType.HTTP) + .withPort(80))) + .withFqdnTags(Arrays.asList("WindowsVirtualDesktop")) + .withHttpHeadersToInsert(Arrays.asList(new FirewallPolicyHttpHeaderToInsert() + .withHeaderName("Restrict-Access-To-Tenants") + .withHeaderValue("contoso.com,fabrikam.onmicrosoft.com"))))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + */ + /** + * Sample code: Create Firewall Policy Rule Collection Group With IP Groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createFirewallPolicyRuleCollectionGroupWithIPGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .createOrUpdate("rg1", "firewallPolicy", "ruleCollectionGroup1", + new FirewallPolicyRuleCollectionGroupInner().withPriority(110) + .withRuleCollections(Arrays.asList(new FirewallPolicyFilterRuleCollection() + .withName("Example-Filter-Rule-Collection") + .withAction(new FirewallPolicyFilterRuleCollectionAction() + .withType(FirewallPolicyFilterRuleCollectionActionType.DENY)) + .withRules(Arrays.asList(new NetworkRule().withName("network-1") + .withIpProtocols(Arrays.asList(FirewallPolicyRuleNetworkProtocol.TCP)) + .withDestinationPorts(Arrays.asList("*")) + .withSourceIpGroups(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/resourceGroups/rg1/ipGroups/ipGroups1")) + .withDestinationIpGroups(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/resourceGroups/rg1/ipGroups/ipGroups2")))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java new file mode 100644 index 000000000000..957f1bfabbb6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroups Delete. + */ +public final class FirewallPolicyRuleCollectionGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupDelete.json + */ + /** + * Sample code: Delete FirewallPolicyRuleCollectionGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .delete("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java new file mode 100644 index 000000000000..b9380726bcf7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroups Get. + */ +public final class FirewallPolicyRuleCollectionGroupsGetSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyNatRuleCollectionGroupGet.json + */ + /** + * Sample code: Get FirewallPolicyNatRuleCollectionGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getFirewallPolicyNatRuleCollectionGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + */ + /** + * Sample code: Get FirewallPolicyRuleCollectionGroup With Web Categories. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFirewallPolicyRuleCollectionGroupWithWebCategories( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupGet.json + */ + /** + * Sample code: Get FirewallPolicyRuleCollectionGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + */ + /** + * Sample code: Get FirewallPolicyRuleCollectionGroup With IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getFirewallPolicyRuleCollectionGroupWithIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java new file mode 100644 index 000000000000..eb9abf123069 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroups List. + */ +public final class FirewallPolicyRuleCollectionGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupList.json + */ + /** + * Sample code: List all FirewallPolicyRuleCollectionGroups for a given FirewallPolicy. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + */ + /** + * Sample code: List all FirewallPolicyRuleCollectionGroups with IpGroups for a given FirewallPolicy. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + */ + /** + * Sample code: List all FirewallPolicyRuleCollectionGroup With Web Categories. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllFirewallPolicyRuleCollectionGroupWithWebCategories( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..6e9a15a6ac66 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.FlowLogInner; +import com.azure.resourcemanager.network.models.FlowLogFormatParameters; +import com.azure.resourcemanager.network.models.FlowLogFormatType; +import com.azure.resourcemanager.network.models.ManagedServiceIdentity; +import com.azure.resourcemanager.network.models.ManagedServiceIdentityUserAssignedIdentities; +import com.azure.resourcemanager.network.models.ResourceIdentityType; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FlowLogs CreateOrUpdate. + */ +public final class FlowLogsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogCreate.json + */ + /** + * Sample code: Create or update flow log. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateFlowLog(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFlowLogs() + .createOrUpdate("rg1", "nw1", "fl", new FlowLogInner().withLocation("centraluseuap") + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg") + .withStorageId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe") + .withEnabledFilteringCriteria("srcIP=158.255.7.8 || dstPort=56891") + .withRecordTypes("B,E") + .withEnabled(true) + .withFormat(new FlowLogFormatParameters().withType(FlowLogFormatType.JSON).withVersion(1)), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java new file mode 100644 index 000000000000..58a94a3777a1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FlowLogs Delete. + */ +public final class FlowLogsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogDelete.json + */ + /** + * Sample code: Delete flow log. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteFlowLog(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getFlowLogs().delete("rg1", "nw1", "fl", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java new file mode 100644 index 000000000000..a2af53662976 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FlowLogs Get. + */ +public final class FlowLogsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogGet.json + */ + /** + * Sample code: Get flow log. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFlowLog(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFlowLogs() + .getWithResponse("rg1", "nw1", "flowLog1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java new file mode 100644 index 000000000000..e9054dd03b76 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FlowLogs List. + */ +public final class FlowLogsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogList.json + */ + /** + * Sample code: List connection monitors. + * + * @param manager Entry point to NetworkManager. + */ + public static void listConnectionMonitors(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getFlowLogs().list("rg1", "nw1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java new file mode 100644 index 000000000000..d148243fa083 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FlowLogs UpdateTags. + */ +public final class FlowLogsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogUpdateTags.json + */ + /** + * Sample code: Update flow log tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateFlowLogTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getFlowLogs() + .updateTagsWithResponse("rg1", "nw", "fl", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..faeb7c6be57b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.HubRouteTableInner; +import com.azure.resourcemanager.network.models.HubRoute; +import java.util.Arrays; + +/** + * Samples for HubRouteTables CreateOrUpdate. + */ +public final class HubRouteTablesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/HubRouteTablePut.json + */ + /** + * Sample code: RouteTablePut. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTablePut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubRouteTables() + .createOrUpdate("rg1", "virtualHub1", "hubRouteTable1", new HubRouteTableInner() + .withRoutes(Arrays.asList(new HubRoute().withName("route1") + .withDestinationType("CIDR") + .withDestinations(Arrays.asList("10.0.0.0/8", "20.0.0.0/8", "30.0.0.0/8")) + .withNextHopType("ResourceId") + .withNextHop( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azureFirewall1"))) + .withLabels(Arrays.asList("label1", "label2")), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java new file mode 100644 index 000000000000..4fd7573e8b19 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubRouteTables Delete. + */ +public final class HubRouteTablesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/HubRouteTableDelete.json + */ + /** + * Sample code: RouteTableDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTableDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubRouteTables() + .delete("rg1", "virtualHub1", "hubRouteTable1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java new file mode 100644 index 000000000000..b59b933181ec --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubRouteTables Get. + */ +public final class HubRouteTablesGetSamples { + /* + * x-ms-original-file: 2025-05-01/HubRouteTableGet.json + */ + /** + * Sample code: RouteTableGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTableGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubRouteTables() + .getWithResponse("rg1", "virtualHub1", "hubRouteTable1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java new file mode 100644 index 000000000000..94409efaec63 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubRouteTables List. + */ +public final class HubRouteTablesListSamples { + /* + * x-ms-original-file: 2025-05-01/HubRouteTableList.json + */ + /** + * Sample code: RouteTableList. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTableList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getHubRouteTables().list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..1a48b5724009 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner; +import com.azure.resourcemanager.network.models.PropagatedRouteTable; +import com.azure.resourcemanager.network.models.RoutingConfiguration; +import com.azure.resourcemanager.network.models.StaticRoute; +import com.azure.resourcemanager.network.models.StaticRoutesConfig; +import com.azure.resourcemanager.network.models.VnetLocalRouteOverrideCriteria; +import com.azure.resourcemanager.network.models.VnetRoute; +import java.util.Arrays; + +/** + * Samples for HubVirtualNetworkConnections CreateOrUpdate. + */ +public final class HubVirtualNetworkConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/HubVirtualNetworkConnectionPut.json + */ + /** + * Sample code: HubVirtualNetworkConnectionPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void hubVirtualNetworkConnectionPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubVirtualNetworkConnections() + .createOrUpdate("rg1", "virtualHub1", "connection1", new HubVirtualNetworkConnectionInner() + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1")) + .withEnableInternetSecurity(false) + .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")) + .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1", "label2")) + .withIds(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")))) + .withVnetRoutes(new VnetRoute() + .withStaticRoutesConfig(new StaticRoutesConfig() + .withVnetLocalRouteOverrideCriteria(VnetLocalRouteOverrideCriteria.EQUAL)) + .withStaticRoutes(Arrays.asList( + new StaticRoute().withName("route1") + .withAddressPrefixes(Arrays.asList("10.1.0.0/16", "10.2.0.0/16")) + .withNextHopIpAddress("10.0.0.68"), + new StaticRoute().withName("route2") + .withAddressPrefixes(Arrays.asList("10.3.0.0/16", "10.4.0.0/16")) + .withNextHopIpAddress("10.0.0.65")))) + .withInboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")) + .withOutboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java new file mode 100644 index 000000000000..0ff2eb954d0a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubVirtualNetworkConnections Delete. + */ +public final class HubVirtualNetworkConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/HubVirtualNetworkConnectionDelete.json + */ + /** + * Sample code: HubVirtualNetworkConnectionDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void hubVirtualNetworkConnectionDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubVirtualNetworkConnections() + .delete("rg1", "virtualHub1", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java new file mode 100644 index 000000000000..c5dbdf986603 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubVirtualNetworkConnections Get. + */ +public final class HubVirtualNetworkConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/HubVirtualNetworkConnectionGet.json + */ + /** + * Sample code: HubVirtualNetworkConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void hubVirtualNetworkConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubVirtualNetworkConnections() + .getWithResponse("rg1", "virtualHub1", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java new file mode 100644 index 000000000000..0b91fa150dfb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for HubVirtualNetworkConnections List. + */ +public final class HubVirtualNetworkConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/HubVirtualNetworkConnectionList.json + */ + /** + * Sample code: HubVirtualNetworkConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void hubVirtualNetworkConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getHubVirtualNetworkConnections() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b3dd91ee2e69 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.InboundNatRuleInner; +import com.azure.resourcemanager.network.models.TransportProtocol; + +/** + * Samples for InboundNatRules CreateOrUpdate. + */ +public final class InboundNatRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/InboundNatRuleCreate.json + */ + /** + * Sample code: InboundNatRuleCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void inboundNatRuleCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getInboundNatRules() + .createOrUpdate("testrg", "lb1", "natRule1.1", + new InboundNatRuleInner().withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3390) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(4) + .withEnableFloatingIp(false) + .withEnableTcpReset(false), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java new file mode 100644 index 000000000000..a1a4ad220f55 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for InboundNatRules Delete. + */ +public final class InboundNatRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/InboundNatRuleDelete.json + */ + /** + * Sample code: InboundNatRuleDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void inboundNatRuleDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getInboundNatRules() + .delete("testrg", "lb1", "natRule1.1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java new file mode 100644 index 000000000000..73a384588a0f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for InboundNatRules Get. + */ +public final class InboundNatRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/InboundNatRuleGet.json + */ + /** + * Sample code: InboundNatRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void inboundNatRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getInboundNatRules() + .getWithResponse("testrg", "lb1", "natRule1.1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java new file mode 100644 index 000000000000..616428503f7b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for InboundNatRules List. + */ +public final class InboundNatRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/InboundNatRuleList.json + */ + /** + * Sample code: InboundNatRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void inboundNatRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getInboundNatRules().list("testrg", "lb1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..6b452b7dad2a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.IpAllocationInner; +import com.azure.resourcemanager.network.models.IpAllocationType; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IpAllocations CreateOrUpdate. + */ +public final class IpAllocationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationCreate.json + */ + /** + * Sample code: Create IpAllocation. + * + * @param manager Entry point to NetworkManager. + */ + public static void createIpAllocation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpAllocations() + .createOrUpdate("rg1", "test-ipallocation", new IpAllocationInner().withLocation("centraluseuap") + .withTypePropertiesType(IpAllocationType.HYPERNET) + .withPrefix("3.2.5.0/24") + .withAllocationTags(mapOf("VNetID", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java new file mode 100644 index 000000000000..ec2890217d6f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpAllocations Delete. + */ +public final class IpAllocationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationDelete.json + */ + /** + * Sample code: Delete IpAllocation. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteIpAllocation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpAllocations().delete("rg1", "test-ipallocation", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..05447a29f4d2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpAllocations GetByResourceGroup. + */ +public final class IpAllocationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationGet.json + */ + /** + * Sample code: Get IpAllocation. + * + * @param manager Entry point to NetworkManager. + */ + public static void getIpAllocation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpAllocations() + .getByResourceGroupWithResponse("rg1", "test-ipallocation", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java new file mode 100644 index 000000000000..c80d9000191e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpAllocations ListByResourceGroup. + */ +public final class IpAllocationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationListByResourceGroup.json + */ + /** + * Sample code: List IpAllocations in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listIpAllocationsInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpAllocations().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java new file mode 100644 index 000000000000..fc0ca3bbeba3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpAllocations List. + */ +public final class IpAllocationsListSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationList.json + */ + /** + * Sample code: List all IpAllocations. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllIpAllocations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpAllocations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java new file mode 100644 index 000000000000..b867a3839177 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IpAllocations UpdateTags. + */ +public final class IpAllocationsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/IpAllocationUpdateTags.json + */ + /** + * Sample code: Update virtual network tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpAllocations() + .updateTagsWithResponse("rg1", "test-ipallocation", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ec7112d3455a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.IpGroupInner; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IpGroups CreateOrUpdate. + */ +public final class IpGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsCreate.json + */ + /** + * Sample code: CreateOrUpdate_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpGroups() + .createOrUpdate("myResourceGroup", "ipGroups1", + new IpGroupInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIpAddresses(Arrays.asList("13.64.39.16/32", "40.74.146.80/31", "40.74.147.32/28")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java new file mode 100644 index 000000000000..a6cd60298d5f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpGroups Delete. + */ +public final class IpGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsDelete.json + */ + /** + * Sample code: Delete_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpGroups().delete("myResourceGroup", "ipGroups1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..89174cdaacbf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpGroups GetByResourceGroup. + */ +public final class IpGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsGet.json + */ + /** + * Sample code: Get_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void getIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpGroups() + .getByResourceGroupWithResponse("myResourceGroup", "ipGroups1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java new file mode 100644 index 000000000000..c8a3ee7b4154 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpGroups ListByResourceGroup. + */ +public final class IpGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsListByResourceGroup.json + */ + /** + * Sample code: ListByResourceGroup_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void listByResourceGroupIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpGroups().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java new file mode 100644 index 000000000000..94ee657ddb88 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpGroups List. + */ +public final class IpGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsListBySubscription.json + */ + /** + * Sample code: List_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void listIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getIpGroups().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java new file mode 100644 index 000000000000..e19227d3bace --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IpGroups UpdateGroups. + */ +public final class IpGroupsUpdateGroupsSamples { + /* + * x-ms-original-file: 2025-05-01/IpGroupsUpdateTags.json + */ + /** + * Sample code: Update_IpGroups. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateIpGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpGroups() + .updateGroupsWithResponse("myResourceGroup", "ipGroups1", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsCreateSamples.java new file mode 100644 index 000000000000..62c73d7f52b4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsCreateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.IpamPoolInner; +import com.azure.resourcemanager.network.models.IpamPoolProperties; +import java.util.Arrays; + +/** + * Samples for IpamPools Create. + */ +public final class IpamPoolsCreateSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_Create.json + */ + /** + * Sample code: IpamPools_Create. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .create("rg1", "TestNetworkManager", "TestPool", + new IpamPoolInner().withLocation("eastus") + .withProperties(new IpamPoolProperties().withDescription("Test description.") + .withParentPoolName("") + .withAddressPrefixes(Arrays.asList("10.0.0.0/24"))), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsDeleteSamples.java new file mode 100644 index 000000000000..12187db12055 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools Delete. + */ +public final class IpamPoolsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_Delete.json + */ + /** + * Sample code: IpamPools_Delete. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .delete("rg1", "TestNetworkManager", "TestPool", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetPoolUsageSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetPoolUsageSamples.java new file mode 100644 index 000000000000..2ef784f8f5e5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetPoolUsageSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools GetPoolUsage. + */ +public final class IpamPoolsGetPoolUsageSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_GetPoolUsage.json + */ + /** + * Sample code: IpamPools_GetPoolUsage. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsGetPoolUsage(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .getPoolUsageWithResponse("rg1", "TestNetworkManager", "TestPool", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetSamples.java new file mode 100644 index 000000000000..455112060ceb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools Get. + */ +public final class IpamPoolsGetSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_Get.json + */ + /** + * Sample code: IpamPools_Get. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .getWithResponse("rg1", "TestNetworkManager", "TestPool", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListAssociatedResourcesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListAssociatedResourcesSamples.java new file mode 100644 index 000000000000..d9d9fef8030b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListAssociatedResourcesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools ListAssociatedResources. + */ +public final class IpamPoolsListAssociatedResourcesSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_ListAssociatedResources.json + */ + /** + * Sample code: IpamPools_ListAssociatedResources. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsListAssociatedResources(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .listAssociatedResources("rg1", "TestNetworkManager", "TestPool", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListSamples.java new file mode 100644 index 000000000000..d0c09486a5cc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools List. + */ +public final class IpamPoolsListSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_List.json + */ + /** + * Sample code: IpamPools_List. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .list("rg1", "TestNetworkManager", null, null, null, null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsUpdateSamples.java new file mode 100644 index 000000000000..d37b085ca5a4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/IpamPoolsUpdateSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for IpamPools Update. + */ +public final class IpamPoolsUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/IpamPools_Update.json + */ + /** + * Sample code: IpamPools_Update. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipamPoolsUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getIpamPools() + .updateWithResponse("rg1", "TestNetworkManager", "TestPool", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..219849c4ee27 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner; +import com.azure.resourcemanager.network.models.LoadBalancerBackendAddress; +import java.util.Arrays; + +/** + * Samples for LoadBalancerBackendAddressPools CreateOrUpdate. + */ +public final class LoadBalancerBackendAddressPoolsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/LBBackendAddressPoolWithBackendAddressesPut.json + */ + /** + * Sample code: Update load balancer backend pool with backend addresses containing virtual network and IP address. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .createOrUpdate("testrg", "lb", "backend", new BackendAddressPoolInner() + .withLoadBalancerBackendAddresses(Arrays.asList(new LoadBalancerBackendAddress().withName("address1") + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) + .withIpAddress("10.0.0.4"), + new LoadBalancerBackendAddress().withName("address2") + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) + .withIpAddress("10.0.0.5"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java new file mode 100644 index 000000000000..393a3fe76bb4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerBackendAddressPools Delete. + */ +public final class LoadBalancerBackendAddressPoolsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerBackendAddressPoolDelete.json + */ + /** + * Sample code: BackendAddressPoolDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void backendAddressPoolDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .delete("testrg", "lb", "backend", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java new file mode 100644 index 000000000000..1efdba8de58c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerBackendAddressPools Get. + */ +public final class LoadBalancerBackendAddressPoolsGetSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerBackendAddressPoolGet.json + */ + /** + * Sample code: LoadBalancerBackendAddressPoolGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerBackendAddressPoolGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .getWithResponse("testrg", "lb", "backend", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LBBackendAddressPoolWithBackendAddressesGet.json + */ + /** + * Sample code: LoadBalancer with BackendAddressPool with BackendAddresses. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerWithBackendAddressPoolWithBackendAddresses( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .getWithResponse("testrg", "lb", "backend", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java new file mode 100644 index 000000000000..df72e6e5413d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerBackendAddressPools List. + */ +public final class LoadBalancerBackendAddressPoolsListSamples { + /* + * x-ms-original-file: 2025-05-01/LBBackendAddressPoolListWithBackendAddressesPoolType.json + */ + /** + * Sample code: Load balancer with BackendAddressPool containing BackendAddresses. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerWithBackendAddressPoolContainingBackendAddresses( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .list("testrg", "lb", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerBackendAddressPoolList.json + */ + /** + * Sample code: LoadBalancerBackendAddressPoolList. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerBackendAddressPoolList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerBackendAddressPools() + .list("testrg", "lb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsGetSamples.java new file mode 100644 index 000000000000..0016eb5ecd94 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerFrontendIpConfigurations Get. + */ +public final class LoadBalancerFrontendIpConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerFrontendIPConfigurationGet.json + */ + /** + * Sample code: LoadBalancerFrontendIPConfigurationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void + loadBalancerFrontendIPConfigurationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerFrontendIpConfigurations() + .getWithResponse("testrg", "lb", "frontend", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsListSamples.java new file mode 100644 index 000000000000..500899f545f9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIPConfigurationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerFrontendIpConfigurations List. + */ +public final class LoadBalancerFrontendIpConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerFrontendIPConfigurationList.json + */ + /** + * Sample code: LoadBalancerFrontendIPConfigurationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void + loadBalancerFrontendIPConfigurationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerFrontendIpConfigurations() + .list("testrg", "lb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java new file mode 100644 index 000000000000..c3bed198594c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerLoadBalancingRules Get. + */ +public final class LoadBalancerLoadBalancingRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerLoadBalancingRuleGet.json + */ + /** + * Sample code: LoadBalancerLoadBalancingRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerLoadBalancingRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerLoadBalancingRules() + .getWithResponse("testrg", "lb1", "rule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesHealthSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesHealthSamples.java new file mode 100644 index 000000000000..1ea30392faeb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesHealthSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerLoadBalancingRules Health. + */ +public final class LoadBalancerLoadBalancingRulesHealthSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerHealth.json + */ + /** + * Sample code: Query load balancing rule health. + * + * @param manager Entry point to NetworkManager. + */ + public static void queryLoadBalancingRuleHealth(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerLoadBalancingRules() + .health("rg1", "lb1", "rulelb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java new file mode 100644 index 000000000000..7bf353c31acc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerLoadBalancingRules List. + */ +public final class LoadBalancerLoadBalancingRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerLoadBalancingRuleList.json + */ + /** + * Sample code: LoadBalancerLoadBalancingRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerLoadBalancingRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerLoadBalancingRules() + .list("testrg", "lb1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java new file mode 100644 index 000000000000..07dea8b7a5bb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerNetworkInterfaces List. + */ +public final class LoadBalancerNetworkInterfacesListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerNetworkInterfaceListVmss.json + */ + /** + * Sample code: LoadBalancerNetworkInterfaceListVmss. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerNetworkInterfaceListVmss(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerNetworkInterfaces() + .list("testrg", "lb", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerNetworkInterfaceListSimple.json + */ + /** + * Sample code: LoadBalancerNetworkInterfaceListSimple. + * + * @param manager Entry point to NetworkManager. + */ + public static void + loadBalancerNetworkInterfaceListSimple(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerNetworkInterfaces() + .list("testrg", "lb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java new file mode 100644 index 000000000000..916b1701558d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerOutboundRules Get. + */ +public final class LoadBalancerOutboundRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerOutboundRuleGet.json + */ + /** + * Sample code: LoadBalancerOutboundRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerOutboundRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerOutboundRules() + .getWithResponse("testrg", "lb1", "rule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java new file mode 100644 index 000000000000..0f27a747d1b8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerOutboundRules List. + */ +public final class LoadBalancerOutboundRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerOutboundRuleList.json + */ + /** + * Sample code: LoadBalancerOutboundRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerOutboundRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLoadBalancerOutboundRules().list("testrg", "lb1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java new file mode 100644 index 000000000000..56f6f67a3456 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerProbes Get. + */ +public final class LoadBalancerProbesGetSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerProbeGet.json + */ + /** + * Sample code: LoadBalancerProbeGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerProbeGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancerProbes() + .getWithResponse("testrg", "lb", "probe1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java new file mode 100644 index 000000000000..27c1bfd0cd00 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancerProbes List. + */ +public final class LoadBalancerProbesListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerProbeList.json + */ + /** + * Sample code: LoadBalancerProbeList. + * + * @param manager Entry point to NetworkManager. + */ + public static void loadBalancerProbeList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLoadBalancerProbes().list("testrg", "lb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..1f330a52bc2d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java @@ -0,0 +1,530 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner; +import com.azure.resourcemanager.network.fluent.models.FrontendIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.InboundNatRuleInner; +import com.azure.resourcemanager.network.fluent.models.LoadBalancerInner; +import com.azure.resourcemanager.network.fluent.models.LoadBalancingRuleInner; +import com.azure.resourcemanager.network.fluent.models.OutboundRuleInner; +import com.azure.resourcemanager.network.fluent.models.ProbeInner; +import com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface; +import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterfaceType; +import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelProtocol; +import com.azure.resourcemanager.network.models.InboundNatPool; +import com.azure.resourcemanager.network.models.IpAllocationMethod; +import com.azure.resourcemanager.network.models.LoadBalancerBackendAddress; +import com.azure.resourcemanager.network.models.LoadBalancerOutboundRuleProtocol; +import com.azure.resourcemanager.network.models.LoadBalancerScope; +import com.azure.resourcemanager.network.models.LoadBalancerSku; +import com.azure.resourcemanager.network.models.LoadBalancerSkuName; +import com.azure.resourcemanager.network.models.LoadBalancerSkuTier; +import com.azure.resourcemanager.network.models.LoadDistribution; +import com.azure.resourcemanager.network.models.ProbeProtocol; +import com.azure.resourcemanager.network.models.SyncMode; +import com.azure.resourcemanager.network.models.TransportProtocol; +import java.util.Arrays; + +/** + * Samples for LoadBalancers CreateOrUpdate. + */ +public final class LoadBalancersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateWithSyncModePropertyOnPool.json + */ + /** + * Sample code: Create load balancer with Sync Mode Property on Pool. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createLoadBalancerWithSyncModePropertyOnPool(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb") + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) + .withSyncMode(SyncMode.AUTOMATIC))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + */ + /** + * Sample code: Create load balancer with Gateway Load Balancer Provider configured with two Backend Pool. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.GATEWAY)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb1"), + new BackendAddressPoolInner().withName("be-lb2"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource()) + .withBackendAddressPools(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb1"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb2"))) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.ALL) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(0) + .withBackendPort(0) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateWithInboundNatPool.json + */ + /** + * Sample code: Create load balancer with inbound nat pool. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithInboundNatPool(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test") + .withName("test") + .withZones(Arrays.asList()) + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet")))) + .withBackendAddressPools(Arrays.asList()) + .withLoadBalancingRules(Arrays.asList()) + .withProbes(Arrays.asList()) + .withInboundNatRules(Arrays.asList()) + .withInboundNatPools(Arrays.asList(new InboundNatPool().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test") + .withName("test") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPortRangeStart(8080) + .withFrontendPortRangeEnd(8085) + .withBackendPort(8888) + .withIdleTimeoutInMinutes(10) + .withEnableFloatingIp(true) + .withEnableTcpReset(true))) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateWithOutboundRules.json + */ + /** + * Sample code: Create load balancer with outbound rules. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithOutboundRules(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withPublicIpAddress(new PublicIpAddressInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true) + .withDisableOutboundSnat(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList(new OutboundRuleInner().withName("rule1") + .withFrontendIpConfigurations(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"))) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProtocol(LoadBalancerOutboundRuleProtocol.ALL))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateWithZones.json + */ + /** + * Sample code: Create load balancer with Frontend IP in Zone 1. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createLoadBalancerWithFrontendIPInZone1(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withZones(Arrays.asList("1")) + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + */ + /** + * Sample code: Create load balancer with Gateway Load Balancer Provider configured with one Backend Pool. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.GATEWAY)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb") + .withTunnelInterfaces(Arrays.asList( + new GatewayLoadBalancerTunnelInterface().withPort(15000) + .withIdentifier(900) + .withProtocol(GatewayLoadBalancerTunnelProtocol.VXLAN) + .withType(GatewayLoadBalancerTunnelInterfaceType.INTERNAL), + new GatewayLoadBalancerTunnelInterface().withPort(15001) + .withIdentifier(901) + .withProtocol(GatewayLoadBalancerTunnelProtocol.VXLAN) + .withType(GatewayLoadBalancerTunnelInterfaceType.INTERNAL))))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPools(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"))) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.ALL) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(0) + .withBackendPort(0) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreate.json + */ + /** + * Sample code: Create load balancer. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancer(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true) + .withEnableTcpReset(false))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true) + .withEnableTcpReset(false))) + .withInboundNatPools(Arrays.asList()) + .withScope(LoadBalancerScope.PUBLIC), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateGlobalTier.json + */ + /** + * Sample code: Create load balancer with Global Tier and one regional load balancer in its backend pool. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku( + new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD).withTier(LoadBalancerSkuTier.GLOBAL)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb") + .withLoadBalancerBackendAddresses(Arrays.asList(new LoadBalancerBackendAddress() + .withName("regional-lb1-address") + .withLoadBalancerFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/regional-lb-rg1/providers/Microsoft.Network/loadBalancers/regional-lb/frontendIPConfigurations/fe-rlb")))))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(false))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateGatewayLoadBalancerConsumer.json + */ + /** + * Sample code: Create load balancer with Gateway Load Balancer Consumer configured. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithGatewayLoadBalancerConsumerConfigured( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")) + .withGatewayLoadBalancer(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerCreateStandardSku.json + */ + /** + * Sample code: Create load balancer with Standard SKU. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLoadBalancerWithStandardSKU(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + .withBackendAddressPools(Arrays.asList(new BackendAddressPoolInner().withName("be-lb"))) + .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withBackendAddressPool(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) + .withProbe(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) + .withProtocol(TransportProtocol.TCP) + .withLoadDistribution(LoadDistribution.DEFAULT) + .withFrontendPort(80) + .withBackendPort(80) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withProbes(Arrays.asList(new ProbeInner().withName("probe-lb") + .withProtocol(ProbeProtocol.HTTP) + .withPort(80) + .withIntervalInSeconds(15) + .withNumberOfProbes(2) + .withProbeThreshold(1) + .withRequestPath("healthcheck.aspx"))) + .withInboundNatRules(Arrays.asList(new InboundNatRuleInner().withName("in-nat-rule") + .withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true))) + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java new file mode 100644 index 000000000000..dd0d91f38533 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancers Delete. + */ +public final class LoadBalancersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerDelete.json + */ + /** + * Sample code: Delete load balancer. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteLoadBalancer(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLoadBalancers().delete("rg1", "lb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..4b364134a6bf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancers GetByResourceGroup. + */ +public final class LoadBalancersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerGet.json + */ + /** + * Sample code: Get load balancer. + * + * @param manager Entry point to NetworkManager. + */ + public static void getLoadBalancer(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .getByResourceGroupWithResponse("rg1", "lb", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/LoadBalancerGetInboundNatRulePortMapping.json + */ + /** + * Sample code: Get load balancer with inbound NAT rule port mapping. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getLoadBalancerWithInboundNATRulePortMapping(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .getByResourceGroupWithResponse("rg1", "lb", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java new file mode 100644 index 000000000000..f3a43f7f7b80 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancers ListByResourceGroup. + */ +public final class LoadBalancersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerList.json + */ + /** + * Sample code: List load balancers in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listLoadBalancersInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLoadBalancers().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java new file mode 100644 index 000000000000..b7627be17022 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.QueryInboundNatRulePortMappingRequest; + +/** + * Samples for LoadBalancers ListInboundNatRulePortMappings. + */ +public final class LoadBalancersListInboundNatRulePortMappingsSamples { + /* + * x-ms-original-file: 2025-05-01/QueryInboundNatRulePortMapping.json + */ + /** + * Sample code: Query inbound NAT rule port mapping. + * + * @param manager Entry point to NetworkManager. + */ + public static void queryInboundNATRulePortMapping(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .listInboundNatRulePortMappings("rg1", "lb1", "bp1", + new QueryInboundNatRulePortMappingRequest().withIpAddress("10.0.0.4"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java new file mode 100644 index 000000000000..7e89d1954354 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LoadBalancers List. + */ +public final class LoadBalancersListSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerListAll.json + */ + /** + * Sample code: List all load balancers. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllLoadBalancers(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLoadBalancers().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java new file mode 100644 index 000000000000..b5fbb446cbb0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.MigrateLoadBalancerToIpBasedRequest; +import java.util.Arrays; + +/** + * Samples for LoadBalancers MigrateToIpBased. + */ +public final class LoadBalancersMigrateToIpBasedSamples { + /* + * x-ms-original-file: 2025-05-01/MigrateLoadBalancerToIPBased.json + */ + /** + * Sample code: Migrate load balancer to IP Based. + * + * @param manager Entry point to NetworkManager. + */ + public static void migrateLoadBalancerToIPBased(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .migrateToIpBasedWithResponse("rg1", "lb1", + new MigrateLoadBalancerToIpBasedRequest().withPools(Arrays.asList("pool1", "pool2")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java new file mode 100644 index 000000000000..f1d684b8c936 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.models.LoadBalancerVipSwapRequest; +import com.azure.resourcemanager.network.models.LoadBalancerVipSwapRequestFrontendIpConfiguration; +import java.util.Arrays; + +/** + * Samples for LoadBalancers SwapPublicIpAddresses. + */ +public final class LoadBalancersSwapPublicIpAddressesSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancersSwapPublicIpAddresses.json + */ + /** + * Sample code: Swap VIPs between two load balancers. + * + * @param manager Entry point to NetworkManager. + */ + public static void swapVIPsBetweenTwoLoadBalancers(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .swapPublicIpAddresses("westus", new LoadBalancerVipSwapRequest().withFrontendIpConfigurations( + Arrays.asList(new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfe1") + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/pip2")), + new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb2/frontendIPConfigurations/lbfe2") + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip1")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java new file mode 100644 index 000000000000..4d77a5c19564 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for LoadBalancers UpdateTags. + */ +public final class LoadBalancersUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/LoadBalancerUpdateTags.json + */ + /** + * Sample code: Update load balancer tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateLoadBalancerTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLoadBalancers() + .updateTagsWithResponse("rg1", "lb", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..9fe2e6054fac --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import java.util.Arrays; + +/** + * Samples for LocalNetworkGateways CreateOrUpdate. + */ +public final class LocalNetworkGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/LocalNetworkGatewayCreate.json + */ + /** + * Sample code: CreateLocalNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createLocalNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLocalNetworkGateways() + .createOrUpdate("rg1", "localgw", + new LocalNetworkGatewayInner().withLocation("Central US") + .withLocalNetworkAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.1.0.0/16"))) + .withGatewayIpAddress("11.12.13.14") + .withFqdn("site1.contoso.com"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java new file mode 100644 index 000000000000..348a2994a250 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LocalNetworkGateways Delete. + */ +public final class LocalNetworkGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/LocalNetworkGatewayDelete.json + */ + /** + * Sample code: DeleteLocalNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteLocalNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLocalNetworkGateways().delete("rg1", "localgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..96aa02d6430f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LocalNetworkGateways GetByResourceGroup. + */ +public final class LocalNetworkGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/LocalNetworkGatewayGet.json + */ + /** + * Sample code: GetLocalNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getLocalNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLocalNetworkGateways() + .getByResourceGroupWithResponse("rg1", "localgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..8accc9df8101 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for LocalNetworkGateways ListByResourceGroup. + */ +public final class LocalNetworkGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/LocalNetworkGatewayList.json + */ + /** + * Sample code: ListLocalNetworkGateways. + * + * @param manager Entry point to NetworkManager. + */ + public static void listLocalNetworkGateways(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getLocalNetworkGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..5c9cbe2a0d98 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for LocalNetworkGateways UpdateTags. + */ +public final class LocalNetworkGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/LocalNetworkGatewayUpdateTags.json + */ + /** + * Sample code: UpdateLocalNetworkGatewayTags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateLocalNetworkGatewayTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getLocalNetworkGateways() + .updateTagsWithResponse("rg1", "lgw", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0b61eeb07df2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkManagerConnectionInner; + +/** + * Samples for ManagementGroupNetworkManagerConnections CreateOrUpdate. + */ +public final class ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionManagementGroupPut.json + */ + /** + * Sample code: Create or Update Management Group Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateManagementGroupNetworkManagerConnection( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getManagementGroupNetworkManagerConnections() + .createOrUpdateWithResponse("managementGroupA", "TestNMConnection", + new NetworkManagerConnectionInner().withNetworkManagerId( + "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java new file mode 100644 index 000000000000..57d7a0f9a51e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ManagementGroupNetworkManagerConnections Delete. + */ +public final class ManagementGroupNetworkManagerConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionManagementGroupDelete.json + */ + /** + * Sample code: Delete Management Group Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteManagementGroupNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getManagementGroupNetworkManagerConnections() + .deleteWithResponse("managementGroupA", "TestNMConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java new file mode 100644 index 000000000000..9d5f82ff863c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ManagementGroupNetworkManagerConnections Get. + */ +public final class ManagementGroupNetworkManagerConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionManagementGroupGet.json + */ + /** + * Sample code: Get Management Group Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getManagementGroupNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getManagementGroupNetworkManagerConnections() + .getWithResponse("managementGroupA", "TestNMConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java new file mode 100644 index 000000000000..0eeb1d7c054b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ManagementGroupNetworkManagerConnections List. + */ +public final class ManagementGroupNetworkManagerConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionManagementGroupList.json + */ + /** + * Sample code: List Management Group Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listManagementGroupNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getManagementGroupNetworkManagerConnections() + .list("managementGroupA", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ad056a1928ba --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.NatGatewayInner; +import com.azure.resourcemanager.network.models.NatGatewaySku; +import com.azure.resourcemanager.network.models.NatGatewaySkuName; +import java.util.Arrays; + +/** + * Samples for NatGateways CreateOrUpdate. + */ +public final class NatGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayCreateOrUpdate.json + */ + /** + * Sample code: Create nat gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNatGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .createOrUpdate("rg1", "test-natgateway", new NatGatewayInner().withLocation("westus") + .withSku(new NatGatewaySku().withName(NatGatewaySkuName.STANDARD)) + .withPublicIpAddresses(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"))) + .withPublicIpPrefixes(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NatGatewayWithServiceGatewayCreateOrUpdate.json + */ + /** + * Sample code: Create nat gateway with service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNatGatewayWithServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .createOrUpdate("rg1", "test-natgateway", new NatGatewayInner().withLocation("westus") + .withSku(new NatGatewaySku().withName(NatGatewaySkuName.STANDARD)) + .withPublicIpAddresses(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"))) + .withPublicIpPrefixes(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"))) + .withServiceGateway(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/serviceGateways/SG1")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NatGatewayCreateOrUpdateStandardV2Sku.json + */ + /** + * Sample code: Create nat gateway with StandardV2 Sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNatGatewayWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .createOrUpdate("rg1", "test-natgateway", new NatGatewayInner().withLocation("westus") + .withSku(new NatGatewaySku().withName(NatGatewaySkuName.STANDARD_V2)) + .withPublicIpAddresses(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"))) + .withPublicIpPrefixes(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java new file mode 100644 index 000000000000..300cbd05e820 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatGateways Delete. + */ +public final class NatGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayDelete.json + */ + /** + * Sample code: Delete nat gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNatGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNatGateways().delete("rg1", "test-natGateway", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..9723d479dd37 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatGateways GetByResourceGroup. + */ +public final class NatGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayGet.json + */ + /** + * Sample code: Get nat gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNatGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .getByResourceGroupWithResponse("rg1", "test-natGateway", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NatGatewayGetStandardV2Sku.json + */ + /** + * Sample code: Get nat gateway with StandardV2 Sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNatGatewayWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .getByResourceGroupWithResponse("rg1", "test-natGateway", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NatGatewayWithServiceGatewayGet.json + */ + /** + * Sample code: Get nat gateway with service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNatGatewayWithServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .getByResourceGroupWithResponse("rg1", "test-natGateway", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..33558db1f8c0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatGateways ListByResourceGroup. + */ +public final class NatGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayList.json + */ + /** + * Sample code: List nat gateways in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNatGatewaysInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNatGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java new file mode 100644 index 000000000000..373c0502294b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatGateways List. + */ +public final class NatGatewaysListSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayListAll.json + */ + /** + * Sample code: List all nat gateways. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNatGateways(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNatGateways().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..e2a80833aed1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NatGateways UpdateTags. + */ +public final class NatGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NatGatewayUpdateTags.json + */ + /** + * Sample code: Update nat gateway tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNatGatewayTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .updateTagsWithResponse("rg1", "test-natGateway", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NatGatewayUpdateTagsStandardV2Sku.json + */ + /** + * Sample code: Update nat gateway with StandardV2 Sku tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNatGatewayWithStandardV2SkuTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatGateways() + .updateTagsWithResponse("rg1", "test-natGateway", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..40baf5122dc2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VpnGatewayNatRuleInner; +import com.azure.resourcemanager.network.models.VpnNatRuleMapping; +import com.azure.resourcemanager.network.models.VpnNatRuleMode; +import com.azure.resourcemanager.network.models.VpnNatRuleType; +import java.util.Arrays; + +/** + * Samples for NatRules CreateOrUpdate. + */ +public final class NatRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NatRulePut.json + */ + /** + * Sample code: NatRulePut. + * + * @param manager Entry point to NetworkManager. + */ + public static void natRulePut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatRules() + .createOrUpdate("rg1", "gateway1", "natRule1", new VpnGatewayNatRuleInner() + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.EGRESS_SNAT) + .withInternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("10.4.0.0/24"))) + .withExternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("192.168.21.0/24"))) + .withIpConfigurationId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java new file mode 100644 index 000000000000..c39bef835b67 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatRules Delete. + */ +public final class NatRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NatRuleDelete.json + */ + /** + * Sample code: NatRuleDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void natRuleDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNatRules().delete("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java new file mode 100644 index 000000000000..52bb2cb52391 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatRules Get. + */ +public final class NatRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NatRuleGet.json + */ + /** + * Sample code: NatRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void natRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNatRules() + .getWithResponse("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java new file mode 100644 index 000000000000..9ec093054596 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NatRules ListByVpnGateway. + */ +public final class NatRulesListByVpnGatewaySamples { + /* + * x-ms-original-file: 2025-05-01/NatRuleList.json + */ + /** + * Sample code: NatRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void natRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNatRules().listByVpnGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..053c9cd16692 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkGroupInner; +import com.azure.resourcemanager.network.models.GroupMemberType; + +/** + * Samples for NetworkGroups CreateOrUpdate. + */ +public final class NetworkGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerGroupPut.json + */ + /** + * Sample code: NetworkGroupsPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkGroupsPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkGroups() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "testNetworkGroup", + new NetworkGroupInner().withDescription("A sample group") + .withMemberType(GroupMemberType.VIRTUAL_NETWORK), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java new file mode 100644 index 000000000000..ded46d4b6671 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkGroups Delete. + */ +public final class NetworkGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerGroupDelete.json + */ + /** + * Sample code: NetworkGroupsDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkGroupsDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkGroups() + .delete("rg1", "testNetworkManager", "testNetworkGroup", false, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java new file mode 100644 index 000000000000..9bb68f21dd0b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkGroups Get. + */ +public final class NetworkGroupsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerGroupGet.json + */ + /** + * Sample code: NetworkGroupsGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkGroupsGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkGroups() + .getWithResponse("rg1", "testNetworkManager", "testNetworkGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java new file mode 100644 index 000000000000..fa8dd74260ea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkGroups List. + */ +public final class NetworkGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerGroupList.json + */ + /** + * Sample code: NetworkGroupsList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkGroupsList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkGroups() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsGetSamples.java new file mode 100644 index 000000000000..c16d072c8ba7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceIpConfigurations Get. + */ +public final class NetworkInterfaceIpConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceIPConfigurationGet.json + */ + /** + * Sample code: NetworkInterfaceIPConfigurationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkInterfaceIPConfigurationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceIpConfigurations() + .getWithResponse("testrg", "mynic", "ipconfig1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsListSamples.java new file mode 100644 index 000000000000..0d9c90ec8b45 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIPConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceIpConfigurations List. + */ +public final class NetworkInterfaceIpConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceIPConfigurationList.json + */ + /** + * Sample code: NetworkInterfaceIPConfigurationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkInterfaceIPConfigurationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceIpConfigurations() + .list("testrg", "nic1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java new file mode 100644 index 000000000000..75217333b0ce --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceLoadBalancers List. + */ +public final class NetworkInterfaceLoadBalancersListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceLoadBalancerList.json + */ + /** + * Sample code: NetworkInterfaceLoadBalancerList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkInterfaceLoadBalancerList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceLoadBalancers() + .list("testrg", "nic1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..fecb2abf8aa5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceTapConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkTapInner; + +/** + * Samples for NetworkInterfaceTapConfigurations CreateOrUpdate. + */ +public final class NetworkInterfaceTapConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceTapConfigurationCreate.json + */ + /** + * Sample code: Create Network Interface Tap Configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createNetworkInterfaceTapConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceTapConfigurations() + .createOrUpdate("testrg", "mynic", "tapconfiguration1", + new NetworkInterfaceTapConfigurationInner().withVirtualNetworkTap(new VirtualNetworkTapInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..7318427c6162 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceTapConfigurations Delete. + */ +public final class NetworkInterfaceTapConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceTapConfigurationDelete.json + */ + /** + * Sample code: Delete tap configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteTapConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceTapConfigurations() + .delete("testrg", "mynic", "tapconfiguration1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java new file mode 100644 index 000000000000..c446ff68ccda --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceTapConfigurations Get. + */ +public final class NetworkInterfaceTapConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceTapConfigurationGet.json + */ + /** + * Sample code: Get Network Interface Tap Configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkInterfaceTapConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceTapConfigurations() + .getWithResponse("testrg", "mynic", "tapconfiguration1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java new file mode 100644 index 000000000000..7ac15d51704b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaceTapConfigurations List. + */ +public final class NetworkInterfaceTapConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceTapConfigurationList.json + */ + /** + * Sample code: List virtual network tap configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void listVirtualNetworkTapConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaceTapConfigurations() + .list("testrg", "mynic", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..5d24ec1cc653 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner; +import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import java.util.Arrays; + +/** + * Samples for NetworkInterfaces CreateOrUpdate. + */ +public final class NetworkInterfacesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + */ + /** + * Sample code: Create network interface with Gateway Load Balancer Consumer configured. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .createOrUpdate("rg1", "test-nic", new NetworkInterfaceInner().withLocation("eastus") + .withIpConfigurations(Arrays.asList(new NetworkInterfaceIpConfigurationInner().withName("ipconfig1") + .withGatewayLoadBalancer(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider")) + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")) + .withPublicIpAddress(new PublicIpAddressInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")))) + .withEnableAcceleratedNetworking(true), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceCreate.json + */ + /** + * Sample code: Create network interface. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkInterface(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .createOrUpdate("rg1", "test-nic", new NetworkInterfaceInner().withLocation("eastus") + .withIpConfigurations(Arrays.asList(new NetworkInterfaceIpConfigurationInner().withName("ipconfig1") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")) + .withPublicIpAddress(new PublicIpAddressInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")), + new NetworkInterfaceIpConfigurationInner().withName("ipconfig2") + .withPrivateIPAddressPrefixLength(28))) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java new file mode 100644 index 000000000000..980a07f14b35 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces Delete. + */ +public final class NetworkInterfacesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceDelete.json + */ + /** + * Sample code: Delete network interface. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkInterface(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkInterfaces().delete("rg1", "test-nic", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..5c8106cbd9b9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces GetByResourceGroup. + */ +public final class NetworkInterfacesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceGet.json + */ + /** + * Sample code: Get network interface. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkInterface(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .getByResourceGroupWithResponse("rg1", "test-nic", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java new file mode 100644 index 000000000000..abe0e47a5689 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces GetCloudServiceNetworkInterface. + */ +public final class NetworkInterfacesGetCloudServiceNetworkInterfaceSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceNetworkInterfaceGet.json + */ + /** + * Sample code: Get cloud service network interface. + * + * @param manager Entry point to NetworkManager. + */ + public static void getCloudServiceNetworkInterface(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .getCloudServiceNetworkInterfaceWithResponse("rg1", "cs1", "TestVMRole_IN_0", "nic1", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java new file mode 100644 index 000000000000..59bb06bd04f0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces GetEffectiveRouteTable. + */ +public final class NetworkInterfacesGetEffectiveRouteTableSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceEffectiveRouteTableList.json + */ + /** + * Sample code: Show network interface effective route tables. + * + * @param manager Entry point to NetworkManager. + */ + public static void + showNetworkInterfaceEffectiveRouteTables(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .getEffectiveRouteTable("rg1", "nic1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java new file mode 100644 index 000000000000..d3f64a135d2f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces ListByResourceGroup. + */ +public final class NetworkInterfacesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceList.json + */ + /** + * Sample code: List network interfaces in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNetworkInterfacesInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkInterfaces().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java new file mode 100644 index 000000000000..66e4ca358179 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces ListCloudServiceNetworkInterfaces. + */ +public final class NetworkInterfacesListCloudServiceNetworkInterfacesSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceNetworkInterfaceList.json + */ + /** + * Sample code: List cloud service network interfaces. + * + * @param manager Entry point to NetworkManager. + */ + public static void listCloudServiceNetworkInterfaces(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .listCloudServiceNetworkInterfaces("rg1", "cs1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java new file mode 100644 index 000000000000..68348c7108f2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces ListCloudServiceRoleInstanceNetworkInterfaces. + */ +public final class NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceRoleInstanceNetworkInterfaceList.json + */ + /** + * Sample code: List cloud service role instance network interfaces. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listCloudServiceRoleInstanceNetworkInterfaces(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .listCloudServiceRoleInstanceNetworkInterfaces("rg1", "cs1", "TestVMRole_IN_0", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java new file mode 100644 index 000000000000..d5579351c756 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces ListEffectiveNetworkSecurityGroups. + */ +public final class NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceEffectiveNSGList.json + */ + /** + * Sample code: List network interface effective network security groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listNetworkInterfaceEffectiveNetworkSecurityGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .listEffectiveNetworkSecurityGroups("rg1", "nic1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java new file mode 100644 index 000000000000..2b925a283e05 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkInterfaces List. + */ +public final class NetworkInterfacesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceListAll.json + */ + /** + * Sample code: List all network interfaces. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkInterfaces(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkInterfaces().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java new file mode 100644 index 000000000000..3d513a9fc465 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkInterfaces UpdateTags. + */ +public final class NetworkInterfacesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkInterfaceUpdateTags.json + */ + /** + * Sample code: Update network interface tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNetworkInterfaceTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkInterfaces() + .updateTagsWithResponse("rg1", "test-nic", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java new file mode 100644 index 000000000000..c77041aee9f8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkManagerCommitInner; +import com.azure.resourcemanager.network.models.ConfigurationType; +import java.util.Arrays; + +/** + * Samples for NetworkManagerCommits Post. + */ +public final class NetworkManagerCommitsPostSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerCommitPost.json + */ + /** + * Sample code: NetworkManageCommitPost. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManageCommitPost(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerCommits() + .post("resoureGroupSample", "testNetworkManager", new NetworkManagerCommitInner() + .withTargetLocations(Arrays.asList("useast")) + .withConfigurationIds(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig")) + .withCommitType(ConfigurationType.SECURITY_ADMIN), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java new file mode 100644 index 000000000000..c2aa17d17491 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.ConfigurationType; +import com.azure.resourcemanager.network.models.NetworkManagerDeploymentStatusParameter; +import java.util.Arrays; + +/** + * Samples for NetworkManagerDeploymentStatusOperation List. + */ +public final class NetworkManagerDeploymentStatusOperationListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerDeploymentStatusList.json + */ + /** + * Sample code: NetworkManagerDeploymentStatusList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManagerDeploymentStatusList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerDeploymentStatusOperations() + .listWithResponse("resoureGroupSample", "testNetworkManager", + new NetworkManagerDeploymentStatusParameter().withRegions(Arrays.asList("eastus", "westus")) + .withDeploymentTypes( + Arrays.asList(ConfigurationType.CONNECTIVITY, ConfigurationType.fromString("AdminPolicy"))) + .withSkipToken("fakeTokenPlaceholder"), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7049522e7a15 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkManagerRoutingConfigurationInner; +import com.azure.resourcemanager.network.models.RouteTableUsageMode; + +/** + * Samples for NetworkManagerRoutingConfigurations CreateOrUpdate. + */ +public final class NetworkManagerRoutingConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingConfigurationPut.json + */ + /** + * Sample code: Create network manager routing configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createNetworkManagerRoutingConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerRoutingConfigurations() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestRoutingConfig", + new NetworkManagerRoutingConfigurationInner().withDescription("A sample policy") + .withRouteTableUsageMode(RouteTableUsageMode.MANAGED_ONLY), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..8c1feafd2893 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagerRoutingConfigurations Delete. + */ +public final class NetworkManagerRoutingConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingConfigurationDelete.json + */ + /** + * Sample code: Delete network manager routing configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteNetworkManagerRoutingConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerRoutingConfigurations() + .delete("rg1", "testNetworkManager", "myTestRoutingConfig", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsGetSamples.java new file mode 100644 index 000000000000..db1e7222ebaf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagerRoutingConfigurations Get. + */ +public final class NetworkManagerRoutingConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingConfigurationGet.json + */ + /** + * Sample code: Get routing configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getRoutingConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerRoutingConfigurations() + .getWithResponse("rg1", "testNetworkManager", "myTestRoutingConfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsListSamples.java new file mode 100644 index 000000000000..cff6d39dd4b8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerRoutingConfigurationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagerRoutingConfigurations List. + */ +public final class NetworkManagerRoutingConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingConfigurationList.json + */ + /** + * Sample code: List routing configurations in a network manager. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listRoutingConfigurationsInANetworkManager(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagerRoutingConfigurations() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..dcbaa1b2daf0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkManagerInner; +import com.azure.resourcemanager.network.models.ConfigurationType; +import com.azure.resourcemanager.network.models.NetworkManagerPropertiesNetworkManagerScopes; +import java.util.Arrays; + +/** + * Samples for NetworkManagers CreateOrUpdate. + */ +public final class NetworkManagersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerPut.json + */ + /** + * Sample code: Put Network Manager. + * + * @param manager Entry point to NetworkManager. + */ + public static void putNetworkManager(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagers() + .createOrUpdateWithResponse("rg1", "TestNetworkManager", + new NetworkManagerInner().withDescription("My Test Network Manager") + .withNetworkManagerScopes(new NetworkManagerPropertiesNetworkManagerScopes() + .withManagementGroups(Arrays.asList("/Microsoft.Management/testmg")) + .withSubscriptions(Arrays.asList("/subscriptions/00000000-0000-0000-0000-000000000000"))) + .withNetworkManagerScopeAccesses(Arrays.asList(ConfigurationType.CONNECTIVITY)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java new file mode 100644 index 000000000000..02a1af98c041 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagers Delete. + */ +public final class NetworkManagersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerDelete.json + */ + /** + * Sample code: NetworkManagersDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManagersDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagers() + .delete("rg1", "testNetworkManager", false, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..807007c2f037 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagers GetByResourceGroup. + */ +public final class NetworkManagersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerGet.json + */ + /** + * Sample code: NetworkManagersGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManagersGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagers() + .getByResourceGroupWithResponse("rg1", "testNetworkManager", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java new file mode 100644 index 000000000000..fbbd76f5b06b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagers ListByResourceGroup. + */ +public final class NetworkManagersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerList.json + */ + /** + * Sample code: List Network Manager. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNetworkManager(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagers() + .listByResourceGroup("rg1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java new file mode 100644 index 000000000000..05c7b5843523 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkManagers List. + */ +public final class NetworkManagersListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerListAll.json + */ + /** + * Sample code: NetworkManagersList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManagersList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkManagers().list(null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java new file mode 100644 index 000000000000..7c23c3149a8d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.PatchObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkManagers Patch. + */ +public final class NetworkManagersPatchSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerPatch.json + */ + /** + * Sample code: NetworkManagesPatch. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkManagesPatch(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkManagers() + .patchWithResponse("rg1", "testNetworkManager", + new PatchObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7722a5761671 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.IpConfigurationProfileInner; +import com.azure.resourcemanager.network.fluent.models.NetworkProfileInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.models.ContainerNetworkInterfaceConfiguration; +import java.util.Arrays; + +/** + * Samples for NetworkProfiles CreateOrUpdate. + */ +public final class NetworkProfilesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileCreateConfigOnly.json + */ + /** + * Sample code: Create network profile defaults. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkProfileDefaults(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkProfiles() + .createOrUpdateWithResponse("rg1", "networkProfile1", new NetworkProfileInner().withLocation("westus") + .withContainerNetworkInterfaceConfigurations(Arrays.asList(new ContainerNetworkInterfaceConfiguration() + .withName("eth1") + .withIpConfigurations(Arrays.asList(new IpConfigurationProfileInner().withName("ipconfig1") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1")))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java new file mode 100644 index 000000000000..88653e4c9ee1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkProfiles Delete. + */ +public final class NetworkProfilesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileDelete.json + */ + /** + * Sample code: Delete network profile. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkProfile(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkProfiles().delete("rg1", "networkProfile1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..1e824caf74e9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkProfiles GetByResourceGroup. + */ +public final class NetworkProfilesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileGetWithContainerNic.json + */ + /** + * Sample code: Get network profile with container network interfaces. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getNetworkProfileWithContainerNetworkInterfaces(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkProfiles() + .getByResourceGroupWithResponse("rg1", "networkProfile1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkProfileGetConfigOnly.json + */ + /** + * Sample code: Get network profile. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkProfile(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkProfiles() + .getByResourceGroupWithResponse("rg1", "networkProfile1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java new file mode 100644 index 000000000000..3565b7dff2ed --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkProfiles ListByResourceGroup. + */ +public final class NetworkProfilesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileList.json + */ + /** + * Sample code: List resource group network profiles. + * + * @param manager Entry point to NetworkManager. + */ + public static void listResourceGroupNetworkProfiles(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkProfiles().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java new file mode 100644 index 000000000000..2be9039f0c86 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkProfiles List. + */ +public final class NetworkProfilesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileListAll.json + */ + /** + * Sample code: List all network profiles. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkProfiles(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkProfiles().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java new file mode 100644 index 000000000000..509d1435e628 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkProfiles UpdateTags. + */ +public final class NetworkProfilesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkProfileUpdateTags.json + */ + /** + * Sample code: Update network profile tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNetworkProfileTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkProfiles() + .updateTagsWithResponse("rg1", "test-np", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..02f1b049793f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkSecurityGroupInner; +import com.azure.resourcemanager.network.fluent.models.SecurityRuleInner; +import com.azure.resourcemanager.network.models.SecurityRuleAccess; +import com.azure.resourcemanager.network.models.SecurityRuleDirection; +import com.azure.resourcemanager.network.models.SecurityRuleProtocol; +import java.util.Arrays; + +/** + * Samples for NetworkSecurityGroups CreateOrUpdate. + */ +public final class NetworkSecurityGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupCreateWithRule.json + */ + /** + * Sample code: Create network security group with rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkSecurityGroupWithRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityGroups() + .createOrUpdate("rg1", "testnsg", + new NetworkSecurityGroupInner().withLocation("eastus") + .withSecurityRules(Arrays.asList(new SecurityRuleInner().withName("rule1") + .withProtocol(SecurityRuleProtocol.ASTERISK) + .withSourcePortRange("*") + .withDestinationPortRange("80") + .withSourceAddressPrefix("*") + .withDestinationAddressPrefix("*") + .withAccess(SecurityRuleAccess.ALLOW) + .withPriority(130) + .withDirection(SecurityRuleDirection.INBOUND))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupCreate.json + */ + /** + * Sample code: Create network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityGroups() + .createOrUpdate("rg1", "testnsg", new NetworkSecurityGroupInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java new file mode 100644 index 000000000000..9757fc0b0a6e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityGroups Delete. + */ +public final class NetworkSecurityGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupDelete.json + */ + /** + * Sample code: Delete network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkSecurityGroups().delete("rg1", "testnsg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..611d2b4d71f7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityGroups GetByResourceGroup. + */ +public final class NetworkSecurityGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupGet.json + */ + /** + * Sample code: Get network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityGroups() + .getByResourceGroupWithResponse("rg1", "testnsg", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java new file mode 100644 index 000000000000..e9c6a57bb0d4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityGroups ListByResourceGroup. + */ +public final class NetworkSecurityGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupList.json + */ + /** + * Sample code: List network security groups in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listNetworkSecurityGroupsInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkSecurityGroups().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java new file mode 100644 index 000000000000..67b7446a060d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityGroups List. + */ +public final class NetworkSecurityGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupListAll.json + */ + /** + * Sample code: List all network security groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkSecurityGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkSecurityGroups().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java new file mode 100644 index 000000000000..ae1259c76dcd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkSecurityGroups UpdateTags. + */ +public final class NetworkSecurityGroupsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupUpdateTags.json + */ + /** + * Sample code: Update network security group tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNetworkSecurityGroupTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityGroups() + .updateTagsWithResponse("rg1", "testnsg", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ef752e0c37af --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NspAccessRuleInner; +import com.azure.resourcemanager.network.models.AccessRuleDirection; +import java.util.Arrays; + +/** + * Samples for NetworkSecurityPerimeterAccessRules CreateOrUpdate. + */ +public final class NetworkSecurityPerimeterAccessRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NspAccessRulePut.json + */ + /** + * Sample code: NspAccessRulePut. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAccessRulePut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAccessRules() + .createOrUpdateWithResponse("rg1", "nsp1", "profile1", "accessRule1", + new NspAccessRuleInner().withDirection(AccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("10.11.0.0/16", "10.10.1.0/24")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesDeleteSamples.java new file mode 100644 index 000000000000..851e8acbeaaf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAccessRules Delete. + */ +public final class NetworkSecurityPerimeterAccessRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspAccessRuleDelete.json + */ + /** + * Sample code: NspAccessRulesDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAccessRulesDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAccessRules() + .deleteWithResponse("rg1", "nsp1", "profile1", "accessRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesGetSamples.java new file mode 100644 index 000000000000..c5eb2b5cd567 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAccessRules Get. + */ +public final class NetworkSecurityPerimeterAccessRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspAccessRuleGet.json + */ + /** + * Sample code: NspAccessRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAccessRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAccessRules() + .getWithResponse("rg1", "nsp1", "profile1", "accessRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesListSamples.java new file mode 100644 index 000000000000..282ff5a5afc7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAccessRules List. + */ +public final class NetworkSecurityPerimeterAccessRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/NspAccessRuleList.json + */ + /** + * Sample code: NspAccessRulesList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAccessRulesList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAccessRules() + .list("rg1", "nsp1", "profile1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesReconcileSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesReconcileSamples.java new file mode 100644 index 000000000000..90635e38ae66 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAccessRulesReconcileSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** + * Samples for NetworkSecurityPerimeterAccessRules Reconcile. + */ +public final class NetworkSecurityPerimeterAccessRulesReconcileSamples { + /* + * x-ms-original-file: 2025-05-01/NspAccessRuleReconcile.json + */ + /** + * Sample code: NspAccessRuleReconcile. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAccessRuleReconcile(com.azure.resourcemanager.network.NetworkManager manager) + throws IOException { + manager.serviceClient() + .getNetworkSecurityPerimeterAccessRules() + .reconcileWithResponse("rg1", "nsp1", "profile1", "accessRuleName1", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"properties\":{}}", Object.class, SerializerEncoding.JSON), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociableResourceTypesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociableResourceTypesListSamples.java new file mode 100644 index 000000000000..354b7a4cc72b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociableResourceTypesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAssociableResourceTypes List. + */ +public final class NetworkSecurityPerimeterAssociableResourceTypesListSamples { + /* + * x-ms-original-file: 2025-05-01/PerimeterAssociableResourcesList.json + */ + /** + * Sample code: NetworkSecurityPerimeterAssociableResourceTypes. + * + * @param manager Entry point to NetworkManager. + */ + public static void + networkSecurityPerimeterAssociableResourceTypes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociableResourceTypes() + .list("westus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0af227d463cb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.NspAssociationInner; +import com.azure.resourcemanager.network.models.AssociationAccessMode; + +/** + * Samples for NetworkSecurityPerimeterAssociations CreateOrUpdate. + */ +public final class NetworkSecurityPerimeterAssociationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NspAssociationPut.json + */ + /** + * Sample code: NspAssociationPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAssociationPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociations() + .createOrUpdate("rg1", "nsp1", "association1", new NspAssociationInner() + .withPrivateLinkResource(new SubResource().withId( + "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}")) + .withProfile(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}")) + .withAccessMode(AssociationAccessMode.ENFORCED), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsDeleteSamples.java new file mode 100644 index 000000000000..beaa6609317d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAssociations Delete. + */ +public final class NetworkSecurityPerimeterAssociationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspAssociationDelete.json + */ + /** + * Sample code: NspAssociationDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAssociationDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociations() + .delete("rg1", "nsp1", "association1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsGetSamples.java new file mode 100644 index 000000000000..0d38e8d5dec9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAssociations Get. + */ +public final class NetworkSecurityPerimeterAssociationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspAssociationGet.json + */ + /** + * Sample code: NspAssociationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAssociationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociations() + .getWithResponse("rg1", "nsp1", "association1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsListSamples.java new file mode 100644 index 000000000000..e6573bcd998f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterAssociations List. + */ +public final class NetworkSecurityPerimeterAssociationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NspAssociationList.json + */ + /** + * Sample code: NspAssociationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAssociationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociations() + .list("rg1", "nsp1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsReconcileSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsReconcileSamples.java new file mode 100644 index 000000000000..6dd6c19ec41b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterAssociationsReconcileSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** + * Samples for NetworkSecurityPerimeterAssociations Reconcile. + */ +public final class NetworkSecurityPerimeterAssociationsReconcileSamples { + /* + * x-ms-original-file: 2025-05-01/NspAssociationReconcile.json + */ + /** + * Sample code: NspAssociationReconcile. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspAssociationReconcile(com.azure.resourcemanager.network.NetworkManager manager) + throws IOException { + manager.serviceClient() + .getNetworkSecurityPerimeterAssociations() + .reconcileWithResponse("rg1", "nsp1", "association1", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("{\"properties\":{}}", Object.class, SerializerEncoding.JSON), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesDeleteSamples.java new file mode 100644 index 000000000000..01868596513f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinkReferences Delete. + */ +public final class NetworkSecurityPerimeterLinkReferencesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkReferenceDelete.json + */ + /** + * Sample code: NspLinkReferenceDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinkReferenceDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinkReferences() + .delete("rg1", "nsp2", "link1-guid", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesGetSamples.java new file mode 100644 index 000000000000..fa6fdbfa29a5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinkReferences Get. + */ +public final class NetworkSecurityPerimeterLinkReferencesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkReferenceGet.json + */ + /** + * Sample code: NspLinkReferencesGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinkReferencesGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinkReferences() + .getWithResponse("rg1", "nsp2", "link1-guid", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesListSamples.java new file mode 100644 index 000000000000..8a7e8ce2575f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinkReferencesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinkReferences List. + */ +public final class NetworkSecurityPerimeterLinkReferencesListSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkReferenceList.json + */ + /** + * Sample code: NspLinkReferenceList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinkReferenceList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinkReferences() + .list("rg1", "nsp2", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksCreateOrUpdateSamples.java new file mode 100644 index 000000000000..d5cd2cbd9a68 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NspLinkInner; +import java.util.Arrays; + +/** + * Samples for NetworkSecurityPerimeterLinks CreateOrUpdate. + */ +public final class NetworkSecurityPerimeterLinksCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkPut.json + */ + /** + * Sample code: NspLinksPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinksPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinks() + .createOrUpdateWithResponse("rg1", "nsp1", "link1", + new NspLinkInner().withAutoApprovedRemotePerimeterResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2") + .withLocalInboundProfiles(Arrays.asList("*")) + .withRemoteInboundProfiles(Arrays.asList("*")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksDeleteSamples.java new file mode 100644 index 000000000000..3934e9eab09a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinks Delete. + */ +public final class NetworkSecurityPerimeterLinksDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkDelete.json + */ + /** + * Sample code: NspLinkDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinkDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinks() + .delete("rg1", "nsp1", "link1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksGetSamples.java new file mode 100644 index 000000000000..c3006631b223 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinks Get. + */ +public final class NetworkSecurityPerimeterLinksGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkGet.json + */ + /** + * Sample code: NspLinksGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinksGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinks() + .getWithResponse("rg1", "nsp1", "link1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksListSamples.java new file mode 100644 index 000000000000..582195ca72f8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLinksListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLinks List. + */ +public final class NetworkSecurityPerimeterLinksListSamples { + /* + * x-ms-original-file: 2025-05-01/NspLinkList.json + */ + /** + * Sample code: NspLinkList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLinkList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLinks() + .list("rg1", "nsp1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..96dd84d457fe --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NspLoggingConfigurationInner; +import java.util.Arrays; + +/** + * Samples for NetworkSecurityPerimeterLoggingConfigurations CreateOrUpdate. + */ +public final class NetworkSecurityPerimeterLoggingConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NspLoggingConfigurationPut.json + */ + /** + * Sample code: NspLoggingConfigurationPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLoggingConfigurationPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLoggingConfigurations() + .createOrUpdateWithResponse("rg1", "nsp1", "instance", + new NspLoggingConfigurationInner().withEnabledLogCategories( + Arrays.asList("NspPublicInboundPerimeterRulesDenied", "NspPublicOutboundPerimeterRulesDenied")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..1af31c56e82f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLoggingConfigurations Delete. + */ +public final class NetworkSecurityPerimeterLoggingConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspLoggingConfigurationDelete.json + */ + /** + * Sample code: NspLoggingConfigurationDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLoggingConfigurationDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLoggingConfigurations() + .deleteWithResponse("rg1", "nsp1", "instance", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsGetSamples.java new file mode 100644 index 000000000000..d14097a93e97 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLoggingConfigurations Get. + */ +public final class NetworkSecurityPerimeterLoggingConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspLoggingConfigurationGet.json + */ + /** + * Sample code: NspLoggingConfigurationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLoggingConfigurationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLoggingConfigurations() + .getWithResponse("rg1", "nsp1", "instance", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsListSamples.java new file mode 100644 index 000000000000..6c9a82d84de2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterLoggingConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterLoggingConfigurations List. + */ +public final class NetworkSecurityPerimeterLoggingConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NspLoggingConfigurationList.json + */ + /** + * Sample code: NspLoggingConfigurationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspLoggingConfigurationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterLoggingConfigurations() + .list("rg1", "nsp1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterOperationStatusesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterOperationStatusesGetSamples.java new file mode 100644 index 000000000000..27e955be7539 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterOperationStatusesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterOperationStatuses Get. + */ +public final class NetworkSecurityPerimeterOperationStatusesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspOperationStatusGet.json + */ + /** + * Sample code: NspOperationStatusGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspOperationStatusGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterOperationStatuses() + .getWithResponse("location1", "operationId1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..788c6032b3a4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NspProfileInner; + +/** + * Samples for NetworkSecurityPerimeterProfiles CreateOrUpdate. + */ +public final class NetworkSecurityPerimeterProfilesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NspProfilePut.json + */ + /** + * Sample code: NspProfilesPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspProfilesPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterProfiles() + .createOrUpdateWithResponse("rg1", "nsp1", "profile1", new NspProfileInner(), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesDeleteSamples.java new file mode 100644 index 000000000000..9899b0991638 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterProfiles Delete. + */ +public final class NetworkSecurityPerimeterProfilesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NspProfileDelete.json + */ + /** + * Sample code: NspProfilesDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspProfilesDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterProfiles() + .deleteWithResponse("rg1", "nsp1", "profile1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesGetSamples.java new file mode 100644 index 000000000000..6506dcb4deef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterProfiles Get. + */ +public final class NetworkSecurityPerimeterProfilesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NspProfileGet.json + */ + /** + * Sample code: NspProfilesGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspProfilesGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterProfiles() + .getWithResponse("rg1", "nsp1", "profile1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesListSamples.java new file mode 100644 index 000000000000..ac5f8823c7d5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterProfilesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterProfiles List. + */ +public final class NetworkSecurityPerimeterProfilesListSamples { + /* + * x-ms-original-file: 2025-05-01/NspProfileList.json + */ + /** + * Sample code: NspProfilesList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nspProfilesList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterProfiles() + .list("rg1", "nsp1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterServiceTagsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterServiceTagsListSamples.java new file mode 100644 index 000000000000..21c72fc4ed93 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimeterServiceTagsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeterServiceTags List. + */ +public final class NetworkSecurityPerimeterServiceTagsListSamples { + /* + * x-ms-original-file: 2025-05-01/NspServiceTagsList.json + */ + /** + * Sample code: NSPServiceTagsList. + * + * @param manager Entry point to NetworkManager. + */ + public static void nSPServiceTagsList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeterServiceTags() + .list("westus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ac53940b5424 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkSecurityPerimeterInner; + +/** + * Samples for NetworkSecurityPerimeters CreateOrUpdate. + */ +public final class NetworkSecurityPerimetersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterPut.json + */ + /** + * Sample code: Put Network Security Perimeter. + * + * @param manager Entry point to NetworkManager. + */ + public static void putNetworkSecurityPerimeter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeters() + .createOrUpdateWithResponse("rg1", "nsp1", new NetworkSecurityPerimeterInner().withLocation("location1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersDeleteSamples.java new file mode 100644 index 000000000000..adf409b0d84c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeters Delete. + */ +public final class NetworkSecurityPerimetersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterDelete.json + */ + /** + * Sample code: NetworkSecurityPerimeterDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkSecurityPerimeterDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeters() + .delete("rg1", "testNSP1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..26c6f8c59adc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeters GetByResourceGroup. + */ +public final class NetworkSecurityPerimetersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterGet.json + */ + /** + * Sample code: NetworkSecurityPerimeterGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkSecurityPerimeterGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeters() + .getByResourceGroupWithResponse("rg1", "nsp1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListByResourceGroupSamples.java new file mode 100644 index 000000000000..b555021925cf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeters ListByResourceGroup. + */ +public final class NetworkSecurityPerimetersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterList.json + */ + /** + * Sample code: List Network Security Perimeter. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNetworkSecurityPerimeter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeters() + .listByResourceGroup("rg1", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListSamples.java new file mode 100644 index 000000000000..2eeb683e45b7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkSecurityPerimeters List. + */ +public final class NetworkSecurityPerimetersListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterListAll.json + */ + /** + * Sample code: NetworkSecurityPerimetersList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkSecurityPerimetersList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkSecurityPerimeters().list(null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersPatchSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersPatchSamples.java new file mode 100644 index 000000000000..3d24e65799bb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityPerimetersPatchSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.UpdateTagsRequest; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkSecurityPerimeters Patch. + */ +public final class NetworkSecurityPerimetersPatchSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterPatch.json + */ + /** + * Sample code: Patch Network Security Perimeter. + * + * @param manager Entry point to NetworkManager. + */ + public static void patchNetworkSecurityPerimeter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkSecurityPerimeters() + .patchWithResponse("rg1", "nsp1", new UpdateTagsRequest().withTags(mapOf("description", "nsp1")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7efd33c2f694 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceConnectionInner; +import com.azure.resourcemanager.network.models.PropagatedRouteTable; +import com.azure.resourcemanager.network.models.RoutingConfiguration; +import java.util.Arrays; + +/** + * Samples for NetworkVirtualApplianceConnections CreateOrUpdate. + */ +public final class NetworkVirtualApplianceConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceConnectionPut.json + */ + /** + * Sample code: NetworkVirtualApplianceConnectionPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkVirtualApplianceConnectionPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualApplianceConnections() + .createOrUpdate("rg1", "nva1", "connection1", new NetworkVirtualApplianceConnectionInner() + .withNamePropertiesName("connection1") + .withAsn(64512L) + .withTunnelIdentifier(0L) + .withBgpPeerAddress(Arrays.asList("169.254.16.13", "169.254.16.14")) + .withEnableInternetSecurity(false) + .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")) + .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1")) + .withIds(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")))) + .withInboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")) + .withOutboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java new file mode 100644 index 000000000000..2f874f0a7628 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualApplianceConnections Delete. + */ +public final class NetworkVirtualApplianceConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceConnectionDelete.json + */ + /** + * Sample code: NetworkVirtualApplianceConnectionDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void + networkVirtualApplianceConnectionDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualApplianceConnections() + .delete("rg1", "nva1", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java new file mode 100644 index 000000000000..333bb19a3dc5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualApplianceConnections Get. + */ +public final class NetworkVirtualApplianceConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceConnectionGet.json + */ + /** + * Sample code: NetworkVirtualApplianceConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkVirtualApplianceConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualApplianceConnections() + .getWithResponse("rg1", "nva1", "connection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java new file mode 100644 index 000000000000..1c14d4027c1a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualApplianceConnections List. + */ +public final class NetworkVirtualApplianceConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceConnectionList.json + */ + /** + * Sample code: NetworkVirtualApplianceConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkVirtualApplianceConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualApplianceConnections() + .list("rg1", "nva1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..a269a79eedaf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java @@ -0,0 +1,359 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInner; +import com.azure.resourcemanager.network.models.DelegationProperties; +import com.azure.resourcemanager.network.models.InternetIngressPublicIpsProperties; +import com.azure.resourcemanager.network.models.ManagedServiceIdentity; +import com.azure.resourcemanager.network.models.ManagedServiceIdentityUserAssignedIdentities; +import com.azure.resourcemanager.network.models.NetworkVirtualAppliancePropertiesFormatNetworkProfile; +import com.azure.resourcemanager.network.models.NicTypeInRequest; +import com.azure.resourcemanager.network.models.NvaInVnetSubnetReferenceProperties; +import com.azure.resourcemanager.network.models.NvaInterfaceConfigurationsProperties; +import com.azure.resourcemanager.network.models.NvaNicType; +import com.azure.resourcemanager.network.models.ResourceIdentityType; +import com.azure.resourcemanager.network.models.VirtualApplianceAdditionalNicProperties; +import com.azure.resourcemanager.network.models.VirtualApplianceIpConfiguration; +import com.azure.resourcemanager.network.models.VirtualApplianceIpConfigurationProperties; +import com.azure.resourcemanager.network.models.VirtualApplianceNetworkInterfaceConfiguration; +import com.azure.resourcemanager.network.models.VirtualApplianceNetworkInterfaceConfigurationProperties; +import com.azure.resourcemanager.network.models.VirtualApplianceSkuProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkVirtualAppliances CreateOrUpdate. + */ +public final class NetworkVirtualAppliancesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceVnetAdditionalPublicPut.json + */ + /** + * Sample code: Create NVA in VNet with PrivateNic, PublicNic & AdditionalPublicNic. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNVAInVNetWithPrivateNicPublicNicAdditionalPublicNic( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("latest")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withNvaInterfaceConfigurations(Arrays.asList(new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")) + .withType(Arrays.asList(NvaNicType.PRIVATE_NIC)) + .withName("dataInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2")) + .withType(Arrays.asList(NvaNicType.PUBLIC_NIC)) + .withName("managementInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet3")) + .withType(Arrays.asList(NvaNicType.ADDITIONAL_PUBLIC_NIC)) + .withName("myAdditionalPublicInterface"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSaaSPut.json + */ + /** + * Sample code: Create SaaS NetworkVirtualAppliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSaaSNetworkVirtualAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) + .withDelegation(new DelegationProperties().withServiceName("PaloAltoNetworks.Cloudngfw/firewalls")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceVnetNetworkProfilePut.json + */ + /** + * Sample code: Create NVA in VNet with PrivateNic & PublicNic, including NetworkProfile. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNVAInVNetWithPrivateNicPublicNicIncludingNetworkProfile( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("latest")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withNetworkProfile( + new NetworkVirtualAppliancePropertiesFormatNetworkProfile() + .withNetworkInterfaceConfigurations( + Arrays + .asList( + new VirtualApplianceNetworkInterfaceConfiguration() + .withNicType(NicTypeInRequest.PUBLIC_NIC) + .withProperties( + new VirtualApplianceNetworkInterfaceConfigurationProperties() + .withIpConfigurations(Arrays.asList( + new VirtualApplianceIpConfiguration() + .withName("myPrimaryPublicIpConfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(true)), + new VirtualApplianceIpConfiguration() + .withName("myNonPrimaryPublicIpConfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(false))))), + new VirtualApplianceNetworkInterfaceConfiguration() + .withNicType(NicTypeInRequest.PRIVATE_NIC) + .withProperties(new VirtualApplianceNetworkInterfaceConfigurationProperties() + .withIpConfigurations(Arrays.asList( + new VirtualApplianceIpConfiguration() + .withName("myPrimaryPrivateIpConfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(true)), + new VirtualApplianceIpConfiguration() + .withName("myNonPrimaryPrivateIpConfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(false)))))))) + .withNvaInterfaceConfigurations(Arrays.asList(new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")) + .withType(Arrays.asList(NvaNicType.PRIVATE_NIC)) + .withName("dataInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2")) + .withType(Arrays.asList(NvaNicType.PUBLIC_NIC)) + .withName("managementInterface"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceVnetAdditionalPrivatePut.json + */ + /** + * Sample code: Create NVA in VNet with PrivateNic, PublicNic & AdditionalPrivateNic. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNVAInVNetWithPrivateNicPublicNicAdditionalPrivateNic( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("latest")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withNvaInterfaceConfigurations(Arrays.asList(new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")) + .withType(Arrays.asList(NvaNicType.PRIVATE_NIC)) + .withName("dataInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2")) + .withType(Arrays.asList(NvaNicType.PUBLIC_NIC)) + .withName("managementInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet3")) + .withType(Arrays.asList(NvaNicType.ADDITIONAL_PRIVATE_NIC)) + .withName("myAdditionalInterface"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceVnetIngressPut.json + */ + /** + * Sample code: Create NVA in VNet with PrivateNic & PublicNic, including Internet-Ingress. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNVAInVNetWithPrivateNicPublicNicIncludingInternetIngress( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("latest")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withInternetIngressPublicIps(Arrays.asList(new InternetIngressPublicIpsProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/slbip"))) + .withNvaInterfaceConfigurations(Arrays.asList(new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")) + .withType(Arrays.asList(NvaNicType.PRIVATE_NIC)) + .withName("dataInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2")) + .withType(Arrays.asList(NvaNicType.PUBLIC_NIC)) + .withName("managementInterface"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceVnetBasicPut.json + */ + /** + * Sample code: Create NVA in VNet with PrivateNic & PublicNic. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createNVAInVNetWithPrivateNicPublicNic(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("latest")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withNvaInterfaceConfigurations(Arrays.asList(new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")) + .withType(Arrays.asList(NvaNicType.PRIVATE_NIC)) + .withName("dataInterface"), + new NvaInterfaceConfigurationsProperties() + .withSubnet(new NvaInVnetSubnetReferenceProperties().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2")) + .withType(Arrays.asList(NvaNicType.PUBLIC_NIC)) + .withName("managementInterface"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualAppliancePut.json + */ + /** + * Sample code: Create NetworkVirtualAppliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkVirtualAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") + .withMarketPlaceVersion("12.1")) + .withBootStrapConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) + .withCloudInitConfigurationBlobs(Arrays + .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig")) + .withVirtualApplianceAsn(10000L) + .withNetworkProfile( + new NetworkVirtualAppliancePropertiesFormatNetworkProfile() + .withNetworkInterfaceConfigurations( + Arrays + .asList( + new VirtualApplianceNetworkInterfaceConfiguration() + .withNicType(NicTypeInRequest.PUBLIC_NIC) + .withProperties(new VirtualApplianceNetworkInterfaceConfigurationProperties() + .withIpConfigurations(Arrays.asList( + new VirtualApplianceIpConfiguration().withName("publicnicipconfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(true)), + new VirtualApplianceIpConfiguration().withName("publicnicipconfig-2") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(false))))), + new VirtualApplianceNetworkInterfaceConfiguration() + .withNicType(NicTypeInRequest.PRIVATE_NIC) + .withProperties(new VirtualApplianceNetworkInterfaceConfigurationProperties() + .withIpConfigurations(Arrays.asList( + new VirtualApplianceIpConfiguration().withName("privatenicipconfig") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(true)), + new VirtualApplianceIpConfiguration().withName("privatenicipconfig-2") + .withProperties(new VirtualApplianceIpConfigurationProperties() + .withPrimary(false)))))))) + .withAdditionalNics(Arrays + .asList(new VirtualApplianceAdditionalNicProperties().withName("exrsdwan").withHasPublicIp(true))) + .withInternetIngressPublicIps(Arrays.asList(new InternetIngressPublicIpsProperties().withId( + "/subscriptions/{{subscriptionId}}/resourceGroups/{{rg}}/providers/Microsoft.Network/publicIPAddresses/slbip"))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java new file mode 100644 index 000000000000..886e35f4a9fd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances Delete. + */ +public final class NetworkVirtualAppliancesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceDelete.json + */ + /** + * Sample code: Delete NetworkVirtualAppliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkVirtualAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkVirtualAppliances().delete("rg1", "nva", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetBootDiagnosticLogsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetBootDiagnosticLogsSamples.java new file mode 100644 index 000000000000..136b3947baf2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetBootDiagnosticLogsSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.NetworkVirtualApplianceBootDiagnosticParameters; + +/** + * Samples for NetworkVirtualAppliances GetBootDiagnosticLogs. + */ +public final class NetworkVirtualAppliancesGetBootDiagnosticLogsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceBootDiagnostics.json + */ + /** + * Sample code: Retrieve Boot Diagnostic logs for a given NVA VMSS instance. + * + * @param manager Entry point to NetworkManager. + */ + public static void + retrieveBootDiagnosticLogsForAGivenNVAVMSSInstance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .getBootDiagnosticLogs("rg1", "nva", new NetworkVirtualApplianceBootDiagnosticParameters().withInstanceId(0) + .withSerialConsoleStorageSasUrl( + "https://blobcortextesturl.blob.core.windows.net/nvaBootDiagContainer/serialLogs.txt?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b") + .withConsoleScreenshotStorageSasUrl( + "https://blobcortextesturl.blob.core.windows.net/nvaBootDiagContainer/consoleScreenshot.png?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..6e0049241235 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances GetByResourceGroup. + */ +public final class NetworkVirtualAppliancesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceGet.json + */ + /** + * Sample code: Get NetworkVirtualAppliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkVirtualAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .getByResourceGroupWithResponse("rg1", "nva", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java new file mode 100644 index 000000000000..6d669e3b9496 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances ListByResourceGroup. + */ +public final class NetworkVirtualAppliancesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceListByResourceGroup.json + */ + /** + * Sample code: List all Network Virtual Appliance for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllNetworkVirtualApplianceForAGivenResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java new file mode 100644 index 000000000000..f0dbbf5e64dd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances List. + */ +public final class NetworkVirtualAppliancesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceListBySubscription.json + */ + /** + * Sample code: List all Network Virtual Appliances for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllNetworkVirtualAppliancesForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkVirtualAppliances().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesReimageSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesReimageSamples.java new file mode 100644 index 000000000000..b81d257471c5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesReimageSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances Reimage. + */ +public final class NetworkVirtualAppliancesReimageSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSpecificReimage.json + */ + /** + * Sample code: Reimages Specific NetworkVirtualAppliance VMs in VM Scale Set. + * + * @param manager Entry point to NetworkManager. + */ + public static void reimagesSpecificNetworkVirtualApplianceVMsInVMScaleSet( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .reimage("rg1", "nva", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java new file mode 100644 index 000000000000..60eee102d2b6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances Restart. + */ +public final class NetworkVirtualAppliancesRestartSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSpecificRestart.json + */ + /** + * Sample code: Restart Specific NetworkVirtualAppliance VMs in VM Scale Set. + * + * @param manager Entry point to NetworkManager. + */ + public static void restartSpecificNetworkVirtualApplianceVMsInVMScaleSet( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .restart("rg1", "nva", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceEmptyRestart.json + */ + /** + * Sample code: Restart All NetworkVirtualAppliance VMs in VM Scale Set. + * + * @param manager Entry point to NetworkManager. + */ + public static void + restartAllNetworkVirtualApplianceVMsInVMScaleSet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .restart("rg1", "nva", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java new file mode 100644 index 000000000000..796171c5d918 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkVirtualAppliances UpdateTags. + */ +public final class NetworkVirtualAppliancesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceUpdateTags.json + */ + /** + * Sample code: Update NetworkVirtualAppliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNetworkVirtualAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkVirtualAppliances() + .updateTagsWithResponse("rg1", "nva", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java new file mode 100644 index 000000000000..d387e5af3862 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.ConnectivityDestination; +import com.azure.resourcemanager.network.models.ConnectivityParameters; +import com.azure.resourcemanager.network.models.ConnectivitySource; +import com.azure.resourcemanager.network.models.IpVersion; + +/** + * Samples for NetworkWatchers CheckConnectivity. + */ +public final class NetworkWatchersCheckConnectivitySamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherConnectivityCheck.json + */ + /** + * Sample code: Check connectivity. + * + * @param manager Entry point to NetworkManager. + */ + public static void checkConnectivity(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .checkConnectivity("rg1", "nw1", + new ConnectivityParameters().withSource(new ConnectivitySource().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1")) + .withDestination(new ConnectivityDestination().withAddress("192.168.100.4").withPort(3389)) + .withPreferredIpVersion(IpVersion.IPV4), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ad267e677fce --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkWatcherInner; + +/** + * Samples for NetworkWatchers CreateOrUpdate. + */ +public final class NetworkWatchersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherCreate.json + */ + /** + * Sample code: Create network watcher. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkWatcher(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .createOrUpdateWithResponse("rg1", "nw1", new NetworkWatcherInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java new file mode 100644 index 000000000000..bdc253b1fcd9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkWatchers Delete. + */ +public final class NetworkWatchersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherDelete.json + */ + /** + * Sample code: Delete network watcher. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkWatcher(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkWatchers().delete("rg1", "nw1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java new file mode 100644 index 000000000000..9b35794a1a45 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AzureReachabilityReportLocation; +import com.azure.resourcemanager.network.models.AzureReachabilityReportParameters; +import java.time.OffsetDateTime; +import java.util.Arrays; + +/** + * Samples for NetworkWatchers GetAzureReachabilityReport. + */ +public final class NetworkWatchersGetAzureReachabilityReportSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherAzureReachabilityReportGet.json + */ + /** + * Sample code: Get Azure Reachability Report. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureReachabilityReport(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getAzureReachabilityReport("rg1", "nw1", + new AzureReachabilityReportParameters() + .withProviderLocation( + new AzureReachabilityReportLocation().withCountry("United States").withState("washington")) + .withProviders(Arrays.asList("Frontier Communications of America, Inc. - ASN 5650")) + .withAzureLocations(Arrays.asList("West US")) + .withStartTime(OffsetDateTime.parse("2017-09-07T00:00:00Z")) + .withEndTime(OffsetDateTime.parse("2017-09-10T00:00:00Z")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..e1b57f90bfef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkWatchers GetByResourceGroup. + */ +public final class NetworkWatchersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherGet.json + */ + /** + * Sample code: Get network watcher. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkWatcher(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getByResourceGroupWithResponse("rg1", "nw1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java new file mode 100644 index 000000000000..4171515b5337 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.FlowLogStatusParameters; + +/** + * Samples for NetworkWatchers GetFlowLogStatus. + */ +public final class NetworkWatchersGetFlowLogStatusSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogStatusQuery.json + */ + /** + * Sample code: Get flow log status. + * + * @param manager Entry point to NetworkManager. + */ + public static void getFlowLogStatus(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getFlowLogStatus("rg1", "nw1", new FlowLogStatusParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java new file mode 100644 index 000000000000..f6bc4d90419b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.Direction; +import com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticParameters; +import com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticProfile; +import java.util.Arrays; + +/** + * Samples for NetworkWatchers GetNetworkConfigurationDiagnostic. + */ +public final class NetworkWatchersGetNetworkConfigurationDiagnosticSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherNetworkConfigurationDiagnostic.json + */ + /** + * Sample code: Network configuration diagnostic. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkConfigurationDiagnostic(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getNetworkConfigurationDiagnostic("rg1", "nw1", new NetworkConfigurationDiagnosticParameters() + .withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withProfiles(Arrays.asList(new NetworkConfigurationDiagnosticProfile().withDirection(Direction.INBOUND) + .withProtocol("TCP") + .withSource("10.1.0.4") + .withDestination("12.11.12.14") + .withDestinationPort("12100"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java new file mode 100644 index 000000000000..93a05d88c325 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.NextHopParameters; + +/** + * Samples for NetworkWatchers GetNextHop. + */ +public final class NetworkWatchersGetNextHopSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherNextHopGet.json + */ + /** + * Sample code: Get next hop. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNextHop(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getNextHop("rg1", "nw1", new NextHopParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withSourceIpAddress("10.0.0.5") + .withDestinationIpAddress("10.0.0.10") + .withTargetNicResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java new file mode 100644 index 000000000000..2e018f3cc91f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TopologyParameters; + +/** + * Samples for NetworkWatchers GetTopology. + */ +public final class NetworkWatchersGetTopologySamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherTopologyGet.json + */ + /** + * Sample code: Get Topology. + * + * @param manager Entry point to NetworkManager. + */ + public static void getTopology(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getTopologyWithResponse("rg1", "nw1", new TopologyParameters().withTargetResourceGroupName("rg2"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java new file mode 100644 index 000000000000..e337413283a9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.QueryTroubleshootingParameters; + +/** + * Samples for NetworkWatchers GetTroubleshootingResult. + */ +public final class NetworkWatchersGetTroubleshootingResultSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherTroubleshootResultQuery.json + */ + /** + * Sample code: Get troubleshoot result. + * + * @param manager Entry point to NetworkManager. + */ + public static void getTroubleshootResult(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getTroubleshootingResult("rg1", "nw1", new QueryTroubleshootingParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java new file mode 100644 index 000000000000..d85c50faff97 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TroubleshootingParameters; + +/** + * Samples for NetworkWatchers GetTroubleshooting. + */ +public final class NetworkWatchersGetTroubleshootingSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherTroubleshootGet.json + */ + /** + * Sample code: Get troubleshooting. + * + * @param manager Entry point to NetworkManager. + */ + public static void getTroubleshooting(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getTroubleshooting("rg1", "nw1", new TroubleshootingParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withStorageId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1") + .withStoragePath("https://st1.blob.core.windows.net/cn1"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java new file mode 100644 index 000000000000..face73b950b8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.SecurityGroupViewParameters; + +/** + * Samples for NetworkWatchers GetVMSecurityRules. + */ +public final class NetworkWatchersGetVMSecurityRulesSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherSecurityGroupViewGet.json + */ + /** + * Sample code: Get security group view. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSecurityGroupView(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .getVMSecurityRules("rg1", "nw1", new SecurityGroupViewParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java new file mode 100644 index 000000000000..c3b4c241ccba --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AvailableProvidersListParameters; +import java.util.Arrays; + +/** + * Samples for NetworkWatchers ListAvailableProviders. + */ +public final class NetworkWatchersListAvailableProvidersSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherAvailableProvidersListGet.json + */ + /** + * Sample code: Get Available Providers List. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAvailableProvidersList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .listAvailableProviders("rg1", "nw1", + new AvailableProvidersListParameters().withAzureLocations(Arrays.asList("West US")) + .withCountry("United States") + .withState("washington") + .withCity("seattle"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java new file mode 100644 index 000000000000..9ec52475ee81 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkWatchers ListByResourceGroup. + */ +public final class NetworkWatchersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherList.json + */ + /** + * Sample code: List network watchers. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNetworkWatchers(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkWatchers().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java new file mode 100644 index 000000000000..0662ec1fd221 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkWatchers List. + */ +public final class NetworkWatchersListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherListAll.json + */ + /** + * Sample code: List all network watchers. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkWatchers(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getNetworkWatchers().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java new file mode 100644 index 000000000000..2eff71cb335e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.FlowLogInformationInner; +import com.azure.resourcemanager.network.models.ManagedServiceIdentity; +import com.azure.resourcemanager.network.models.ManagedServiceIdentityUserAssignedIdentities; +import com.azure.resourcemanager.network.models.ResourceIdentityType; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkWatchers SetFlowLogConfiguration. + */ +public final class NetworkWatchersSetFlowLogConfigurationSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherFlowLogConfigure.json + */ + /** + * Sample code: Configure flow log. + * + * @param manager Entry point to NetworkManager. + */ + public static void configureFlowLog(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .setFlowLogConfiguration("rg1", "nw1", new FlowLogInformationInner().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1") + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withStorageId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1") + .withEnabled(true), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java new file mode 100644 index 000000000000..00c5b33fa817 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkWatchers UpdateTags. + */ +public final class NetworkWatchersUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherUpdateTags.json + */ + /** + * Sample code: Update network watcher tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateNetworkWatcherTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .updateTagsWithResponse("rg1", "nw1", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java new file mode 100644 index 000000000000..9f5d00757bea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.Direction; +import com.azure.resourcemanager.network.models.IpFlowProtocol; +import com.azure.resourcemanager.network.models.VerificationIpFlowParameters; + +/** + * Samples for NetworkWatchers VerifyIpFlow. + */ +public final class NetworkWatchersVerifyIpFlowSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherIpFlowVerify.json + */ + /** + * Sample code: Ip flow verify. + * + * @param manager Entry point to NetworkManager. + */ + public static void ipFlowVerify(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getNetworkWatchers() + .verifyIpFlow("rg1", "nw1", new VerificationIpFlowParameters().withTargetResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withDirection(Direction.OUTBOUND) + .withProtocol(IpFlowProtocol.TCP) + .withLocalPort("80") + .withRemotePort("80") + .withLocalIpAddress("10.2.0.4") + .withRemoteIpAddress("121.10.1.1"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java new file mode 100644 index 000000000000..ad4697b236d1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2025-05-01/OperationList.json + */ + /** + * Sample code: Get a list of operations for a resource provider. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getAListOfOperationsForAResourceProvider(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getOperations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..3ad1552cbc41 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.P2SVpnGatewayInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import com.azure.resourcemanager.network.models.P2SConnectionConfiguration; +import com.azure.resourcemanager.network.models.PropagatedRouteTable; +import com.azure.resourcemanager.network.models.RoutingConfiguration; +import com.azure.resourcemanager.network.models.VnetRoute; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for P2SVpnGateways CreateOrUpdate. + */ +public final class P2SVpnGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayPut.json + */ + /** + * Sample code: P2SVpnGatewayPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .createOrUpdate("rg1", "p2sVpnGateway1", new P2SVpnGatewayInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1")) + .withP2SConnectionConfigurations(Arrays.asList(new P2SConnectionConfiguration().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/p2sVpnGateways/p2sVpnGateway1/p2sConnectionConfigurations/P2SConnectionConfig1") + .withName("P2SConnectionConfig1") + .withVpnClientAddressPool(new AddressSpace().withAddressPrefixes(Arrays.asList("101.3.0.0/16"))) + .withRoutingConfiguration(new RoutingConfiguration() + .withAssociatedRouteTable(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")) + .withPropagatedRouteTables(new PropagatedRouteTable() + .withLabels(Arrays.asList("label1", "label2")) + .withIds(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable2"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable3")))) + .withVnetRoutes(new VnetRoute().withStaticRoutes(Arrays.asList()))))) + .withVpnGatewayScaleUnit(1) + .withVpnServerConfiguration(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1")) + .withCustomDnsServers(Arrays.asList("1.1.1.1", "2.2.2.2")) + .withIsRoutingPreferenceInternet(false), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java new file mode 100644 index 000000000000..510933575a63 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways Delete. + */ +public final class P2SVpnGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayDelete.json + */ + /** + * Sample code: P2SVpnGatewayDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getP2SVpnGateways().delete("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2sVpnConnectionsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2sVpnConnectionsSamples.java new file mode 100644 index 000000000000..194498e14c3b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2sVpnConnectionsSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.P2SVpnConnectionRequest; +import java.util.Arrays; + +/** + * Samples for P2SVpnGateways DisconnectP2SVpnConnections. + */ +public final class P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples { + /* + * x-ms-original-file: 2025-05-01/P2sVpnGatewaysDisconnectP2sVpnConnections.json + */ + /** + * Sample code: Disconnect VpnConnections from P2sVpn Gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void + disconnectVpnConnectionsFromP2sVpnGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .disconnectP2SVpnConnections("p2s-vpn-gateway-test", "p2svpngateway", + new P2SVpnConnectionRequest().withVpnConnectionIds(Arrays.asList("vpnconnId1", "vpnconnId2")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java new file mode 100644 index 000000000000..865b60d53345 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AuthenticationMethod; +import com.azure.resourcemanager.network.models.P2SVpnProfileParameters; + +/** + * Samples for P2SVpnGateways GenerateVpnProfile. + */ +public final class P2SVpnGatewaysGenerateVpnProfileSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayGenerateVpnProfile.json + */ + /** + * Sample code: GenerateP2SVpnGatewayVPNProfile. + * + * @param manager Entry point to NetworkManager. + */ + public static void generateP2SVpnGatewayVPNProfile(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .generateVpnProfile("rg1", "p2sVpnGateway1", + new P2SVpnProfileParameters().withAuthenticationMethod(AuthenticationMethod.EAPTLS), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..495794c1b5fb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways GetByResourceGroup. + */ +public final class P2SVpnGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayGet.json + */ + /** + * Sample code: P2SVpnGatewayGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .getByResourceGroupWithResponse("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthDetailedSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthDetailedSamples.java new file mode 100644 index 000000000000..c4ba4edaf468 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthDetailedSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.P2SVpnConnectionHealthRequest; +import java.util.Arrays; + +/** + * Samples for P2SVpnGateways GetP2SVpnConnectionHealthDetailed. + */ +public final class P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayGetConnectionHealthDetailed.json + */ + /** + * Sample code: P2SVpnGatewayGetConnectionHealthDetailed. + * + * @param manager Entry point to NetworkManager. + */ + public static void + p2SVpnGatewayGetConnectionHealthDetailed(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .getP2SVpnConnectionHealthDetailed("p2s-vpn-gateway-test", "p2svpngateway", + new P2SVpnConnectionHealthRequest().withVpnUserNamesFilter(Arrays.asList("vpnUser1", "vpnUser2")) + .withOutputBlobSasUrl( + "https://blobcortextesturl.blob.core.windows.net/folderforconfig/p2sconnectionhealths?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthSamples.java new file mode 100644 index 000000000000..93ed9ec3f4d5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2sVpnConnectionHealthSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways GetP2SVpnConnectionHealth. + */ +public final class P2SVpnGatewaysGetP2SVpnConnectionHealthSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayGetConnectionHealth.json + */ + /** + * Sample code: P2SVpnGatewayGetConnectionHealth. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayGetConnectionHealth(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .getP2SVpnConnectionHealth("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..11ba9d139510 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways ListByResourceGroup. + */ +public final class P2SVpnGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayListByResourceGroup.json + */ + /** + * Sample code: P2SVpnGatewayListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getP2SVpnGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java new file mode 100644 index 000000000000..c2f692797c46 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways List. + */ +public final class P2SVpnGatewaysListSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayList.json + */ + /** + * Sample code: P2SVpnGatewayListBySubscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayListBySubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getP2SVpnGateways().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java new file mode 100644 index 000000000000..03c49300fb6b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for P2SVpnGateways Reset. + */ +public final class P2SVpnGatewaysResetSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayReset.json + */ + /** + * Sample code: ResetP2SVpnGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetP2SVpnGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getP2SVpnGateways().reset("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..b7ee0ea17115 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for P2SVpnGateways UpdateTags. + */ +public final class P2SVpnGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/P2SVpnGatewayUpdateTags.json + */ + /** + * Sample code: P2SVpnGatewayUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void p2SVpnGatewayUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getP2SVpnGateways() + .updateTags("rg1", "p2sVpnGateway1", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java new file mode 100644 index 000000000000..5c31de9f1912 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.PacketCaptureInner; +import com.azure.resourcemanager.network.models.PacketCaptureFilter; +import com.azure.resourcemanager.network.models.PacketCaptureStorageLocation; +import com.azure.resourcemanager.network.models.PcProtocol; +import java.util.Arrays; + +/** + * Samples for PacketCaptures Create. + */ +public final class PacketCapturesCreateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCaptureCreate.json + */ + /** + * Sample code: Create packet capture. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPacketCapture(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPacketCaptures() + .create("rg1", "nw1", "pc1", new PacketCaptureInner().withTarget( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withBytesToCapturePerPacket(10000L) + .withTotalBytesPerSession(100000L) + .withTimeLimitInSeconds(100) + .withStorageLocation(new PacketCaptureStorageLocation().withStorageId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore") + .withStoragePath("https://mytestaccountname.blob.core.windows.net/capture/pc1.cap") + .withFilePath("D:\\capture\\pc1.cap")) + .withFilters(Arrays.asList(new PacketCaptureFilter().withProtocol(PcProtocol.TCP) + .withLocalIpAddress("10.0.0.4") + .withLocalPort("80"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java new file mode 100644 index 000000000000..100d93bea5ad --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PacketCaptures Delete. + */ +public final class PacketCapturesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCaptureDelete.json + */ + /** + * Sample code: Delete packet capture. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePacketCapture(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPacketCaptures().delete("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java new file mode 100644 index 000000000000..5434ec381a3f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PacketCaptures Get. + */ +public final class PacketCapturesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCaptureGet.json + */ + /** + * Sample code: Get packet capture. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPacketCapture(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPacketCaptures() + .getWithResponse("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java new file mode 100644 index 000000000000..852b6800614d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PacketCaptures GetStatus. + */ +public final class PacketCapturesGetStatusSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCaptureQueryStatus.json + */ + /** + * Sample code: Query packet capture status. + * + * @param manager Entry point to NetworkManager. + */ + public static void queryPacketCaptureStatus(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPacketCaptures().getStatus("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java new file mode 100644 index 000000000000..fc91b819f92b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PacketCaptures List. + */ +public final class PacketCapturesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCapturesList.json + */ + /** + * Sample code: List packet captures. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPacketCaptures(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPacketCaptures().list("rg1", "nw1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java new file mode 100644 index 000000000000..5b2b463b8159 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PacketCaptures Stop. + */ +public final class PacketCapturesStopSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkWatcherPacketCaptureStop.json + */ + /** + * Sample code: Stop packet capture. + * + * @param manager Entry point to NetworkManager. + */ + public static void stopPacketCapture(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPacketCaptures().stop("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java new file mode 100644 index 000000000000..5782ec8fae51 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PeerExpressRouteCircuitConnections Get. + */ +public final class PeerExpressRouteCircuitConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/PeerExpressRouteCircuitConnectionGet.json + */ + /** + * Sample code: PeerExpressRouteCircuitConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void peerExpressRouteCircuitConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPeerExpressRouteCircuitConnections() + .getWithResponse("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", + "60aee347-e889-4a42-8c1b-0aae8b1e4013", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java new file mode 100644 index 000000000000..5138be4e8d3c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PeerExpressRouteCircuitConnections List. + */ +public final class PeerExpressRouteCircuitConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/PeerExpressRouteCircuitConnectionList.json + */ + /** + * Sample code: List Peer ExpressRouteCircuit Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPeerExpressRouteCircuitConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPeerExpressRouteCircuitConnections() + .list("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..79d6e7e5aaa8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.PrivateDnsZoneGroupInner; +import com.azure.resourcemanager.network.models.PrivateDnsZoneConfig; +import java.util.Arrays; + +/** + * Samples for PrivateDnsZoneGroups CreateOrUpdate. + */ +public final class PrivateDnsZoneGroupsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointDnsZoneGroupCreate.json + */ + /** + * Sample code: Create private dns zone group. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPrivateDnsZoneGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateDnsZoneGroups() + .createOrUpdate("rg1", "testPe", "testPdnsgroup", new PrivateDnsZoneGroupInner() + .withPrivateDnsZoneConfigs(Arrays.asList(new PrivateDnsZoneConfig().withPrivateDnsZoneId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/privateDnsZones/zone1.com"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java new file mode 100644 index 000000000000..9fd0d3e435fa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateDnsZoneGroups Delete. + */ +public final class PrivateDnsZoneGroupsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointDnsZoneGroupDelete.json + */ + /** + * Sample code: Delete private dns zone group. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePrivateDnsZoneGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateDnsZoneGroups() + .delete("rg1", "testPe", "testPdnsgroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java new file mode 100644 index 000000000000..f3d27053b046 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateDnsZoneGroups Get. + */ +public final class PrivateDnsZoneGroupsGetSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointDnsZoneGroupGet.json + */ + /** + * Sample code: Get private dns zone group. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPrivateDnsZoneGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateDnsZoneGroups() + .getWithResponse("rg1", "testPe", "testPdnsgroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java new file mode 100644 index 000000000000..df6849f51294 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateDnsZoneGroups List. + */ +public final class PrivateDnsZoneGroupsListSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointDnsZoneGroupList.json + */ + /** + * Sample code: List private endpoints in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPrivateEndpointsInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateDnsZoneGroups().list("testPe", "rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..926de729980a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ApplicationSecurityGroupInner; +import com.azure.resourcemanager.network.fluent.models.PrivateEndpointInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.models.PrivateEndpointIpConfiguration; +import com.azure.resourcemanager.network.models.PrivateEndpointIpVersionType; +import com.azure.resourcemanager.network.models.PrivateLinkServiceConnection; +import java.util.Arrays; + +/** + * Samples for PrivateEndpoints CreateOrUpdate. + */ +public final class PrivateEndpointsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointCreateWithASG.json + */ + /** + * Sample code: Create private endpoint with application security groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPrivateEndpointWithApplicationSecurityGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus2euap") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + .withPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() + .withPrivateLinkServiceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls") + .withGroupIds(Arrays.asList("groupIdFromResource")) + .withRequestMessage("Please approve my connection."))) + .withApplicationSecurityGroups(Arrays.asList(new ApplicationSecurityGroupInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/provders/Microsoft.Network/applicationSecurityGroup/asg1"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointCreate.json + */ + /** + * Sample code: Create private endpoint. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPrivateEndpoint(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus2euap") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + .withIpVersionType(PrivateEndpointIpVersionType.IPV4) + .withPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() + .withPrivateLinkServiceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls") + .withGroupIds(Arrays.asList("groupIdFromResource")) + .withRequestMessage("Please approve my connection."))) + .withIpConfigurations(Arrays.asList(new PrivateEndpointIpConfiguration().withName("pestaticconfig") + .withGroupId("file") + .withMemberName("file") + .withPrivateIpAddress("192.168.0.6"))) + .withCustomNetworkInterfaceName("testPeNic"), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointCreateForManualApproval.json + */ + /** + * Sample code: Create private endpoint with manual approval connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPrivateEndpointWithManualApprovalConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + .withManualPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() + .withPrivateLinkServiceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls") + .withGroupIds(Arrays.asList("groupIdFromResource")) + .withRequestMessage("Please manually approve my connection."))) + .withIpConfigurations(Arrays.asList(new PrivateEndpointIpConfiguration().withName("pestaticconfig") + .withGroupId("file") + .withMemberName("file") + .withPrivateIpAddress("192.168.0.5"))) + .withCustomNetworkInterfaceName("testPeNic"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java new file mode 100644 index 000000000000..a414353f93ba --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateEndpoints Delete. + */ +public final class PrivateEndpointsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointDelete.json + */ + /** + * Sample code: Delete private endpoint. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePrivateEndpoint(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateEndpoints().delete("rg1", "testPe", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..be84a8d9adb6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateEndpoints GetByResourceGroup. + */ +public final class PrivateEndpointsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointGetWithASG.json + */ + /** + * Sample code: Get private endpoint with application security groups. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getPrivateEndpointWithApplicationSecurityGroups(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointGetForManualApproval.json + */ + /** + * Sample code: Get private endpoint with manual approval connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getPrivateEndpointWithManualApprovalConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointGet.json + */ + /** + * Sample code: Get private endpoint. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPrivateEndpoint(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java new file mode 100644 index 000000000000..32afa2d698d1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateEndpoints ListByResourceGroup. + */ +public final class PrivateEndpointsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointList.json + */ + /** + * Sample code: List private endpoints in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPrivateEndpointsInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateEndpoints().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java new file mode 100644 index 000000000000..fb93444cbcd1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateEndpoints List. + */ +public final class PrivateEndpointsListSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateEndpointListAll.json + */ + /** + * Sample code: List all private endpoints. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllPrivateEndpoints(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateEndpoints().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java new file mode 100644 index 000000000000..f8e75c1e6660 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.CheckPrivateLinkServiceVisibilityRequest; + +/** + * Samples for PrivateLinkServices CheckPrivateLinkServiceVisibilityByResourceGroup. + */ +public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/CheckPrivateLinkServiceVisibilityByResourceGroup.json + */ + /** + * Sample code: Check private link service visibility. + * + * @param manager Entry point to NetworkManager. + */ + public static void checkPrivateLinkServiceVisibility(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .checkPrivateLinkServiceVisibilityByResourceGroup("westus", "rg1", + new CheckPrivateLinkServiceVisibilityRequest() + .withPrivateLinkServiceAlias("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java new file mode 100644 index 000000000000..37e60c188984 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.CheckPrivateLinkServiceVisibilityRequest; + +/** + * Samples for PrivateLinkServices CheckPrivateLinkServiceVisibility. + */ +public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples { + /* + * x-ms-original-file: 2025-05-01/CheckPrivateLinkServiceVisibility.json + */ + /** + * Sample code: Check private link service visibility. + * + * @param manager Entry point to NetworkManager. + */ + public static void checkPrivateLinkServiceVisibility(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .checkPrivateLinkServiceVisibility("westus", + new CheckPrivateLinkServiceVisibilityRequest() + .withPrivateLinkServiceAlias("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..c969eea4e7bb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.FrontendIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.PrivateLinkServiceInner; +import com.azure.resourcemanager.network.fluent.models.PrivateLinkServiceIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.models.IpAllocationMethod; +import com.azure.resourcemanager.network.models.IpVersion; +import com.azure.resourcemanager.network.models.PrivateLinkServicePropertiesAutoApproval; +import com.azure.resourcemanager.network.models.PrivateLinkServicePropertiesVisibility; +import java.util.Arrays; + +/** + * Samples for PrivateLinkServices CreateOrUpdate. + */ +public final class PrivateLinkServicesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceCreate.json + */ + /** + * Sample code: Create private link service. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPrivateLinkService(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .createOrUpdate("rg1", "testPls", new PrivateLinkServiceInner().withLocation("eastus") + .withLoadBalancerFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"))) + .withIpConfigurations(Arrays.asList(new PrivateLinkServiceIpConfigurationInner().withName("fe-lb") + .withPrivateIpAddress("10.0.1.4") + .withPrivateIpAllocationMethod(IpAllocationMethod.STATIC) + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")) + .withPrivateIpAddressVersion(IpVersion.IPV4))) + .withVisibility(new PrivateLinkServicePropertiesVisibility() + .withSubscriptions(Arrays.asList("subscription1", "subscription2", "subscription3"))) + .withAutoApproval(new PrivateLinkServicePropertiesAutoApproval() + .withSubscriptions(Arrays.asList("subscription1", "subscription2"))) + .withFqdns(Arrays.asList("fqdn1", "fqdn2", "fqdn3")), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java new file mode 100644 index 000000000000..f91020907f5d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices DeletePrivateEndpointConnection. + */ +public final class PrivateLinkServicesDeletePrivateEndpointConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceDeletePrivateEndpointConnection.json + */ + /** + * Sample code: delete private end point connection for a private link service. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePrivateEndPointConnectionForAPrivateLinkService( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .deletePrivateEndpointConnection("rg1", "testPls", "testPlePeConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java new file mode 100644 index 000000000000..ff02e5e011c6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices Delete. + */ +public final class PrivateLinkServicesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceDelete.json + */ + /** + * Sample code: Delete private link service. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePrivateLinkService(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateLinkServices().delete("rg1", "testPls", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..aa63d155befd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices GetByResourceGroup. + */ +public final class PrivateLinkServicesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceGet.json + */ + /** + * Sample code: Get private link service. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPrivateLinkService(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .getByResourceGroupWithResponse("rg1", "testPls", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java new file mode 100644 index 000000000000..69f3a1d21852 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices GetPrivateEndpointConnection. + */ +public final class PrivateLinkServicesGetPrivateEndpointConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceGetPrivateEndpointConnection.json + */ + /** + * Sample code: Get private end point connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPrivateEndPointConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .getPrivateEndpointConnectionWithResponse("rg1", "testPls", "testPlePeConnection", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java new file mode 100644 index 000000000000..ab50644025ae --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices ListAutoApprovedPrivateLinkServicesByResourceGroup. + */ +public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/AutoApprovedPrivateLinkServicesResourceGroupGet.json + */ + /** + * Sample code: Get list of private link service id that can be linked to a private end point with auto approved. + * + * @param manager Entry point to NetworkManager. + */ + public static void getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .listAutoApprovedPrivateLinkServicesByResourceGroup("regionName", "rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java new file mode 100644 index 000000000000..59b627702c1d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices ListAutoApprovedPrivateLinkServices. + */ +public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples { + /* + * x-ms-original-file: 2025-05-01/AutoApprovedPrivateLinkServicesGet.json + */ + /** + * Sample code: Get list of private link service id that can be linked to a private end point with auto approved. + * + * @param manager Entry point to NetworkManager. + */ + public static void getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .listAutoApprovedPrivateLinkServices("regionName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java new file mode 100644 index 000000000000..71538505d66b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices ListByResourceGroup. + */ +public final class PrivateLinkServicesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceList.json + */ + /** + * Sample code: List private link service in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPrivateLinkServiceInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateLinkServices().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java new file mode 100644 index 000000000000..7fbaefcad036 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices ListPrivateEndpointConnections. + */ +public final class PrivateLinkServicesListPrivateEndpointConnectionsSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceListPrivateEndpointConnection.json + */ + /** + * Sample code: List private link service in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPrivateLinkServiceInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .listPrivateEndpointConnections("rg1", "testPls", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java new file mode 100644 index 000000000000..dded140e65e6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PrivateLinkServices List. + */ +public final class PrivateLinkServicesListSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceListAll.json + */ + /** + * Sample code: List all private list service. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllPrivateListService(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPrivateLinkServices().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java new file mode 100644 index 000000000000..294f2fbd8cee --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.PrivateEndpointConnectionInner; +import com.azure.resourcemanager.network.models.PrivateLinkServiceConnectionState; + +/** + * Samples for PrivateLinkServices UpdatePrivateEndpointConnection. + */ +public final class PrivateLinkServicesUpdatePrivateEndpointConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/PrivateLinkServiceUpdatePrivateEndpointConnection.json + */ + /** + * Sample code: approve or reject private end point connection for a private link service. + * + * @param manager Entry point to NetworkManager. + */ + public static void approveOrRejectPrivateEndPointConnectionForAPrivateLinkService( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPrivateLinkServices() + .updatePrivateEndpointConnectionWithResponse("rg1", "testPls", "testPlePeConnection", + new PrivateEndpointConnectionInner().withName("testPlePeConnection") + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("approved it for some reason.")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..abc434930c37 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner; +import com.azure.resourcemanager.network.models.IpAllocationMethod; +import com.azure.resourcemanager.network.models.IpVersion; +import com.azure.resourcemanager.network.models.PublicIpAddressDnsSettings; +import com.azure.resourcemanager.network.models.PublicIpAddressDnsSettingsDomainNameLabelScope; +import com.azure.resourcemanager.network.models.PublicIpAddressSku; +import com.azure.resourcemanager.network.models.PublicIpAddressSkuName; +import com.azure.resourcemanager.network.models.PublicIpAddressSkuTier; + +/** + * Samples for PublicIpAddresses CreateOrUpdate. + */ +public final class PublicIpAddressesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressCreateDns.json + */ + /** + * Sample code: Create public IP address DNS. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPublicIPAddressDNS(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", + new PublicIpAddressInner().withLocation("eastus") + .withDnsSettings(new PublicIpAddressDnsSettings().withDomainNameLabel("dnslbl")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressCreateCustomizedValues.json + */ + /** + * Sample code: Create public IP address allocation method. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPublicIPAddressAllocationMethod(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", + new PublicIpAddressInner().withLocation("eastus") + .withSku(new PublicIpAddressSku().withName(PublicIpAddressSkuName.STANDARD) + .withTier(PublicIpAddressSkuTier.GLOBAL)) + .withPublicIpAllocationMethod(IpAllocationMethod.STATIC) + .withPublicIpAddressVersion(IpVersion.IPV4) + .withIdleTimeoutInMinutes(10), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressCreateDefaults.json + */ + /** + * Sample code: Create public IP address defaults. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPublicIPAddressDefaults(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", new PublicIpAddressInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressCreateDnsWithDomainNameLabelScope.json + */ + /** + * Sample code: Create public IP address DNS with Domain Name Label Scope. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPublicIPAddressDNSWithDomainNameLabelScope(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", + new PublicIpAddressInner().withLocation("eastus") + .withDnsSettings(new PublicIpAddressDnsSettings().withDomainNameLabel("dnslbl") + .withDomainNameLabelScope(PublicIpAddressDnsSettingsDomainNameLabelScope.TENANT_REUSE)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressCreateDefaultsStandardV2Sku.json + */ + /** + * Sample code: Create public IP address defaults with StandardV2 Sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPublicIPAddressDefaultsWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", new PublicIpAddressInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java new file mode 100644 index 000000000000..15ce89f73d76 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses DdosProtectionStatus. + */ +public final class PublicIpAddressesDdosProtectionStatusSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressGetDdosProtectionStatus.json + */ + /** + * Sample code: Get Ddos Protection Status of a Public IP Address. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getDdosProtectionStatusOfAPublicIPAddress(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .ddosProtectionStatus("rg1", "test-pip", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java new file mode 100644 index 000000000000..a64e30d4debf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses Delete. + */ +public final class PublicIpAddressesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressDelete.json + */ + /** + * Sample code: Delete public IP address. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePublicIPAddress(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpAddresses().delete("rg1", "test-ip", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDisassociateCloudServiceReservedPublicIpSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDisassociateCloudServiceReservedPublicIpSamples.java new file mode 100644 index 000000000000..7163a0dd98f7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDisassociateCloudServiceReservedPublicIpSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.DisassociateCloudServicePublicIpRequest; + +/** + * Samples for PublicIpAddresses DisassociateCloudServiceReservedPublicIp. + */ +public final class PublicIpAddressesDisassociateCloudServiceReservedPublicIpSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressDisassociateCloudServiceReservedPublicIp.json + */ + /** + * Sample code: Disassociate public IP address. + * + * @param manager Entry point to NetworkManager. + */ + public static void disassociatePublicIPAddress(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .disassociateCloudServiceReservedPublicIp("rg1", "pip1", + new DisassociateCloudServicePublicIpRequest().withPublicIpArmId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Network/publicIpAddresses/pip2"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..e2246e1b9f14 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses GetByResourceGroup. + */ +public final class PublicIpAddressesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressGet.json + */ + /** + * Sample code: Get public IP address. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPublicIPAddress(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .getByResourceGroupWithResponse("rg1", "testDNS-ip", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressGetStandardV2Sku.json + */ + /** + * Sample code: Get public IP address with StandardV2 sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPublicIPAddressWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .getByResourceGroupWithResponse("rg1", "testDNS-ip", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIPAddressSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIPAddressSamples.java new file mode 100644 index 000000000000..b3755b13a0fc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIPAddressSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses GetCloudServicePublicIpAddress. + */ +public final class PublicIpAddressesGetCloudServicePublicIpAddressSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServicePublicIpGet.json + */ + /** + * Sample code: GetVMSSPublicIP. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVMSSPublicIP(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .getCloudServicePublicIpAddressWithResponse("cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", "pub1", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java new file mode 100644 index 000000000000..b7ac80712da3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses ListByResourceGroup. + */ +public final class PublicIpAddressesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressList.json + */ + /** + * Sample code: List resource group public IP addresses. + * + * @param manager Entry point to NetworkManager. + */ + public static void listResourceGroupPublicIPAddresses(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpAddresses().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIPAddressesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIPAddressesSamples.java new file mode 100644 index 000000000000..461ffcab6ed5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIPAddressesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses ListCloudServicePublicIpAddresses. + */ +public final class PublicIpAddressesListCloudServicePublicIpAddressesSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServicePublicIpListAll.json + */ + /** + * Sample code: ListVMSSPublicIP. + * + * @param manager Entry point to NetworkManager. + */ + public static void listVMSSPublicIP(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .listCloudServicePublicIpAddresses("cs-tester", "cs1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIPAddressesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIPAddressesSamples.java new file mode 100644 index 000000000000..9812422dd4be --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIPAddressesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses ListCloudServiceRoleInstancePublicIpAddresses. + */ +public final class PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceRoleInstancePublicIpList.json + */ + /** + * Sample code: ListVMSSVMPublicIP. + * + * @param manager Entry point to NetworkManager. + */ + public static void listVMSSVMPublicIP(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .listCloudServiceRoleInstancePublicIpAddresses("cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java new file mode 100644 index 000000000000..27002673729f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpAddresses List. + */ +public final class PublicIpAddressesListSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressListAll.json + */ + /** + * Sample code: List all public IP addresses. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllPublicIPAddresses(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpAddresses().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesReserveCloudServicePublicIpAddressSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesReserveCloudServicePublicIpAddressSamples.java new file mode 100644 index 000000000000..cb7f3c0f456a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesReserveCloudServicePublicIpAddressSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.IsRollback; +import com.azure.resourcemanager.network.models.ReserveCloudServicePublicIpAddressRequest; + +/** + * Samples for PublicIpAddresses ReserveCloudServicePublicIpAddress. + */ +public final class PublicIpAddressesReserveCloudServicePublicIpAddressSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressReserve.json + */ + /** + * Sample code: Reserve public IP address. + * + * @param manager Entry point to NetworkManager. + */ + public static void reservePublicIPAddress(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .reserveCloudServicePublicIpAddress("rg1", "test-ip", + new ReserveCloudServicePublicIpAddressRequest().withIsRollback(IsRollback.FALSE), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java new file mode 100644 index 000000000000..b21ffd2e981b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for PublicIpAddresses UpdateTags. + */ +public final class PublicIpAddressesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpAddressUpdateTags.json + */ + /** + * Sample code: Update public IP address tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updatePublicIPAddressTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpAddresses() + .updateTagsWithResponse("rg1", "test-ip", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..95aff63541a0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.PublicIpPrefixInner; +import com.azure.resourcemanager.network.models.IpVersion; +import com.azure.resourcemanager.network.models.PublicIpPrefixSku; +import com.azure.resourcemanager.network.models.PublicIpPrefixSkuName; +import com.azure.resourcemanager.network.models.PublicIpPrefixSkuTier; + +/** + * Samples for PublicIpPrefixes CreateOrUpdate. + */ +public final class PublicIpPrefixesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixCreateDefaultsStandardV2Sku.json + */ + /** + * Sample code: Create public IP prefix defaults with StandardV2 Sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPublicIPPrefixDefaultsWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .createOrUpdate("rg1", "test-ipprefix", + new PublicIpPrefixInner().withLocation("westus") + .withSku(new PublicIpPrefixSku().withName(PublicIpPrefixSkuName.STANDARD_V2)) + .withPrefixLength(30), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixCreateDefaults.json + */ + /** + * Sample code: Create public IP prefix defaults. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPublicIPPrefixDefaults(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .createOrUpdate("rg1", "test-ipprefix", + new PublicIpPrefixInner().withLocation("westus") + .withSku(new PublicIpPrefixSku().withName(PublicIpPrefixSkuName.STANDARD)) + .withPrefixLength(30), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixCreateCustomizedValues.json + */ + /** + * Sample code: Create public IP prefix allocation method. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPublicIPPrefixAllocationMethod(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .createOrUpdate("rg1", "test-ipprefix", + new PublicIpPrefixInner().withLocation("westus") + .withSku(new PublicIpPrefixSku().withName(PublicIpPrefixSkuName.STANDARD) + .withTier(PublicIpPrefixSkuTier.REGIONAL)) + .withPublicIpAddressVersion(IpVersion.IPV4) + .withPrefixLength(30), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java new file mode 100644 index 000000000000..761e01682478 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpPrefixes Delete. + */ +public final class PublicIpPrefixesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixDelete.json + */ + /** + * Sample code: Delete public IP prefix. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePublicIPPrefix(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpPrefixes().delete("rg1", "test-ipprefix", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..94707440329a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpPrefixes GetByResourceGroup. + */ +public final class PublicIpPrefixesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixGetStandardV2Sku.json + */ + /** + * Sample code: Get public IP prefix with StandardV2 sku. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPublicIPPrefixWithStandardV2Sku(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .getByResourceGroupWithResponse("rg1", "test-ipprefix", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixGet.json + */ + /** + * Sample code: Get public IP prefix. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPublicIPPrefix(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .getByResourceGroupWithResponse("rg1", "test-ipprefix", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java new file mode 100644 index 000000000000..e21f930ff53e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpPrefixes ListByResourceGroup. + */ +public final class PublicIpPrefixesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixList.json + */ + /** + * Sample code: List resource group public IP prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void listResourceGroupPublicIPPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpPrefixes().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java new file mode 100644 index 000000000000..3e09999a61f6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for PublicIpPrefixes List. + */ +public final class PublicIpPrefixesListSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixListAll.json + */ + /** + * Sample code: List all public IP prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllPublicIPPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getPublicIpPrefixes().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java new file mode 100644 index 000000000000..3295528311fd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for PublicIpPrefixes UpdateTags. + */ +public final class PublicIpPrefixesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/PublicIpPrefixUpdateTags.json + */ + /** + * Sample code: Update public IP prefix tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updatePublicIPPrefixTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getPublicIpPrefixes() + .updateTagsWithResponse("rg1", "test-ipprefix", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsCreateSamples.java new file mode 100644 index 000000000000..9e1cf8a4ce40 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsCreateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ReachabilityAnalysisIntentInner; +import com.azure.resourcemanager.network.models.IpTraffic; +import com.azure.resourcemanager.network.models.NetworkProtocol; +import com.azure.resourcemanager.network.models.ReachabilityAnalysisIntentProperties; +import java.util.Arrays; + +/** + * Samples for ReachabilityAnalysisIntents Create. + */ +public final class ReachabilityAnalysisIntentsCreateSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisIntentPut.json + */ + /** + * Sample code: ReachabilityAnalysisIntentCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisIntentCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisIntents() + .createWithResponse("rg1", "testNetworkManager", "testWorkspace", "testAnalysisIntentName", + new ReachabilityAnalysisIntentInner().withProperties(new ReachabilityAnalysisIntentProperties() + .withDescription("A sample reachability analysis intent") + .withSourceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc") + .withDestinationResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest") + .withIpTraffic(new IpTraffic().withSourceIps(Arrays.asList("10.4.0.0")) + .withDestinationIps(Arrays.asList("10.4.0.1")) + .withSourcePorts(Arrays.asList("0")) + .withDestinationPorts(Arrays.asList("0")) + .withProtocols(Arrays.asList(NetworkProtocol.ANY)))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsDeleteSamples.java new file mode 100644 index 000000000000..ad9f64b36cd7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisIntents Delete. + */ +public final class ReachabilityAnalysisIntentsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisIntentDelete.json + */ + /** + * Sample code: ReachabilityAnalysisIntentDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisIntentDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisIntents() + .deleteWithResponse("rg1", "testNetworkManager", "testWorkspace", "testAnalysisIntent", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsGetSamples.java new file mode 100644 index 000000000000..7e1eddf83e1a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisIntents Get. + */ +public final class ReachabilityAnalysisIntentsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisIntentGet.json + */ + /** + * Sample code: ReachabilityAnalysisIntentGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisIntentGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisIntents() + .getWithResponse("rg1", "testNetworkManager", "testWorkspace", "testAnalysisIntentName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsListSamples.java new file mode 100644 index 000000000000..dad3335e65ff --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisIntentsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisIntents List. + */ +public final class ReachabilityAnalysisIntentsListSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisIntentList.json + */ + /** + * Sample code: ReachabilityAnalysisIntentList. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisIntentList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisIntents() + .list("rg1", "testNetworkManager", "testVerifierWorkspace1", null, null, null, null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsCreateSamples.java new file mode 100644 index 000000000000..45086aef5ed7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsCreateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ReachabilityAnalysisRunInner; +import com.azure.resourcemanager.network.models.ReachabilityAnalysisRunProperties; + +/** + * Samples for ReachabilityAnalysisRuns Create. + */ +public final class ReachabilityAnalysisRunsCreateSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisRunPut.json + */ + /** + * Sample code: ReachabilityAnalysisRunCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisRunCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisRuns() + .createWithResponse("rg1", "testNetworkManager", "testWorkspace", "testAnalysisRunName", + new ReachabilityAnalysisRunInner().withProperties(new ReachabilityAnalysisRunProperties() + .withDescription("A sample reachability analysis run") + .withIntentId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsDeleteSamples.java new file mode 100644 index 000000000000..67ca752ad786 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisRuns Delete. + */ +public final class ReachabilityAnalysisRunsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisRunDelete.json + */ + /** + * Sample code: ReachabilityAnalysisRunDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisRunDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisRuns() + .delete("rg1", "testNetworkManager", "testWorkspace", "testAnalysisRun", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsGetSamples.java new file mode 100644 index 000000000000..f3528b779c30 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisRuns Get. + */ +public final class ReachabilityAnalysisRunsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisRunGet.json + */ + /** + * Sample code: ReachabilityAnalysisRunGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisRunGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisRuns() + .getWithResponse("rg1", "testNetworkManager", "testWorkspace", "testAnalysisRunName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsListSamples.java new file mode 100644 index 000000000000..d2ea10d5825a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ReachabilityAnalysisRunsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ReachabilityAnalysisRuns List. + */ +public final class ReachabilityAnalysisRunsListSamples { + /* + * x-ms-original-file: 2025-05-01/ReachabilityAnalysisRunList.json + */ + /** + * Sample code: ReachabilityAnalysisRunList. + * + * @param manager Entry point to NetworkManager. + */ + public static void reachabilityAnalysisRunList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getReachabilityAnalysisRuns() + .list("rg1", "testNetworkManager", "testVerifierWorkspace1", null, null, null, null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java new file mode 100644 index 000000000000..9960a904aaef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ResourceNavigationLinks List. + */ +public final class ResourceNavigationLinksListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGetResourceNavigationLinks.json + */ + /** + * Sample code: Get Resource Navigation Links. + * + * @param manager Entry point to NetworkManager. + */ + public static void getResourceNavigationLinks(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getResourceNavigationLinks() + .listWithResponse("rg1", "vnet", "subnet", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..c9fd983449c9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner; +import com.azure.resourcemanager.network.models.Access; +import com.azure.resourcemanager.network.models.RouteFilterRuleType; +import java.util.Arrays; + +/** + * Samples for RouteFilterRules CreateOrUpdate. + */ +public final class RouteFilterRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterRuleCreate.json + */ + /** + * Sample code: RouteFilterRuleCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterRuleCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilterRules() + .createOrUpdate("rg1", "filterName", "ruleName", + new RouteFilterRuleInner().withAccess(Access.ALLOW) + .withRouteFilterRuleType(RouteFilterRuleType.COMMUNITY) + .withCommunities(Arrays.asList("12076:5030", "12076:5040")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java new file mode 100644 index 000000000000..7d2c21ef4bd8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilterRules Delete. + */ +public final class RouteFilterRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterRuleDelete.json + */ + /** + * Sample code: RouteFilterRuleDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterRuleDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilterRules() + .delete("rg1", "filterName", "ruleName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java new file mode 100644 index 000000000000..306f0919a5dd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilterRules Get. + */ +public final class RouteFilterRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterRuleGet.json + */ + /** + * Sample code: RouteFilterRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilterRules() + .getWithResponse("rg1", "filterName", "filterName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java new file mode 100644 index 000000000000..fd4cc7d451c2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilterRules ListByRouteFilter. + */ +public final class RouteFilterRulesListByRouteFilterSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterRuleListByRouteFilter.json + */ + /** + * Sample code: RouteFilterRuleListByRouteFilter. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterRuleListByRouteFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilterRules() + .listByRouteFilter("rg1", "filterName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..820688fdd51a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteFilterInner; +import com.azure.resourcemanager.network.fluent.models.RouteFilterRuleInner; +import com.azure.resourcemanager.network.models.Access; +import com.azure.resourcemanager.network.models.RouteFilterRuleType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for RouteFilters CreateOrUpdate. + */ +public final class RouteFiltersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterCreate.json + */ + /** + * Sample code: RouteFilterCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilters() + .createOrUpdate("rg1", "filterName", + new RouteFilterInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withRules(Arrays.asList(new RouteFilterRuleInner().withName("ruleName") + .withAccess(Access.ALLOW) + .withRouteFilterRuleType(RouteFilterRuleType.COMMUNITY) + .withCommunities(Arrays.asList("12076:5030", "12076:5040")))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java new file mode 100644 index 000000000000..17efbcfe3ed9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilters Delete. + */ +public final class RouteFiltersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterDelete.json + */ + /** + * Sample code: RouteFilterDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteFilters().delete("rg1", "filterName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..dbc5a260ae8a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilters GetByResourceGroup. + */ +public final class RouteFiltersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterGet.json + */ + /** + * Sample code: RouteFilterGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilters() + .getByResourceGroupWithResponse("rg1", "filterName", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java new file mode 100644 index 000000000000..bbeab3f5535a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilters ListByResourceGroup. + */ +public final class RouteFiltersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterListByResourceGroup.json + */ + /** + * Sample code: RouteFilterListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteFilters().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java new file mode 100644 index 000000000000..41525e8b60cf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteFilters List. + */ +public final class RouteFiltersListSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterList.json + */ + /** + * Sample code: RouteFilterList. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeFilterList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteFilters().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java new file mode 100644 index 000000000000..747548a9a0f6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for RouteFilters UpdateTags. + */ +public final class RouteFiltersUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/RouteFilterUpdateTags.json + */ + /** + * Sample code: Update route filter tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateRouteFilterTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteFilters() + .updateTagsWithResponse("rg1", "filterName", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0d956a3007fb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteMapInner; +import com.azure.resourcemanager.network.models.Action; +import com.azure.resourcemanager.network.models.Criterion; +import com.azure.resourcemanager.network.models.NextStep; +import com.azure.resourcemanager.network.models.Parameter; +import com.azure.resourcemanager.network.models.RouteMapActionType; +import com.azure.resourcemanager.network.models.RouteMapMatchCondition; +import com.azure.resourcemanager.network.models.RouteMapRule; +import java.util.Arrays; + +/** + * Samples for RouteMaps CreateOrUpdate. + */ +public final class RouteMapsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RouteMapPut.json + */ + /** + * Sample code: RouteMapPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeMapPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteMaps() + .createOrUpdate("rg1", "virtualHub1", "routeMap1", + new RouteMapInner().withAssociatedInboundConnections(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGateway1/expressRouteConnections/exrConn1")) + .withAssociatedOutboundConnections(Arrays.asList()) + .withRules(Arrays.asList(new RouteMapRule().withName("rule1") + .withMatchCriteria(Arrays.asList(new Criterion().withRoutePrefix(Arrays.asList("10.0.0.0/8")) + .withCommunity(Arrays.asList()) + .withAsPath(Arrays.asList()) + .withMatchCondition(RouteMapMatchCondition.CONTAINS))) + .withActions(Arrays.asList(new Action().withType(RouteMapActionType.ADD) + .withParameters(Arrays.asList(new Parameter().withRoutePrefix(Arrays.asList()) + .withCommunity(Arrays.asList()) + .withAsPath(Arrays.asList("22334")))))) + .withNextStepIfMatched(NextStep.CONTINUE))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java new file mode 100644 index 000000000000..2285d11b7dce --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteMaps Delete. + */ +public final class RouteMapsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RouteMapDelete.json + */ + /** + * Sample code: RouteMapDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeMapDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteMaps() + .delete("rg1", "virtualHub1", "routeMap1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java new file mode 100644 index 000000000000..0d7ed8d4e59e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteMaps Get. + */ +public final class RouteMapsGetSamples { + /* + * x-ms-original-file: 2025-05-01/RouteMapGet.json + */ + /** + * Sample code: RouteMapGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeMapGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteMaps() + .getWithResponse("rg1", "virtualHub1", "routeMap1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java new file mode 100644 index 000000000000..3f0b7012de3c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteMaps List. + */ +public final class RouteMapsListSamples { + /* + * x-ms-original-file: 2025-05-01/RouteMapList.json + */ + /** + * Sample code: RouteMapList. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeMapList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteMaps().list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..42fc6a50d545 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteInner; +import com.azure.resourcemanager.network.fluent.models.RouteTableInner; +import com.azure.resourcemanager.network.models.RouteNextHopType; +import java.util.Arrays; + +/** + * Samples for RouteTables CreateOrUpdate. + */ +public final class RouteTablesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableCreate.json + */ + /** + * Sample code: Create route table. + * + * @param manager Entry point to NetworkManager. + */ + public static void createRouteTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteTables() + .createOrUpdate("rg1", "testrt", new RouteTableInner().withLocation("westus"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/RouteTableCreateWithRoute.json + */ + /** + * Sample code: Create route table with route. + * + * @param manager Entry point to NetworkManager. + */ + public static void createRouteTableWithRoute(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteTables() + .createOrUpdate("rg1", "testrt", + new RouteTableInner().withLocation("westus") + .withRoutes(Arrays.asList(new RouteInner().withName("route1") + .withAddressPrefix("10.0.3.0/24") + .withNextHopType(RouteNextHopType.VIRTUAL_NETWORK_GATEWAY))) + .withDisableBgpRoutePropagation(true), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java new file mode 100644 index 000000000000..01a2ecce71e7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteTables Delete. + */ +public final class RouteTablesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableDelete.json + */ + /** + * Sample code: Delete route table. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteRouteTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteTables().delete("rg1", "testrt", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..26dec27071ec --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteTables GetByResourceGroup. + */ +public final class RouteTablesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableGet.json + */ + /** + * Sample code: Get route table. + * + * @param manager Entry point to NetworkManager. + */ + public static void getRouteTable(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteTables() + .getByResourceGroupWithResponse("rg1", "testrt", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java new file mode 100644 index 000000000000..62e175560987 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteTables ListByResourceGroup. + */ +public final class RouteTablesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableList.json + */ + /** + * Sample code: List route tables in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRouteTablesInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteTables().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java new file mode 100644 index 000000000000..06b2cdba9ded --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RouteTables List. + */ +public final class RouteTablesListSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableListAll.json + */ + /** + * Sample code: List all route tables. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllRouteTables(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRouteTables().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java new file mode 100644 index 000000000000..da7a788d9244 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for RouteTables UpdateTags. + */ +public final class RouteTablesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableUpdateTags.json + */ + /** + * Sample code: Update route table tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateRouteTableTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRouteTables() + .updateTagsWithResponse("rg1", "testrt", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7812d50c413d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteInner; +import com.azure.resourcemanager.network.models.RouteNextHopType; + +/** + * Samples for Routes CreateOrUpdate. + */ +public final class RoutesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableRouteCreate.json + */ + /** + * Sample code: Create route. + * + * @param manager Entry point to NetworkManager. + */ + public static void createRoute(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutes() + .createOrUpdate("rg1", "testrt", "route1", new RouteInner().withAddressPrefix("10.0.3.0/24") + .withNextHopType(RouteNextHopType.VIRTUAL_NETWORK_GATEWAY), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java new file mode 100644 index 000000000000..d3fd3df02b3d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Routes Delete. + */ +public final class RoutesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableRouteDelete.json + */ + /** + * Sample code: Delete route. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteRoute(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRoutes().delete("rg1", "testrt", "route1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java new file mode 100644 index 000000000000..02637fdacfa3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Routes Get. + */ +public final class RoutesGetSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableRouteGet.json + */ + /** + * Sample code: Get route. + * + * @param manager Entry point to NetworkManager. + */ + public static void getRoute(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutes() + .getWithResponse("rg1", "testrt", "route1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java new file mode 100644 index 000000000000..57614860cff9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Routes List. + */ +public final class RoutesListSamples { + /* + * x-ms-original-file: 2025-05-01/RouteTableRouteList.json + */ + /** + * Sample code: List routes. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRoutes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRoutes().list("rg1", "testrt", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java new file mode 100644 index 000000000000..4ac60b7e16f2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RoutingIntentInner; +import com.azure.resourcemanager.network.models.RoutingPolicy; +import java.util.Arrays; + +/** + * Samples for RoutingIntent CreateOrUpdate. + */ +public final class RoutingIntentCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/RoutingIntentPut.json + */ + /** + * Sample code: RouteTablePut. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTablePut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingIntents() + .createOrUpdate("rg1", "virtualHub1", "Intent1", new RoutingIntentInner().withRoutingPolicies(Arrays.asList( + new RoutingPolicy().withName("InternetTraffic") + .withDestinations(Arrays.asList("Internet")) + .withNextHop( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"), + new RoutingPolicy().withName("PrivateTrafficPolicy") + .withDestinations(Arrays.asList("PrivateTraffic")) + .withNextHop( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java new file mode 100644 index 000000000000..8df01b2a0418 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingIntent Delete. + */ +public final class RoutingIntentDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/RoutingIntentDelete.json + */ + /** + * Sample code: RouteTableDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTableDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingIntents() + .delete("rg1", "virtualHub1", "Intent1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java new file mode 100644 index 000000000000..3e15380ae580 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingIntent Get. + */ +public final class RoutingIntentGetSamples { + /* + * x-ms-original-file: 2025-05-01/RoutingIntentGet.json + */ + /** + * Sample code: RouteTableGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void routeTableGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingIntents() + .getWithResponse("rg1", "virtualHub1", "Intent1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java new file mode 100644 index 000000000000..6090b2a226e5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingIntent List. + */ +public final class RoutingIntentListSamples { + /* + * x-ms-original-file: 2025-05-01/RoutingIntentList.json + */ + /** + * Sample code: RoutingIntentList. + * + * @param manager Entry point to NetworkManager. + */ + public static void routingIntentList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getRoutingIntents().list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..6eec68a37d0e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RoutingRuleCollectionInner; +import com.azure.resourcemanager.network.models.NetworkManagerRoutingGroupItem; +import java.util.Arrays; + +/** + * Samples for RoutingRuleCollections CreateOrUpdate. + */ +public final class RoutingRuleCollectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleCollectionPut.json + */ + /** + * Sample code: Create or Update a routing rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void createOrUpdateARoutingRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRuleCollections() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", + new RoutingRuleCollectionInner().withDescription("A sample policy") + .withAppliesTo(Arrays.asList(new NetworkManagerRoutingGroupItem().withNetworkGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsDeleteSamples.java new file mode 100644 index 000000000000..bbb7fc3333f0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRuleCollections Delete. + */ +public final class RoutingRuleCollectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleCollectionDelete.json + */ + /** + * Sample code: Deletes an routing rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesAnRoutingRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRuleCollections() + .delete("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsGetSamples.java new file mode 100644 index 000000000000..c3a1dab3d30f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRuleCollections Get. + */ +public final class RoutingRuleCollectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleCollectionGet.json + */ + /** + * Sample code: Gets routing rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsRoutingRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRuleCollections() + .getWithResponse("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsListSamples.java new file mode 100644 index 000000000000..d1b9650c0e2a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRuleCollectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRuleCollections List. + */ +public final class RoutingRuleCollectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleCollectionList.json + */ + /** + * Sample code: List routing rule collections. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRoutingRuleCollections(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRuleCollections() + .list("rg1", "testNetworkManager", "myTestRoutingConfig", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0095605c69bb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesCreateOrUpdateSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RoutingRuleInner; +import com.azure.resourcemanager.network.models.RoutingRuleDestinationType; +import com.azure.resourcemanager.network.models.RoutingRuleNextHop; +import com.azure.resourcemanager.network.models.RoutingRuleNextHopType; +import com.azure.resourcemanager.network.models.RoutingRuleRouteDestination; + +/** + * Samples for RoutingRules CreateOrUpdate. + */ +public final class RoutingRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRulePut.json + */ + /** + * Sample code: Create an routing rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void createAnRoutingRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRules() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", + "SampleRoutingRule", + new RoutingRuleInner().withDescription("This is Sample Routing Rule") + .withDestination( + new RoutingRuleRouteDestination().withType(RoutingRuleDestinationType.ADDRESS_PREFIX) + .withDestinationAddress("10.0.0.0/16")) + .withNextHop( + new RoutingRuleNextHop().withNextHopType(RoutingRuleNextHopType.VIRTUAL_NETWORK_GATEWAY)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesDeleteSamples.java new file mode 100644 index 000000000000..757e8d55fee6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRules Delete. + */ +public final class RoutingRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleDelete.json + */ + /** + * Sample code: Deletes a routing rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesARoutingRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRules() + .delete("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", "sampleRule", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesGetSamples.java new file mode 100644 index 000000000000..7183d61d0391 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRules Get. + */ +public final class RoutingRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleGet.json + */ + /** + * Sample code: Gets routing rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsRoutingRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleRoutingRule", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesListSamples.java new file mode 100644 index 000000000000..3536a9c29fee --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/RoutingRulesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for RoutingRules List. + */ +public final class RoutingRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerRoutingRuleList.json + */ + /** + * Sample code: List routing rules. + * + * @param manager Entry point to NetworkManager. + */ + public static void listRoutingRules(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getRoutingRules() + .list("rg1", "testNetworkManager", "myTestRoutingConfig", "testRuleCollection", null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..89b26da73320 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ScopeConnectionInner; + +/** + * Samples for ScopeConnections CreateOrUpdate. + */ +public final class ScopeConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerScopeConnectionPut.json + */ + /** + * Sample code: Create or Update Network Manager Scope Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createOrUpdateNetworkManagerScopeConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getScopeConnections() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "TestScopeConnection", + new ScopeConnectionInner().withTenantId("6babcaad-604b-40ac-a9d7-9fd97c0b779f") + .withResourceId("subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b") + .withDescription("This is a scope connection to a cross tenant subscription."), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java new file mode 100644 index 000000000000..57f2da72b9a6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ScopeConnections Delete. + */ +public final class ScopeConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerScopeConnectionDelete.json + */ + /** + * Sample code: Delete Network Manager Scope Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkManagerScopeConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getScopeConnections() + .deleteWithResponse("rg1", "testNetworkManager", "TestScopeConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java new file mode 100644 index 000000000000..d29c52675695 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ScopeConnections Get. + */ +public final class ScopeConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerScopeConnectionGet.json + */ + /** + * Sample code: Get Network Manager Scope Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkManagerScopeConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getScopeConnections() + .getWithResponse("rg1", "testNetworkManager", "TestScopeConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java new file mode 100644 index 000000000000..f6044153d0f5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ScopeConnections List. + */ +public final class ScopeConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerScopeConnectionList.json + */ + /** + * Sample code: List Network Manager Scope Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void listNetworkManagerScopeConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getScopeConnections() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b90c587ae40f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SecurityAdminConfigurationInner; +import com.azure.resourcemanager.network.models.AddressSpaceAggregationOption; +import com.azure.resourcemanager.network.models.NetworkIntentPolicyBasedService; +import java.util.Arrays; + +/** + * Samples for SecurityAdminConfigurations CreateOrUpdate. + */ +public final class SecurityAdminConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json + */ + /** + * Sample code: Create manual-mode security admin configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createManualModeSecurityAdminConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityAdminConfigurations() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", + new SecurityAdminConfigurationInner() + .withDescription( + "A configuration which will update any network groups ip addresses at commit times.") + .withNetworkGroupAddressSpaceAggregationOption(AddressSpaceAggregationOption.MANUAL), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityAdminConfigurationPut.json + */ + /** + * Sample code: Create network manager security admin configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createNetworkManagerSecurityAdminConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityAdminConfigurations() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", + new SecurityAdminConfigurationInner().withDescription("A sample policy") + .withApplyOnNetworkIntentPolicyBasedServices(Arrays.asList(NetworkIntentPolicyBasedService.NONE)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..c0983f8e446d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityAdminConfigurations Delete. + */ +public final class SecurityAdminConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityAdminConfigurationDelete.json + */ + /** + * Sample code: Delete network manager security admin configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteNetworkManagerSecurityAdminConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityAdminConfigurations() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", false, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java new file mode 100644 index 000000000000..ad549ad08a0a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityAdminConfigurations Get. + */ +public final class SecurityAdminConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityAdminConfigurationGet.json + */ + /** + * Sample code: Get security admin configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSecurityAdminConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityAdminConfigurations() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java new file mode 100644 index 000000000000..dfb0d73fdcea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityAdminConfigurations List. + */ +public final class SecurityAdminConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityAdminConfigurationList.json + */ + /** + * Sample code: List security admin configurations in a network manager. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listSecurityAdminConfigurationsInANetworkManager(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityAdminConfigurations() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..f53f91d51ce3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.SecurityPartnerProviderInner; +import com.azure.resourcemanager.network.models.SecurityProviderName; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SecurityPartnerProviders CreateOrUpdate. + */ +public final class SecurityPartnerProvidersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderPut.json + */ + /** + * Sample code: Create Security Partner Provider. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSecurityPartnerProvider(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityPartnerProviders() + .createOrUpdate("rg1", "securityPartnerProvider", new SecurityPartnerProviderInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withSecurityProviderName(SecurityProviderName.ZSCALER) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java new file mode 100644 index 000000000000..c6bccd1d6f1d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityPartnerProviders Delete. + */ +public final class SecurityPartnerProvidersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderDelete.json + */ + /** + * Sample code: Delete Security Partner Provider. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteSecurityPartnerProvider(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityPartnerProviders() + .delete("rg1", "securityPartnerProvider", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..dea5a6d69b8a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityPartnerProviders GetByResourceGroup. + */ +public final class SecurityPartnerProvidersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderGet.json + */ + /** + * Sample code: Get Security Partner Provider. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSecurityPartnerProvider(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityPartnerProviders() + .getByResourceGroupWithResponse("rg1", "securityPartnerProvider", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java new file mode 100644 index 000000000000..2bbb18a6844d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityPartnerProviders ListByResourceGroup. + */ +public final class SecurityPartnerProvidersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderListByResourceGroup.json + */ + /** + * Sample code: List all Security Partner Providers for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllSecurityPartnerProvidersForAGivenResourceGroup( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityPartnerProviders() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java new file mode 100644 index 000000000000..d42988c21b9a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityPartnerProviders List. + */ +public final class SecurityPartnerProvidersListSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderListBySubscription.json + */ + /** + * Sample code: List all Security Partner Providers for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllSecurityPartnerProvidersForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getSecurityPartnerProviders().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java new file mode 100644 index 000000000000..36b16eba8ab4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for SecurityPartnerProviders UpdateTags. + */ +public final class SecurityPartnerProvidersUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/SecurityPartnerProviderUpdateTags.json + */ + /** + * Sample code: Update Security Partner Provider Tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateSecurityPartnerProviderTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityPartnerProviders() + .updateTagsWithResponse("rg1", "securityPartnerProvider", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..dd0214027332 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SecurityRuleInner; +import com.azure.resourcemanager.network.models.SecurityRuleAccess; +import com.azure.resourcemanager.network.models.SecurityRuleDirection; +import com.azure.resourcemanager.network.models.SecurityRuleProtocol; + +/** + * Samples for SecurityRules CreateOrUpdate. + */ +public final class SecurityRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupRuleCreate.json + */ + /** + * Sample code: Create security rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSecurityRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityRules() + .createOrUpdate("rg1", "testnsg", "rule1", + new SecurityRuleInner().withProtocol(SecurityRuleProtocol.ASTERISK) + .withSourcePortRange("*") + .withDestinationPortRange("8080") + .withSourceAddressPrefix("10.0.0.0/8") + .withDestinationAddressPrefix("11.0.0.0/8") + .withAccess(SecurityRuleAccess.DENY) + .withPriority(100) + .withDirection(SecurityRuleDirection.OUTBOUND), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java new file mode 100644 index 000000000000..33d3f9b6fe4f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityRules Delete. + */ +public final class SecurityRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupRuleDelete.json + */ + /** + * Sample code: Delete network security rule from network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteNetworkSecurityRuleFromNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getSecurityRules().delete("rg1", "testnsg", "rule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java new file mode 100644 index 000000000000..a0fc5611946e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityRules Get. + */ +public final class SecurityRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupRuleGet.json + */ + /** + * Sample code: Get network security rule in network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getNetworkSecurityRuleInNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityRules() + .getWithResponse("rg1", "testnsg", "rule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java new file mode 100644 index 000000000000..6397f593f22d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityRules List. + */ +public final class SecurityRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkSecurityGroupRuleList.json + */ + /** + * Sample code: List network security rules in network security group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listNetworkSecurityRulesInNetworkSecurityGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getSecurityRules().list("rg1", "testnsg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..4ddeaaa021fa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SecurityUserConfigurationInner; + +/** + * Samples for SecurityUserConfigurations CreateOrUpdate. + */ +public final class SecurityUserConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserConfigurationPut.json + */ + /** + * Sample code: Create network manager security user configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createNetworkManagerSecurityUserConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserConfigurations() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", + new SecurityUserConfigurationInner().withDescription("A sample policy"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..31831fa2ad44 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserConfigurations Delete. + */ +public final class SecurityUserConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserConfigurationDelete.json + */ + /** + * Sample code: Delete network manager security user configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteNetworkManagerSecurityUserConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserConfigurations() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", false, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsGetSamples.java new file mode 100644 index 000000000000..a82dbb04d32c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserConfigurations Get. + */ +public final class SecurityUserConfigurationsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserConfigurationGet.json + */ + /** + * Sample code: Get security user configurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSecurityUserConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserConfigurations() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsListSamples.java new file mode 100644 index 000000000000..fcdc0a8e4e40 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserConfigurationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserConfigurations List. + */ +public final class SecurityUserConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserConfigurationList.json + */ + /** + * Sample code: List security user configurations in a network manager. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listSecurityUserConfigurationsInANetworkManager(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserConfigurations() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..c45fa772258f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SecurityUserRuleCollectionInner; +import com.azure.resourcemanager.network.models.SecurityUserGroupItem; +import java.util.Arrays; + +/** + * Samples for SecurityUserRuleCollections CreateOrUpdate. + */ +public final class SecurityUserRuleCollectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleCollectionPut.json + */ + /** + * Sample code: Create or Update a Security User Rule Collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createOrUpdateASecurityUserRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRuleCollections() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + new SecurityUserRuleCollectionInner().withDescription("A sample policy") + .withAppliesToGroups(Arrays.asList(new SecurityUserGroupItem().withNetworkGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsDeleteSamples.java new file mode 100644 index 000000000000..3e854ed11228 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRuleCollections Delete. + */ +public final class SecurityUserRuleCollectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleCollectionDelete.json + */ + /** + * Sample code: Deletes a Security User Rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesASecurityUserRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRuleCollections() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsGetSamples.java new file mode 100644 index 000000000000..ef2c9315efd0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRuleCollections Get. + */ +public final class SecurityUserRuleCollectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleCollectionGet.json + */ + /** + * Sample code: Gets security user rule collection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsSecurityUserRuleCollection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRuleCollections() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsListSamples.java new file mode 100644 index 000000000000..85e1ef3d1bf3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRuleCollectionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRuleCollections List. + */ +public final class SecurityUserRuleCollectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleCollectionList.json + */ + /** + * Sample code: List rule collections in a security configuration. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listRuleCollectionsInASecurityConfiguration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRuleCollections() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..dbdc6669d9d7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesCreateOrUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SecurityUserRuleInner; +import com.azure.resourcemanager.network.models.AddressPrefixItem; +import com.azure.resourcemanager.network.models.AddressPrefixType; +import com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection; +import com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol; +import java.util.Arrays; + +/** + * Samples for SecurityUserRules CreateOrUpdate. + */ +public final class SecurityUserRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRulePut.json + */ + /** + * Sample code: Create a security user rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void createASecurityUserRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRules() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleUserRule", + new SecurityUserRuleInner().withDescription("Sample User Rule") + .withProtocol(SecurityConfigurationRuleProtocol.TCP) + .withSources(Arrays.asList(new AddressPrefixItem().withAddressPrefix("*") + .withAddressPrefixType(AddressPrefixType.IPPREFIX))) + .withDestinations(Arrays.asList(new AddressPrefixItem().withAddressPrefix("*") + .withAddressPrefixType(AddressPrefixType.IPPREFIX))) + .withSourcePortRanges(Arrays.asList("0-65535")) + .withDestinationPortRanges(Arrays.asList("22")) + .withDirection(SecurityConfigurationRuleDirection.INBOUND), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesDeleteSamples.java new file mode 100644 index 000000000000..af2003d3dbdf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRules Delete. + */ +public final class SecurityUserRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleDelete.json + */ + /** + * Sample code: Delete a security user rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteASecurityUserRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRules() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", "SampleUserRule", false, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesGetSamples.java new file mode 100644 index 000000000000..df111134a70b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRules Get. + */ +public final class SecurityUserRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleGet.json + */ + /** + * Sample code: Gets a security user rule. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsASecurityUserRule(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleUserRule", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesListSamples.java new file mode 100644 index 000000000000..60be6b6814eb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SecurityUserRulesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SecurityUserRules List. + */ +public final class SecurityUserRulesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerSecurityUserRuleList.json + */ + /** + * Sample code: List security user rules. + * + * @param manager Entry point to NetworkManager. + */ + public static void listSecurityUserRules(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSecurityUserRules() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java new file mode 100644 index 000000000000..09ec3f54ddfd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceAssociationLinks List. + */ +public final class ServiceAssociationLinksListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGetServiceAssociationLinks.json + */ + /** + * Sample code: Get Service Association Links. + * + * @param manager Entry point to NetworkManager. + */ + public static void getServiceAssociationLinks(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceAssociationLinks() + .listWithResponse("rg1", "vnet", "subnet", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..c744cf93fb57 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionInner; +import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner; +import java.util.Arrays; + +/** + * Samples for ServiceEndpointPolicies CreateOrUpdate. + */ +public final class ServiceEndpointPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyCreate.json + */ + /** + * Sample code: Create service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void createServiceEndpointPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .createOrUpdate("rg1", "testPolicy", new ServiceEndpointPolicyInner().withLocation("westus"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyCreateWithDefinition.json + */ + /** + * Sample code: Create service endpoint policy with definition. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createServiceEndpointPolicyWithDefinition(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .createOrUpdate("rg1", "testPolicy", new ServiceEndpointPolicyInner().withLocation("westus") + .withServiceEndpointPolicyDefinitions(Arrays.asList(new ServiceEndpointPolicyDefinitionInner() + .withName("StorageServiceEndpointPolicyDefinition") + .withDescription("Storage Service EndpointPolicy Definition") + .withService("Microsoft.Storage") + .withServiceResources(Arrays.asList("/subscriptions/00000000-0000-0000-0000-000000000000", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storageRg", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java new file mode 100644 index 000000000000..b29ec0347305 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicies Delete. + */ +public final class ServiceEndpointPoliciesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyDelete.json + */ + /** + * Sample code: Delete service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteServiceEndpointPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .delete("rg1", "serviceEndpointPolicy1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..e6be6a7b7022 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicies GetByResourceGroup. + */ +public final class ServiceEndpointPoliciesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyGet.json + */ + /** + * Sample code: Get service endPoint Policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void getServiceEndPointPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .getByResourceGroupWithResponse("rg1", "testServiceEndpointPolicy", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java new file mode 100644 index 000000000000..ae0356cf9f0c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicies ListByResourceGroup. + */ +public final class ServiceEndpointPoliciesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyList.json + */ + /** + * Sample code: List resource group service endpoint policies. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listResourceGroupServiceEndpointPolicies(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java new file mode 100644 index 000000000000..d0613d2e82ed --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicies List. + */ +public final class ServiceEndpointPoliciesListSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyListAll.json + */ + /** + * Sample code: List all service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllServiceEndpointPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceEndpointPolicies().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java new file mode 100644 index 000000000000..d6a77dc2de25 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ServiceEndpointPolicies UpdateTags. + */ +public final class ServiceEndpointPoliciesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyUpdateTags.json + */ + /** + * Sample code: Update service endpoint policy tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateServiceEndpointPolicyTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicies() + .updateTagsWithResponse("rg1", "testServiceEndpointPolicy", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..49d3e387d007 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionInner; +import java.util.Arrays; + +/** + * Samples for ServiceEndpointPolicyDefinitions CreateOrUpdate. + */ +public final class ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyDefinitionCreate.json + */ + /** + * Sample code: Create service endpoint policy definition. + * + * @param manager Entry point to NetworkManager. + */ + public static void createServiceEndpointPolicyDefinition(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicyDefinitions() + .createOrUpdate("rg1", "testPolicy", "testDefinition", new ServiceEndpointPolicyDefinitionInner() + .withDescription("Storage Service EndpointPolicy Definition") + .withService("Microsoft.Storage") + .withServiceResources(Arrays.asList("/subscriptions/00000000-0000-0000-0000-000000000000", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storageRg", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java new file mode 100644 index 000000000000..e7930bee110b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicyDefinitions Delete. + */ +public final class ServiceEndpointPolicyDefinitionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyDefinitionDelete.json + */ + /** + * Sample code: Delete service endpoint policy definitions from service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicyDefinitions() + .delete("rg1", "testPolicy", "testDefinition", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java new file mode 100644 index 000000000000..4d4a35c9dfbe --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicyDefinitions Get. + */ +public final class ServiceEndpointPolicyDefinitionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyDefinitionGet.json + */ + /** + * Sample code: Get service endpoint definition in service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getServiceEndpointDefinitionInServiceEndpointPolicy(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicyDefinitions() + .getWithResponse("rg1", "testPolicy", "testDefinition", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java new file mode 100644 index 000000000000..819d9f3e1ad1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceEndpointPolicyDefinitions ListByResourceGroup. + */ +public final class ServiceEndpointPolicyDefinitionsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceEndpointPolicyDefinitionList.json + */ + /** + * Sample code: List service endpoint definitions in service end point policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void listServiceEndpointDefinitionsInServiceEndPointPolicy( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceEndpointPolicyDefinitions() + .listByResourceGroup("rg1", "testPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..259431c50451 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.RouteTargetAddressPropertiesFormatInner; +import com.azure.resourcemanager.network.fluent.models.ServiceGatewayInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkInner; +import com.azure.resourcemanager.network.models.IpAllocationMethod; + +/** + * Samples for ServiceGateways CreateOrUpdate. + */ +public final class ServiceGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayCreate.json + */ + /** + * Sample code: Create service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .createOrUpdate("rg1", "sg", new ServiceGatewayInner().withLocation("eastus") + .withVirtualNetwork(new VirtualNetworkInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet")) + .withRouteTargetAddress(new RouteTargetAddressPropertiesFormatInner() + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet")) + .withPrivateIPAddress("10.0.1.4") + .withPrivateIpAllocationMethod(IpAllocationMethod.STATIC)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysDeleteSamples.java new file mode 100644 index 000000000000..34e5dd382a06 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways Delete. + */ +public final class ServiceGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayDelete.json + */ + /** + * Sample code: Delete service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceGateways().delete("rg1", "sg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetAddressLocationsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetAddressLocationsSamples.java new file mode 100644 index 000000000000..f251e889d547 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetAddressLocationsSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways GetAddressLocations. + */ +public final class ServiceGatewaysGetAddressLocationsSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayGetAddressLocationsResponse.json + */ + /** + * Sample code: Get address locations in service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAddressLocationsInServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceGateways().getAddressLocations("rg1", "sg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..dfbf7d08cf46 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways GetByResourceGroup. + */ +public final class ServiceGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayGet.json + */ + /** + * Sample code: Get load balancer. + * + * @param manager Entry point to NetworkManager. + */ + public static void getLoadBalancer(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .getByResourceGroupWithResponse("rg1", "sg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetServicesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetServicesSamples.java new file mode 100644 index 000000000000..a6e4d4e6f382 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysGetServicesSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways GetServices. + */ +public final class ServiceGatewaysGetServicesSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayGetServicesResponse.json + */ + /** + * Sample code: Get services in service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getServicesInServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceGateways().getServices("rg1", "sg", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..02e374deefe3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways ListByResourceGroup. + */ +public final class ServiceGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayList.json + */ + /** + * Sample code: List service gateway in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listServiceGatewayInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListSamples.java new file mode 100644 index 000000000000..09a758ac5e50 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceGateways List. + */ +public final class ServiceGatewaysListSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayListAll.json + */ + /** + * Sample code: List all load balancers. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllLoadBalancers(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceGateways().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateAddressLocationsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateAddressLocationsSamples.java new file mode 100644 index 000000000000..6d5e5804411b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateAddressLocationsSamples.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.AddressUpdateAction; +import com.azure.resourcemanager.network.models.ServiceGatewayAddress; +import com.azure.resourcemanager.network.models.ServiceGatewayAddressLocation; +import com.azure.resourcemanager.network.models.ServiceGatewayUpdateAddressLocationsRequest; +import com.azure.resourcemanager.network.models.UpdateAction; +import java.util.Arrays; + +/** + * Samples for ServiceGateways UpdateAddressLocations. + */ +public final class ServiceGatewaysUpdateAddressLocationsSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayFullUpdateAddressLocationsRequest.json + */ + /** + * Sample code: Full Update: Create, update, or delete address locations in the service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void fullUpdateCreateUpdateOrDeleteAddressLocationsInTheServiceGateway( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .updateAddressLocations("rg1", "sg", new ServiceGatewayUpdateAddressLocationsRequest() + .withAction(UpdateAction.FULL_UPDATE) + .withAddressLocations(Arrays.asList( + new ServiceGatewayAddressLocation().withAddressLocation("192.0.0.1") + .withAddressUpdateAction(AddressUpdateAction.FULL_UPDATE) + .withAddresses(Arrays.asList(new ServiceGatewayAddress().withAddress("10.0.0.4") + .withServices(Arrays.asList("Service1")))), + new ServiceGatewayAddressLocation().withAddressLocation("192.0.0.2") + .withAddressUpdateAction(AddressUpdateAction.PARTIAL_UPDATE) + .withAddresses(Arrays.asList( + new ServiceGatewayAddress().withAddress("10.0.0.5").withServices(Arrays.asList("Service2")), + new ServiceGatewayAddress().withAddress("10.0.0.6"))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayPartialUpdateAddressLocationsRequest.json + */ + /** + * Sample code: Partial Update: Create, update, or delete address locations in the service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void partialUpdateCreateUpdateOrDeleteAddressLocationsInTheServiceGateway( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .updateAddressLocations("rg1", "sg", new ServiceGatewayUpdateAddressLocationsRequest() + .withAction(UpdateAction.PARTIAL_UPDATE) + .withAddressLocations(Arrays.asList( + new ServiceGatewayAddressLocation().withAddressLocation("192.0.0.1") + .withAddressUpdateAction(AddressUpdateAction.FULL_UPDATE) + .withAddresses(Arrays.asList(new ServiceGatewayAddress().withAddress("10.0.0.4") + .withServices(Arrays.asList("Service1")))), + new ServiceGatewayAddressLocation().withAddressLocation("192.0.0.2") + .withAddressUpdateAction(AddressUpdateAction.PARTIAL_UPDATE) + .withAddresses(Arrays.asList( + new ServiceGatewayAddress().withAddress("10.0.0.5").withServices(Arrays.asList("Service2")), + new ServiceGatewayAddress().withAddress("10.0.0.6"))), + new ServiceGatewayAddressLocation().withAddressLocation("192.0.0.3"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateServicesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateServicesSamples.java new file mode 100644 index 000000000000..e4299dc80136 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateServicesSamples.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner; +import com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceInner; +import com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceRequestInner; +import com.azure.resourcemanager.network.models.ServiceGatewayUpdateServicesRequest; +import com.azure.resourcemanager.network.models.ServiceType; +import com.azure.resourcemanager.network.models.ServiceUpdateAction; +import java.util.Arrays; + +/** + * Samples for ServiceGateways UpdateServices. + */ +public final class ServiceGatewaysUpdateServicesSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayUpdateServicesRequest.json + */ + /** + * Sample code: Create or full update services in service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createOrFullUpdateServicesInServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .updateServices("rg1", "sg", new ServiceGatewayUpdateServicesRequest() + .withAction(ServiceUpdateAction.FULL_UPDATE) + .withServiceRequests(Arrays.asList( + new ServiceGatewayServiceRequestInner().withService(new ServiceGatewayServiceInner() + .withName("Service1") + .withServiceType(ServiceType.INBOUND) + .withIsDefault(true) + .withLoadBalancerBackendPools(Arrays.asList(new BackendAddressPoolInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/be1"))) + .withPublicNatGatewayId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway")), + new ServiceGatewayServiceRequestInner().withIsDelete(true) + .withService(new ServiceGatewayServiceInner().withName("Service2") + .withServiceType(ServiceType.OUTBOUND) + .withIsDefault(false)))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..c11146cfadc6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ServiceGateways UpdateTags. + */ +public final class ServiceGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceGatewayUpdateTags.json + */ + /** + * Sample code: Update service gateway tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateServiceGatewayTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceGateways() + .updateTagsWithResponse("rg1", "sg", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java new file mode 100644 index 000000000000..048fb7f2f9ef --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceTagInformation List. + */ +public final class ServiceTagInformationListSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceTagInformationListResultWithNoAddressPrefixes.json + */ + /** + * Sample code: Get list of service tags with no address prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getListOfServiceTagsWithNoAddressPrefixes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceTagInformations() + .list("westeurope", true, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ServiceTagInformationListResult.json + */ + /** + * Sample code: Get list of service tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void getListOfServiceTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceTagInformations() + .list("westeurope", null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/ServiceTagInformationListResultWithTagname.json + */ + /** + * Sample code: Get list of service tags with tag name. + * + * @param manager Entry point to NetworkManager. + */ + public static void getListOfServiceTagsWithTagName(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getServiceTagInformations() + .list("westeurope", null, "ApiManagement", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java new file mode 100644 index 000000000000..46c6e576bbb4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for ServiceTags List. + */ +public final class ServiceTagsListSamples { + /* + * x-ms-original-file: 2025-05-01/ServiceTagsList.json + */ + /** + * Sample code: Get list of service tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void getListOfServiceTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getServiceTags().listWithResponse("westcentralus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsCreateSamples.java new file mode 100644 index 000000000000..e0b167f13b7b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsCreateSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticCidrs Create. + */ +public final class StaticCidrsCreateSamples { + /* + * x-ms-original-file: 2025-05-01/StaticCidrs_Create.json + */ + /** + * Sample code: StaticCidrs_Create. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticCidrsCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticCidrs() + .createWithResponse("rg1", "TestNetworkManager", "TestPool", "TestStaticCidr", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsDeleteSamples.java new file mode 100644 index 000000000000..2353fd149fb0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticCidrs Delete. + */ +public final class StaticCidrsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/StaticCidrs_Delete.json + */ + /** + * Sample code: StaticCidrs_Delete. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticCidrsDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticCidrs() + .delete("rg1", "TestNetworkManager", "TestPool", "TestStaticCidr", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsGetSamples.java new file mode 100644 index 000000000000..ddf50ba30967 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticCidrs Get. + */ +public final class StaticCidrsGetSamples { + /* + * x-ms-original-file: 2025-05-01/StaticCidrs_Get.json + */ + /** + * Sample code: StaticCidrs_Get. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticCidrsGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticCidrs() + .getWithResponse("rg1", "TestNetworkManager", "TestPool", "TestStaticCidr", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsListSamples.java new file mode 100644 index 000000000000..266774356ef4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticCidrsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticCidrs List. + */ +public final class StaticCidrsListSamples { + /* + * x-ms-original-file: 2025-05-01/StaticCidrs_List.json + */ + /** + * Sample code: StaticCidrs_List. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticCidrsList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticCidrs() + .list("rg1", "TestNetworkManager", "TestPool", null, null, null, null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..eb6166180419 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.StaticMemberInner; + +/** + * Samples for StaticMembers CreateOrUpdate. + */ +public final class StaticMembersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerStaticMemberPut.json + */ + /** + * Sample code: StaticMemberPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticMemberPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticMembers() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "testNetworkGroup", "testStaticMember", + new StaticMemberInner().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java new file mode 100644 index 000000000000..a2c7c6d4afad --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticMembers Delete. + */ +public final class StaticMembersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerStaticMemberDelete.json + */ + /** + * Sample code: StaticMembersDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticMembersDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticMembers() + .deleteWithResponse("SampleRG", "TestNM", "testNetworkGroup", "testStaticMember", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java new file mode 100644 index 000000000000..45c861566c53 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticMembers Get. + */ +public final class StaticMembersGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerStaticMemberGet.json + */ + /** + * Sample code: StaticMembersGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticMembersGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticMembers() + .getWithResponse("rg1", "testNetworkManager", "testNetworkGroup", "testStaticMember", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java new file mode 100644 index 000000000000..516986e81c27 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for StaticMembers List. + */ +public final class StaticMembersListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerStaticMemberList.json + */ + /** + * Sample code: StaticMembersList. + * + * @param manager Entry point to NetworkManager. + */ + public static void staticMembersList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getStaticMembers() + .list("rg1", "testNetworkManager", "testNetworkGroup", null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..30685fd24152 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat; +import java.util.Arrays; + +/** + * Samples for Subnets CreateOrUpdate. + */ +public final class SubnetsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetCreate.json + */ + /** + * Sample code: Create subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", new SubnetInner().withAddressPrefix("10.0.0.0/16"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetCreateServiceEndpointNetworkIdentifier.json + */ + /** + * Sample code: Create subnet with service endpoints with network identifier. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetWithServiceEndpointsWithNetworkIdentifier( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", new SubnetInner().withAddressPrefix("10.0.0.0/16") + .withServiceEndpoints(Arrays.asList(new ServiceEndpointPropertiesFormat() + .withService("Microsoft.Storage") + .withNetworkIdentifier(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/subnet-test/providers/Microsoft.Network/publicIPAddresses/test-ip")))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetCreateServiceEndpoint.json + */ + /** + * Sample code: Create subnet with service endpoints. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetWithServiceEndpoints(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", + new SubnetInner().withAddressPrefix("10.0.0.0/16") + .withServiceEndpoints( + Arrays.asList(new ServiceEndpointPropertiesFormat().withService("Microsoft.Storage"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetCreateWithDelegation.json + */ + /** + * Sample code: Create subnet with a delegation. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetWithADelegation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", new SubnetInner().withAddressPrefix("10.0.0.0/16"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetCreateWithServiceGateway.json + */ + /** + * Sample code: Create Subnet with service gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetWithServiceGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", new SubnetInner().withAddressPrefix("10.0.0.0/16") + .withServiceGateway(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/serviceGateways/SG1")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetCreateWithSharingScope.json + */ + /** + * Sample code: Create subnet with sharing scope. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetWithSharingScope(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .createOrUpdate("subnet-test", "vnetname", "subnet1", new SubnetInner().withAddressPrefix("10.0.0.0/16"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java new file mode 100644 index 000000000000..9cff93242df4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Subnets Delete. + */ +public final class SubnetsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetDelete.json + */ + /** + * Sample code: Delete subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .delete("subnet-test", "vnetname", "subnet1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java new file mode 100644 index 000000000000..3d7a8c7a1eec --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Subnets Get. + */ +public final class SubnetsGetSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetGetWithSharingScope.json + */ + /** + * Sample code: Get subnet with sharing scope. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSubnetWithSharingScope(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetGet.json + */ + /** + * Sample code: Get subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/SubnetGetWithDelegation.json + */ + /** + * Sample code: Get subnet with a delegation. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSubnetWithADelegation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java new file mode 100644 index 000000000000..c6a26dd15e23 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Subnets List. + */ +public final class SubnetsListSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetList.json + */ + /** + * Sample code: List subnets. + * + * @param manager Entry point to NetworkManager. + */ + public static void listSubnets(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getSubnets().list("subnet-test", "vnetname", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java new file mode 100644 index 000000000000..c2bb2e38d282 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.PrepareNetworkPoliciesRequest; + +/** + * Samples for Subnets PrepareNetworkPolicies. + */ +public final class SubnetsPrepareNetworkPoliciesSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetPrepareNetworkPolicies.json + */ + /** + * Sample code: Prepare Network Policies. + * + * @param manager Entry point to NetworkManager. + */ + public static void prepareNetworkPolicies(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .prepareNetworkPolicies("rg1", "test-vnet", "subnet1", + new PrepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java new file mode 100644 index 000000000000..0f09f3de2897 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.UnprepareNetworkPoliciesRequest; + +/** + * Samples for Subnets UnprepareNetworkPolicies. + */ +public final class SubnetsUnprepareNetworkPoliciesSamples { + /* + * x-ms-original-file: 2025-05-01/SubnetUnprepareNetworkPolicies.json + */ + /** + * Sample code: Unprepare Network Policies. + * + * @param manager Entry point to NetworkManager. + */ + public static void unprepareNetworkPolicies(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubnets() + .unprepareNetworkPolicies("rg1", "test-vnet", "subnet1", + new UnprepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..23a41cc7b90e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkManagerConnectionInner; + +/** + * Samples for SubscriptionNetworkManagerConnections CreateOrUpdate. + */ +public final class SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionSubscriptionPut.json + */ + /** + * Sample code: Create or Update Subscription Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createOrUpdateSubscriptionNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubscriptionNetworkManagerConnections() + .createOrUpdateWithResponse("TestNMConnection", new NetworkManagerConnectionInner().withNetworkManagerId( + "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java new file mode 100644 index 000000000000..3381abd23098 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SubscriptionNetworkManagerConnections Delete. + */ +public final class SubscriptionNetworkManagerConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionSubscriptionDelete.json + */ + /** + * Sample code: Delete Subscription Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + deleteSubscriptionNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubscriptionNetworkManagerConnections() + .deleteWithResponse("TestNMConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java new file mode 100644 index 000000000000..dcb972a3bbd4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SubscriptionNetworkManagerConnections Get. + */ +public final class SubscriptionNetworkManagerConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionSubscriptionGet.json + */ + /** + * Sample code: Get Subscription Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getSubscriptionNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubscriptionNetworkManagerConnections() + .getWithResponse("TestNMConnection", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java new file mode 100644 index 000000000000..e5017eac3212 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for SubscriptionNetworkManagerConnections List. + */ +public final class SubscriptionNetworkManagerConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkManagerConnectionSubscriptionList.json + */ + /** + * Sample code: List Subscription Network Manager Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listSubscriptionNetworkManagerConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getSubscriptionNetworkManagerConnections() + .list(null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java new file mode 100644 index 000000000000..ae25e0eb4716 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for Usages List. + */ +public final class UsagesListSamples { + /* + * x-ms-original-file: 2025-05-01/UsageList.json + */ + /** + * Sample code: List usages. + * + * @param manager Entry point to NetworkManager. + */ + public static void listUsages(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getUsages().list("westus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/UsageListSpacedLocation.json + */ + /** + * Sample code: List usages spaced location. + * + * @param manager Entry point to NetworkManager. + */ + public static void listUsagesSpacedLocation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getUsages().list("West US", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesCreateSamples.java new file mode 100644 index 000000000000..07347136af63 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesCreateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VerifierWorkspaceInner; +import com.azure.resourcemanager.network.models.VerifierWorkspaceProperties; + +/** + * Samples for VerifierWorkspaces Create. + */ +public final class VerifierWorkspacesCreateSamples { + /* + * x-ms-original-file: 2025-05-01/VerifierWorkspacePut.json + */ + /** + * Sample code: VerifierWorkspaceCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void verifierWorkspaceCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVerifierWorkspaces() + .createWithResponse("rg1", "testNetworkManager", "testWorkspace", + new VerifierWorkspaceInner().withLocation("eastus") + .withProperties(new VerifierWorkspaceProperties().withDescription("A sample workspace")), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesDeleteSamples.java new file mode 100644 index 000000000000..31c2b006defc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VerifierWorkspaces Delete. + */ +public final class VerifierWorkspacesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VerifierWorkspaceDelete.json + */ + /** + * Sample code: VerifierWorkspaceDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void verifierWorkspaceDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVerifierWorkspaces() + .delete("rg1", "testNetworkManager", "testWorkspace", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesGetSamples.java new file mode 100644 index 000000000000..3bb10cf14c3e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VerifierWorkspaces Get. + */ +public final class VerifierWorkspacesGetSamples { + /* + * x-ms-original-file: 2025-05-01/VerifierWorkspaceGet.json + */ + /** + * Sample code: VerifierWorkspaceGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void verifierWorkspaceGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVerifierWorkspaces() + .getWithResponse("rg1", "testNetworkManager", "testWorkspace", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesListSamples.java new file mode 100644 index 000000000000..c1dc2bd590ad --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VerifierWorkspaces List. + */ +public final class VerifierWorkspacesListSamples { + /* + * x-ms-original-file: 2025-05-01/VerifierWorkspaceList.json + */ + /** + * Sample code: VerifierWorkspaceList. + * + * @param manager Entry point to NetworkManager. + */ + public static void verifierWorkspaceList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVerifierWorkspaces() + .list("rg1", "testNetworkManager", null, null, null, null, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesUpdateSamples.java new file mode 100644 index 000000000000..f96368d8089c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VerifierWorkspacesUpdateSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VerifierWorkspaces Update. + */ +public final class VerifierWorkspacesUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VerifierWorkspacePatch.json + */ + /** + * Sample code: VerifierWorkspacePatch. + * + * @param manager Entry point to NetworkManager. + */ + public static void verifierWorkspacePatch(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVerifierWorkspaces() + .updateWithResponse("rg1", "testNetworkManager", "testWorkspace", null, null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java new file mode 100644 index 000000000000..31e4d6b13404 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SwapResourceInner; +import com.azure.resourcemanager.network.models.SlotType; +import com.azure.resourcemanager.network.models.SwapResourceProperties; + +/** + * Samples for VipSwap Create. + */ +public final class VipSwapCreateSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceSwapPut.json + */ + /** + * Sample code: Put vip swap operation. + * + * @param manager Entry point to NetworkManager. + */ + public static void putVipSwapOperation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVipSwaps() + .create("rg1", "testCloudService", + new SwapResourceInner().withProperties(new SwapResourceProperties().withSlotType(SlotType.PRODUCTION)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java new file mode 100644 index 000000000000..4ad3011670ea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VipSwap Get. + */ +public final class VipSwapGetSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceSwapGet.json + */ + /** + * Sample code: Get swap resource. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSwapResource(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVipSwaps() + .getWithResponse("rg1", "testCloudService", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java new file mode 100644 index 000000000000..21baec03e25a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VipSwap List. + */ +public final class VipSwapListSamples { + /* + * x-ms-original-file: 2025-05-01/CloudServiceSwapList.json + */ + /** + * Sample code: Get swap resource list. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSwapResourceList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVipSwaps() + .listWithResponse("rg1", "testCloudService", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..410a32c2d250 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VirtualApplianceSiteInner; +import com.azure.resourcemanager.network.models.BreakOutCategoryPolicies; +import com.azure.resourcemanager.network.models.Office365PolicyProperties; + +/** + * Samples for VirtualApplianceSites CreateOrUpdate. + */ +public final class VirtualApplianceSitesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSitePut.json + */ + /** + * Sample code: Create Network Virtual Appliance Site. + * + * @param manager Entry point to NetworkManager. + */ + public static void createNetworkVirtualApplianceSite(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualApplianceSites() + .createOrUpdate("rg1", "nva", "site1", + new VirtualApplianceSiteInner().withAddressPrefix("192.168.1.0/24") + .withO365Policy(new Office365PolicyProperties().withBreakOutCategories( + new BreakOutCategoryPolicies().withAllow(true).withOptimize(true).withDefaultProperty(true))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java new file mode 100644 index 000000000000..5a29247cb56f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualApplianceSites Delete. + */ +public final class VirtualApplianceSitesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSiteDelete.json + */ + /** + * Sample code: Delete Network Virtual Appliance Site. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteNetworkVirtualApplianceSite(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualApplianceSites() + .delete("rg1", "nva", "site1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java new file mode 100644 index 000000000000..5dd559ae7744 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualApplianceSites Get. + */ +public final class VirtualApplianceSitesGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSiteGet.json + */ + /** + * Sample code: GetNetwork Virtual Appliance Site. + * + * @param manager Entry point to NetworkManager. + */ + public static void getNetworkVirtualApplianceSite(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualApplianceSites() + .getWithResponse("rg1", "nva", "site1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java new file mode 100644 index 000000000000..1def3809d22e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualApplianceSites List. + */ +public final class VirtualApplianceSitesListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSiteList.json + */ + /** + * Sample code: List all Network Virtual Appliance sites for a given Network Virtual Appliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualApplianceSites().list("rg1", "nva", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java new file mode 100644 index 000000000000..b79ff79c5e1e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualApplianceSkus Get. + */ +public final class VirtualApplianceSkusGetSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSkuGet.json + */ + /** + * Sample code: NetworkVirtualApplianceSkuGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkVirtualApplianceSkuGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualApplianceSkus() + .getWithResponse("ciscoSdwan", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java new file mode 100644 index 000000000000..2dfcd020a8fd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualApplianceSkus List. + */ +public final class VirtualApplianceSkusListSamples { + /* + * x-ms-original-file: 2025-05-01/NetworkVirtualApplianceSkuList.json + */ + /** + * Sample code: NetworkVirtualApplianceSkuListResult. + * + * @param manager Entry point to NetworkManager. + */ + public static void networkVirtualApplianceSkuListResult(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualApplianceSkus().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java new file mode 100644 index 000000000000..9817cee5fc5f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubBgpConnections ListAdvertisedRoutes. + */ +public final class VirtualHubBgpConnectionsListAdvertisedRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeerListAdvertisedRoute.json + */ + /** + * Sample code: VirtualRouterPeerListAdvertisedRoutes. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualRouterPeerListAdvertisedRoutes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubBgpConnections() + .listAdvertisedRoutes("rg1", "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java new file mode 100644 index 000000000000..a7b676e8827a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubBgpConnections ListLearnedRoutes. + */ +public final class VirtualHubBgpConnectionsListLearnedRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeerListLearnedRoute.json + */ + /** + * Sample code: VirtualRouterPeerListLearnedRoutes. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualRouterPeerListLearnedRoutes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubBgpConnections() + .listLearnedRoutes("rg1", "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java new file mode 100644 index 000000000000..8cd9731f0d9b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubBgpConnections List. + */ +public final class VirtualHubBgpConnectionsListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubBgpConnectionList.json + */ + /** + * Sample code: VirtualHubRouteTableV2List. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubRouteTableV2List(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualHubBgpConnections().list("rg1", "hub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0e8766829a1d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.HubIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; + +/** + * Samples for VirtualHubIpConfiguration CreateOrUpdate. + */ +public final class VirtualHubIpConfigurationCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubIpConfigurationPut.json + */ + /** + * Sample code: VirtualHubIpConfigurationPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubIpConfigurationPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubIpConfigurations() + .createOrUpdate("rg1", "hub1", "ipconfig1", + new HubIpConfigurationInner().withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java new file mode 100644 index 000000000000..3e3c63df3612 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubIpConfiguration Delete. + */ +public final class VirtualHubIpConfigurationDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubIpConfigurationDelete.json + */ + /** + * Sample code: VirtualHubIpConfigurationDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubIpConfigurationDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubIpConfigurations() + .delete("rg1", "hub1", "ipconfig1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java new file mode 100644 index 000000000000..fff3d553ca42 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubIpConfiguration Get. + */ +public final class VirtualHubIpConfigurationGetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubIpConfigurationGet.json + */ + /** + * Sample code: VirtualHubVirtualHubRouteTableV2Get. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubVirtualHubRouteTableV2Get(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubIpConfigurations() + .getWithResponse("rg1", "hub1", "ipconfig1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java new file mode 100644 index 000000000000..96a4b890ee74 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubIpConfiguration List. + */ +public final class VirtualHubIpConfigurationListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubIpConfigurationList.json + */ + /** + * Sample code: VirtualHubRouteTableV2List. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubRouteTableV2List(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualHubIpConfigurations().list("rg1", "hub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sCreateOrUpdateSamples.java new file mode 100644 index 000000000000..9fd875f05e5d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sCreateOrUpdateSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VirtualHubRouteTableV2Inner; +import com.azure.resourcemanager.network.models.VirtualHubRouteV2; +import java.util.Arrays; + +/** + * Samples for VirtualHubRouteTableV2S CreateOrUpdate. + */ +public final class VirtualHubRouteTableV2SCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubRouteTableV2Put.json + */ + /** + * Sample code: VirtualHubRouteTableV2Put. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubRouteTableV2Put(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubRouteTableV2S() + .createOrUpdate("rg1", "virtualHub1", "virtualHubRouteTable1a", + new VirtualHubRouteTableV2Inner() + .withRoutes(Arrays.asList( + new VirtualHubRouteV2().withDestinationType("CIDR") + .withDestinations(Arrays.asList("20.10.0.0/16", "20.20.0.0/16")) + .withNextHopType("IPAddress") + .withNextHops(Arrays.asList("10.0.0.68")), + new VirtualHubRouteV2().withDestinationType("CIDR") + .withDestinations(Arrays.asList("0.0.0.0/0")) + .withNextHopType("IPAddress") + .withNextHops(Arrays.asList("10.0.0.68")))) + .withAttachedConnections(Arrays.asList("All_Vnets")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sDeleteSamples.java new file mode 100644 index 000000000000..39a8e8e3ec3e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubRouteTableV2S Delete. + */ +public final class VirtualHubRouteTableV2SDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubRouteTableV2Delete.json + */ + /** + * Sample code: VirtualHubRouteTableV2Delete. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubRouteTableV2Delete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubRouteTableV2S() + .delete("rg1", "virtualHub1", "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sGetSamples.java new file mode 100644 index 000000000000..897187308f17 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubRouteTableV2S Get. + */ +public final class VirtualHubRouteTableV2SGetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubRouteTableV2Get.json + */ + /** + * Sample code: VirtualHubVirtualHubRouteTableV2Get. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubVirtualHubRouteTableV2Get(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubRouteTableV2S() + .getWithResponse("rg1", "virtualHub1", "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sListSamples.java new file mode 100644 index 000000000000..4e2f010e613d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2sListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubRouteTableV2S List. + */ +public final class VirtualHubRouteTableV2SListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubRouteTableV2List.json + */ + /** + * Sample code: VirtualHubRouteTableV2List. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubRouteTableV2List(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubRouteTableV2S() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ec7fd02a37ea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VirtualHubInner; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualHubs CreateOrUpdate. + */ +public final class VirtualHubsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubPut.json + */ + /** + * Sample code: VirtualHubPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .createOrUpdate("rg1", "virtualHub2", new VirtualHubInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualWan(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1")) + .withAddressPrefix("10.168.0.0/24") + .withSku("Basic"), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java new file mode 100644 index 000000000000..d290a2642945 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubs Delete. + */ +public final class VirtualHubsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubDelete.json + */ + /** + * Sample code: VirtualHubDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualHubs().delete("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..de57bed2395d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubs GetByResourceGroup. + */ +public final class VirtualHubsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubGet.json + */ + /** + * Sample code: VirtualHubGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getByResourceGroupWithResponse("rg1", "virtualHub1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java new file mode 100644 index 000000000000..686baf30e350 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.EffectiveRoutesParameters; + +/** + * Samples for VirtualHubs GetEffectiveVirtualHubRoutes. + */ +public final class VirtualHubsGetEffectiveVirtualHubRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/EffectiveRoutesListForRouteTable.json + */ + /** + * Sample code: Effective Routes for a Route Table resource. + * + * @param manager Entry point to NetworkManager. + */ + public static void effectiveRoutesForARouteTableResource(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", new EffectiveRoutesParameters().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1") + .withVirtualWanResourceType("RouteTable"), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/EffectiveRoutesListForConnection.json + */ + /** + * Sample code: Effective Routes for a Connection resource. + * + * @param manager Entry point to NetworkManager. + */ + public static void effectiveRoutesForAConnectionResource(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", new EffectiveRoutesParameters().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName") + .withVirtualWanResourceType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/EffectiveRoutesListForVirtualHub.json + */ + /** + * Sample code: Effective Routes for the Virtual Hub. + * + * @param manager Entry point to NetworkManager. + */ + public static void effectiveRoutesForTheVirtualHub(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java new file mode 100644 index 000000000000..8f29d316cc3e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.GetInboundRoutesParameters; + +/** + * Samples for VirtualHubs GetInboundRoutes. + */ +public final class VirtualHubsGetInboundRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/GetInboundRoutes.json + */ + /** + * Sample code: Inbound Routes for the Virtual Hub on a Particular Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + inboundRoutesForTheVirtualHubOnAParticularConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getInboundRoutes("rg1", "virtualHub1", new GetInboundRoutesParameters().withResourceUri( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1") + .withConnectionType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java new file mode 100644 index 000000000000..1a5e1f025311 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.GetOutboundRoutesParameters; + +/** + * Samples for VirtualHubs GetOutboundRoutes. + */ +public final class VirtualHubsGetOutboundRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/GetOutboundRoutes.json + */ + /** + * Sample code: Outbound Routes for the Virtual Hub on a Particular Connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void outboundRoutesForTheVirtualHubOnAParticularConnection( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .getOutboundRoutes("rg1", "virtualHub1", new GetOutboundRoutesParameters().withResourceUri( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1") + .withConnectionType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java new file mode 100644 index 000000000000..939341bbaeea --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubs ListByResourceGroup. + */ +public final class VirtualHubsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubListByResourceGroup.json + */ + /** + * Sample code: VirtualHubListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualHubs().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java new file mode 100644 index 000000000000..031020c87a9b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualHubs List. + */ +public final class VirtualHubsListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubList.json + */ + /** + * Sample code: VirtualHubList. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualHubs().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java new file mode 100644 index 000000000000..190968f5974b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualHubs UpdateTags. + */ +public final class VirtualHubsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualHubUpdateTags.json + */ + /** + * Sample code: VirtualHubUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualHubUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualHubs() + .updateTagsWithResponse("rg1", "virtualHub2", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..9e5e9be780ec --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkApplianceInner; + +/** + * Samples for VirtualNetworkAppliances CreateOrUpdate. + */ +public final class VirtualNetworkAppliancesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_CreateOrUpdate.json + */ + /** + * Sample code: Create virtual network appliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkAppliances() + .createOrUpdate("rg1", "test-vna", new VirtualNetworkApplianceInner().withLocation("eastus") + .withBandwidthInGbps("100") + .withSubnet(new SubnetInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesDeleteSamples.java new file mode 100644 index 000000000000..91d5ff860d86 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkAppliances Delete. + */ +public final class VirtualNetworkAppliancesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_Delete.json + */ + /** + * Sample code: Delete virtual network appliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualNetworkAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkAppliances() + .delete("rg1", "test-vna", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..d96939ca3967 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkAppliances GetByResourceGroup. + */ +public final class VirtualNetworkAppliancesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_Get.json + */ + /** + * Sample code: Get virtual network appliance. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkAppliance(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkAppliances() + .getByResourceGroupWithResponse("rg1", "test-vna", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListByResourceGroupSamples.java new file mode 100644 index 000000000000..fbf032c3cdcd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkAppliances ListByResourceGroup. + */ +public final class VirtualNetworkAppliancesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_List.json + */ + /** + * Sample code: List virtual network appliances in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listVirtualNetworkAppliancesInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkAppliances() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListSamples.java new file mode 100644 index 000000000000..ef67593472bf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkAppliances List. + */ +public final class VirtualNetworkAppliancesListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_ListBySubscription.json + */ + /** + * Sample code: List all virtual network appliances. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllVirtualNetworkAppliances(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkAppliances().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesUpdateTagsSamples.java new file mode 100644 index 000000000000..875e48dba52f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkAppliancesUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkAppliances UpdateTags. + */ +public final class VirtualNetworkAppliancesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkAppliances_UpdateTags.json + */ + /** + * Sample code: Update virtual network appliance tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkApplianceTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkAppliances() + .updateTagsWithResponse("rg1", "test-vna", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..7446fc11b62f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayConnectionInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayIpConfigurationInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import com.azure.resourcemanager.network.models.BgpSettings; +import com.azure.resourcemanager.network.models.CertificateAuthentication; +import com.azure.resourcemanager.network.models.ConnectionAuthenticationType; +import com.azure.resourcemanager.network.models.GatewayCustomBgpIpAddressIpConfiguration; +import com.azure.resourcemanager.network.models.IpAllocationMethod; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionMode; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionProtocol; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionTunnelProperties; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionType; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySku; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySkuName; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySkuTier; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayType; +import com.azure.resourcemanager.network.models.VpnType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkGatewayConnections CreateOrUpdate. + */ +public final class VirtualNetworkGatewayConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionCreate.json + */ + /** + * Sample code: CreateVirtualNetworkGatewayConnection_S2S. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createVirtualNetworkGatewayConnectionS2S(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .createOrUpdate("rg1", "connS2S", new VirtualNetworkGatewayConnectionInner().withLocation("centralus") + .withVirtualNetworkGateway1(new VirtualNetworkGatewayInner().withLocation("centralus") + .withTags(mapOf()) + .withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw") + .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1") + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) + .withGatewayType(VirtualNetworkGatewayType.VPN) + .withVpnType(VpnType.ROUTE_BASED) + .withEnableBgp(false) + .withActive(false) + .withSku(new VirtualNetworkGatewaySku().withName(VirtualNetworkGatewaySkuName.VPN_GW1) + .withTier(VirtualNetworkGatewaySkuTier.VPN_GW1)) + .withBgpSettings( + new BgpSettings().withAsn(65514L).withBgpPeeringAddress("10.0.1.30").withPeerWeight(0))) + .withLocalNetworkGateway2(new LocalNetworkGatewayInner().withLocation("centralus") + .withTags(mapOf()) + .withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw") + .withLocalNetworkAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.1.0.0/16"))) + .withGatewayIpAddress("x.x.x.x")) + .withIngressNatRules(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1"))) + .withEgressNatRules(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2"))) + .withConnectionType(VirtualNetworkGatewayConnectionType.IPSEC) + .withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol.IKEV2) + .withRoutingWeight(0) + .withDpdTimeoutSeconds(30) + .withConnectionMode(VirtualNetworkGatewayConnectionMode.DEFAULT) + .withTunnelProperties(Arrays.asList( + new VirtualNetworkGatewayConnectionTunnelProperties().withTunnelIpAddress("10.78.1.5") + .withBgpPeeringAddress("10.78.1.17"), + new VirtualNetworkGatewayConnectionTunnelProperties().withTunnelIpAddress("10.78.1.7") + .withBgpPeeringAddress("10.78.1.20"))) + .withSharedKey("fakeTokenPlaceholder") + .withEnableBgp(false) + .withGatewayCustomBgpIpAddresses(Arrays.asList( + new GatewayCustomBgpIpAddressIpConfiguration().withIpConfigurationId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/default") + .withCustomBgpIpAddress("169.254.21.1"), + new GatewayCustomBgpIpAddressIpConfiguration().withIpConfigurationId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/ActiveActive") + .withCustomBgpIpAddress("169.254.21.3"))) + .withUsePolicyBasedTrafficSelectors(false) + .withIpsecPolicies(Arrays.asList()) + .withTrafficSelectorPolicies(Arrays.asList()) + .withAuthenticationType(ConnectionAuthenticationType.CERTIFICATE) + .withCertificateAuthentication(new CertificateAuthentication() + .withOutboundAuthCertificate("https://customerKv.vault.azure.net/Certificates/outBoundcert/Version") + .withInboundAuthCertificateSubjectName("CN=rootCert.com") + .withInboundAuthCertificateChain(Arrays.asList("MIIC+TCCAeGgAwIBAgIQFOJUqDaxV5xJcKpTKO...", + "MIIC+TCCAeGgAwIBAgIQPJerInitNblK7yBgkqh..."))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java new file mode 100644 index 000000000000..89e870c7e3e3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections Delete. + */ +public final class VirtualNetworkGatewayConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionDelete.json + */ + /** + * Sample code: DeleteVirtualNetworkGatewayConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualNetworkGatewayConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .delete("rg1", "conn1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..c065ba2f2b1a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections GetByResourceGroup. + */ +public final class VirtualNetworkGatewayConnectionsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionGet.json + */ + /** + * Sample code: GetVirtualNetworkGatewayConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkGatewayConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .getByResourceGroupWithResponse("rg1", "connS2S", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java new file mode 100644 index 000000000000..0d5ee5ea5c89 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections GetIkeSas. + */ +public final class VirtualNetworkGatewayConnectionsGetIkeSasSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionGetIkeSas.json + */ + /** + * Sample code: GetVirtualNetworkGatewayConnectionIkeSa. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayConnectionIkeSa(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .getIkeSas("rg1", "vpngwcn1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java new file mode 100644 index 000000000000..d2521161296e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections GetSharedKey. + */ +public final class VirtualNetworkGatewayConnectionsGetSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionGetSharedKey.json + */ + /** + * Sample code: GetVirtualNetworkGatewayConnectionSharedKey. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .getSharedKeyWithResponse("rg1", "connS2S", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java new file mode 100644 index 000000000000..de948cf5979e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections ListByResourceGroup. + */ +public final class VirtualNetworkGatewayConnectionsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionsList.json + */ + /** + * Sample code: ListVirtualNetworkGatewayConnectionsinResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listVirtualNetworkGatewayConnectionsinResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java new file mode 100644 index 000000000000..ab13715c3874 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayConnections ResetConnection. + */ +public final class VirtualNetworkGatewayConnectionsResetConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionReset.json + */ + /** + * Sample code: ResetVirtualNetworkGatewayConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetVirtualNetworkGatewayConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .resetConnection("rg1", "conn1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java new file mode 100644 index 000000000000..dec831c3bcbf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ConnectionResetSharedKeyInner; + +/** + * Samples for VirtualNetworkGatewayConnections ResetSharedKey. + */ +public final class VirtualNetworkGatewayConnectionsResetSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionResetSharedKey.json + */ + /** + * Sample code: ResetVirtualNetworkGatewayConnectionSharedKey. + * + * @param manager Entry point to NetworkManager. + */ + public static void + resetVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .resetSharedKey("rg1", "conn1", new ConnectionResetSharedKeyInner().withKeyLength(128), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java new file mode 100644 index 000000000000..e937a22eaaa8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyInner; + +/** + * Samples for VirtualNetworkGatewayConnections SetSharedKey. + */ +public final class VirtualNetworkGatewayConnectionsSetSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionSetSharedKey.json + */ + /** + * Sample code: SetVirtualNetworkGatewayConnectionSharedKey. + * + * @param manager Entry point to NetworkManager. + */ + public static void + setVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .setSharedKey("rg1", "connS2S", new ConnectionSharedKeyInner().withValue("AzureAbc123"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java new file mode 100644 index 000000000000..e02f49f2c08b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnPacketCaptureStartParameters; + +/** + * Samples for VirtualNetworkGatewayConnections StartPacketCapture. + */ +public final class VirtualNetworkGatewayConnectionsStartPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionStartPacketCapture.json + */ + /** + * Sample code: Start packet capture on virtual network gateway connection without filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void startPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .startPacketCapture("rg1", "vpngwcn1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + */ + /** + * Sample code: Start packet capture on virtual network gateway connection with filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void startPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .startPacketCapture("rg1", "vpngwcn1", new VpnPacketCaptureStartParameters().withFilterData( + "{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java new file mode 100644 index 000000000000..47a8e6079708 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnPacketCaptureStopParameters; + +/** + * Samples for VirtualNetworkGatewayConnections StopPacketCapture. + */ +public final class VirtualNetworkGatewayConnectionsStopPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionStopPacketCapture.json + */ + /** + * Sample code: Stop packet capture on virtual network gateway connection. + * + * @param manager Entry point to NetworkManager. + */ + public static void + stopPacketCaptureOnVirtualNetworkGatewayConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .stopPacketCapture("rg1", "vpngwcn1", new VpnPacketCaptureStopParameters().withSasUrl( + "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java new file mode 100644 index 000000000000..1121f6b9b271 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkGatewayConnections UpdateTags. + */ +public final class VirtualNetworkGatewayConnectionsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayConnectionUpdateTags.json + */ + /** + * Sample code: UpdateVirtualNetworkGatewayConnectionTags. + * + * @param manager Entry point to NetworkManager. + */ + public static void + updateVirtualNetworkGatewayConnectionTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayConnections() + .updateTags("rg1", "test", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..055fa9eaf2c6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayNatRuleInner; +import com.azure.resourcemanager.network.models.VpnNatRuleMapping; +import com.azure.resourcemanager.network.models.VpnNatRuleMode; +import com.azure.resourcemanager.network.models.VpnNatRuleType; +import java.util.Arrays; + +/** + * Samples for VirtualNetworkGatewayNatRules CreateOrUpdate. + */ +public final class VirtualNetworkGatewayNatRulesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayNatRulePut.json + */ + /** + * Sample code: VirtualNetworkGatewayNatRulePut. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayNatRulePut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayNatRules() + .createOrUpdate("rg1", "gateway1", "natRule1", new VirtualNetworkGatewayNatRuleInner() + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.EGRESS_SNAT) + .withInternalMappings( + Arrays.asList(new VpnNatRuleMapping().withAddressSpace("10.4.0.0/24").withPortRange("200-300"))) + .withExternalMappings( + Arrays.asList(new VpnNatRuleMapping().withAddressSpace("192.168.21.0/24").withPortRange("300-400"))) + .withIpConfigurationId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/gateway1/ipConfigurations/default"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java new file mode 100644 index 000000000000..0e957efb139a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayNatRules Delete. + */ +public final class VirtualNetworkGatewayNatRulesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayNatRuleDelete.json + */ + /** + * Sample code: VirtualNetworkGatewayNatRuleDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayNatRuleDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayNatRules() + .delete("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java new file mode 100644 index 000000000000..0fdb2de85362 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayNatRules Get. + */ +public final class VirtualNetworkGatewayNatRulesGetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayNatRuleGet.json + */ + /** + * Sample code: VirtualNetworkGatewayNatRuleGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayNatRuleGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayNatRules() + .getWithResponse("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java new file mode 100644 index 000000000000..6993c39a99e4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGatewayNatRules ListByVirtualNetworkGateway. + */ +public final class VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayNatRuleList.json + */ + /** + * Sample code: VirtualNetworkGatewayNatRuleList. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayNatRuleList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGatewayNatRules() + .listByVirtualNetworkGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..e620ae8a0f8a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkGatewayNatRuleInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import com.azure.resourcemanager.network.models.AdminState; +import com.azure.resourcemanager.network.models.BgpSettings; +import com.azure.resourcemanager.network.models.IpAllocationMethod; +import com.azure.resourcemanager.network.models.ManagedServiceIdentity; +import com.azure.resourcemanager.network.models.ManagedServiceIdentityUserAssignedIdentities; +import com.azure.resourcemanager.network.models.RadiusServer; +import com.azure.resourcemanager.network.models.ResourceIdentityType; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayAutoScaleBounds; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayAutoScaleConfiguration; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySku; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySkuName; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewaySkuTier; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayType; +import com.azure.resourcemanager.network.models.VpnClientConfiguration; +import com.azure.resourcemanager.network.models.VpnClientProtocol; +import com.azure.resourcemanager.network.models.VpnNatRuleMapping; +import com.azure.resourcemanager.network.models.VpnNatRuleMode; +import com.azure.resourcemanager.network.models.VpnNatRuleType; +import com.azure.resourcemanager.network.models.VpnType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkGateways CreateOrUpdate. + */ +public final class VirtualNetworkGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayUpdate.json + */ + /** + * Sample code: UpdateVirtualNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .createOrUpdate("rg1", "vpngw", new VirtualNetworkGatewayInner().withLocation("centralus") + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) + .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner() + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) + .withGatewayType(VirtualNetworkGatewayType.VPN) + .withVpnType(VpnType.ROUTE_BASED) + .withEnableBgp(false) + .withActive(false) + .withEnableHighBandwidthVpnGateway(false) + .withDisableIPSecReplayProtection(false) + .withSku(new VirtualNetworkGatewaySku().withName(VirtualNetworkGatewaySkuName.VPN_GW1) + .withTier(VirtualNetworkGatewaySkuTier.VPN_GW1)) + .withVpnClientConfiguration(new VpnClientConfiguration().withVpnClientRootCertificates(Arrays.asList()) + .withVpnClientRevokedCertificates(Arrays.asList()) + .withVpnClientProtocols(Arrays.asList(VpnClientProtocol.OPEN_VPN)) + .withRadiusServers(Arrays.asList(new RadiusServer().withRadiusServerAddress("10.2.0.0") + .withRadiusServerScore(20L) + .withRadiusServerSecret("fakeTokenPlaceholder")))) + .withBgpSettings(new BgpSettings().withAsn(65515L).withBgpPeeringAddress("10.0.1.30").withPeerWeight(0)) + .withCustomRoutes(new AddressSpace().withAddressPrefixes(Arrays.asList("101.168.0.6/32"))) + .withEnableDnsForwarding(true) + .withNatRules(Arrays.asList(new VirtualNetworkGatewayNatRuleInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1") + .withName("natRule1") + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.EGRESS_SNAT) + .withInternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("10.10.0.0/24"))) + .withExternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("50.0.0.0/24"))) + .withIpConfigurationId(""), + new VirtualNetworkGatewayNatRuleInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2") + .withName("natRule2") + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.INGRESS_SNAT) + .withInternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("20.10.0.0/24"))) + .withExternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("30.0.0.0/24"))) + .withIpConfigurationId(""))) + .withEnableBgpRouteTranslationForNat(false) + .withAllowVirtualWanTraffic(false) + .withAllowRemoteVnetTraffic(false), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkScalableGatewayUpdate.json + */ + /** + * Sample code: UpdateVirtualNetworkScalableGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkScalableGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .createOrUpdate("rg1", "ergw", new VirtualNetworkGatewayInner().withLocation("centralus") + .withAutoScaleConfiguration(new VirtualNetworkGatewayAutoScaleConfiguration() + .withBounds(new VirtualNetworkGatewayAutoScaleBounds().withMin(2).withMax(3))) + .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner() + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withSubnet(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) + .withGatewayType(VirtualNetworkGatewayType.EXPRESS_ROUTE) + .withVpnType(VpnType.POLICY_BASED) + .withEnableBgp(false) + .withActive(false) + .withDisableIPSecReplayProtection(false) + .withSku(new VirtualNetworkGatewaySku().withName(VirtualNetworkGatewaySkuName.ER_GW_SCALE) + .withTier(VirtualNetworkGatewaySkuTier.ER_GW_SCALE)) + .withVirtualNetworkGatewayPolicyGroups(Arrays.asList()) + .withNatRules(Arrays.asList()) + .withEnableBgpRouteTranslationForNat(false) + .withAllowVirtualWanTraffic(false) + .withAllowRemoteVnetTraffic(false) + .withAdminState(AdminState.ENABLED), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java new file mode 100644 index 000000000000..67e45ba77ab5 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways Delete. + */ +public final class VirtualNetworkGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayDelete.json + */ + /** + * Sample code: DeleteVirtualNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkGateways().delete("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java new file mode 100644 index 000000000000..38a63d273bdf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.P2SVpnConnectionRequest; +import java.util.Arrays; + +/** + * Samples for VirtualNetworkGateways DisconnectVirtualNetworkGatewayVpnConnections. + */ +public final class VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + */ + /** + * Sample code: Disconnect VpnConnections from Virtual Network Gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void + disconnectVpnConnectionsFromVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .disconnectVirtualNetworkGatewayVpnConnections("vpn-gateway-test", "vpngateway", + new P2SVpnConnectionRequest().withVpnConnectionIds(Arrays.asList("vpnconnId1", "vpnconnId2")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java new file mode 100644 index 000000000000..e95a1bed4d58 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnClientParameters; + +/** + * Samples for VirtualNetworkGateways GenerateVpnProfile. + */ +public final class VirtualNetworkGatewaysGenerateVpnProfileSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGenerateVpnProfile.json + */ + /** + * Sample code: GenerateVirtualNetworkGatewayVPNProfile. + * + * @param manager Entry point to NetworkManager. + */ + public static void + generateVirtualNetworkGatewayVPNProfile(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .generateVpnProfile("rg1", "vpngw", new VpnClientParameters(), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java new file mode 100644 index 000000000000..5c858b1ed5bd --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnClientParameters; + +/** + * Samples for VirtualNetworkGateways Generatevpnclientpackage. + */ +public final class VirtualNetworkGatewaysGeneratevpnclientpackageSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGenerateVpnClientPackage.json + */ + /** + * Sample code: GenerateVPNClientPackage. + * + * @param manager Entry point to NetworkManager. + */ + public static void generateVPNClientPackage(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .generatevpnclientpackage("rg1", "vpngw", new VpnClientParameters(), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java new file mode 100644 index 000000000000..1d3190fa712b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetAdvertisedRoutes. + */ +public final class VirtualNetworkGatewaysGetAdvertisedRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetAdvertisedRoutes.json + */ + /** + * Sample code: GetVirtualNetworkGatewayAdvertisedRoutes. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayAdvertisedRoutes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getAdvertisedRoutes("rg1", "vpngw", "test", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java new file mode 100644 index 000000000000..714ab263404b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetBgpPeerStatus. + */ +public final class VirtualNetworkGatewaysGetBgpPeerStatusSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetBGPPeerStatus.json + */ + /** + * Sample code: GetVirtualNetworkGatewayBGPPeerStatus. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkGatewayBGPPeerStatus(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getBgpPeerStatus("rg1", "vpngw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..67b9d1f9e864 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetByResourceGroup. + */ +public final class VirtualNetworkGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGet.json + */ + /** + * Sample code: GetVirtualNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getByResourceGroupWithResponse("rg1", "vpngw", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkScalableGatewayGet.json + */ + /** + * Sample code: GetVirtualNetworkScalableGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkScalableGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getByResourceGroupWithResponse("rg1", "ergw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverAllTestDetailsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverAllTestDetailsSamples.java new file mode 100644 index 000000000000..53e8124479b0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverAllTestDetailsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetFailoverAllTestDetails. + */ +public final class VirtualNetworkGatewaysGetFailoverAllTestDetailsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetFailoverAllTestsDetails.json + */ + /** + * Sample code: VirtualNetworkGatewayGetFailoverAllTestsDetails. + * + * @param manager Entry point to NetworkManager. + */ + public static void + virtualNetworkGatewayGetFailoverAllTestsDetails(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getFailoverAllTestDetails("rg1", "ergw", "SingleSiteFailover", true, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverSingleTestDetailsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverSingleTestDetailsSamples.java new file mode 100644 index 000000000000..5085b01d3c2a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetFailoverSingleTestDetailsSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetFailoverSingleTestDetails. + */ +public final class VirtualNetworkGatewaysGetFailoverSingleTestDetailsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetFailoverSingleTestDetails.json + */ + /** + * Sample code: VirtualNetworkGatewayGetFailoverSingleTestDetails. + * + * @param manager Entry point to NetworkManager. + */ + public static void + virtualNetworkGatewayGetFailoverSingleTestDetails(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getFailoverSingleTestDetails("rg1", "ergw", "Vancouver", "fe458ae8-d2ae-4520-a104-44bc233bde7e", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java new file mode 100644 index 000000000000..814285a91c48 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetLearnedRoutes. + */ +public final class VirtualNetworkGatewaysGetLearnedRoutesSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayLearnedRoutes.json + */ + /** + * Sample code: GetVirtualNetworkGatewayLearnedRoutes. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkGatewayLearnedRoutes(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getLearnedRoutes("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetResiliencyInformationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetResiliencyInformationSamples.java new file mode 100644 index 000000000000..35f311a21e43 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetResiliencyInformationSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetResiliencyInformation. + */ +public final class VirtualNetworkGatewaysGetResiliencyInformationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetResiliencyInformation.json + */ + /** + * Sample code: GetVirtualNetworkGatewayResiliencyInformation. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayResiliencyInformation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getResiliencyInformation("rg1", "vpngw", true, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetRoutesInformationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetRoutesInformationSamples.java new file mode 100644 index 000000000000..7fcc28cee13f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetRoutesInformationSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetRoutesInformation. + */ +public final class VirtualNetworkGatewaysGetRoutesInformationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetRoutesInformation.json + */ + /** + * Sample code: GetVirtualNetworkGatewayRoutesInformation. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayRoutesInformation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getRoutesInformation("rg1", "vpngw", false, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java new file mode 100644 index 000000000000..c928f16bde18 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetVpnProfilePackageUrl. + */ +public final class VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetVpnProfilePackageUrl.json + */ + /** + * Sample code: GetVirtualNetworkGatewayVPNProfilePackageURL. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayVPNProfilePackageURL(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getVpnProfilePackageUrl("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java new file mode 100644 index 000000000000..a33022203ad4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetVpnclientConnectionHealth. + */ +public final class VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetVpnclientConnectionHealth.json + */ + /** + * Sample code: GetVirtualNetworkGatewayVpnclientConnectionHealth. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayVpnclientConnectionHealth(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getVpnclientConnectionHealth("p2s-vnet-test", "vpnp2sgw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java new file mode 100644 index 000000000000..3e9310119b90 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways GetVpnclientIpsecParameters. + */ +public final class VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayGetVpnClientIpsecParameters.json + */ + /** + * Sample code: Get VirtualNetworkGateway VpnClientIpsecParameters. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkGatewayVpnClientIpsecParameters(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .getVpnclientIpsecParameters("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeAbortMigrationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeAbortMigrationSamples.java new file mode 100644 index 000000000000..ff5f8ad6d9da --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeAbortMigrationSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways InvokeAbortMigration. + */ +public final class VirtualNetworkGatewaysInvokeAbortMigrationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayAbortMigration.json + */ + /** + * Sample code: VirtualNetworkGatewayAbortMigration. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayAbortMigration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .invokeAbortMigration("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeCommitMigrationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeCommitMigrationSamples.java new file mode 100644 index 000000000000..b21878e13fcc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeCommitMigrationSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways InvokeCommitMigration. + */ +public final class VirtualNetworkGatewaysInvokeCommitMigrationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayCommitMigration.json + */ + /** + * Sample code: VirtualNetworkGatewayCommitMigration. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayCommitMigration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .invokeCommitMigration("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeExecuteMigrationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeExecuteMigrationSamples.java new file mode 100644 index 000000000000..2d641b1dbcc4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokeExecuteMigrationSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways InvokeExecuteMigration. + */ +public final class VirtualNetworkGatewaysInvokeExecuteMigrationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayExecuteMigration.json + */ + /** + * Sample code: VirtualNetworkGatewayExecuteMigration. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayExecuteMigration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .invokeExecuteMigration("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokePrepareMigrationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokePrepareMigrationSamples.java new file mode 100644 index 000000000000..1825ed3299d7 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysInvokePrepareMigrationSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayMigrationParameters; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayMigrationType; + +/** + * Samples for VirtualNetworkGateways InvokePrepareMigration. + */ +public final class VirtualNetworkGatewaysInvokePrepareMigrationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayPrepareMigration.json + */ + /** + * Sample code: VirtualNetworkGatewayPrepareMigration. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewayPrepareMigration(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .invokePrepareMigration("rg1", "vpngw", + new VirtualNetworkGatewayMigrationParameters() + .withMigrationType(VirtualNetworkGatewayMigrationType.UPGRADE_DEPLOYMENT_TO_STANDARD_IP) + .withResourceUrl("testUrl"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..26cfadb69602 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways ListByResourceGroup. + */ +public final class VirtualNetworkGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayList.json + */ + /** + * Sample code: ListVirtualNetworkGatewaysinResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listVirtualNetworkGatewaysinResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java new file mode 100644 index 000000000000..8326a8fc6eeb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways ListConnections. + */ +public final class VirtualNetworkGatewaysListConnectionsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewaysListConnections.json + */ + /** + * Sample code: VirtualNetworkGatewaysListConnections. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualNetworkGatewaysListConnections(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .listConnections("testrg", "test-vpn-gateway-1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListRadiusSecretsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListRadiusSecretsSamples.java new file mode 100644 index 000000000000..55b0563c18f1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListRadiusSecretsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways ListRadiusSecrets. + */ +public final class VirtualNetworkGatewaysListRadiusSecretsSamples { + /* + * x-ms-original-file: 2025-05-01/AllVirtualNetworkGatewayRadiusServerSecretsList.json + */ + /** + * Sample code: ListAllVirtualNetworkGatewayRadiusServerSecrets. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllVirtualNetworkGatewayRadiusServerSecrets(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .listRadiusSecretsWithResponse("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java new file mode 100644 index 000000000000..ba646da56530 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways Reset. + */ +public final class VirtualNetworkGatewaysResetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayReset.json + */ + /** + * Sample code: ResetVirtualNetworkGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .reset("rg1", "vpngw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java new file mode 100644 index 000000000000..ece06ad7bb44 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways ResetVpnClientSharedKey. + */ +public final class VirtualNetworkGatewaysResetVpnClientSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayResetVpnClientSharedKey.json + */ + /** + * Sample code: ResetVpnClientSharedKey. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetVpnClientSharedKey(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .resetVpnClientSharedKey("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java new file mode 100644 index 000000000000..6d3fa7b192b9 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VpnClientIPsecParametersInner; +import com.azure.resourcemanager.network.models.DhGroup; +import com.azure.resourcemanager.network.models.IkeEncryption; +import com.azure.resourcemanager.network.models.IkeIntegrity; +import com.azure.resourcemanager.network.models.IpsecEncryption; +import com.azure.resourcemanager.network.models.IpsecIntegrity; +import com.azure.resourcemanager.network.models.PfsGroup; + +/** + * Samples for VirtualNetworkGateways SetVpnclientIpsecParameters. + */ +public final class VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewaySetVpnClientIpsecParameters.json + */ + /** + * Sample code: Set VirtualNetworkGateway VpnClientIpsecParameters. + * + * @param manager Entry point to NetworkManager. + */ + public static void + setVirtualNetworkGatewayVpnClientIpsecParameters(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .setVpnclientIpsecParameters("rg1", "vpngw", + new VpnClientIPsecParametersInner().withSaLifeTimeSeconds(86473) + .withSaDataSizeKilobytes(429497) + .withIpsecEncryption(IpsecEncryption.AES256) + .withIpsecIntegrity(IpsecIntegrity.SHA256) + .withIkeEncryption(IkeEncryption.AES256) + .withIkeIntegrity(IkeIntegrity.SHA384) + .withDhGroup(DhGroup.DHGROUP2) + .withPfsGroup(PfsGroup.PFS2), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationSamples.java new file mode 100644 index 000000000000..bf7b5f2fb568 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways StartExpressRouteSiteFailoverSimulation. + */ +public final class VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayStartSiteFailoverSimulation.json + */ + /** + * Sample code: VirtualNetworkGatewayStartSiteFailoverSimulation. + * + * @param manager Entry point to NetworkManager. + */ + public static void + virtualNetworkGatewayStartSiteFailoverSimulation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .startExpressRouteSiteFailoverSimulation("rg1", "ergw", "Vancouver", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java new file mode 100644 index 000000000000..f6a53c5a82fe --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnPacketCaptureStartParameters; + +/** + * Samples for VirtualNetworkGateways StartPacketCapture. + */ +public final class VirtualNetworkGatewaysStartPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayStartPacketCaptureFilterData.json + */ + /** + * Sample code: Start packet capture on virtual network gateway with filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVirtualNetworkGatewayWithFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .startPacketCapture("rg1", "vpngw", new VpnPacketCaptureStartParameters().withFilterData( + "{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayStartPacketCapture.json + */ + /** + * Sample code: Start packet capture on virtual network gateway without filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void startPacketCaptureOnVirtualNetworkGatewayWithoutFilter( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .startPacketCapture("rg1", "vpngw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationSamples.java new file mode 100644 index 000000000000..dc5ab755a537 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.ExpressRouteFailoverStopApiParameters; +import com.azure.resourcemanager.network.models.FailoverConnectionDetails; +import java.util.Arrays; + +/** + * Samples for VirtualNetworkGateways StopExpressRouteSiteFailoverSimulation. + */ +public final class VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayStopSiteFailoverSimulation.json + */ + /** + * Sample code: VirtualNetworkGatewayStopSiteFailoverSimulation. + * + * @param manager Entry point to NetworkManager. + */ + public static void + virtualNetworkGatewayStopSiteFailoverSimulation(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .stopExpressRouteSiteFailoverSimulation("rg1", "ergw", + new ExpressRouteFailoverStopApiParameters().withPeeringLocation("Vancouver") + .withWasSimulationSuccessful(true) + .withDetails(Arrays.asList( + new FailoverConnectionDetails().withFailoverConnectionName("conn1") + .withFailoverLocation("Denver") + .withIsVerified(false), + new FailoverConnectionDetails().withFailoverConnectionName("conn2") + .withFailoverLocation("Amsterdam") + .withIsVerified(true))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java new file mode 100644 index 000000000000..3ac9020313fa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnPacketCaptureStopParameters; + +/** + * Samples for VirtualNetworkGateways StopPacketCapture. + */ +public final class VirtualNetworkGatewaysStopPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayStopPacketCapture.json + */ + /** + * Sample code: Stop packet capture on virtual network gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void + stopPacketCaptureOnVirtualNetworkGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .stopPacketCapture("rg1", "vpngw", new VpnPacketCaptureStopParameters().withSasUrl( + "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java new file mode 100644 index 000000000000..67da26f56404 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkGateways SupportedVpnDevices. + */ +public final class VirtualNetworkGatewaysSupportedVpnDevicesSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewaySupportedVpnDevice.json + */ + /** + * Sample code: ListVirtualNetworkGatewaySupportedVPNDevices. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listVirtualNetworkGatewaySupportedVPNDevices(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .supportedVpnDevicesWithResponse("rg1", "vpngw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..1e9437d69b71 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkGateways UpdateTags. + */ +public final class VirtualNetworkGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayUpdateTags.json + */ + /** + * Sample code: UpdateVirtualNetworkGatewayTags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkGatewayTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .updateTags("rg1", "vpngw", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java new file mode 100644 index 000000000000..90ec6343becc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnDeviceScriptParameters; + +/** + * Samples for VirtualNetworkGateways VpnDeviceConfigurationScript. + */ +public final class VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGatewayVpnDeviceConfigurationScript.json + */ + /** + * Sample code: GetVPNDeviceConfigurationScript. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVPNDeviceConfigurationScript(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkGateways() + .vpnDeviceConfigurationScriptWithResponse("rg1", "vpngw", + new VpnDeviceScriptParameters().withVendor("Cisco") + .withDeviceFamily("ISR") + .withFirmwareVersion("IOS 15.1 (Preview)"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..c95d77d963aa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkPeeringInner; +import com.azure.resourcemanager.network.models.SyncRemoteAddressSpace; +import java.util.Arrays; + +/** + * Samples for VirtualNetworkPeerings CreateOrUpdate. + */ +public final class VirtualNetworkPeeringsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkSubnetPeeringSync.json + */ + /** + * Sample code: Sync subnet Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void syncSubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")) + .withPeerCompleteVnets(false) + .withEnableOnlyIPv6Peering(false), SyncRemoteAddressSpace.TRUE, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkV6SubnetPeeringCreate.json + */ + /** + * Sample code: Create V6 Subnet peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void createV6SubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")) + .withPeerCompleteVnets(false) + .withEnableOnlyIPv6Peering(true) + .withLocalSubnetNames(Arrays.asList("Subnet1", "Subnet4")) + .withRemoteSubnetNames(Arrays.asList("Subnet2")), null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringSync.json + */ + /** + * Sample code: Sync Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void syncPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), + SyncRemoteAddressSpace.TRUE, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringCreate.json + */ + /** + * Sample code: Create peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void createPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), + null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + */ + /** + * Sample code: Create peering with remote virtual network encryption. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createPeeringWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), + null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkSubnetPeeringCreate.json + */ + /** + * Sample code: Create subnet peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void createSubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")) + .withPeerCompleteVnets(false) + .withEnableOnlyIPv6Peering(false) + .withLocalSubnetNames(Arrays.asList("Subnet1", "Subnet4")) + .withRemoteSubnetNames(Arrays.asList("Subnet2")), null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkV6SubnetPeeringSync.json + */ + /** + * Sample code: Sync V6 Subnet Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void syncV6SubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) + .withRemoteVirtualNetwork(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")) + .withPeerCompleteVnets(false) + .withEnableOnlyIPv6Peering(true), SyncRemoteAddressSpace.TRUE, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java new file mode 100644 index 000000000000..fc28635da3a6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkPeerings Delete. + */ +public final class VirtualNetworkPeeringsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringDelete.json + */ + /** + * Sample code: Delete peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletePeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .delete("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java new file mode 100644 index 000000000000..bbf16cab2198 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkPeerings Get. + */ +public final class VirtualNetworkPeeringsGetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringGet.json + */ + /** + * Sample code: Get peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void getPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + */ + /** + * Sample code: Get peering with remote virtual network encryption. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getPeeringWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkSubnetPeeringGet.json + */ + /** + * Sample code: Get subnet peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void getSubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkV6SubnetPeeringGet.json + */ + /** + * Sample code: Get V6 subnet peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void getV6SubnetPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java new file mode 100644 index 000000000000..73aa8be5c6f0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkPeerings List. + */ +public final class VirtualNetworkPeeringsListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringList.json + */ + /** + * Sample code: List peerings. + * + * @param manager Entry point to NetworkManager. + */ + public static void listPeerings(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkPeerings().list("peerTest", "vnet1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + */ + /** + * Sample code: List peerings with remote virtual network encryption. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listPeeringsWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkPeerings().list("peerTest", "vnet1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..1f20a6d9471a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkTapInner; + +/** + * Samples for VirtualNetworkTaps CreateOrUpdate. + */ +public final class VirtualNetworkTapsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapCreate.json + */ + /** + * Sample code: Create Virtual Network Tap. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkTap(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkTaps() + .createOrUpdate("rg1", "test-vtap", new VirtualNetworkTapInner().withLocation("centraluseuap") + .withDestinationNetworkInterfaceIPConfiguration(new NetworkInterfaceIpConfigurationInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/ipconfig1")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java new file mode 100644 index 000000000000..7110fa438586 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkTaps Delete. + */ +public final class VirtualNetworkTapsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapDelete.json + */ + /** + * Sample code: Delete Virtual Network Tap resource. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualNetworkTapResource(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkTaps().delete("rg1", "test-vtap", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..44fe21dd9d2f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkTaps GetByResourceGroup. + */ +public final class VirtualNetworkTapsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapGet.json + */ + /** + * Sample code: Get Virtual Network Tap. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkTap(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkTaps() + .getByResourceGroupWithResponse("rg1", "testvtap", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java new file mode 100644 index 000000000000..251428ad74c1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkTaps ListByResourceGroup. + */ +public final class VirtualNetworkTapsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapList.json + */ + /** + * Sample code: List virtual network taps in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listVirtualNetworkTapsInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkTaps().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java new file mode 100644 index 000000000000..996fe3d08181 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworkTaps List. + */ +public final class VirtualNetworkTapsListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapListAll.json + */ + /** + * Sample code: List all virtual network taps. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllVirtualNetworkTaps(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworkTaps().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java new file mode 100644 index 000000000000..0b31297c5612 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworkTaps UpdateTags. + */ +public final class VirtualNetworkTapsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkTapUpdateTags.json + */ + /** + * Sample code: Update virtual network tap tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkTapTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworkTaps() + .updateTagsWithResponse("rg1", "test-vtap", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java new file mode 100644 index 000000000000..4433fc037482 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks CheckIpAddressAvailability. + */ +public final class VirtualNetworksCheckIpAddressAvailabilitySamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCheckIPAddressAvailability.json + */ + /** + * Sample code: Check IP address availability. + * + * @param manager Entry point to NetworkManager. + */ + public static void checkIPAddressAvailability(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .checkIpAddressAvailabilityWithResponse("rg1", "test-vnet", "10.0.1.4", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b8c74d1c29fb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyInner; +import com.azure.resourcemanager.network.fluent.models.SubnetInner; +import com.azure.resourcemanager.network.fluent.models.VirtualNetworkInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import com.azure.resourcemanager.network.models.Delegation; +import com.azure.resourcemanager.network.models.IpamPoolPrefixAllocation; +import com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat; +import com.azure.resourcemanager.network.models.VirtualNetworkBgpCommunities; +import com.azure.resourcemanager.network.models.VirtualNetworkEncryption; +import com.azure.resourcemanager.network.models.VirtualNetworkEncryptionEnforcement; +import java.util.Arrays; + +/** + * Samples for VirtualNetworks CreateOrUpdate. + */ +public final class VirtualNetworksCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateSubnet.json + */ + /** + * Sample code: Create virtual network with subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkWithSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1").withAddressPrefix("10.0.0.0/24"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateWithIpamPool.json + */ + /** + * Sample code: Create virtual network with ipamPool. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkWithIpamPool(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withIpamPoolPrefixAllocations( + Arrays.asList(new IpamPoolPrefixAllocation().withNumberOfIpAddresses("65536") + .withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool")))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1") + .withIpamPoolPrefixAllocations(Arrays.asList(new IpamPoolPrefixAllocation() + .withNumberOfIpAddresses("80") + .withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool"))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateWithBgpCommunities.json + */ + /** + * Sample code: Create virtual network with Bgp Communities. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createVirtualNetworkWithBgpCommunities(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1").withAddressPrefix("10.0.0.0/24"))) + .withBgpCommunities(new VirtualNetworkBgpCommunities().withVirtualNetworkCommunity("12076:20000")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateSubnetWithAddressPrefixes.json + */ + /** + * Sample code: Create virtual network with subnet containing address prefixes. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkWithSubnetContainingAddressPrefixes( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-2") + .withAddressPrefixes(Arrays.asList("10.0.0.0/28", "10.0.1.0/28")))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateSubnetWithDelegation.json + */ + /** + * Sample code: Create virtual network with delegated subnets. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createVirtualNetworkWithDelegatedSubnets(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", new VirtualNetworkInner().withLocation("westcentralus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1") + .withAddressPrefix("10.0.0.0/24") + .withDelegations(Arrays.asList( + new Delegation().withName("myDelegation").withServiceName("Microsoft.Sql/managedInstances"))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateWithEncryption.json + */ + /** + * Sample code: Create virtual network with encryption. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkWithEncryption(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1").withAddressPrefix("10.0.0.0/24"))) + .withEncryption(new VirtualNetworkEncryption().withEnabled(true) + .withEnforcement(VirtualNetworkEncryptionEnforcement.ALLOW_UNENCRYPTED)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreate.json + */ + /** + * Sample code: Create virtual network. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetwork(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("rg1", "test-vnet", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withFlowTimeoutInMinutes(10), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateServiceEndpointPolicy.json + */ + /** + * Sample code: Create virtual network with service endpoints and service endpoint policy. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy( + com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("vnetTest", "vnet1", new VirtualNetworkInner().withLocation("eastus2euap") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets(Arrays.asList(new SubnetInner().withName("test-1") + .withAddressPrefix("10.0.0.0/16") + .withServiceEndpoints( + Arrays.asList(new ServiceEndpointPropertiesFormat().withService("Microsoft.Storage"))) + .withServiceEndpointPolicies(Arrays.asList(new ServiceEndpointPolicyInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vnetTest/providers/Microsoft.Network/serviceEndpointPolicies/ServiceEndpointPolicy1"))))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkCreateServiceEndpoints.json + */ + /** + * Sample code: Create virtual network with service endpoints. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createVirtualNetworkWithServiceEndpoints(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .createOrUpdate("vnetTest", "vnet1", + new VirtualNetworkInner().withLocation("eastus") + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withSubnets( + Arrays.asList(new SubnetInner().withName("test-1") + .withAddressPrefix("10.0.0.0/16") + .withServiceEndpoints(Arrays + .asList(new ServiceEndpointPropertiesFormat().withService("Microsoft.Storage"))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java new file mode 100644 index 000000000000..18b6c52ac8f2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks Delete. + */ +public final class VirtualNetworksDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkDelete.json + */ + /** + * Sample code: Delete virtual network. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualNetwork(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworks().delete("rg1", "test-vnet", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java new file mode 100644 index 000000000000..f24e69cba1cf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks GetByResourceGroup. + */ +public final class VirtualNetworksGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGetWithSubnetDelegation.json + */ + /** + * Sample code: Get virtual network with a delegated subnet. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetworkWithADelegatedSubnet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGetWithServiceAssociationLink.json + */ + /** + * Sample code: Get virtual network with service association links. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getVirtualNetworkWithServiceAssociationLinks(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGet.json + */ + /** + * Sample code: Get virtual network. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualNetwork(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java new file mode 100644 index 000000000000..dbbb744df21e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks ListByResourceGroup. + */ +public final class VirtualNetworksListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkList.json + */ + /** + * Sample code: List virtual networks in resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listVirtualNetworksInResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworks().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java new file mode 100644 index 000000000000..cf831349ee3f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks ListDdosProtectionStatus. + */ +public final class VirtualNetworksListDdosProtectionStatusSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkGetDdosProtectionStatus.json + */ + /** + * Sample code: Get Ddos Protection Status of a Virtual Network. + * + * @param manager Entry point to NetworkManager. + */ + public static void + getDdosProtectionStatusOfAVirtualNetwork(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .listDdosProtectionStatus("rg1", "test-vnet", 75, null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java new file mode 100644 index 000000000000..a61a8c5344c0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks List. + */ +public final class VirtualNetworksListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkListAll.json + */ + /** + * Sample code: List all virtual networks. + * + * @param manager Entry point to NetworkManager. + */ + public static void listAllVirtualNetworks(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworks().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java new file mode 100644 index 000000000000..db2e37b37dab --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualNetworks ListUsage. + */ +public final class VirtualNetworksListUsageSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkListUsage.json + */ + /** + * Sample code: VnetGetUsage. + * + * @param manager Entry point to NetworkManager. + */ + public static void vnetGetUsage(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualNetworks().listUsage("rg1", "vnetName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java new file mode 100644 index 000000000000..111c091bafca --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualNetworks UpdateTags. + */ +public final class VirtualNetworksUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualNetworkUpdateTags.json + */ + /** + * Sample code: Update virtual network tags. + * + * @param manager Entry point to NetworkManager. + */ + public static void updateVirtualNetworkTags(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualNetworks() + .updateTagsWithResponse("rg1", "test-vnet", + new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..a139281db807 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VirtualRouterPeeringInner; + +/** + * Samples for VirtualRouterPeerings CreateOrUpdate. + */ +public final class VirtualRouterPeeringsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeeringPut.json + */ + /** + * Sample code: Create Virtual Router Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualRouterPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouterPeerings() + .createOrUpdate("rg1", "virtualRouter", "peering1", + new VirtualRouterPeeringInner().withPeerAsn(20000L).withPeerIp("192.168.1.5"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java new file mode 100644 index 000000000000..d8145c0e4945 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouterPeerings Delete. + */ +public final class VirtualRouterPeeringsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeeringDelete.json + */ + /** + * Sample code: Delete VirtualRouterPeering. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualRouterPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouterPeerings() + .delete("rg1", "virtualRouter", "peering1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java new file mode 100644 index 000000000000..7710888b6219 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouterPeerings Get. + */ +public final class VirtualRouterPeeringsGetSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeeringGet.json + */ + /** + * Sample code: Get Virtual Router Peering. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualRouterPeering(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouterPeerings() + .getWithResponse("rg1", "virtualRouter", "peering1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java new file mode 100644 index 000000000000..2a0ee8aa1680 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouterPeerings List. + */ +public final class VirtualRouterPeeringsListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPeeringList.json + */ + /** + * Sample code: List all Virtual Router Peerings for a given Virtual Router. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllVirtualRouterPeeringsForAGivenVirtualRouter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouterPeerings() + .list("rg1", "virtualRouter", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..fd6ed3b3e131 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VirtualRouterInner; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualRouters CreateOrUpdate. + */ +public final class VirtualRoutersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterPut.json + */ + /** + * Sample code: Create VirtualRouter. + * + * @param manager Entry point to NetworkManager. + */ + public static void createVirtualRouter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouters() + .createOrUpdate("rg1", "virtualRouter", new VirtualRouterInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withHostedGateway(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vnetGateway")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java new file mode 100644 index 000000000000..01a3ba2c046a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouters Delete. + */ +public final class VirtualRoutersDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterDelete.json + */ + /** + * Sample code: Delete VirtualRouter. + * + * @param manager Entry point to NetworkManager. + */ + public static void deleteVirtualRouter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualRouters().delete("rg1", "virtualRouter", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java new file mode 100644 index 000000000000..386c2011616d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouters GetByResourceGroup. + */ +public final class VirtualRoutersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterGet.json + */ + /** + * Sample code: Get VirtualRouter. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualRouter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualRouters() + .getByResourceGroupWithResponse("rg1", "virtualRouter", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java new file mode 100644 index 000000000000..a6c627dc42cf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouters ListByResourceGroup. + */ +public final class VirtualRoutersListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterListByResourceGroup.json + */ + /** + * Sample code: List all Virtual Router for a given resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllVirtualRouterForAGivenResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualRouters().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java new file mode 100644 index 000000000000..5237c3d6f423 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualRouters List. + */ +public final class VirtualRoutersListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualRouterListBySubscription.json + */ + /** + * Sample code: List all Virtual Routers for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllVirtualRoutersForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualRouters().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java new file mode 100644 index 000000000000..20d64fbd8232 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VirtualWanInner; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualWans CreateOrUpdate. + */ +public final class VirtualWansCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANPut.json + */ + /** + * Sample code: VirtualWANCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualWans() + .createOrUpdate("rg1", "wan1", + new VirtualWanInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withDisableVpnEncryption(false) + .withTypePropertiesType("Basic"), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java new file mode 100644 index 000000000000..3e132ded619d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualWans Delete. + */ +public final class VirtualWansDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANDelete.json + */ + /** + * Sample code: VirtualWANDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualWans().delete("rg1", "virtualWan1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java new file mode 100644 index 000000000000..4de2746e6b81 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualWans GetByResourceGroup. + */ +public final class VirtualWansGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANGet.json + */ + /** + * Sample code: VirtualWANGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualWans() + .getByResourceGroupWithResponse("rg1", "wan1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java new file mode 100644 index 000000000000..c111433b1afa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualWans ListByResourceGroup. + */ +public final class VirtualWansListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANListByResourceGroup.json + */ + /** + * Sample code: VirtualWANListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualWans().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java new file mode 100644 index 000000000000..48a1258151d3 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VirtualWans List. + */ +public final class VirtualWansListSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANList.json + */ + /** + * Sample code: VirtualWANList. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVirtualWans().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java new file mode 100644 index 000000000000..322064b968ca --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VirtualWans UpdateTags. + */ +public final class VirtualWansUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VirtualWANUpdateTags.json + */ + /** + * Sample code: VirtualWANUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void virtualWANUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVirtualWans() + .updateTagsWithResponse("rg1", "wan1", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..20e4eb1677da --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VpnConnectionInner; +import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner; +import com.azure.resourcemanager.network.models.PropagatedRouteTable; +import com.azure.resourcemanager.network.models.RoutingConfiguration; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionProtocol; +import com.azure.resourcemanager.network.models.VpnLinkConnectionMode; +import java.util.Arrays; + +/** + * Samples for VpnConnections CreateOrUpdate. + */ +public final class VpnConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionPut.json + */ + /** + * Sample code: VpnConnectionPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnConnectionPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .createOrUpdate("rg1", "gateway1", "vpnConnection1", new VpnConnectionInner() + .withRemoteVpnSite(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1")) + .withTrafficSelectorPolicies(Arrays.asList()) + .withVpnLinkConnections(Arrays.asList(new VpnSiteLinkConnectionInner().withName("Connection-Link1") + .withVpnSiteLink(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1")) + .withVpnLinkConnectionMode(VpnLinkConnectionMode.DEFAULT) + .withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol.IKEV2) + .withConnectionBandwidth(200) + .withSharedKey("fakeTokenPlaceholder") + .withUsePolicyBasedTrafficSelectors(false))) + .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")) + .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1", "label2")) + .withIds(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable2"), + new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable3")))) + .withInboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")) + .withOutboundRouteMap(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java new file mode 100644 index 000000000000..61ec7f9a5115 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnConnections Delete. + */ +public final class VpnConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionDelete.json + */ + /** + * Sample code: VpnConnectionDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnConnectionDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .delete("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java new file mode 100644 index 000000000000..2a14d591c9a4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnConnections Get. + */ +public final class VpnConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionGet.json + */ + /** + * Sample code: VpnConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .getWithResponse("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java new file mode 100644 index 000000000000..772ac3554e25 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnConnections ListByVpnGateway. + */ +public final class VpnConnectionsListByVpnGatewaySamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionList.json + */ + /** + * Sample code: VpnConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .listByVpnGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java new file mode 100644 index 000000000000..bb4c65093174 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnConnectionPacketCaptureStartParameters; +import java.util.Arrays; + +/** + * Samples for VpnConnections StartPacketCapture. + */ +public final class VpnConnectionsStartPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionStartPacketCaptureFilterData.json + */ + /** + * Sample code: Start packet capture on vpn connection with filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVpnConnectionWithFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .startPacketCapture("rg1", "gateway1", "vpnConnection1", + new VpnConnectionPacketCaptureStartParameters().withFilterData( + "{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}") + .withLinkConnectionNames(Arrays.asList("siteLink1", "siteLink2")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VpnConnectionStartPacketCapture.json + */ + /** + * Sample code: Start packet capture on vpn connection without filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVpnConnectionWithoutFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .startPacketCapture( + "rg1", "gateway1", "vpnConnection1", new VpnConnectionPacketCaptureStartParameters() + .withLinkConnectionNames(Arrays.asList("siteLink1", "siteLink2")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java new file mode 100644 index 000000000000..b1bb588ab4cc --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnConnectionPacketCaptureStopParameters; +import java.util.Arrays; + +/** + * Samples for VpnConnections StopPacketCapture. + */ +public final class VpnConnectionsStopPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VpnConnectionStopPacketCapture.json + */ + /** + * Sample code: Start packet capture on vpn connection without filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVpnConnectionWithoutFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnConnections() + .stopPacketCapture("rg1", "gateway1", "vpnConnection1", + new VpnConnectionPacketCaptureStopParameters().withSasUrl( + "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D") + .withLinkConnectionNames(Arrays.asList("vpnSiteLink1", "vpnSiteLink2")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java new file mode 100644 index 000000000000..a7ea49612e2f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VpnConnectionInner; +import com.azure.resourcemanager.network.fluent.models.VpnGatewayInner; +import com.azure.resourcemanager.network.fluent.models.VpnGatewayNatRuleInner; +import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner; +import com.azure.resourcemanager.network.models.BgpSettings; +import com.azure.resourcemanager.network.models.IpConfigurationBgpPeeringAddress; +import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionProtocol; +import com.azure.resourcemanager.network.models.VpnNatRuleMapping; +import com.azure.resourcemanager.network.models.VpnNatRuleMode; +import com.azure.resourcemanager.network.models.VpnNatRuleType; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnGateways CreateOrUpdate. + */ +public final class VpnGatewaysCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayPut.json + */ + /** + * Sample code: VpnGatewayPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .createOrUpdate("rg1", "gateway1", new VpnGatewayInner().withLocation("westcentralus") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualHub(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1")) + .withConnections(Arrays.asList(new VpnConnectionInner().withName("vpnConnection1") + .withRemoteVpnSite(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1")) + .withVpnLinkConnections(Arrays.asList(new VpnSiteLinkConnectionInner().withName("Connection-Link1") + .withVpnSiteLink(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1")) + .withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol.IKEV2) + .withConnectionBandwidth(200) + .withSharedKey("fakeTokenPlaceholder") + .withEgressNatRules(Arrays.asList(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/nat03"))))))) + .withBgpSettings(new BgpSettings().withAsn(65515L) + .withPeerWeight(0) + .withBgpPeeringAddresses(Arrays.asList( + new IpConfigurationBgpPeeringAddress().withIpconfigurationId("Instance0") + .withCustomBgpIpAddresses(Arrays.asList("169.254.21.5")), + new IpConfigurationBgpPeeringAddress().withIpconfigurationId("Instance1") + .withCustomBgpIpAddresses(Arrays.asList("169.254.21.10"))))) + .withEnableBgpRouteTranslationForNat(false) + .withIsRoutingPreferenceInternet(false) + .withNatRules(Arrays.asList(new VpnGatewayNatRuleInner().withName("nat03") + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.EGRESS_SNAT) + .withInternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("0.0.0.0/26"))) + .withExternalMappings(Arrays.asList(new VpnNatRuleMapping().withAddressSpace("192.168.0.0/26"))) + .withIpConfigurationId(""))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java new file mode 100644 index 000000000000..701fefd9b5f1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnGateways Delete. + */ +public final class VpnGatewaysDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayDelete.json + */ + /** + * Sample code: VpnGatewayDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnGateways().delete("rg1", "gateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java new file mode 100644 index 000000000000..1ec87bbcfc16 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnGateways GetByResourceGroup. + */ +public final class VpnGatewaysGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayGet.json + */ + /** + * Sample code: VpnGatewayGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .getByResourceGroupWithResponse("rg1", "gateway1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java new file mode 100644 index 000000000000..dbff3932c3a8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnGateways ListByResourceGroup. + */ +public final class VpnGatewaysListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayListByResourceGroup.json + */ + /** + * Sample code: VpnGatewayListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnGateways().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java new file mode 100644 index 000000000000..c8ff9689290a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnGateways List. + */ +public final class VpnGatewaysListSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayList.json + */ + /** + * Sample code: VpnGatewayListBySubscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayListBySubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnGateways().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java new file mode 100644 index 000000000000..e3beb686d0db --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnGateways Reset. + */ +public final class VpnGatewaysResetSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayReset.json + */ + /** + * Sample code: ResetVpnGateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetVpnGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnGateways().reset("rg1", "vpngw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java new file mode 100644 index 000000000000..c5837dd97056 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStartParameters; + +/** + * Samples for VpnGateways StartPacketCapture. + */ +public final class VpnGatewaysStartPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayStartPacketCaptureFilterData.json + */ + /** + * Sample code: Start packet capture on vpn gateway with filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVpnGatewayWithFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .startPacketCapture("rg1", "vpngw", new VpnGatewayPacketCaptureStartParameters().withFilterData( + "{'TracingFlags': 11,'MaxPacketBufferSize': 120,'MaxFileSize': 200,'Filters': [{'SourceSubnets': ['20.1.1.0/24'],'DestinationSubnets': ['10.1.1.0/24'],'SourcePort': [500],'DestinationPort': [4500],'Protocol': 6,'TcpFlags': 16,'CaptureSingleDirectionTrafficOnly': true}]}"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-05-01/VpnGatewayStartPacketCapture.json + */ + /** + * Sample code: Start packet capture on vpn gateway without filter. + * + * @param manager Entry point to NetworkManager. + */ + public static void + startPacketCaptureOnVpnGatewayWithoutFilter(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .startPacketCapture("rg1", "vpngw", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java new file mode 100644 index 000000000000..2f31662650e0 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStopParameters; + +/** + * Samples for VpnGateways StopPacketCapture. + */ +public final class VpnGatewaysStopPacketCaptureSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayStopPacketCapture.json + */ + /** + * Sample code: Stop packet capture on vpn gateway. + * + * @param manager Entry point to NetworkManager. + */ + public static void stopPacketCaptureOnVpnGateway(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .stopPacketCapture("rg1", "vpngw", new VpnGatewayPacketCaptureStopParameters().withSasUrl( + "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java new file mode 100644 index 000000000000..e5379f66408f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnGateways UpdateTags. + */ +public final class VpnGatewaysUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VpnGatewayUpdateTags.json + */ + /** + * Sample code: VpnGatewayUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnGatewayUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnGateways() + .updateTags("rg1", "gateway1", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetAllSharedKeysSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetAllSharedKeysSamples.java new file mode 100644 index 000000000000..6b8a22dce1f4 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetAllSharedKeysSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections GetAllSharedKeys. + */ +public final class VpnLinkConnectionsGetAllSharedKeysSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionSharedKeysGet.json + */ + /** + * Sample code: VpnSiteLinkConnectionSharedKeysGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteLinkConnectionSharedKeysGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .getAllSharedKeys("rg1", "gateway1", "vpnConnection1", "Connection-Link1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetDefaultSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetDefaultSharedKeySamples.java new file mode 100644 index 000000000000..57bba9ae04ee --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetDefaultSharedKeySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections GetDefaultSharedKey. + */ +public final class VpnLinkConnectionsGetDefaultSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionDefaultSharedKeyGet.json + */ + /** + * Sample code: VpnSiteLinkConnectionDefaultSharedKeyGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void + vpnSiteLinkConnectionDefaultSharedKeyGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .getDefaultSharedKeyWithResponse("rg1", "gateway1", "vpnConnection1", "Connection-Link1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java new file mode 100644 index 000000000000..e2c0b8288d8e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections GetIkeSas. + */ +public final class VpnLinkConnectionsGetIkeSasSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionGetIkeSas.json + */ + /** + * Sample code: GetVpnLinkConnectionIkeSa. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVpnLinkConnectionIkeSa(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .getIkeSas("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java new file mode 100644 index 000000000000..6d734557616e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections ListByVpnConnection. + */ +public final class VpnLinkConnectionsListByVpnConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionList.json + */ + /** + * Sample code: VpnSiteLinkConnectionList. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteLinkConnectionList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .listByVpnConnection("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListDefaultSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListDefaultSharedKeySamples.java new file mode 100644 index 000000000000..8dd465bd8686 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListDefaultSharedKeySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections ListDefaultSharedKey. + */ +public final class VpnLinkConnectionsListDefaultSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionDefaultSharedKeyList.json + */ + /** + * Sample code: VpnSiteLinkConnectionDefaultSharedKeyList. + * + * @param manager Entry point to NetworkManager. + */ + public static void + vpnSiteLinkConnectionDefaultSharedKeyList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .listDefaultSharedKeyWithResponse("rg1", "gateway1", "vpnConnection1", "Connection-Link1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java new file mode 100644 index 000000000000..054adb4c8ace --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnLinkConnections ResetConnection. + */ +public final class VpnLinkConnectionsResetConnectionSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionReset.json + */ + /** + * Sample code: ResetVpnLinkConnection. + * + * @param manager Entry point to NetworkManager. + */ + public static void resetVpnLinkConnection(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .resetConnection("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsSetOrInitDefaultSharedKeySamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsSetOrInitDefaultSharedKeySamples.java new file mode 100644 index 000000000000..fe1524b0a889 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsSetOrInitDefaultSharedKeySamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyResultInner; +import com.azure.resourcemanager.network.models.SharedKeyProperties; + +/** + * Samples for VpnLinkConnections SetOrInitDefaultSharedKey. + */ +public final class VpnLinkConnectionsSetOrInitDefaultSharedKeySamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionDefaultSharedKeyPut.json + */ + /** + * Sample code: VpnSiteLinkConnectionDefaultSharedKeyPut. + * + * @param manager Entry point to NetworkManager. + */ + public static void + vpnSiteLinkConnectionDefaultSharedKeyPut(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnLinkConnections() + .setOrInitDefaultSharedKey( + "rg1", "gateway1", "vpnConnection1", "Connection-Link1", new ConnectionSharedKeyResultInner() + .withProperties(new SharedKeyProperties().withSharedKey("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java new file mode 100644 index 000000000000..1f6afe76ef96 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurationsAssociatedWithVirtualWan List. + */ +public final class VpnServerConfigurationsAssociatedWithVirtualWanListSamples { + /* + * x-ms-original-file: 2025-05-01/GetVirtualWanVpnServerConfigurations.json + */ + /** + * Sample code: GetVirtualWanVpnServerConfigurations. + * + * @param manager Entry point to NetworkManager. + */ + public static void getVirtualWanVpnServerConfigurations(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurationsAssociatedWithVirtualWans() + .list("rg1", "wan1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..78ea8f0e032d --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationInner; +import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationPolicyGroupInner; +import com.azure.resourcemanager.network.models.DhGroup; +import com.azure.resourcemanager.network.models.IkeEncryption; +import com.azure.resourcemanager.network.models.IkeIntegrity; +import com.azure.resourcemanager.network.models.IpsecEncryption; +import com.azure.resourcemanager.network.models.IpsecIntegrity; +import com.azure.resourcemanager.network.models.IpsecPolicy; +import com.azure.resourcemanager.network.models.PfsGroup; +import com.azure.resourcemanager.network.models.RadiusServer; +import com.azure.resourcemanager.network.models.VpnGatewayTunnelingProtocol; +import com.azure.resourcemanager.network.models.VpnPolicyMemberAttributeType; +import com.azure.resourcemanager.network.models.VpnServerConfigRadiusClientRootCertificate; +import com.azure.resourcemanager.network.models.VpnServerConfigRadiusServerRootCertificate; +import com.azure.resourcemanager.network.models.VpnServerConfigVpnClientRevokedCertificate; +import com.azure.resourcemanager.network.models.VpnServerConfigVpnClientRootCertificate; +import com.azure.resourcemanager.network.models.VpnServerConfigurationPolicyGroupMember; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnServerConfigurations CreateOrUpdate. + */ +public final class VpnServerConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationPut.json + */ + /** + * Sample code: VpnServerConfigurationCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnServerConfigurationCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .createOrUpdate("rg1", "vpnServerConfiguration1", new VpnServerConfigurationInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVpnProtocols(Arrays.asList(VpnGatewayTunnelingProtocol.IKE_V2)) + .withVpnClientRootCertificates(Arrays.asList(new VpnServerConfigVpnClientRootCertificate() + .withName("vpnServerConfigVpnClientRootCert1") + .withPublicCertData( + "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN"))) + .withVpnClientRevokedCertificates(Arrays.asList( + new VpnServerConfigVpnClientRevokedCertificate().withName("vpnServerConfigVpnClientRevokedCert1") + .withThumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F"))) + .withRadiusServerRootCertificates(Arrays.asList(new VpnServerConfigRadiusServerRootCertificate() + .withName("vpnServerConfigRadiusServerRootCer1") + .withPublicCertData( + "MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM"))) + .withRadiusClientRootCertificates(Arrays.asList( + new VpnServerConfigRadiusClientRootCertificate().withName("vpnServerConfigRadiusClientRootCert1") + .withThumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F"))) + .withVpnClientIpsecPolicies(Arrays.asList(new IpsecPolicy().withSaLifeTimeSeconds(86472) + .withSaDataSizeKilobytes(429497) + .withIpsecEncryption(IpsecEncryption.AES256) + .withIpsecIntegrity(IpsecIntegrity.SHA256) + .withIkeEncryption(IkeEncryption.AES256) + .withIkeIntegrity(IkeIntegrity.SHA384) + .withDhGroup(DhGroup.DHGROUP14) + .withPfsGroup(PfsGroup.PFS14))) + .withRadiusServers(Arrays.asList(new RadiusServer().withRadiusServerAddress("10.0.0.0") + .withRadiusServerScore(25L) + .withRadiusServerSecret("fakeTokenPlaceholder"))) + .withConfigurationPolicyGroups(Arrays.asList(new VpnServerConfigurationPolicyGroupInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1") + .withName("policyGroup1") + .withIsDefault(true) + .withPriority(0) + .withPolicyMembers(Arrays.asList(new VpnServerConfigurationPolicyGroupMember().withName("policy1") + .withAttributeType(VpnPolicyMemberAttributeType.RADIUS_AZURE_GROUP_ID) + .withAttributeValue("6ad1bd08"))), + new VpnServerConfigurationPolicyGroupInner().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup2") + .withName("policyGroup2") + .withIsDefault(true) + .withPriority(0) + .withPolicyMembers( + Arrays.asList(new VpnServerConfigurationPolicyGroupMember().withName("policy2") + .withAttributeType(VpnPolicyMemberAttributeType.CERTIFICATE_GROUP_ID) + .withAttributeValue("red.com"))))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..3e992c175deb --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurations Delete. + */ +public final class VpnServerConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationDelete.json + */ + /** + * Sample code: VpnServerConfigurationDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnServerConfigurationDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .delete("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..a558102015aa --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurations GetByResourceGroup. + */ +public final class VpnServerConfigurationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationGet.json + */ + /** + * Sample code: VpnServerConfigurationGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnServerConfigurationGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .getByResourceGroupWithResponse("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java new file mode 100644 index 000000000000..67572b9fc5f2 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurations ListByResourceGroup. + */ +public final class VpnServerConfigurationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationListByResourceGroup.json + */ + /** + * Sample code: VpnServerConfigurationListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void + vpnServerConfigurationListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListRadiusSecretsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListRadiusSecretsSamples.java new file mode 100644 index 000000000000..ee7e39d3ab69 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListRadiusSecretsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurations ListRadiusSecrets. + */ +public final class VpnServerConfigurationsListRadiusSecretsSamples { + /* + * x-ms-original-file: 2025-05-01/AllVpnServerConfigurationRadiusServerSecretsList.json + */ + /** + * Sample code: ListAllVpnServerConfigurationRadiusServerSecrets. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllVpnServerConfigurationRadiusServerSecrets(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .listRadiusSecretsWithResponse("rg1", "vpnserverconfig", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java new file mode 100644 index 000000000000..43a7eec37fb8 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnServerConfigurations List. + */ +public final class VpnServerConfigurationsListSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationList.json + */ + /** + * Sample code: VpnServerConfigurationList. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnServerConfigurationList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnServerConfigurations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java new file mode 100644 index 000000000000..9ba5614ae14a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnServerConfigurations UpdateTags. + */ +public final class VpnServerConfigurationsUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VpnServerConfigurationUpdateTags.json + */ + /** + * Sample code: VpnServerConfigurationUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnServerConfigurationUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnServerConfigurations() + .updateTagsWithResponse("rg1", "vpnServerConfiguration1", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java new file mode 100644 index 000000000000..63cc2dc1f4f6 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSiteLinkConnections Get. + */ +public final class VpnSiteLinkConnectionsGetSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkConnectionGet.json + */ + /** + * Sample code: VpnSiteLinkConnectionGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteLinkConnectionGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSiteLinkConnections() + .getWithResponse("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java new file mode 100644 index 000000000000..ac402c3b1c1a --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSiteLinks Get. + */ +public final class VpnSiteLinksGetSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkGet.json + */ + /** + * Sample code: VpnSiteGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSiteLinks() + .getWithResponse("rg1", "vpnSite1", "vpnSiteLink1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java new file mode 100644 index 000000000000..c32cf92cefb1 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSiteLinks ListByVpnSite. + */ +public final class VpnSiteLinksListByVpnSiteSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteLinkListByVpnSite.json + */ + /** + * Sample code: VpnSiteLinkListByVpnSite. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteLinkListByVpnSite(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnSiteLinks().listByVpnSite("rg1", "vpnSite1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java new file mode 100644 index 000000000000..4df086f3ed17 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.GetVpnSitesConfigurationRequest; +import java.util.Arrays; + +/** + * Samples for VpnSitesConfiguration Download. + */ +public final class VpnSitesConfigurationDownloadSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSitesConfigurationDownload.json + */ + /** + * Sample code: VpnSitesConfigurationDownload. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSitesConfigurationDownload(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSitesConfigurations() + .download("rg1", "wan1", new GetVpnSitesConfigurationRequest().withVpnSites(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/abc")) + .withOutputBlobSasUrl( + "https://blobcortextesturl.blob.core.windows.net/folderforconfig/vpnFile?sp=rw&se=2018-01-10T03%3A42%3A04Z&sv=2017-04-17&sig=WvXrT5bDmDFfgHs%2Brz%2BjAu123eRCNE9BO0eQYcPDT7pY%3D&sr=b"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b9a750ed1a6c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.fluent.models.VpnSiteInner; +import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkInner; +import com.azure.resourcemanager.network.models.AddressSpace; +import com.azure.resourcemanager.network.models.O365BreakOutCategoryPolicies; +import com.azure.resourcemanager.network.models.O365PolicyProperties; +import com.azure.resourcemanager.network.models.VpnLinkBgpSettings; +import com.azure.resourcemanager.network.models.VpnLinkProviderProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnSites CreateOrUpdate. + */ +public final class VpnSitesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSitePut.json + */ + /** + * Sample code: VpnSiteCreate. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteCreate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSites() + .createOrUpdate("rg1", "vpnSite1", new VpnSiteInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualWan(new SubResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1")) + .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) + .withIsSecuritySite(false) + .withVpnSiteLinks(Arrays.asList(new VpnSiteLinkInner().withName("vpnSiteLink1") + .withLinkProperties( + new VpnLinkProviderProperties().withLinkProviderName("vendor1").withLinkSpeedInMbps(0)) + .withIpAddress("50.50.50.56") + .withFqdn("link1.vpnsite1.contoso.com") + .withBgpProperties(new VpnLinkBgpSettings().withAsn(1234L).withBgpPeeringAddress("192.168.0.0")))) + .withO365Policy(new O365PolicyProperties().withBreakOutCategories( + new O365BreakOutCategoryPolicies().withAllow(true).withOptimize(true).withDefaultProperty(false))), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java new file mode 100644 index 000000000000..10cd59d71cbf --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSites Delete. + */ +public final class VpnSitesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteDelete.json + */ + /** + * Sample code: VpnSiteDelete. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteDelete(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnSites().delete("rg1", "vpnSite1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..260650c31b36 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSites GetByResourceGroup. + */ +public final class VpnSitesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteGet.json + */ + /** + * Sample code: VpnSiteGet. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteGet(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSites() + .getByResourceGroupWithResponse("rg1", "vpnSite1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java new file mode 100644 index 000000000000..6625930d4e7e --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSites ListByResourceGroup. + */ +public final class VpnSitesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteListByResourceGroup.json + */ + /** + * Sample code: VpnSiteListByResourceGroup. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteListByResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnSites().listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java new file mode 100644 index 000000000000..244ea873f175 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for VpnSites List. + */ +public final class VpnSitesListSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteList.json + */ + /** + * Sample code: VpnSiteList. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteList(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getVpnSites().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java new file mode 100644 index 000000000000..96e1f2c84276 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for VpnSites UpdateTags. + */ +public final class VpnSitesUpdateTagsSamples { + /* + * x-ms-original-file: 2025-05-01/VpnSiteUpdateTags.json + */ + /** + * Sample code: VpnSiteUpdate. + * + * @param manager Entry point to NetworkManager. + */ + public static void vpnSiteUpdate(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getVpnSites() + .updateTagsWithResponse("rg1", "vpnSite1", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..773090f6fc7b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java @@ -0,0 +1,244 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +import com.azure.resourcemanager.network.fluent.models.WebApplicationFirewallPolicyInner; +import com.azure.resourcemanager.network.models.ActionType; +import com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRateLimitDuration; +import com.azure.resourcemanager.network.models.ApplicationGatewayFirewallUserSessionVariable; +import com.azure.resourcemanager.network.models.ExceptionEntry; +import com.azure.resourcemanager.network.models.ExceptionEntryMatchVariable; +import com.azure.resourcemanager.network.models.ExceptionEntrySelectorMatchOperator; +import com.azure.resourcemanager.network.models.ExceptionEntryValueMatchOperator; +import com.azure.resourcemanager.network.models.ExclusionManagedRule; +import com.azure.resourcemanager.network.models.ExclusionManagedRuleGroup; +import com.azure.resourcemanager.network.models.ExclusionManagedRuleSet; +import com.azure.resourcemanager.network.models.GroupByUserSession; +import com.azure.resourcemanager.network.models.GroupByVariable; +import com.azure.resourcemanager.network.models.ManagedRuleEnabledState; +import com.azure.resourcemanager.network.models.ManagedRuleGroupOverride; +import com.azure.resourcemanager.network.models.ManagedRuleOverride; +import com.azure.resourcemanager.network.models.ManagedRuleSet; +import com.azure.resourcemanager.network.models.ManagedRulesDefinition; +import com.azure.resourcemanager.network.models.MatchCondition; +import com.azure.resourcemanager.network.models.MatchVariable; +import com.azure.resourcemanager.network.models.OwaspCrsExclusionEntry; +import com.azure.resourcemanager.network.models.OwaspCrsExclusionEntryMatchVariable; +import com.azure.resourcemanager.network.models.OwaspCrsExclusionEntrySelectorMatchOperator; +import com.azure.resourcemanager.network.models.PolicySettings; +import com.azure.resourcemanager.network.models.PolicySettingsLogScrubbing; +import com.azure.resourcemanager.network.models.ScrubbingRuleEntryMatchOperator; +import com.azure.resourcemanager.network.models.ScrubbingRuleEntryMatchVariable; +import com.azure.resourcemanager.network.models.ScrubbingRuleEntryState; +import com.azure.resourcemanager.network.models.SensitivityType; +import com.azure.resourcemanager.network.models.WebApplicationFirewallAction; +import com.azure.resourcemanager.network.models.WebApplicationFirewallCustomRule; +import com.azure.resourcemanager.network.models.WebApplicationFirewallMatchVariable; +import com.azure.resourcemanager.network.models.WebApplicationFirewallOperator; +import com.azure.resourcemanager.network.models.WebApplicationFirewallRuleType; +import com.azure.resourcemanager.network.models.WebApplicationFirewallScrubbingRules; +import com.azure.resourcemanager.network.models.WebApplicationFirewallScrubbingState; +import java.util.Arrays; + +/** + * Samples for WebApplicationFirewallPolicies CreateOrUpdate. + */ +public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-05-01/WafPolicyCreateOrUpdate.json + */ + /** + * Sample code: Creates or updates a WAF policy within a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void + createsOrUpdatesAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getWebApplicationFirewallPolicies() + .createOrUpdateWithResponse("rg1", "Policy1", + new WebApplicationFirewallPolicyInner().withLocation("WestUs") + .withPolicySettings( + new PolicySettings() + .withLogScrubbing( + new PolicySettingsLogScrubbing().withState(WebApplicationFirewallScrubbingState.ENABLED) + .withScrubbingRules( + Arrays + .asList( + new WebApplicationFirewallScrubbingRules() + .withMatchVariable( + ScrubbingRuleEntryMatchVariable.REQUEST_ARG_NAMES) + .withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator.EQUALS) + .withSelector("test") + .withState(ScrubbingRuleEntryState.ENABLED), + new WebApplicationFirewallScrubbingRules() + .withMatchVariable( + ScrubbingRuleEntryMatchVariable.REQUEST_IPADDRESS) + .withSelectorMatchOperator( + ScrubbingRuleEntryMatchOperator.EQUALS_ANY) + .withState(ScrubbingRuleEntryState.ENABLED)))) + .withJsChallengeCookieExpirationInMins(100)) + .withCustomRules( + Arrays + .asList( + new WebApplicationFirewallCustomRule().withName("Rule1") + .withPriority(1) + .withRuleType(WebApplicationFirewallRuleType.MATCH_RULE) + .withMatchConditions( + Arrays + .asList(new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName(WebApplicationFirewallMatchVariable.REMOTE_ADDR))) + .withOperator(WebApplicationFirewallOperator.IPMATCH) + .withMatchValues(Arrays.asList("192.168.1.0/24", "10.0.0.0/24")))) + .withAction(WebApplicationFirewallAction.BLOCK), + new WebApplicationFirewallCustomRule().withName("Rule2") + .withPriority(2) + .withRuleType(WebApplicationFirewallRuleType.MATCH_RULE) + .withMatchConditions( + Arrays.asList( + new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName(WebApplicationFirewallMatchVariable.REMOTE_ADDR))) + .withOperator(WebApplicationFirewallOperator.IPMATCH) + .withMatchValues(Arrays.asList("192.168.1.0/24")), + new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName( + WebApplicationFirewallMatchVariable.REQUEST_HEADERS) + .withSelector("UserAgent"))) + .withOperator(WebApplicationFirewallOperator.CONTAINS) + .withMatchValues(Arrays.asList("Windows")))) + .withAction(WebApplicationFirewallAction.BLOCK), + new WebApplicationFirewallCustomRule().withName("RateLimitRule3") + .withPriority(3) + .withRateLimitDuration(ApplicationGatewayFirewallRateLimitDuration.ONE_MIN) + .withRateLimitThreshold(10) + .withRuleType(WebApplicationFirewallRuleType.RATE_LIMIT_RULE) + .withMatchConditions( + Arrays + .asList(new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName(WebApplicationFirewallMatchVariable.REMOTE_ADDR))) + .withOperator(WebApplicationFirewallOperator.IPMATCH) + .withNegationConditon(true) + .withMatchValues(Arrays.asList("192.168.1.0/24", "10.0.0.0/24")))) + .withGroupByUserSession(Arrays.asList(new GroupByUserSession().withGroupByVariables( + Arrays.asList(new GroupByVariable().withVariableName( + ApplicationGatewayFirewallUserSessionVariable.CLIENT_ADDR))))) + .withAction(WebApplicationFirewallAction.BLOCK), + new WebApplicationFirewallCustomRule().withName("Rule4") + .withPriority(4) + .withRuleType(WebApplicationFirewallRuleType.MATCH_RULE) + .withMatchConditions( + Arrays.asList( + new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName(WebApplicationFirewallMatchVariable.REMOTE_ADDR))) + .withOperator(WebApplicationFirewallOperator.IPMATCH) + .withMatchValues(Arrays.asList("192.168.1.0/24")), + new MatchCondition() + .withMatchVariables(Arrays.asList(new MatchVariable() + .withVariableName( + WebApplicationFirewallMatchVariable.REQUEST_HEADERS) + .withSelector("UserAgent"))) + .withOperator(WebApplicationFirewallOperator.CONTAINS) + .withMatchValues(Arrays.asList("Bot")))) + .withAction(WebApplicationFirewallAction.JSCHALLENGE))) + .withManagedRules(new ManagedRulesDefinition() + .withExceptions(Arrays.asList( + new ExceptionEntry().withMatchVariable(ExceptionEntryMatchVariable.REQUEST_URI) + .withValues(Arrays.asList("health", "account/images", "default.aspx")) + .withValueMatchOperator(ExceptionEntryValueMatchOperator.CONTAINS) + .withExceptionManagedRuleSets(Arrays.asList( + new ExclusionManagedRuleSet().withRuleSetType("OWASP").withRuleSetVersion("3.2"))), + new ExceptionEntry().withMatchVariable(ExceptionEntryMatchVariable.REQUEST_HEADER) + .withValues(Arrays.asList("Mozilla/5.0", "Chrome/122.0.0.0")) + .withValueMatchOperator(ExceptionEntryValueMatchOperator.CONTAINS) + .withSelectorMatchOperator(ExceptionEntrySelectorMatchOperator.STARTS_WITH) + .withSelector("User-Agent") + .withExceptionManagedRuleSets( + Arrays.asList(new ExclusionManagedRuleSet().withRuleSetType("OWASP") + .withRuleSetVersion("3.2") + .withRuleGroups( + Arrays.asList(new ExclusionManagedRuleGroup() + .withRuleGroupName("REQUEST-932-APPLICATION-ATTACK-RCE"))))), + new ExceptionEntry().withMatchVariable(ExceptionEntryMatchVariable.REMOTE_ADDR) + .withValues(Arrays.asList("1.2.3.4", "10.0.0.1/6")) + .withValueMatchOperator(ExceptionEntryValueMatchOperator.IPMATCH) + .withExceptionManagedRuleSets(Arrays.asList(new ExclusionManagedRuleSet() + .withRuleSetType("Microsoft_BotManagerRuleSet") + .withRuleSetVersion("1.0") + .withRuleGroups(Arrays.asList(new ExclusionManagedRuleGroup() + .withRuleGroupName("BadBots") + .withRules(Arrays.asList(new ExclusionManagedRule().withRuleId("100100"))))))))) + .withExclusions( + Arrays + .asList( + new OwaspCrsExclusionEntry() + .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) + .withSelectorMatchOperator( + OwaspCrsExclusionEntrySelectorMatchOperator.STARTS_WITH) + .withSelector("hello") + .withExclusionManagedRuleSets( + Arrays + .asList(new ExclusionManagedRuleSet().withRuleSetType("OWASP") + .withRuleSetVersion("3.2") + .withRuleGroups(Arrays.asList( + new ExclusionManagedRuleGroup() + .withRuleGroupName("REQUEST-930-APPLICATION-ATTACK-LFI") + .withRules(Arrays.asList( + new ExclusionManagedRule().withRuleId("930120"))), + new ExclusionManagedRuleGroup().withRuleGroupName( + "REQUEST-932-APPLICATION-ATTACK-RCE"))))), + new OwaspCrsExclusionEntry() + .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) + .withSelectorMatchOperator( + OwaspCrsExclusionEntrySelectorMatchOperator.ENDS_WITH) + .withSelector("hello") + .withExclusionManagedRuleSets( + Arrays.asList(new ExclusionManagedRuleSet().withRuleSetType("OWASP") + .withRuleSetVersion("3.1") + .withRuleGroups(Arrays.asList()))), + new OwaspCrsExclusionEntry() + .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) + .withSelectorMatchOperator( + OwaspCrsExclusionEntrySelectorMatchOperator.STARTS_WITH) + .withSelector("test"), + new OwaspCrsExclusionEntry() + .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_VALUES) + .withSelectorMatchOperator( + OwaspCrsExclusionEntrySelectorMatchOperator.STARTS_WITH) + .withSelector("test"))) + .withManagedRuleSets(Arrays.asList( + new ManagedRuleSet().withRuleSetType("OWASP") + .withRuleSetVersion("3.2") + .withRuleGroupOverrides(Arrays.asList(new ManagedRuleGroupOverride() + .withRuleGroupName("REQUEST-931-APPLICATION-ATTACK-RFI") + .withRules(Arrays.asList( + new ManagedRuleOverride().withRuleId("931120") + .withState(ManagedRuleEnabledState.ENABLED) + .withAction(ActionType.LOG), + new ManagedRuleOverride().withRuleId("931130") + .withState(ManagedRuleEnabledState.DISABLED) + .withAction(ActionType.ANOMALY_SCORING))))), + new ManagedRuleSet().withRuleSetType("Microsoft_BotManagerRuleSet") + .withRuleSetVersion("1.0") + .withRuleGroupOverrides( + Arrays.asList(new ManagedRuleGroupOverride().withRuleGroupName("UnknownBots") + .withRules(Arrays.asList(new ManagedRuleOverride().withRuleId("300700") + .withState(ManagedRuleEnabledState.ENABLED) + .withAction(ActionType.JSCHALLENGE))))), + new ManagedRuleSet().withRuleSetType("Microsoft_HTTPDDoSRuleSet") + .withRuleSetVersion("1.0") + .withRuleGroupOverrides( + Arrays.asList(new ManagedRuleGroupOverride().withRuleGroupName("ExcessiveRequests") + .withRules(Arrays.asList(new ManagedRuleOverride().withRuleId("500100") + .withState(ManagedRuleEnabledState.ENABLED) + .withAction(ActionType.BLOCK) + .withSensitivity(SensitivityType.HIGH)))))))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java new file mode 100644 index 000000000000..b338c4ac7e07 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebApplicationFirewallPolicies Delete. + */ +public final class WebApplicationFirewallPoliciesDeleteSamples { + /* + * x-ms-original-file: 2025-05-01/WafPolicyDelete.json + */ + /** + * Sample code: Deletes a WAF policy within a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void deletesAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getWebApplicationFirewallPolicies() + .delete("rg1", "Policy1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java new file mode 100644 index 000000000000..8fecbf678f8c --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebApplicationFirewallPolicies GetByResourceGroup. + */ +public final class WebApplicationFirewallPoliciesGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/WafPolicyGet.json + */ + /** + * Sample code: Gets a WAF policy within a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void getsAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getWebApplicationFirewallPolicies() + .getByResourceGroupWithResponse("rg1", "Policy1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java new file mode 100644 index 000000000000..762d77644e2b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebApplicationFirewallPolicies ListByResourceGroup. + */ +public final class WebApplicationFirewallPoliciesListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-05-01/WafListPolicies.json + */ + /** + * Sample code: Lists all WAF policies in a resource group. + * + * @param manager Entry point to NetworkManager. + */ + public static void listsAllWAFPoliciesInAResourceGroup(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient() + .getWebApplicationFirewallPolicies() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java new file mode 100644 index 000000000000..9e85ecede320 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebApplicationFirewallPolicies List. + */ +public final class WebApplicationFirewallPoliciesListSamples { + /* + * x-ms-original-file: 2025-05-01/WafListAllPolicies.json + */ + /** + * Sample code: Lists all WAF policies in a subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void listsAllWAFPoliciesInASubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getWebApplicationFirewallPolicies().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java new file mode 100644 index 000000000000..190ad2b2b431 --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebCategories Get. + */ +public final class WebCategoriesGetSamples { + /* + * x-ms-original-file: 2025-05-01/AzureWebCategoryGet.json + */ + /** + * Sample code: Get Azure Web Category by name. + * + * @param manager Entry point to NetworkManager. + */ + public static void getAzureWebCategoryByName(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getWebCategories().getWithResponse("Arts", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java new file mode 100644 index 000000000000..a0a814debb7f --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for WebCategories List. + */ +public final class WebCategoriesListSamples { + /* + * x-ms-original-file: 2025-05-01/AzureWebCategoriesListBySubscription.json + */ + /** + * Sample code: List all Azure Web Categories for a given subscription. + * + * @param manager Entry point to NetworkManager. + */ + public static void + listAllAzureWebCategoriesForAGivenSubscription(com.azure.resourcemanager.network.NetworkManager manager) { + manager.serviceClient().getWebCategories().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/network/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkTests.java b/sdk/network/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkTests.java index 9cc18aeb335c..6753cc7158d0 100644 --- a/sdk/network/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkTests.java +++ b/sdk/network/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkTests.java @@ -52,7 +52,7 @@ public void testSubnetNetworkInterfaceIPConfigurationWithBastion() { .getBastionHosts() .createOrUpdate(rgName, bastionName, new BastionHostInner().withLocation(REGIN.toString()) .withIpConfigurations(Collections.singletonList(new BastionHostIpConfiguration().withName("ipconfig1") - .withSubnet(network.subnets().get("AzureBastionSubnet").innerModel()) + .withSubnet(new SubResource().withId(network.subnets().get("AzureBastionSubnet").innerModel().id())) .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) .withPublicIpAddress(new SubResource().withId(publicIpBastion.id()))))); diff --git a/sdk/network/azure-resourcemanager-network/tsp-location.yaml b/sdk/network/azure-resourcemanager-network/tsp-location.yaml new file mode 100644 index 000000000000..695fb555253b --- /dev/null +++ b/sdk/network/azure-resourcemanager-network/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/network/resource-manager/Microsoft.Network/Network +commit: 31fb4b3e5acb94b16df4a9e6b513057280bd5678 +repo: Azure/azure-rest-api-specs +additionalDirectories: